;Imports of db_load:
	extern _Z11Load_StreamhPKvi
	extern _Z16DB_PushStreamPosj
	extern _Z25DB_ConvertOffsetToPointerPv
	extern _Z17DB_AllocStreamPosi
	extern _Z15DB_PopStreamPosv
	extern _Z18Load_XStringCustomPPKc
	extern _Z23Load_ScriptStringCustomPt
	extern _Z23DB_ConvertOffsetToAliasPv
	extern _Z17Load_SetSoundDataPPhP8MssSound
	extern _Z16DB_InsertPointerv
	extern _Z25Load_GetCurrentZoneHandlePh
	extern _Z18Mark_GfxImageAssetP8GfxImage
	extern _Z18Mark_LightDefAssetP11GfxLightDef
	extern _Z24Load_FxEffectDefFromNamePPKc
	extern _Z19Load_SndAliasCustomPP16snd_alias_list_t
	extern _Z16Load_XModelAssetPP6XModel
	extern _Z23Mark_ScriptStringCustomPt
	extern _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	extern _Z18Mark_SndCurveAssetP8SndCurve
	extern _Z21Mark_LoadedSoundAssetP11LoadedSound
	extern _Z16Mark_XModelAssetP6XModel
	extern _Z20Mark_PhysPresetAssetP10PhysPreset
	extern _Z17Mark_MapEntsAssetP7MapEnts
	extern _Z21Mark_FxEffectDefAssetP11FxEffectDef
	extern _Z14Load_FontAssetPP6Font_s
	extern _Z17Load_MapEntsAssetPP7MapEnts
	extern _Z17Load_RawFileAssetPP7RawFile
	extern _Z18Load_ComWorldAssetPP8ComWorld
	extern _Z18Load_GfxImageAssetPP8GfxImage
	extern _Z18Load_GfxWorldAssetPP8GfxWorld
	extern _Z18Load_MenuListAssetPP8MenuList
	extern _Z18Load_SndCurveAssetPP8SndCurve
	extern _Z17Load_ClipMapAssetPP9clipMap_t
	extern _Z14Load_MenuAssetPP9menuDef_t
	extern _Z20Load_BuildVertexDeclPP25MaterialVertexDeclaration
	extern _Z19Load_WeaponDefAssetPP9WeaponDef
	extern _Z21Mark_StringTableAssetP11StringTable
	extern _Z20Mark_XAnimPartsAssetP10XAnimParts
	extern _Z30Mark_MaterialTechniqueSetAssetP20MaterialTechniqueSet
	extern _Z18Mark_ComWorldAssetP8ComWorld
	extern _Z17Mark_ClipMapAssetP9clipMap_t
	extern _Z21Mark_GameWorldSpAssetP11GameWorldSp
	extern _Z21Mark_GameWorldMpAssetP11GameWorldMp
	extern _Z18Mark_GfxWorldAssetP8GfxWorld
	extern _Z14Mark_FontAssetP6Font_s
	extern _Z18Mark_MenuListAssetP8MenuList
	extern _Z14Mark_MenuAssetP9menuDef_t
	extern _Z23Mark_LocalizeEntryAssetP13LocalizeEntry
	extern _Z19Mark_WeaponDefAssetP9WeaponDef
	extern _Z17Mark_RawFileAssetP7RawFile
	extern _Z23Mark_FxImpactTableAssetP13FxImpactTable
	extern _Z20Load_PhysPresetAssetPP10PhysPreset
	extern _Z20Load_XAnimPartsAssetPP10XAnimParts
	extern _Z21Load_GameWorldMpAssetPP11GameWorldMp
	extern _Z21Load_GameWorldSpAssetPP11GameWorldSp
	extern _Z18Load_LightDefAssetPP11GfxLightDef
	extern _Z12Load_TexturePP15GfxImageLoadDefP8GfxImage
	extern _Z21Load_LoadedSoundAssetPP11LoadedSound
	extern _Z18Load_MaterialAssetPP8Material
	extern _Z21Load_StringTableAssetPP11StringTable
	extern _Z18Mark_MaterialAssetP8Material
	extern _Z23Load_FxImpactTableAssetPP13FxImpactTable
	extern _Z23Load_LocalizeEntryAssetPP13LocalizeEntry
	extern _Z21Load_TempStringCustomPPKc
	extern _Z21Load_FxEffectDefAssetPPK11FxEffectDef
	extern _Z17Load_VertexBufferPP22IDirect3DVertexBuffer9Pvi
	extern _Z25Load_snd_alias_list_AssetPP16snd_alias_list_t
	extern _Z30Load_CreateMaterialPixelShaderP21GfxPixelShaderLoadDefP19MaterialPixelShader
	extern _Z16Load_PicmipWaterPP7water_t
	extern _Z30Load_MaterialTechniqueSetAssetPP20MaterialTechniqueSet
	extern _Z31Load_CreateMaterialVertexShaderP22GfxVertexShaderLoadDefP20MaterialVertexShader

;Exports of db_load:
	global _Z11Load_XAsseth
	global _Z11Load_XModelh
	global _Z11Mark_XAssetv
	global _Z12Load_GfxCellh
	global _Z12Load_MapEntsh
	global _Z12Load_RawFileh
	global _Z12Load_XStringh
	global _Z12Load_water_th
	global _Z13Load_ComWorldh
	global _Z13Load_GfxWorldh
	global _Z13Load_Materialh
	global _Z13Load_MenuListh
	global _Z13Load_MssSoundh
	global _Z13Load_PathDatah
	global _Z13Load_XSurfaceh
	global _Z13Load_cbrush_th
	global _Z13Mark_GfxWorldv
	global _Z14Load_FxElemDefh
	global _Z14Load_GfxPortalh
	global _Z14Load_WeaponDefh
	global _Z14Load_XModelPtrh
	global _Z14Load_clipMap_th
	global _Z14Load_itemDef_th
	global _Z14Load_menuDef_th
	global _Z14Mark_WeaponDefv
	global _Z14Mark_XModelPtrv
	global _Z14Mark_clipMap_tv
	global _Z15Load_FontHandleh
	global _Z15Load_FxTrailDefh
	global _Z15Load_MapEntsPtrh
	global _Z15Load_RawFilePtrh
	global _Z15Load_XAnimPartsh
	global _Z15Load_XStringPtrh
	global _Z15Load_multiDef_th
	global _Z16AllocLoad_XAssetv
	global _Z16Load_ComWorldPtrh
	global _Z16Load_FxEffectDefh
	global _Z16Load_GfxImagePtrh
	global _Z16Load_GfxLightDefh
	global _Z16Load_GfxWorldPtrh
	global _Z16Load_MenuListPtrh
	global _Z16Load_SndCurvePtrh
	global _Z16Load_StringTableh
	global _Z16Load_clipMap_ptrh
	global _Z16Load_menuDef_ptrh
	global _Z16Load_snd_alias_th
	global _Z17Load_BrushWrapperh
	global _Z17Load_DynEntityDefh
	global _Z17Load_GfxLightGridh
	global _Z17Load_MaterialPassh
	global _Z17Load_PhysGeomListh
	global _Z17Load_WeaponDefPtrh
	global _Z17Load_XAssetHeaderh
	global _Z17Load_XModelPiecesh
	global _Z17Mark_XAssetHeaderv
	global _Z18Load_FxElemVisualsh
	global _Z18Load_FxImpactEntryh
	global _Z18Load_FxImpactTableh
	global _Z18Load_PhysPresetPtrh
	global _Z18Load_XAnimPartsPtrh
	global _Z18Load_itemDefData_th
	global _Z19Load_GameWorldMpPtrh
	global _Z19Load_GameWorldSpPtrh
	global _Z19Load_GfxLightDefPtrh
	global _Z19Load_GfxLightRegionh
	global _Z19Load_GfxTextureLoadh
	global _Z19Load_ItemKeyHandlerh
	global _Z19Load_LoadedSoundPtrh
	global _Z19Load_MaterialHandleh
	global _Z19Load_StringTablePtrh
	global _Z19Load_XAnimDeltaParth
	global _Z19Load_listBoxDef_ptrh
	global _Z19Mark_MaterialHandlev
	global _Z21Load_FxElemDefVisualsh
	global _Z21Load_FxImpactTablePtrh
	global _Z21Load_LocalizeEntryPtrh
	global _Z21Load_ScriptStringListh
	global _Z21Load_snd_alias_list_th
	global _Z21Mark_FxElemDefVisualsv
	global _Z22Load_FxEffectDefHandleh
	global _Z22Load_GfxShadowGeometryh
	global _Z22Load_pathnode_tree_ptrh
	global _Z22Mark_FxEffectDefHandlev
	global _Z23Load_GfxWorldDpvsPlanesh
	global _Z23Load_GfxWorldDpvsStatich
	global _Z23Load_GfxWorldVertexDatah
	global _Z23Load_XAnimDynamicFramesh
	global _Z23Load_snd_alias_list_ptrh
	global _Z23Mark_snd_alias_list_ptrv
	global _Z24Load_GfxWorldDpvsDynamich
	global _Z24Load_MaterialArgumentDefh
	global _Z24Load_expressionEntry_ptrh
	global _Z24Load_pathnode_constant_th
	global _Z24Mark_pathnode_constant_tv
	global _Z25Load_MaterialTechniqueSeth
	global _Z26Load_XSurfaceCollisionTreeh
	global _Z27Load_MaterialPixelShaderPtrh
	global _Z27Load_MaterialTextureDefInfoh
	global _Z28Load_GfxWorldVertexLayerDatah
	global _Z28Load_MaterialTechniqueSetPtrh
	global _Z28Load_MaterialVertexShaderPtrh
	global _Z9Load_Fonth
	global varScriptStringList
	global varXAsset
	global varXAssetList
	global varBrushWrapper
	global varByteVec
	global varCollisionAabbTree
	global varCollisionBorder
	global varCollisionPartition
	global varComPrimaryLight
	global varComWorld
	global varComWorldPtr
	global varConstChar
	global varDObjAnimMat
	global varDWORD
	global varDynEntityClient
	global varDynEntityColl
	global varDynEntityDef
	global varDynEntityPose
	global varFont
	global varFontHandle
	global varFxEffectDef
	global varFxEffectDefHandle
	global varFxEffectDefRef
	global varFxElemDef
	global varFxElemDefVisuals
	global varFxElemMarkVisuals
	global varFxElemVelStateSample
	global varFxElemVisStateSample
	global varFxElemVisuals
	global varFxImpactEntry
	global varFxImpactTable
	global varFxImpactTablePtr
	global varFxTrailDef
	global varFxTrailVertex
	global varGameWorldMp
	global varGameWorldMpPtr
	global varGameWorldSp
	global varGameWorldSpPtr
	global varGfxAabbTree
	global varGfxBrushModel
	global varGfxCell
	global varGfxCullGroup
	global varGfxDrawSurf
	global varGfxImage
	global varGfxImageLoadDef
	global varGfxImagePtr
	global varGfxLight
	global varGfxLightDef
	global varGfxLightDefPtr
	global varGfxLightGrid
	global varGfxLightGridColors
	global varGfxLightGridEntry
	global varGfxLightImage
	global varGfxLightRegion
	global varGfxLightRegionAxis
	global varGfxLightRegionHull
	global varGfxLightmapArray
	global varGfxPackedVertex0
	global varGfxPixelShaderLoadDef
	global varGfxPortal
	global varGfxRawTexture
	global varGfxReflectionProbe
	global varGfxSceneDynBrush
	global varGfxSceneDynModel
	global varGfxShadowGeometry
	global varGfxStateBits
	global varGfxStaticModelDrawInst
	global varGfxStaticModelInst
	global varGfxSurface
	global varGfxTextureLoad
	global varGfxVertexBuffer
	global varGfxVertexShaderLoadDef
	global varGfxWorld
	global varGfxWorldDpvsDynamic
	global varGfxWorldDpvsPlanes
	global varGfxWorldDpvsStatic
	global varGfxWorldPtr
	global varGfxWorldVertex0
	global varGfxWorldVertexData
	global varGfxWorldVertexLayerData
	global varGlyph
	global varItemKeyHandler
	global varItemKeyHandlerNext
	global varLeafBrush
	global varLoadedSound
	global varLoadedSoundPtr
	global varLocalizeEntry
	global varLocalizeEntryPtr
	global varMapEnts
	global varMapEntsPtr
	global varMaterial
	global varMaterialArgumentCodeConst
	global varMaterialArgumentDef
	global varMaterialConstantDef
	global varMaterialHandle
	global varMaterialInfo
	global varMaterialMemory
	global varMaterialPass
	global varMaterialPixelShader
	global varMaterialPixelShaderProgram
	global varMaterialPixelShaderPtr
	global varMaterialShaderArgument
	global varMaterialTechnique
	global varMaterialTechniquePtr
	global varMaterialTechniqueSet
	global varMaterialTechniqueSetPtr
	global varMaterialTextureDef
	global varMaterialTextureDefInfo
	global varMaterialVertexDeclaration
	global varMaterialVertexShader
	global varMaterialVertexShaderProgram
	global varMaterialVertexShaderPtr
	global varMenuList
	global varMenuListPtr
	global varMssSound
	global varOperand
	global varPathData
	global varPhysGeomInfo
	global varPhysGeomList
	global varPhysPreset
	global varPhysPresetPtr
	global varRawFile
	global varRawFilePtr
	global varScriptString
	global varSndCurve
	global varSndCurvePtr
	global varSoundFile
	global varSoundFileRef
	global varSpeakerMap
	global varStaticModelIndex
	global varStreamFileInfo
	global varStreamFileName
	global varStreamFileNameRaw
	global varStreamedSound
	global varStringTable
	global varStringTablePtr
	global varTempString
	global varUShortVec
	global varUnsignedShort
	global varWeaponDef
	global varWeaponDefPtr
	global varWindow
	global varXAnimDeltaPart
	global varXAnimDeltaPartQuat
	global varXAnimDeltaPartQuatData
	global varXAnimDeltaPartQuatDataFrames
	global varXAnimDynamicFrames
	global varXAnimDynamicIndicesDeltaQuat
	global varXAnimDynamicIndicesTrans
	global varXAnimIndices
	global varXAnimNotifyInfo
	global varXAnimPartTrans
	global varXAnimPartTransData
	global varXAnimPartTransFrames
	global varXAnimParts
	global varXAnimPartsPtr
	global varXAssetHeader
	global varXBlendInfo
	global varXBoneInfo
	global varXModel
	global varXModelCollSurf
	global varXModelCollTri
	global varXModelPiece
	global varXModelPieces
	global varXModelPiecesPtr
	global varXModelPtr
	global varXQuat2
	global varXRigidVertList
	global varXString
	global varXStringPtr
	global varXSurface
	global varXSurfaceCollisionLeaf
	global varXSurfaceCollisionNode
	global varXSurfaceCollisionTree
	global varXSurfaceVertexInfo
	global varXZoneHandle
	global varbyte
	global varcLeafBrushNodeData_t
	global varcLeafBrushNodeLeaf_t
	global varcLeafBrushNode_t
	global varcLeaf_t
	global varcNode_t
	global varcStaticModel_t
	global varcbrush_t
	global varcbrushedge_t
	global varcbrushside_t
	global varchar
	global varclipMap_ptr
	global varclipMap_t
	global varcmodel_t
	global varcomplex_t
	global varcplane_t
	global vardmaterial_t
	global vareditFieldDef_ptr
	global vareditFieldDef_t
	global varentryInternalData
	global varexpressionEntry
	global varexpressionEntry_ptr
	global varfloat
	global varint
	global varitemDefData_t
	global varitemDef_ptr
	global varitemDef_t
	global varlistBoxDef_ptr
	global varlistBoxDef_t
	global varmenuDef_ptr
	global varmenuDef_t
	global varmultiDef_ptr
	global varmultiDef_t
	global varoperandInternalDataUnion
	global varpathbasenode_t
	global varpathlink_t
	global varpathnode_constant_t
	global varpathnode_t
	global varpathnode_tree_info_t
	global varpathnode_tree_nodes_t
	global varpathnode_tree_ptr
	global varpathnode_tree_t
	global varr_index16_t
	global varr_index_t
	global varraw_byte
	global varraw_byte16
	global varraw_uint
	global varraw_uint128
	global varshort
	global varsnd_alias_list_name
	global varsnd_alias_list_ptr
	global varsnd_alias_list_t
	global varsnd_alias_t
	global varstatement
	global varsunflare_t
	global varuint
	global varushort
	global varvec2_t
	global varvec3_t
	global varwater_t
	global varwindowDef_t


SECTION .text


;Load_XAsset(unsigned char)
_Z11Load_XAsseth:
	push ebp
	mov ebp, esp
	sub esp, 0x18
	mov dword [esp+0x8], 0x8
	mov eax, [varXAsset]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varXAsset]
	add eax, 0x4
	mov [varXAssetHeader], eax
	mov dword [ebp+0x8], 0x0
	leave
	jmp _Z17Load_XAssetHeaderh
	nop


;Load_XModel(unsigned char)
_Z11Load_XModelh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0xdc
	mov eax, [varXModel]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varXModel]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z11Load_XModelh_10
	add eax, 0x1
	jz _Z11Load_XModelh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z11Load_XModelh_10:
	mov ebx, [varXModel]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z11Load_XModelh_30
	add eax, 0x1
	jz _Z11Load_XModelh_40
	lea eax, [ebx+0x8]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varXModel]
_Z11Load_XModelh_30:
	mov eax, [ebx+0xc]
	test eax, eax
	jz _Z11Load_XModelh_50
	add eax, 0x1
	jz _Z11Load_XModelh_60
	lea eax, [ebx+0xc]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varXModel]
_Z11Load_XModelh_50:
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z11Load_XModelh_70
	add eax, 0x1
	jz _Z11Load_XModelh_80
	lea eax, [ebx+0x10]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varXModel]
_Z11Load_XModelh_70:
	mov eax, [ebx+0x14]
	test eax, eax
	jz _Z11Load_XModelh_90
	add eax, 0x1
	jz _Z11Load_XModelh_100
	lea eax, [ebx+0x14]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varXModel]
_Z11Load_XModelh_90:
	mov eax, [ebx+0x18]
	test eax, eax
	jz _Z11Load_XModelh_110
	add eax, 0x1
	jz _Z11Load_XModelh_120
	lea eax, [ebx+0x18]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varXModel]
_Z11Load_XModelh_110:
	mov eax, [ebx+0x1c]
	test eax, eax
	jz _Z11Load_XModelh_130
	add eax, 0x1
	jz _Z11Load_XModelh_140
	lea eax, [ebx+0x1c]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varXModel]
_Z11Load_XModelh_130:
	mov ecx, [ebx+0x20]
	test ecx, ecx
	jz _Z11Load_XModelh_150
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x20], eax
	mov eax, [varXModel]
	mov ecx, [eax+0x20]
	mov [varXSurface], ecx
	movzx edi, byte [eax+0x6]
	lea edx, [edi*8]
	mov eax, edi
	shl eax, 0x6
	sub eax, edx
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXSurface]
	test edi, edi
	jg _Z11Load_XModelh_160
_Z11Load_XModelh_280:
	mov ebx, [varXModel]
_Z11Load_XModelh_150:
	mov edx, [ebx+0x24]
	test edx, edx
	jz _Z11Load_XModelh_170
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varXModel]
	mov edx, [eax+0x24]
	mov [varMaterialHandle], edx
	movzx edi, byte [eax+0x6]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialHandle]
	test edi, edi
	jg _Z11Load_XModelh_180
_Z11Load_XModelh_300:
	mov ebx, [varXModel]
_Z11Load_XModelh_170:
	mov eax, [ebx+0x98]
	test eax, eax
	jz _Z11Load_XModelh_190
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x98], eax
	mov eax, [varXModel]
	mov edx, [eax+0x98]
	mov [varXModelCollSurf], edx
	mov edi, [eax+0x9c]
	lea eax, [edi+edi*4]
	lea eax, [edi+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varXModelCollSurf]
	test edi, edi
	jg _Z11Load_XModelh_200
_Z11Load_XModelh_260:
	mov ebx, [varXModel]
_Z11Load_XModelh_190:
	mov eax, [ebx+0xa4]
	test eax, eax
	jz _Z11Load_XModelh_210
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xa4], eax
	mov eax, [varXModel]
	mov edx, [eax+0xa4]
	mov [varXBoneInfo], edx
	movzx eax, byte [eax+0x4]
	lea eax, [eax+eax*4]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModel]
_Z11Load_XModelh_210:
	lea eax, [ebx+0xd4]
	mov [varPhysPresetPtr], eax
	mov dword [esp], 0x0
	call _Z18Load_PhysPresetPtrh
	mov ebx, [varXModel]
	mov eax, [ebx+0xd8]
	test eax, eax
	jz _Z11Load_XModelh_220
	add eax, 0x1
	jz _Z11Load_XModelh_230
	lea eax, [ebx+0xd8]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z11Load_XModelh_220:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z11Load_XModelh_200:
	mov dword [ebp-0x1c], 0x0
_Z11Load_XModelh_250:
	mov [varXModelCollSurf], esi
	mov dword [esp+0x8], 0x2c
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModelCollSurf]
	mov eax, [ebx]
	test eax, eax
	jz _Z11Load_XModelh_240
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXModelCollSurf]
	mov edx, [eax]
	mov [varXModelCollTri], edx
	mov eax, [eax+0x4]
	lea eax, [eax+eax*2]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z11Load_XModelh_240:
	add esi, 0x2c
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jnz _Z11Load_XModelh_250
	jmp _Z11Load_XModelh_260
_Z11Load_XModelh_160:
	xor esi, esi
_Z11Load_XModelh_270:
	mov [varXSurface], ebx
	mov dword [esp], 0x0
	call _Z13Load_XSurfaceh
	add ebx, 0x38
	add esi, 0x1
	cmp edi, esi
	jnz _Z11Load_XModelh_270
	jmp _Z11Load_XModelh_280
_Z11Load_XModelh_180:
	xor esi, esi
_Z11Load_XModelh_290:
	mov [varMaterialHandle], ebx
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z11Load_XModelh_290
	jmp _Z11Load_XModelh_300
_Z11Load_XModelh_230:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xd8], eax
	mov eax, [varXModel]
	mov eax, [eax+0xd8]
	mov [varPhysGeomList], eax
	mov dword [esp], 0x1
	call _Z17Load_PhysGeomListh
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z11Load_XModelh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z11Load_XModelh_10
_Z11Load_XModelh_80:
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10], eax
	mov edx, [varXModel]
	mov ecx, [edx+0x10]
	mov [varshort], ecx
	movzx eax, byte [edx+0x4]
	movzx edx, byte [edx+0x5]
	sub eax, edx
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModel]
	jmp _Z11Load_XModelh_70
_Z11Load_XModelh_100:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x14], eax
	mov edx, [varXModel]
	mov ecx, [edx+0x14]
	mov [varfloat], ecx
	movzx eax, byte [edx+0x4]
	movzx edx, byte [edx+0x5]
	sub eax, edx
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModel]
	jmp _Z11Load_XModelh_90
_Z11Load_XModelh_120:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x18], eax
	mov eax, [varXModel]
	mov edx, [eax+0x18]
	mov [varbyte], edx
	movzx eax, byte [eax+0x4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModel]
	jmp _Z11Load_XModelh_110
_Z11Load_XModelh_140:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varXModel]
	mov edx, [eax+0x1c]
	mov [varDObjAnimMat], edx
	movzx eax, byte [eax+0x4]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModel]
	jmp _Z11Load_XModelh_130
_Z11Load_XModelh_40:
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varXModel]
	mov edx, [eax+0x8]
	mov [varScriptString], edx
	movzx edi, byte [eax+0x4]
	lea eax, [edi+edi]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varScriptString]
	test edi, edi
	jg _Z11Load_XModelh_310
_Z11Load_XModelh_330:
	mov ebx, [varXModel]
	jmp _Z11Load_XModelh_30
_Z11Load_XModelh_60:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xc], eax
	mov edx, [varXModel]
	mov ecx, [edx+0xc]
	mov [varbyte], ecx
	movzx eax, byte [edx+0x4]
	movzx edx, byte [edx+0x5]
	sub eax, edx
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModel]
	jmp _Z11Load_XModelh_50
_Z11Load_XModelh_310:
	xor esi, esi
_Z11Load_XModelh_320:
	mov [varScriptString], ebx
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	add ebx, 0x2
	add esi, 0x1
	cmp edi, esi
	jnz _Z11Load_XModelh_320
	jmp _Z11Load_XModelh_330


;Mark_XAsset()
_Z11Mark_XAssetv:
	push ebp
	mov ebp, esp
	mov eax, [varXAsset]
	add eax, 0x4
	mov [varXAssetHeader], eax
	pop ebp
	jmp _Z17Mark_XAssetHeaderv


;Load_GfxCell(unsigned char)
_Z12Load_GfxCellh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x38
	mov eax, [varGfxCell]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxCell]
	mov edx, [ebx+0x1c]
	test edx, edx
	jz _Z12Load_GfxCellh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varGfxCell]
	mov edx, [eax+0x1c]
	mov [varGfxAabbTree], edx
	mov edi, [eax+0x18]
	lea eax, [edi+edi*4]
	lea eax, [edi+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varGfxAabbTree]
	test edi, edi
	jg _Z12Load_GfxCellh_20
_Z12Load_GfxCellh_100:
	mov ebx, [varGfxCell]
_Z12Load_GfxCellh_10:
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z12Load_GfxCellh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varGfxCell]
	mov edx, [eax+0x24]
	mov [varGfxPortal], edx
	mov edi, [eax+0x20]
	mov eax, edi
	shl eax, 0x6
	lea eax, [eax+edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxPortal]
	test edi, edi
	jg _Z12Load_GfxCellh_40
_Z12Load_GfxCellh_80:
	mov ebx, [varGfxCell]
_Z12Load_GfxCellh_30:
	mov eax, [ebx+0x2c]
	test eax, eax
	jz _Z12Load_GfxCellh_50
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x2c], eax
	mov eax, [varGfxCell]
	mov edx, [eax+0x2c]
	mov [varint], edx
	mov eax, [eax+0x28]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxCell]
_Z12Load_GfxCellh_50:
	mov eax, [ebx+0x34]
	test eax, eax
	jz _Z12Load_GfxCellh_60
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x34], eax
	mov eax, [varGfxCell]
	mov edx, [eax+0x34]
	mov [varbyte], edx
	movzx eax, byte [eax+0x30]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z12Load_GfxCellh_60:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z12Load_GfxCellh_40:
	xor esi, esi
_Z12Load_GfxCellh_70:
	mov [varGfxPortal], ebx
	mov dword [esp], 0x0
	call _Z14Load_GfxPortalh
	add ebx, 0x44
	add esi, 0x1
	cmp edi, esi
	jnz _Z12Load_GfxCellh_70
	jmp _Z12Load_GfxCellh_80
_Z12Load_GfxCellh_20:
	mov dword [ebp-0x1c], 0x0
	jmp _Z12Load_GfxCellh_90
_Z12Load_GfxCellh_120:
	lea eax, [ebx+0x24]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z12Load_GfxCellh_110:
	add esi, 0x2c
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z12Load_GfxCellh_100
_Z12Load_GfxCellh_90:
	mov [varGfxAabbTree], esi
	mov dword [esp+0x8], 0x2c
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxAabbTree]
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z12Load_GfxCellh_110
	add eax, 0x1
	jnz _Z12Load_GfxCellh_120
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varGfxAabbTree]
	mov edx, [eax+0x24]
	mov [varStaticModelIndex], edx
	movzx eax, word [eax+0x22]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z12Load_GfxCellh_110
	nop


;Load_MapEnts(unsigned char)
_Z12Load_MapEntsh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0xc
	mov eax, [varMapEnts]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varMapEnts]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z12Load_MapEntsh_10
	add eax, 0x1
	jz _Z12Load_MapEntsh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z12Load_MapEntsh_10:
	mov ebx, [varMapEnts]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z12Load_MapEntsh_30
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varMapEnts]
	mov edx, [eax+0x4]
	mov [varchar], edx
	mov eax, [eax+0x8]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z12Load_MapEntsh_30:
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z12Load_MapEntsh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z12Load_MapEntsh_10
	nop


;Load_RawFile(unsigned char)
_Z12Load_RawFileh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0xc
	mov eax, [varRawFile]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varRawFile]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z12Load_RawFileh_10
	add eax, 0x1
	jz _Z12Load_RawFileh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z12Load_RawFileh_10:
	mov ebx, [varRawFile]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z12Load_RawFileh_30
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varRawFile]
	mov edx, [eax+0x8]
	mov [varConstChar], edx
	mov eax, [eax+0x4]
	add eax, 0x1
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z12Load_RawFileh_30:
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z12Load_RawFileh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z12Load_RawFileh_10


;Load_XString(unsigned char)
_Z12Load_XStringh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x4
	mov eax, [varXString]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z12Load_XStringh_10
	add eax, 0x1
	jz _Z12Load_XStringh_20
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z12Load_XStringh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [ebp+0x8], edx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_XStringCustomPPKc
_Z12Load_XStringh_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret


;Load_water_t(unsigned char)
_Z12Load_water_th:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x44
	mov eax, [varwater_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varwater_t]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z12Load_water_th_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov edx, [varwater_t]
	mov ecx, [edx+0x4]
	mov [varcomplex_t], ecx
	mov eax, [edx+0xc]
	imul eax, [edx+0x10]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varwater_t]
_Z12Load_water_th_10:
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z12Load_water_th_20
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov edx, [varwater_t]
	mov ecx, [edx+0x8]
	mov [varfloat], ecx
	mov eax, [edx+0xc]
	imul eax, [edx+0x10]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varwater_t]
_Z12Load_water_th_20:
	lea eax, [ebx+0x40]
	mov [varGfxImagePtr], eax
	mov dword [ebp+0x8], 0x0
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z16Load_GfxImagePtrh
	nop


;Load_ComWorld(unsigned char)
_Z13Load_ComWorldh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x10
	mov eax, [varComWorld]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varComWorld]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z13Load_ComWorldh_10
	add eax, 0x1
	jz _Z13Load_ComWorldh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_ComWorldh_10:
	mov ebx, [varComWorld]
	mov eax, [ebx+0xc]
	test eax, eax
	jz _Z13Load_ComWorldh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xc], eax
	mov eax, [varComWorld]
	mov edx, [eax+0xc]
	mov [varComPrimaryLight], edx
	mov edi, [eax+0x8]
	mov eax, edi
	shl eax, 0x6
	lea eax, [eax+edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varComPrimaryLight]
	test edi, edi
	jg _Z13Load_ComWorldh_40
_Z13Load_ComWorldh_30:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_ComWorldh_40:
	mov dword [ebp-0x1c], 0x0
	jmp _Z13Load_ComWorldh_50
_Z13Load_ComWorldh_70:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_ComWorldh_60:
	add esi, 0x44
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z13Load_ComWorldh_30
_Z13Load_ComWorldh_50:
	mov [varComPrimaryLight], esi
	mov dword [esp+0x8], 0x44
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varComPrimaryLight]
	add eax, 0x40
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z13Load_ComWorldh_60
	add eax, 0x1
	jnz _Z13Load_ComWorldh_70
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z13Load_ComWorldh_60
_Z13Load_ComWorldh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z13Load_ComWorldh_10
	nop


;Load_GfxWorld(unsigned char)
_Z13Load_GfxWorldh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x2dc
	mov eax, [varGfxWorld]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varGfxWorld]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z13Load_GfxWorldh_10
	add eax, 0x1
	jz _Z13Load_GfxWorldh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_GfxWorldh_10:
	mov eax, [varGfxWorld]
	add eax, 0x4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z13Load_GfxWorldh_30
	add eax, 0x1
	jz _Z13Load_GfxWorldh_40
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_GfxWorldh_30:
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x14]
	test eax, eax
	jz _Z13Load_GfxWorldh_50
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x14], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x14]
	mov [varr_index_t], edx
	mov eax, [eax+0x10]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_50:
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z13Load_GfxWorldh_60
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x24]
	mov [varint], edx
	mov eax, [eax+0x20]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_60:
	lea eax, [ebx+0x28]
	mov [varGfxImagePtr], eax
	mov dword [esp], 0x0
	call _Z16Load_GfxImagePtrh
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0xc8]
	test eax, eax
	jz _Z13Load_GfxWorldh_70
	add eax, 0x1
	jz _Z13Load_GfxWorldh_80
	lea eax, [ebx+0xc8]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_70:
	mov eax, [ebx+0xe8]
	test eax, eax
	jz _Z13Load_GfxWorldh_90
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xe8], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0xe8]
	mov [varGfxReflectionProbe], edx
	mov edi, [eax+0xe4]
	mov eax, edi
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxReflectionProbe]
	test edi, edi
	jg _Z13Load_GfxWorldh_100
_Z13Load_GfxWorldh_90:
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0xec]
	test eax, eax
	jz _Z13Load_GfxWorldh_110
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xec], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0xec]
	mov [varGfxRawTexture], edx
	mov eax, [eax+0xe4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_110:
	call _Z15DB_PopStreamPosv
	mov eax, [varGfxWorld]
	add eax, 0xf0
	mov [varGfxWorldDpvsPlanes], eax
	mov dword [esp], 0x0
	call _Z23Load_GfxWorldDpvsPlanesh
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x104]
	test eax, eax
	jz _Z13Load_GfxWorldh_120
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x104], eax
	mov eax, [varGfxWorld]
	mov ecx, [eax+0x104]
	mov [varGfxCell], ecx
	mov edi, [eax+0xf0]
	lea edx, [edi*8]
	mov eax, edi
	shl eax, 0x6
	sub eax, edx
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxCell]
	test edi, edi
	jg _Z13Load_GfxWorldh_130
_Z13Load_GfxWorldh_380:
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_120:
	mov eax, [ebx+0x10c]
	test eax, eax
	jz _Z13Load_GfxWorldh_140
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10c], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x10c]
	mov [varGfxLightmapArray], edx
	mov edi, [eax+0x108]
	lea eax, [edi*8]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightmapArray]
	test edi, edi
	jg _Z13Load_GfxWorldh_150
_Z13Load_GfxWorldh_400:
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_140:
	lea eax, [ebx+0x110]
	mov [varGfxLightGrid], eax
	mov dword [esp], 0x0
	call _Z17Load_GfxLightGridh
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov edi, [ebx+0x148]
	test edi, edi
	jz _Z13Load_GfxWorldh_160
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x148], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x148]
	mov [varGfxRawTexture], edx
	mov eax, [eax+0x108]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_160:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov esi, [ebx+0x14c]
	test esi, esi
	jz _Z13Load_GfxWorldh_170
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x14c], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x14c]
	mov [varGfxRawTexture], edx
	mov eax, [eax+0x108]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_170:
	call _Z15DB_PopStreamPosv
	mov ebx, [varGfxWorld]
	mov ecx, [ebx+0x154]
	test ecx, ecx
	jz _Z13Load_GfxWorldh_180
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x154], eax
	mov eax, [varGfxWorld]
	mov ecx, [eax+0x154]
	mov [varGfxBrushModel], ecx
	mov eax, [eax+0x150]
	lea edx, [eax*8]
	shl eax, 0x6
	sub eax, edx
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_180:
	mov edx, [ebx+0x178]
	test edx, edx
	jz _Z13Load_GfxWorldh_190
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x178], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x178]
	mov [varMaterialMemory], edx
	mov edi, [eax+0x174]
	lea eax, [edi*8]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialMemory]
	test edi, edi
	jg _Z13Load_GfxWorldh_200
_Z13Load_GfxWorldh_420:
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_190:
	lea eax, [ebx+0x34]
	mov [varGfxWorldVertexData], eax
	mov dword [esp], 0x0
	call _Z23Load_GfxWorldVertexDatah
	mov eax, [varGfxWorld]
	add eax, 0x40
	mov [varGfxWorldVertexLayerData], eax
	mov dword [esp], 0x0
	call _Z28Load_GfxWorldVertexLayerDatah
	mov eax, [varGfxWorld]
	add eax, 0x17c
	mov [varsunflare_t], eax
	mov dword [esp+0x8], 0x60
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsunflare_t]
	add eax, 0x4
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varsunflare_t]
	add eax, 0x8
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varGfxWorld]
	add eax, 0x21c
	mov [varGfxImagePtr], eax
	mov dword [esp], 0x0
	call _Z16Load_GfxImagePtrh
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x220]
	test eax, eax
	jz _Z13Load_GfxWorldh_210
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x220], eax
	mov eax, [varGfxWorld]
	mov ecx, [eax+0x220]
	mov [varraw_uint], ecx
	mov edx, [eax+0xf0]
	lea eax, [edx+0x1f]
	sar eax, 0x5
	imul edx, eax
	shl edx, 0x2
	mov [esp+0x8], edx
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_210:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x224]
	test eax, eax
	jz _Z13Load_GfxWorldh_220
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x224], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x224]
	mov [varGfxSceneDynModel], edx
	mov eax, [eax+0x2b4]
	lea eax, [eax+eax*2]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_220:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x228]
	test eax, eax
	jz _Z13Load_GfxWorldh_230
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x228], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x228]
	mov [varGfxSceneDynBrush], edx
	mov eax, [eax+0x2b8]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_230:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x22c]
	test eax, eax
	jz _Z13Load_GfxWorldh_240
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x22c], eax
	mov edx, [varGfxWorld]
	mov ecx, [edx+0x22c]
	mov [varraw_uint], ecx
	mov eax, [edx+0xdc]
	sub eax, [edx+0xd8]
	shl eax, 0xc
	lea eax, [eax*4-0x4000]
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_240:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x230]
	test eax, eax
	jz _Z13Load_GfxWorldh_250
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x230], eax
	mov edx, [varGfxWorld]
	mov ecx, [edx+0x230]
	mov [varraw_uint], ecx
	mov eax, [edx+0xdc]
	sub eax, [edx+0xd8]
	sub eax, 0x1
	imul eax, [edx+0x2b4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_250:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov eax, [ebx+0x234]
	test eax, eax
	jz _Z13Load_GfxWorldh_260
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x234], eax
	mov edx, [varGfxWorld]
	mov ecx, [edx+0x234]
	mov [varraw_uint], ecx
	mov eax, [edx+0xdc]
	sub eax, [edx+0xd8]
	sub eax, 0x1
	imul eax, [edx+0x2b8]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_260:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorld]
	mov edi, [ebx+0x238]
	test edi, edi
	jz _Z13Load_GfxWorldh_270
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x238], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x238]
	mov [varraw_byte], edx
	mov eax, [eax+0x2b4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_GfxWorldh_270:
	call _Z15DB_PopStreamPosv
	mov ebx, [varGfxWorld]
	mov esi, [ebx+0x23c]
	test esi, esi
	jz _Z13Load_GfxWorldh_280
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x23c], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x23c]
	mov [varGfxShadowGeometry], edx
	mov edi, [eax+0xdc]
	lea eax, [edi+edi*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxShadowGeometry]
	test edi, edi
	jg _Z13Load_GfxWorldh_290
_Z13Load_GfxWorldh_350:
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_280:
	mov ecx, [ebx+0x240]
	test ecx, ecx
	jz _Z13Load_GfxWorldh_300
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x240], eax
	mov eax, [varGfxWorld]
	mov edx, [eax+0x240]
	mov [varGfxLightRegion], edx
	mov edi, [eax+0xdc]
	lea eax, [edi*8]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightRegion]
	test edi, edi
	jg _Z13Load_GfxWorldh_310
_Z13Load_GfxWorldh_330:
	mov ebx, [varGfxWorld]
_Z13Load_GfxWorldh_300:
	lea eax, [ebx+0x244]
	mov [varGfxWorldDpvsStatic], eax
	mov dword [esp], 0x0
	call _Z23Load_GfxWorldDpvsStatich
	mov eax, [varGfxWorld]
	add eax, 0x2ac
	mov [varGfxWorldDpvsDynamic], eax
	mov dword [esp], 0x0
	call _Z24Load_GfxWorldDpvsDynamich
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_GfxWorldh_310:
	xor esi, esi
_Z13Load_GfxWorldh_320:
	mov [varGfxLightRegion], ebx
	mov dword [esp], 0x0
	call _Z19Load_GfxLightRegionh
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_GfxWorldh_320
	jmp _Z13Load_GfxWorldh_330
_Z13Load_GfxWorldh_290:
	xor esi, esi
_Z13Load_GfxWorldh_340:
	mov [varGfxShadowGeometry], ebx
	mov dword [esp], 0x0
	call _Z22Load_GfxShadowGeometryh
	add ebx, 0xc
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_GfxWorldh_340
	jmp _Z13Load_GfxWorldh_350
_Z13Load_GfxWorldh_100:
	xor esi, esi
_Z13Load_GfxWorldh_360:
	mov [varGfxReflectionProbe], ebx
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxReflectionProbe]
	add eax, 0xc
	mov [varGfxImagePtr], eax
	mov dword [esp], 0x0
	call _Z16Load_GfxImagePtrh
	add ebx, 0x10
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_GfxWorldh_360
	jmp _Z13Load_GfxWorldh_90
_Z13Load_GfxWorldh_130:
	xor esi, esi
_Z13Load_GfxWorldh_370:
	mov [varGfxCell], ebx
	mov dword [esp], 0x0
	call _Z12Load_GfxCellh
	add ebx, 0x38
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_GfxWorldh_370
	jmp _Z13Load_GfxWorldh_380
_Z13Load_GfxWorldh_150:
	xor esi, esi
_Z13Load_GfxWorldh_390:
	mov [varGfxLightmapArray], ebx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxLightmapArray]
	mov [varGfxImagePtr], eax
	mov dword [esp], 0x0
	call _Z16Load_GfxImagePtrh
	mov eax, [varGfxLightmapArray]
	add eax, 0x4
	mov [varGfxImagePtr], eax
	mov dword [esp], 0x0
	call _Z16Load_GfxImagePtrh
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_GfxWorldh_390
	jmp _Z13Load_GfxWorldh_400
_Z13Load_GfxWorldh_200:
	xor esi, esi
_Z13Load_GfxWorldh_410:
	mov [varMaterialMemory], ebx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialMemory]
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_GfxWorldh_410
	jmp _Z13Load_GfxWorldh_420
_Z13Load_GfxWorldh_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z13Load_GfxWorldh_30
_Z13Load_GfxWorldh_80:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xc8], eax
	mov eax, [varGfxWorld]
	mov eax, [eax+0xc8]
	mov [varGfxLight], eax
	mov dword [esp+0x8], 0x40
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxLight]
	add eax, 0x3c
	mov [varGfxLightDefPtr], eax
	mov dword [esp], 0x0
	call _Z19Load_GfxLightDefPtrh
	mov ebx, [varGfxWorld]
	jmp _Z13Load_GfxWorldh_70
_Z13Load_GfxWorldh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z13Load_GfxWorldh_10


;Load_Material(unsigned char)
_Z13Load_Materialh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x50
	mov eax, [varMaterial]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varMaterial]
	mov [varMaterialInfo], eax
	mov dword [esp+0x8], 0x18
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialInfo]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z13Load_Materialh_10
	add eax, 0x1
	jz _Z13Load_Materialh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_Materialh_10:
	mov eax, [varMaterial]
	add eax, 0x40
	mov [varMaterialTechniqueSetPtr], eax
	mov dword [esp], 0x0
	call _Z28Load_MaterialTechniqueSetPtrh
	mov ebx, [varMaterial]
	mov eax, [ebx+0x44]
	test eax, eax
	jz _Z13Load_Materialh_30
	add eax, 0x1
	jz _Z13Load_Materialh_40
	lea eax, [ebx+0x44]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varMaterial]
_Z13Load_Materialh_30:
	mov eax, [ebx+0x48]
	test eax, eax
	jz _Z13Load_Materialh_50
	add eax, 0x1
	jz _Z13Load_Materialh_60
	lea eax, [ebx+0x48]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varMaterial]
_Z13Load_Materialh_50:
	mov eax, [ebx+0x4c]
	test eax, eax
	jz _Z13Load_Materialh_70
	add eax, 0x1
	jz _Z13Load_Materialh_80
	lea eax, [ebx+0x4c]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_Materialh_70:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_Materialh_80:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4c], eax
	mov eax, [varMaterial]
	mov edx, [eax+0x4c]
	mov [varGfxStateBits], edx
	movzx eax, byte [eax+0x3c]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_Materialh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z13Load_Materialh_10
_Z13Load_Materialh_40:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x44], eax
	mov eax, [varMaterial]
	mov edx, [eax+0x44]
	mov [varMaterialTextureDef], edx
	movzx edi, byte [eax+0x3a]
	lea eax, [edi+edi*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialTextureDef]
	test edi, edi
	jg _Z13Load_Materialh_90
_Z13Load_Materialh_110:
	mov ebx, [varMaterial]
	jmp _Z13Load_Materialh_30
_Z13Load_Materialh_60:
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x48], eax
	mov eax, [varMaterial]
	mov edx, [eax+0x48]
	mov [varMaterialConstantDef], edx
	movzx eax, byte [eax+0x3b]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterial]
	jmp _Z13Load_Materialh_50
_Z13Load_Materialh_90:
	xor esi, esi
_Z13Load_Materialh_100:
	mov [varMaterialTextureDef], ebx
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialTextureDef]
	add eax, 0x8
	mov [varMaterialTextureDefInfo], eax
	mov dword [esp], 0x0
	call _Z27Load_MaterialTextureDefInfoh
	add ebx, 0xc
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_Materialh_100
	jmp _Z13Load_Materialh_110


;Load_MenuList(unsigned char)
_Z13Load_MenuListh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0xc
	mov eax, [varMenuList]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varMenuList]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z13Load_MenuListh_10
	add eax, 0x1
	jz _Z13Load_MenuListh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_MenuListh_10:
	mov ebx, [varMenuList]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z13Load_MenuListh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varMenuList]
	mov edx, [eax+0x8]
	mov [varmenuDef_ptr], edx
	mov edi, [eax+0x4]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varmenuDef_ptr]
	test edi, edi
	jg _Z13Load_MenuListh_40
_Z13Load_MenuListh_30:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_MenuListh_40:
	xor esi, esi
_Z13Load_MenuListh_50:
	mov [varmenuDef_ptr], ebx
	mov dword [esp], 0x0
	call _Z16Load_menuDef_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_MenuListh_50
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_MenuListh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z13Load_MenuListh_10
	nop


;Load_MssSound(unsigned char)
_Z13Load_MssSoundh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x28
	mov eax, [varMssSound]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varMssSound]
	mov esi, [ebx+0x24]
	test esi, esi
	jz _Z13Load_MssSoundh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z13Load_MssSoundh_20
	lea eax, [ebx+0x24]
	mov [esp], eax
	call _Z23DB_ConvertOffsetToAliasPv
_Z13Load_MssSoundh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_MssSoundh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov edx, [varMssSound]
	mov eax, [edx+0x24]
	mov [varbyte], eax
	cmp esi, 0xfffffffe
	jz _Z13Load_MssSoundh_30
	xor ebx, ebx
_Z13Load_MssSoundh_40:
	mov eax, [edx+0x8]
	mov [esp+0x8], eax
	mov eax, [varbyte]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varMssSound]
	mov [esp+0x4], eax
	add eax, 0x24
	mov [esp], eax
	call _Z17Load_SetSoundDataPPhP8MssSound
	test ebx, ebx
	jz _Z13Load_MssSoundh_10
	mov eax, [varMssSound]
	mov eax, [eax+0x24]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_MssSoundh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	mov edx, [varMssSound]
	jmp _Z13Load_MssSoundh_40
	add [eax], al


;Load_PathData(unsigned char)
_Z13Load_PathDatah:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x28
	mov eax, [varPathData]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varPathData]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z13Load_PathDatah_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varPathData]
	mov edx, [eax+0x4]
	mov [varpathnode_t], edx
	mov edi, [eax]
	mov eax, edi
	shl eax, 0x7
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varpathnode_t]
	test edi, edi
	jg _Z13Load_PathDatah_20
_Z13Load_PathDatah_10:
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varPathData]
	mov edi, [ebx+0x8]
	test edi, edi
	jz _Z13Load_PathDatah_30
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varPathData]
	mov edx, [eax+0x8]
	mov [varpathbasenode_t], edx
	mov eax, [eax]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_PathDatah_30:
	call _Z15DB_PopStreamPosv
	mov ebx, [varPathData]
	mov esi, [ebx+0x10]
	test esi, esi
	jz _Z13Load_PathDatah_40
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10], eax
	mov eax, [varPathData]
	mov edx, [eax+0x10]
	mov [varUnsignedShort], edx
	mov eax, [eax]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varPathData]
_Z13Load_PathDatah_40:
	mov ecx, [ebx+0x14]
	test ecx, ecx
	jz _Z13Load_PathDatah_50
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x14], eax
	mov eax, [varPathData]
	mov edx, [eax+0x14]
	mov [varUnsignedShort], edx
	mov eax, [eax]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varPathData]
_Z13Load_PathDatah_50:
	mov edx, [ebx+0x1c]
	test edx, edx
	jz _Z13Load_PathDatah_60
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varPathData]
	mov edx, [eax+0x1c]
	mov [varbyte], edx
	mov eax, [eax+0x18]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varPathData]
_Z13Load_PathDatah_60:
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z13Load_PathDatah_70
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varPathData]
	mov edx, [eax+0x24]
	mov [varpathnode_tree_t], edx
	mov eax, [eax+0x20]
	mov [ebp-0x20], eax
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edi, [varpathnode_tree_t]
	mov eax, [ebp-0x20]
	test eax, eax
	jg _Z13Load_PathDatah_80
_Z13Load_PathDatah_70:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z13Load_PathDatah_80:
	mov dword [ebp-0x1c], 0x0
_Z13Load_PathDatah_110:
	mov [varpathnode_tree_t], edi
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], edi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varpathnode_tree_t]
	lea edx, [eax+0x8]
	mov [varpathnode_tree_info_t], edx
	mov eax, [eax]
	test eax, eax
	js _Z13Load_PathDatah_90
	mov [varpathnode_tree_ptr], edx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varpathnode_tree_ptr]
	mov esi, 0x2
_Z13Load_PathDatah_100:
	mov [varpathnode_tree_ptr], ebx
	mov dword [esp], 0x0
	call _Z22Load_pathnode_tree_ptrh
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z13Load_PathDatah_100
_Z13Load_PathDatah_120:
	add edi, 0x10
	add dword [ebp-0x1c], 0x1
	mov eax, [ebp-0x1c]
	cmp [ebp-0x20], eax
	jnz _Z13Load_PathDatah_110
	jmp _Z13Load_PathDatah_70
_Z13Load_PathDatah_90:
	mov [varpathnode_tree_nodes_t], edx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varpathnode_tree_nodes_t]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z13Load_PathDatah_120
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varpathnode_tree_nodes_t]
	mov edx, [eax+0x4]
	mov [varushort], edx
	mov eax, [eax]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	add edi, 0x10
	add dword [ebp-0x1c], 0x1
	mov eax, [ebp-0x1c]
	cmp [ebp-0x20], eax
	jnz _Z13Load_PathDatah_110
	jmp _Z13Load_PathDatah_70
_Z13Load_PathDatah_20:
	xor esi, esi
_Z13Load_PathDatah_130:
	mov [varpathnode_t], ebx
	mov dword [esp+0x8], 0x80
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varpathnode_t]
	mov [varpathnode_constant_t], eax
	mov dword [esp], 0x0
	call _Z24Load_pathnode_constant_th
	sub ebx, 0xffffff80
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Load_PathDatah_130
	jmp _Z13Load_PathDatah_10
	nop


;Load_XSurface(unsigned char)
_Z13Load_XSurfaceh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x38
	mov eax, [varXSurface]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varXSurface]
	add eax, 0x6
	mov [varXZoneHandle], eax
	mov dword [esp+0x8], 0x1
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varXZoneHandle]
	mov [varbyte], eax
	mov dword [esp+0x8], 0x1
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varXZoneHandle]
	mov [esp], eax
	call _Z25Load_GetCurrentZoneHandlePh
	mov eax, [varXSurface]
	add eax, 0x10
	mov [varXSurfaceVertexInfo], eax
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXSurfaceVertexInfo]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z13Load_XSurfaceh_10
	add eax, 0x1
	jz _Z13Load_XSurfaceh_20
	lea eax, [ebx+0x8]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_XSurfaceh_10:
	mov dword [esp], 0x7
	call _Z16DB_PushStreamPosj
	mov ebx, [varXSurface]
	mov eax, [ebx+0x1c]
	test eax, eax
	jz _Z13Load_XSurfaceh_30
	add eax, 0x1
	jz _Z13Load_XSurfaceh_40
	lea eax, [ebx+0x1c]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_XSurfaceh_30:
	call _Z15DB_PopStreamPosv
	mov ebx, [varXSurface]
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z13Load_XSurfaceh_50
	add eax, 0x1
	jz _Z13Load_XSurfaceh_60
	lea eax, [ebx+0x24]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_XSurfaceh_50:
	mov dword [esp], 0x8
	call _Z16DB_PushStreamPosj
	mov ebx, [varXSurface]
	mov eax, [ebx+0xc]
	test eax, eax
	jz _Z13Load_XSurfaceh_70
	add eax, 0x1
	jz _Z13Load_XSurfaceh_80
	lea eax, [ebx+0xc]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_XSurfaceh_70:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_XSurfaceh_80:
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xc], eax
	mov eax, [varXSurface]
	mov edx, [eax+0xc]
	mov [varr_index16_t], edx
	movzx eax, word [eax+0x4]
	lea eax, [eax+eax*2]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z13Load_XSurfaceh_20:
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov ebx, [varXSurfaceVertexInfo]
	mov esi, [ebx+0x8]
	mov [varXBlendInfo], esi
	movsx ecx, word [ebx]
	movsx edx, word [ebx+0x4]
	lea edx, [edx+edx*4]
	movsx eax, word [ebx+0x2]
	lea eax, [eax+eax*2]
	add edx, eax
	add ecx, edx
	movsx edx, word [ebx+0x6]
	lea eax, [edx*8]
	sub eax, edx
	add ecx, eax
	add ecx, ecx
	mov [esp+0x8], ecx
	mov [esp+0x4], esi
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z13Load_XSurfaceh_10
_Z13Load_XSurfaceh_40:
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varXSurface]
	mov edx, [eax+0x1c]
	mov [varGfxPackedVertex0], edx
	movzx eax, word [eax+0x2]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z13Load_XSurfaceh_30
_Z13Load_XSurfaceh_60:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varXSurface]
	mov edx, [eax+0x24]
	mov [varXRigidVertList], edx
	mov edi, [eax+0x20]
	lea eax, [edi+edi*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varXRigidVertList]
	test edi, edi
	jle _Z13Load_XSurfaceh_50
	mov dword [ebp-0x1c], 0x0
	jmp _Z13Load_XSurfaceh_90
_Z13Load_XSurfaceh_110:
	lea eax, [ebx+0x8]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z13Load_XSurfaceh_100:
	add esi, 0xc
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z13Load_XSurfaceh_50
_Z13Load_XSurfaceh_90:
	mov [varXRigidVertList], esi
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXRigidVertList]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z13Load_XSurfaceh_100
	add eax, 0x1
	jnz _Z13Load_XSurfaceh_110
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varXRigidVertList]
	mov eax, [eax+0x8]
	mov [varXSurfaceCollisionTree], eax
	mov dword [esp], 0x1
	call _Z26Load_XSurfaceCollisionTreeh
	jmp _Z13Load_XSurfaceh_100
	add [eax], al


;Load_cbrush_t(unsigned char)
_Z13Load_cbrush_th:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x50
	mov eax, [varcbrush_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varcbrush_t]
	mov eax, [ebx+0x20]
	test eax, eax
	jz _Z13Load_cbrush_th_10
	add eax, 0x1
	jz _Z13Load_cbrush_th_20
	lea eax, [ebx+0x20]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varcbrush_t]
_Z13Load_cbrush_th_10:
	mov eax, [ebx+0x30]
	test eax, eax
	jz _Z13Load_cbrush_th_30
	add eax, 0x1
	jz _Z13Load_cbrush_th_40
	lea eax, [ebx+0x30]
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z13Load_cbrush_th_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x30], eax
	mov eax, [varcbrush_t]
	mov eax, [eax+0x30]
	mov [varcbrushedge_t], eax
	mov dword [esp+0x8], 0x1
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z13Load_cbrush_th_30:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z13Load_cbrush_th_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x20], eax
	mov eax, [varcbrush_t]
	mov eax, [eax+0x20]
	mov [varcbrushside_t], eax
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varcbrushside_t]
	mov eax, [ebx]
	test eax, eax
	jz _Z13Load_cbrush_th_50
	add eax, 0x1
	jz _Z13Load_cbrush_th_60
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varcbrush_t]
	jmp _Z13Load_cbrush_th_10
_Z13Load_cbrush_th_50:
	mov ebx, [varcbrush_t]
	jmp _Z13Load_cbrush_th_10
_Z13Load_cbrush_th_60:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varcbrushside_t]
	mov eax, [eax]
	mov [varcplane_t], eax
	mov dword [esp+0x8], 0x14
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varcbrush_t]
	jmp _Z13Load_cbrush_th_10
	nop
	add [eax], al


;Mark_GfxWorld()
_Z13Mark_GfxWorldv:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov edx, [varGfxWorld]
	lea eax, [edx+0x28]
	mov [varGfxImagePtr], eax
	mov eax, [edx+0x28]
	test eax, eax
	jz _Z13Mark_GfxWorldv_10
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
	mov edx, [varGfxWorld]
_Z13Mark_GfxWorldv_10:
	mov ecx, [edx+0xc8]
	test ecx, ecx
	jz _Z13Mark_GfxWorldv_20
	mov [varGfxLight], ecx
	lea eax, [ecx+0x3c]
	mov [varGfxLightDefPtr], eax
	mov eax, [ecx+0x3c]
	test eax, eax
	jz _Z13Mark_GfxWorldv_20
	mov [varGfxLightDef], eax
	mov [esp], eax
	call _Z18Mark_LightDefAssetP11GfxLightDef
	mov edx, [varGfxLightDef]
	lea eax, [edx+0x4]
	mov [varGfxLightImage], eax
	mov [varGfxImagePtr], eax
	mov eax, [edx+0x4]
	test eax, eax
	jz _Z13Mark_GfxWorldv_30
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
	mov edx, [varGfxWorld]
_Z13Mark_GfxWorldv_20:
	mov ebx, [edx+0xe8]
	test ebx, ebx
	jz _Z13Mark_GfxWorldv_40
	mov [varGfxReflectionProbe], ebx
	mov edi, [edx+0xe4]
	test edi, edi
	jle _Z13Mark_GfxWorldv_40
	xor esi, esi
_Z13Mark_GfxWorldv_60:
	mov [varGfxReflectionProbe], ebx
	lea eax, [ebx+0xc]
	mov [varGfxImagePtr], eax
	mov eax, [ebx+0xc]
	test eax, eax
	jz _Z13Mark_GfxWorldv_50
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
_Z13Mark_GfxWorldv_50:
	add ebx, 0x10
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Mark_GfxWorldv_60
	mov edx, [varGfxWorld]
_Z13Mark_GfxWorldv_40:
	mov ebx, [edx+0x10c]
	test ebx, ebx
	jz _Z13Mark_GfxWorldv_70
	mov [varGfxLightmapArray], ebx
	mov edi, [edx+0x108]
	test edi, edi
	jg _Z13Mark_GfxWorldv_80
_Z13Mark_GfxWorldv_70:
	mov ebx, [edx+0x178]
	test ebx, ebx
	jz _Z13Mark_GfxWorldv_90
	mov [varMaterialMemory], ebx
	mov edi, [edx+0x174]
	test edi, edi
	jg _Z13Mark_GfxWorldv_100
_Z13Mark_GfxWorldv_90:
	lea eax, [edx+0x17c]
	mov [varsunflare_t], eax
	lea eax, [edx+0x180]
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varsunflare_t]
	add eax, 0x8
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov edx, [varGfxWorld]
	lea eax, [edx+0x21c]
	mov [varGfxImagePtr], eax
	mov eax, [edx+0x21c]
	test eax, eax
	jz _Z13Mark_GfxWorldv_110
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
	mov edx, [varGfxWorld]
_Z13Mark_GfxWorldv_110:
	lea eax, [edx+0x244]
	mov [varGfxWorldDpvsStatic], eax
	mov ebx, [eax+0x50]
	test ebx, ebx
	jz _Z13Mark_GfxWorldv_120
	mov [varGfxSurface], ebx
	mov edi, [edx+0x18]
	test edi, edi
	jg _Z13Mark_GfxWorldv_130
_Z13Mark_GfxWorldv_230:
	mov eax, [varGfxWorldDpvsStatic]
_Z13Mark_GfxWorldv_120:
	mov ebx, [eax+0x58]
	test ebx, ebx
	jz _Z13Mark_GfxWorldv_140
	mov [varGfxStaticModelDrawInst], ebx
	mov edi, [eax]
	test edi, edi
	jg _Z13Mark_GfxWorldv_150
_Z13Mark_GfxWorldv_140:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z13Mark_GfxWorldv_80:
	xor esi, esi
	jmp _Z13Mark_GfxWorldv_160
_Z13Mark_GfxWorldv_190:
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
	mov edx, [varGfxLightmapArray]
_Z13Mark_GfxWorldv_200:
	lea eax, [edx+0x4]
	mov [varGfxImagePtr], eax
	mov eax, [edx+0x4]
	test eax, eax
	jz _Z13Mark_GfxWorldv_170
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
_Z13Mark_GfxWorldv_170:
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jz _Z13Mark_GfxWorldv_180
_Z13Mark_GfxWorldv_160:
	mov [varGfxLightmapArray], ebx
	mov [varGfxImagePtr], ebx
	mov eax, [ebx]
	test eax, eax
	jnz _Z13Mark_GfxWorldv_190
	mov edx, ebx
	jmp _Z13Mark_GfxWorldv_200
_Z13Mark_GfxWorldv_180:
	mov edx, [varGfxWorld]
	jmp _Z13Mark_GfxWorldv_70
_Z13Mark_GfxWorldv_150:
	xor esi, esi
_Z13Mark_GfxWorldv_210:
	mov [varGfxStaticModelDrawInst], ebx
	lea eax, [ebx+0x38]
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	add ebx, 0x4c
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Mark_GfxWorldv_210
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z13Mark_GfxWorldv_130:
	xor esi, esi
_Z13Mark_GfxWorldv_220:
	mov [varGfxSurface], ebx
	lea eax, [ebx+0x10]
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	add ebx, 0x30
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Mark_GfxWorldv_220
	jmp _Z13Mark_GfxWorldv_230
_Z13Mark_GfxWorldv_100:
	xor esi, esi
_Z13Mark_GfxWorldv_240:
	mov [varMaterialMemory], ebx
	mov [varMaterialHandle], ebx
	call _Z19Mark_MaterialHandlev
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jnz _Z13Mark_GfxWorldv_240
	mov edx, [varGfxWorld]
	jmp _Z13Mark_GfxWorldv_90
_Z13Mark_GfxWorldv_30:
	mov edx, [varGfxWorld]
	jmp _Z13Mark_GfxWorldv_20
	add [eax], al


;Load_FxElemDef(unsigned char)
_Z14Load_FxElemDefh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0xfc
	mov eax, [varFxElemDef]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxElemDef]
	mov eax, [ebx+0xb4]
	test eax, eax
	jz _Z14Load_FxElemDefh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xb4], eax
	mov eax, [varFxElemDef]
	mov edx, [eax+0xb4]
	mov [varFxElemVelStateSample], edx
	movzx eax, byte [eax+0xb2]
	lea eax, [eax+eax*2+0x3]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxElemDef]
_Z14Load_FxElemDefh_10:
	mov eax, [ebx+0xb8]
	test eax, eax
	jz _Z14Load_FxElemDefh_20
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xb8], eax
	mov eax, [varFxElemDef]
	mov edx, [eax+0xb8]
	mov [varFxElemVisStateSample], edx
	movzx eax, byte [eax+0xb3]
	lea eax, [eax+eax*2+0x3]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxElemDef]
_Z14Load_FxElemDefh_20:
	lea eax, [ebx+0xbc]
	mov [varFxElemDefVisuals], eax
	mov dword [esp], 0x0
	call _Z21Load_FxElemDefVisualsh
	mov eax, [varFxElemDef]
	add eax, 0xd8
	mov [varFxEffectDefRef], eax
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_FxElemDefh_30
	add eax, 0x1
	jz _Z14Load_FxElemDefh_40
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_FxElemDefh_30:
	mov eax, [varFxEffectDefRef]
	mov [esp], eax
	call _Z24Load_FxEffectDefFromNamePPKc
	mov eax, [varFxElemDef]
	add eax, 0xdc
	mov [varFxEffectDefRef], eax
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_FxElemDefh_50
	add eax, 0x1
	jz _Z14Load_FxElemDefh_60
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_FxElemDefh_50:
	mov eax, [varFxEffectDefRef]
	mov [esp], eax
	call _Z24Load_FxEffectDefFromNamePPKc
	mov eax, [varFxElemDef]
	add eax, 0xe0
	mov [varFxEffectDefRef], eax
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_FxElemDefh_70
	add eax, 0x1
	jz _Z14Load_FxElemDefh_80
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_FxElemDefh_70:
	mov eax, [varFxEffectDefRef]
	mov [esp], eax
	call _Z24Load_FxEffectDefFromNamePPKc
	mov ebx, [varFxElemDef]
	mov ecx, [ebx+0xf4]
	test ecx, ecx
	jz _Z14Load_FxElemDefh_90
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xf4], eax
	mov eax, [varFxElemDef]
	mov eax, [eax+0xf4]
	mov [varFxTrailDef], eax
	mov dword [ebp+0x8], 0x1
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15Load_FxTrailDefh
_Z14Load_FxElemDefh_90:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z14Load_FxElemDefh_80:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_FxElemDefh_70
_Z14Load_FxElemDefh_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_FxElemDefh_30
_Z14Load_FxElemDefh_60:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_FxElemDefh_50
	nop
	add [eax], al


;Load_GfxPortal(unsigned char)
_Z14Load_GfxPortalh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x44
	mov eax, [varGfxPortal]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxPortal]
	mov eax, [ebx+0x20]
	test eax, eax
	jz _Z14Load_GfxPortalh_10
	add eax, 0x1
	jz _Z14Load_GfxPortalh_20
	lea eax, [ebx+0x20]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varGfxPortal]
_Z14Load_GfxPortalh_10:
	mov ecx, [ebx+0x24]
	test ecx, ecx
	jz _Z14Load_GfxPortalh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varGfxPortal]
	mov edx, [eax+0x24]
	mov [varvec3_t], edx
	movzx eax, byte [eax+0x28]
	lea eax, [eax+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z14Load_GfxPortalh_30:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z14Load_GfxPortalh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x20], eax
	mov eax, [varGfxPortal]
	mov eax, [eax+0x20]
	mov [varGfxCell], eax
	mov dword [esp], 0x1
	call _Z12Load_GfxCellh
	mov ebx, [varGfxPortal]
	jmp _Z14Load_GfxPortalh_10
	nop


;Load_WeaponDef(unsigned char)
_Z14Load_WeaponDefh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x878
	mov eax, [varWeaponDef]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varWeaponDef]
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x4
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x8
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0xc
	mov [varXModelPtr], eax
	mov dword [esp+0x8], 0x40
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModelPtr]
	mov esi, 0x10
_Z14Load_WeaponDefh_10:
	mov [varXModelPtr], ebx
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z14Load_WeaponDefh_10
	mov eax, [varWeaponDef]
	add eax, 0x4c
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	mov eax, [varWeaponDef]
	add eax, 0x50
	mov [varXString], eax
	mov dword [esp+0x8], 0x84
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov esi, 0x21
_Z14Load_WeaponDefh_20:
	mov [varXString], ebx
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z14Load_WeaponDefh_20
	mov eax, [varWeaponDef]
	add eax, 0xd4
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0xd8
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varScriptString]
	mov esi, 0x8
_Z14Load_WeaponDefh_30:
	mov [varScriptString], ebx
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	add ebx, 0x2
	sub esi, 0x1
	jnz _Z14Load_WeaponDefh_30
	mov eax, [varWeaponDef]
	add eax, 0xe8
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x20
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varScriptString]
	mov esi, 0x10
_Z14Load_WeaponDefh_40:
	mov [varScriptString], ebx
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	add ebx, 0x2
	sub esi, 0x1
	jnz _Z14Load_WeaponDefh_40
	mov eax, [varWeaponDef]
	add eax, 0x108
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x20
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varScriptString]
	mov esi, 0x10
_Z14Load_WeaponDefh_50:
	mov [varScriptString], ebx
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	add ebx, 0x2
	sub esi, 0x1
	jnz _Z14Load_WeaponDefh_50
	mov eax, [varWeaponDef]
	add eax, 0x14c
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x150
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x154
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x158
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x15c
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x160
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x164
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x168
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x16c
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x170
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x174
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x178
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x17c
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x180
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x184
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x188
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x18c
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x190
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x194
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x198
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x19c
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1a0
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1a4
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1a8
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1ac
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1b0
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1b4
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1b8
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1bc
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1c0
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1c4
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1c8
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1cc
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1d0
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1d4
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1d8
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1dc
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1e0
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1e4
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1e8
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1ec
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1f0
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1f4
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1f8
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x1fc
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x200
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x204
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov ebx, [varWeaponDef]
	mov eax, [ebx+0x208]
	test eax, eax
	jz _Z14Load_WeaponDefh_60
	add eax, 0x1
	jz _Z14Load_WeaponDefh_70
	lea eax, [ebx+0x208]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_WeaponDefh_180:
	mov ebx, [varWeaponDef]
_Z14Load_WeaponDefh_60:
	lea eax, [ebx+0x20c]
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x210
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x214
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x218
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x21c
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x220
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x2bc
	mov [varXModelPtr], eax
	mov dword [esp+0x8], 0x40
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModelPtr]
	mov esi, 0x10
_Z14Load_WeaponDefh_80:
	mov [varXModelPtr], ebx
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z14Load_WeaponDefh_80
	mov eax, [varWeaponDef]
	add eax, 0x2fc
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	mov eax, [varWeaponDef]
	add eax, 0x300
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	mov eax, [varWeaponDef]
	add eax, 0x304
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	mov eax, [varWeaponDef]
	add eax, 0x308
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	mov eax, [varWeaponDef]
	add eax, 0x30c
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x314
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x324
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x32c
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x340
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x430
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x434
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x518
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x524
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varWeaponDef]
	add eax, 0x53c
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x584
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	mov eax, [varWeaponDef]
	add eax, 0x58c
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x594
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x598
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x59c
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x6a8
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x6c4
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varWeaponDef]
	add eax, 0x6c8
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	mov eax, [varWeaponDef]
	add eax, 0x76c
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov ebx, [varWeaponDef]
	mov eax, [ebx+0x774]
	test eax, eax
	jz _Z14Load_WeaponDefh_90
	add eax, 0x1
	jz _Z14Load_WeaponDefh_100
	lea eax, [ebx+0x774]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varWeaponDef]
_Z14Load_WeaponDefh_90:
	mov eax, [ebx+0x77c]
	test eax, eax
	jz _Z14Load_WeaponDefh_110
	add eax, 0x1
	jz _Z14Load_WeaponDefh_120
	lea eax, [ebx+0x77c]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varWeaponDef]
_Z14Load_WeaponDefh_110:
	lea eax, [ebx+0x770]
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov ebx, [varWeaponDef]
	mov eax, [ebx+0x778]
	test eax, eax
	jz _Z14Load_WeaponDefh_130
	add eax, 0x1
	jz _Z14Load_WeaponDefh_140
	lea eax, [ebx+0x778]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varWeaponDef]
_Z14Load_WeaponDefh_130:
	mov eax, [ebx+0x780]
	test eax, eax
	jz _Z14Load_WeaponDefh_150
	add eax, 0x1
	jz _Z14Load_WeaponDefh_160
	lea eax, [ebx+0x780]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varWeaponDef]
_Z14Load_WeaponDefh_150:
	lea eax, [ebx+0x7dc]
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x7e0
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x7f4
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x868
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	mov eax, [varWeaponDef]
	add eax, 0x86c
	mov [varXString], eax
	mov dword [esp], 0x0
	call _Z12Load_XStringh
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z14Load_WeaponDefh_160:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x780], eax
	mov eax, [varWeaponDef]
	mov edx, [eax+0x780]
	mov [varvec2_t], edx
	mov eax, [eax+0x788]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varWeaponDef]
	jmp _Z14Load_WeaponDefh_150
_Z14Load_WeaponDefh_70:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x208], eax
	mov eax, [varWeaponDef]
	mov eax, [eax+0x208]
	mov [varsnd_alias_list_name], eax
	mov dword [esp+0x8], 0x74
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varsnd_alias_list_name]
	mov esi, 0x1d
_Z14Load_WeaponDefh_170:
	mov [varsnd_alias_list_name], ebx
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_list_name]
	mov [esp], eax
	call _Z19Load_SndAliasCustomPP16snd_alias_list_t
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z14Load_WeaponDefh_170
	jmp _Z14Load_WeaponDefh_180
_Z14Load_WeaponDefh_100:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x774], eax
	mov eax, [varWeaponDef]
	mov edx, [eax+0x774]
	mov [varvec2_t], edx
	mov eax, [eax+0x784]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varWeaponDef]
	jmp _Z14Load_WeaponDefh_90
_Z14Load_WeaponDefh_120:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x77c], eax
	mov eax, [varWeaponDef]
	mov edx, [eax+0x77c]
	mov [varvec2_t], edx
	mov eax, [eax+0x784]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varWeaponDef]
	jmp _Z14Load_WeaponDefh_110
_Z14Load_WeaponDefh_140:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x778], eax
	mov eax, [varWeaponDef]
	mov edx, [eax+0x778]
	mov [varvec2_t], edx
	mov eax, [eax+0x788]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varWeaponDef]
	jmp _Z14Load_WeaponDefh_130
	nop


;Load_XModelPtr(unsigned char)
_Z14Load_XModelPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varXModelPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varXModelPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z14Load_XModelPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z14Load_XModelPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z14Load_XModelPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z14Load_XModelPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXModelPtr]
	mov eax, [eax]
	mov [varXModel], eax
	cmp esi, 0xfffffffe
	jz _Z14Load_XModelPtrh_30
	xor ebx, ebx
_Z14Load_XModelPtrh_40:
	mov dword [esp], 0x1
	call _Z11Load_XModelh
	mov eax, [varXModelPtr]
	mov [esp], eax
	call _Z16Load_XModelAssetPP6XModel
	test ebx, ebx
	jz _Z14Load_XModelPtrh_10
	mov eax, [varXModelPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z14Load_XModelPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z14Load_XModelPtrh_40
	nop


;Load_clipMap_t(unsigned char)
_Z14Load_clipMap_th:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x11c
	mov eax, [varclipMap_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varclipMap_t]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_clipMap_th_10
	add eax, 0x1
	jz _Z14Load_clipMap_th_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_clipMap_th_10:
	mov ebx, [varclipMap_t]
	mov eax, [ebx+0xc]
	test eax, eax
	jz _Z14Load_clipMap_th_30
	add eax, 0x1
	jz _Z14Load_clipMap_th_40
	lea eax, [ebx+0xc]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_30:
	mov edi, [ebx+0x14]
	test edi, edi
	jz _Z14Load_clipMap_th_50
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x14], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x14]
	mov [varcStaticModel_t], edx
	mov edi, [eax+0x10]
	lea eax, [edi+edi*4]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varcStaticModel_t]
	test edi, edi
	jg _Z14Load_clipMap_th_60
_Z14Load_clipMap_th_430:
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_50:
	mov esi, [ebx+0x1c]
	test esi, esi
	jz _Z14Load_clipMap_th_70
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x1c]
	mov [vardmaterial_t], edx
	mov eax, [eax+0x18]
	lea eax, [eax+eax*8]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_70:
	mov ecx, [ebx+0x24]
	test ecx, ecx
	jz _Z14Load_clipMap_th_80
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x24]
	mov [varcbrushside_t], edx
	mov edi, [eax+0x20]
	lea eax, [edi+edi*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varcbrushside_t]
	test edi, edi
	jg _Z14Load_clipMap_th_90
_Z14Load_clipMap_th_450:
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_80:
	mov edx, [ebx+0x2c]
	test edx, edx
	jz _Z14Load_clipMap_th_100
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x2c], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x2c]
	mov [varcbrushedge_t], edx
	mov eax, [eax+0x28]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_100:
	mov eax, [ebx+0x34]
	test eax, eax
	jz _Z14Load_clipMap_th_110
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x34], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x34]
	mov [varcNode_t], edx
	mov edi, [eax+0x30]
	lea eax, [edi*8]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varcNode_t]
	test edi, edi
	jg _Z14Load_clipMap_th_120
_Z14Load_clipMap_th_490:
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_110:
	mov eax, [ebx+0x3c]
	test eax, eax
	jz _Z14Load_clipMap_th_130
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x3c], eax
	mov eax, [varclipMap_t]
	mov ecx, [eax+0x3c]
	mov [varcLeaf_t], ecx
	mov eax, [eax+0x38]
	lea edx, [eax+eax*4]
	lea edx, [eax+edx*2]
	shl edx, 0x2
	mov [esp+0x8], edx
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_130:
	mov eax, [ebx+0x4c]
	test eax, eax
	jz _Z14Load_clipMap_th_140
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4c], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x4c]
	mov [varLeafBrush], edx
	mov eax, [eax+0x48]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_140:
	mov eax, [ebx+0x44]
	test eax, eax
	jz _Z14Load_clipMap_th_150
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x44], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x44]
	mov [varcLeafBrushNode_t], edx
	mov edi, [eax+0x40]
	lea eax, [edi+edi*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varcLeafBrushNode_t]
	test edi, edi
	jg _Z14Load_clipMap_th_160
_Z14Load_clipMap_th_550:
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_150:
	mov eax, [ebx+0x54]
	test eax, eax
	jz _Z14Load_clipMap_th_170
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x54], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x54]
	mov [varuint], edx
	mov eax, [eax+0x50]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_170:
	mov eax, [ebx+0x5c]
	test eax, eax
	jz _Z14Load_clipMap_th_180
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x5c], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x5c]
	mov [varvec3_t], edx
	mov eax, [eax+0x58]
	lea eax, [eax+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_180:
	mov edi, [ebx+0x64]
	test edi, edi
	jz _Z14Load_clipMap_th_190
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x64], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x64]
	mov [varUnsignedShort], edx
	mov eax, [eax+0x60]
	lea eax, [eax+eax*2]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_190:
	mov esi, [ebx+0x68]
	test esi, esi
	jz _Z14Load_clipMap_th_200
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x68], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x68]
	mov [varbyte], edx
	mov eax, [eax+0x60]
	lea eax, [eax+eax*2+0x1f]
	sar eax, 0x5
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_200:
	mov ecx, [ebx+0x70]
	test ecx, ecx
	jz _Z14Load_clipMap_th_210
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x70], eax
	mov eax, [varclipMap_t]
	mov ecx, [eax+0x70]
	mov [varCollisionBorder], ecx
	mov eax, [eax+0x6c]
	lea edx, [eax*4]
	shl eax, 0x5
	sub eax, edx
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_210:
	mov edx, [ebx+0x78]
	test edx, edx
	jz _Z14Load_clipMap_th_220
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x78], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x78]
	mov [varCollisionPartition], edx
	mov edi, [eax+0x74]
	lea eax, [edi+edi*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varCollisionPartition]
	test edi, edi
	jg _Z14Load_clipMap_th_230
_Z14Load_clipMap_th_570:
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_220:
	mov eax, [ebx+0x80]
	test eax, eax
	jz _Z14Load_clipMap_th_240
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x80], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x80]
	mov [varCollisionAabbTree], edx
	mov eax, [eax+0x7c]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_240:
	mov eax, [ebx+0x88]
	test eax, eax
	jz _Z14Load_clipMap_th_250
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x88], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x88]
	mov [varcmodel_t], edx
	mov eax, [eax+0x84]
	lea eax, [eax+eax*8]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_250:
	mov eax, [ebx+0x90]
	test eax, eax
	jz _Z14Load_clipMap_th_260
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x90], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x90]
	mov [varcbrush_t], edx
	movzx edi, word [eax+0x8c]
	lea eax, [edi+edi*4]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varcbrush_t]
	test edi, edi
	jg _Z14Load_clipMap_th_270
_Z14Load_clipMap_th_610:
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_260:
	mov eax, [ebx+0x9c]
	test eax, eax
	jz _Z14Load_clipMap_th_280
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x9c], eax
	mov edx, [varclipMap_t]
	mov ecx, [edx+0x9c]
	mov [varbyte], ecx
	mov eax, [edx+0x98]
	imul eax, [edx+0x94]
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_280:
	lea eax, [ebx+0xa4]
	mov [varMapEntsPtr], eax
	mov dword [esp], 0x0
	call _Z15Load_MapEntsPtrh
	mov ebx, [varclipMap_t]
	mov eax, [ebx+0xa8]
	test eax, eax
	jz _Z14Load_clipMap_th_290
	add eax, 0x1
	jz _Z14Load_clipMap_th_300
	lea eax, [ebx+0xa8]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_290:
	mov eax, [ebx+0xf8]
	test eax, eax
	jz _Z14Load_clipMap_th_310
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xf8], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0xf8]
	mov [varDynEntityDef], edx
	movzx edi, word [eax+0xf4]
	lea eax, [edi+edi*2]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varDynEntityDef]
	test edi, edi
	jg _Z14Load_clipMap_th_320
_Z14Load_clipMap_th_630:
	mov ebx, [varclipMap_t]
_Z14Load_clipMap_th_310:
	mov eax, [ebx+0xfc]
	test eax, eax
	jz _Z14Load_clipMap_th_330
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xfc], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0xfc]
	mov [varDynEntityDef], edx
	movzx edi, word [eax+0xf6]
	lea eax, [edi+edi*2]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varDynEntityDef]
	test edi, edi
	jg _Z14Load_clipMap_th_340
_Z14Load_clipMap_th_330:
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varclipMap_t]
	mov edi, [ebx+0x100]
	test edi, edi
	jz _Z14Load_clipMap_th_350
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x100], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x100]
	mov [varDynEntityPose], edx
	movzx eax, word [eax+0xf4]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z14Load_clipMap_th_350:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varclipMap_t]
	mov esi, [ebx+0x104]
	test esi, esi
	jz _Z14Load_clipMap_th_360
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x104], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x104]
	mov [varDynEntityPose], edx
	movzx eax, word [eax+0xf6]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z14Load_clipMap_th_360:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varclipMap_t]
	mov ecx, [ebx+0x108]
	test ecx, ecx
	jz _Z14Load_clipMap_th_370
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x108], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x108]
	mov [varDynEntityClient], edx
	movzx eax, word [eax+0xf4]
	lea eax, [eax+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z14Load_clipMap_th_370:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varclipMap_t]
	mov edx, [ebx+0x10c]
	test edx, edx
	jz _Z14Load_clipMap_th_380
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10c], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x10c]
	mov [varDynEntityClient], edx
	movzx eax, word [eax+0xf6]
	lea eax, [eax+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z14Load_clipMap_th_380:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varclipMap_t]
	mov eax, [ebx+0x110]
	test eax, eax
	jz _Z14Load_clipMap_th_390
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x110], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x110]
	mov [varDynEntityColl], edx
	movzx eax, word [eax+0xf4]
	lea eax, [eax+eax*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z14Load_clipMap_th_390:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varclipMap_t]
	mov eax, [ebx+0x114]
	test eax, eax
	jz _Z14Load_clipMap_th_400
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x114], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0x114]
	mov [varDynEntityColl], edx
	movzx eax, word [eax+0xf6]
	lea eax, [eax+eax*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z14Load_clipMap_th_400:
	call _Z15DB_PopStreamPosv
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z14Load_clipMap_th_340:
	xor esi, esi
_Z14Load_clipMap_th_410:
	mov [varDynEntityDef], ebx
	mov dword [esp], 0x0
	call _Z17Load_DynEntityDefh
	add ebx, 0x60
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_clipMap_th_410
	jmp _Z14Load_clipMap_th_330
_Z14Load_clipMap_th_60:
	xor esi, esi
_Z14Load_clipMap_th_420:
	mov [varcStaticModel_t], ebx
	mov dword [esp+0x8], 0x50
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varcStaticModel_t]
	add eax, 0x4
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	add ebx, 0x50
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_clipMap_th_420
	jmp _Z14Load_clipMap_th_430
_Z14Load_clipMap_th_90:
	mov dword [ebp-0x28], 0x0
	jmp _Z14Load_clipMap_th_440
_Z14Load_clipMap_th_470:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_clipMap_th_460:
	add esi, 0xc
	add dword [ebp-0x28], 0x1
	cmp edi, [ebp-0x28]
	jz _Z14Load_clipMap_th_450
_Z14Load_clipMap_th_440:
	mov [varcbrushside_t], esi
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varcbrushside_t]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_clipMap_th_460
	add eax, 0x1
	jnz _Z14Load_clipMap_th_470
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varcbrushside_t]
	mov eax, [eax]
	mov [varcplane_t], eax
	mov dword [esp+0x8], 0x14
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z14Load_clipMap_th_460
_Z14Load_clipMap_th_120:
	mov dword [ebp-0x24], 0x0
	jmp _Z14Load_clipMap_th_480
_Z14Load_clipMap_th_510:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_clipMap_th_500:
	add esi, 0x8
	add dword [ebp-0x24], 0x1
	cmp edi, [ebp-0x24]
	jz _Z14Load_clipMap_th_490
_Z14Load_clipMap_th_480:
	mov [varcNode_t], esi
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varcNode_t]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_clipMap_th_500
	add eax, 0x1
	jnz _Z14Load_clipMap_th_510
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varcNode_t]
	mov eax, [eax]
	mov [varcplane_t], eax
	mov dword [esp+0x8], 0x14
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z14Load_clipMap_th_500
_Z14Load_clipMap_th_160:
	mov dword [ebp-0x20], 0x0
_Z14Load_clipMap_th_540:
	mov [varcLeafBrushNode_t], esi
	mov dword [esp+0x8], 0x14
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varcLeafBrushNode_t]
	lea edx, [eax+0x8]
	mov [varcLeafBrushNodeData_t], edx
	cmp word [eax+0x2], 0x0
	jle _Z14Load_clipMap_th_520
	mov [varcLeafBrushNodeLeaf_t], edx
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varcLeafBrushNodeLeaf_t]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_clipMap_th_520
	add eax, 0x1
	jz _Z14Load_clipMap_th_530
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_clipMap_th_520:
	add esi, 0x14
	add dword [ebp-0x20], 0x1
	cmp edi, [ebp-0x20]
	jnz _Z14Load_clipMap_th_540
	jmp _Z14Load_clipMap_th_550
_Z14Load_clipMap_th_230:
	mov dword [ebp-0x1c], 0x0
	jmp _Z14Load_clipMap_th_560
_Z14Load_clipMap_th_590:
	lea eax, [ebx+0x8]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_clipMap_th_580:
	add esi, 0xc
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z14Load_clipMap_th_570
_Z14Load_clipMap_th_560:
	mov [varCollisionPartition], esi
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varCollisionPartition]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z14Load_clipMap_th_580
	add eax, 0x1
	jnz _Z14Load_clipMap_th_590
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varCollisionPartition]
	mov eax, [eax+0x8]
	mov [varCollisionBorder], eax
	mov dword [esp+0x8], 0x1c
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z14Load_clipMap_th_580
_Z14Load_clipMap_th_270:
	xor esi, esi
_Z14Load_clipMap_th_600:
	mov [varcbrush_t], ebx
	mov dword [esp], 0x0
	call _Z13Load_cbrush_th
	add ebx, 0x50
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_clipMap_th_600
	jmp _Z14Load_clipMap_th_610
_Z14Load_clipMap_th_320:
	xor esi, esi
_Z14Load_clipMap_th_620:
	mov [varDynEntityDef], ebx
	mov dword [esp], 0x0
	call _Z17Load_DynEntityDefh
	add ebx, 0x60
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_clipMap_th_620
	jmp _Z14Load_clipMap_th_630
_Z14Load_clipMap_th_530:
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varcLeafBrushNodeLeaf_t]
	mov edx, [eax]
	mov [varLeafBrush], edx
	mov eax, [varcLeafBrushNode_t]
	movsx eax, word [eax+0x2]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z14Load_clipMap_th_520
_Z14Load_clipMap_th_300:
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xa8], eax
	mov eax, [varclipMap_t]
	mov eax, [eax+0xa8]
	mov [varcbrush_t], eax
	mov dword [esp], 0x1
	call _Z13Load_cbrush_th
	mov ebx, [varclipMap_t]
	jmp _Z14Load_clipMap_th_290
_Z14Load_clipMap_th_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_clipMap_th_10
_Z14Load_clipMap_th_40:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xc], eax
	mov eax, [varclipMap_t]
	mov edx, [eax+0xc]
	mov [varcplane_t], edx
	mov eax, [eax+0x8]
	lea eax, [eax+eax*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varclipMap_t]
	jmp _Z14Load_clipMap_th_30
	nop


;Load_itemDef_t(unsigned char)
_Z14Load_itemDef_th:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x174
	mov eax, [varitemDef_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varitemDef_t]
	mov [varWindow], eax
	mov dword [esp+0x8], 0x9c
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varWindow]
	mov [varwindowDef_t], eax
	mov dword [esp+0x8], 0x9c
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varwindowDef_t]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_10
	add eax, 0x1
	jz _Z14Load_itemDef_th_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_10:
	mov eax, [varwindowDef_t]
	add eax, 0x34
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_30
	add eax, 0x1
	jz _Z14Load_itemDef_th_40
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_30:
	mov eax, [varwindowDef_t]
	add eax, 0x98
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varitemDef_t]
	add eax, 0xe0
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_50
	add eax, 0x1
	jz _Z14Load_itemDef_th_60
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_50:
	mov eax, [varitemDef_t]
	add eax, 0xec
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_70
	add eax, 0x1
	jz _Z14Load_itemDef_th_80
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_70:
	mov eax, [varitemDef_t]
	add eax, 0xf0
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_90
	add eax, 0x1
	jz _Z14Load_itemDef_th_100
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_90:
	mov eax, [varitemDef_t]
	add eax, 0xf4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_110
	add eax, 0x1
	jz _Z14Load_itemDef_th_120
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_110:
	mov eax, [varitemDef_t]
	add eax, 0xf8
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_130
	add eax, 0x1
	jz _Z14Load_itemDef_th_140
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_130:
	mov eax, [varitemDef_t]
	add eax, 0xfc
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_150
	add eax, 0x1
	jz _Z14Load_itemDef_th_160
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_150:
	mov eax, [varitemDef_t]
	add eax, 0x100
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_170
	add eax, 0x1
	jz _Z14Load_itemDef_th_180
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_170:
	mov eax, [varitemDef_t]
	add eax, 0x104
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_190
	add eax, 0x1
	jz _Z14Load_itemDef_th_200
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_190:
	mov eax, [varitemDef_t]
	add eax, 0x108
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_210
	add eax, 0x1
	jz _Z14Load_itemDef_th_220
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_210:
	mov eax, [varitemDef_t]
	add eax, 0x10c
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_230
	add eax, 0x1
	jz _Z14Load_itemDef_th_240
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_230:
	mov eax, [varitemDef_t]
	add eax, 0x110
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_250
	add eax, 0x1
	jz _Z14Load_itemDef_th_260
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_250:
	mov ebx, [varitemDef_t]
	mov eax, [ebx+0x114]
	test eax, eax
	jz _Z14Load_itemDef_th_270
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x114], eax
	mov eax, [varitemDef_t]
	mov eax, [eax+0x114]
	mov [varItemKeyHandler], eax
	mov dword [esp], 0x1
	call _Z19Load_ItemKeyHandlerh
	mov ebx, [varitemDef_t]
_Z14Load_itemDef_th_270:
	lea eax, [ebx+0x118]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_itemDef_th_280
	add eax, 0x1
	jz _Z14Load_itemDef_th_290
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_itemDef_th_280:
	mov eax, [varitemDef_t]
	add eax, 0x120
	mov [varsnd_alias_list_ptr], eax
	mov dword [esp], 0x0
	call _Z23Load_snd_alias_list_ptrh
	mov eax, [varitemDef_t]
	add eax, 0x12c
	mov [varitemDefData_t], eax
	mov dword [esp], 0x0
	call _Z18Load_itemDefData_th
	mov eax, [varitemDef_t]
	add eax, 0x134
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z14Load_itemDef_th_300
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_310
_Z14Load_itemDef_th_300:
	mov eax, [varitemDef_t]
	add eax, 0x13c
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z14Load_itemDef_th_320
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_330
_Z14Load_itemDef_th_320:
	mov eax, [varitemDef_t]
	add eax, 0x144
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov edi, [ebx+0x4]
	test edi, edi
	jz _Z14Load_itemDef_th_340
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_350
_Z14Load_itemDef_th_340:
	mov eax, [varitemDef_t]
	add eax, 0x14c
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov esi, [ebx+0x4]
	test esi, esi
	jz _Z14Load_itemDef_th_360
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_370
_Z14Load_itemDef_th_360:
	mov eax, [varitemDef_t]
	add eax, 0x154
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov ecx, [ebx+0x4]
	test ecx, ecx
	jz _Z14Load_itemDef_th_380
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_390
_Z14Load_itemDef_th_380:
	mov eax, [varitemDef_t]
	add eax, 0x15c
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov edx, [ebx+0x4]
	test edx, edx
	jz _Z14Load_itemDef_th_400
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_410
_Z14Load_itemDef_th_400:
	mov eax, [varitemDef_t]
	add eax, 0x164
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z14Load_itemDef_th_420
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_430
_Z14Load_itemDef_th_420:
	mov eax, [varitemDef_t]
	add eax, 0x16c
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z14Load_itemDef_th_440
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_itemDef_th_450
_Z14Load_itemDef_th_440:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z14Load_itemDef_th_450:
	xor esi, esi
_Z14Load_itemDef_th_460:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_460
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z14Load_itemDef_th_430:
	xor esi, esi
_Z14Load_itemDef_th_470:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_470
	jmp _Z14Load_itemDef_th_420
_Z14Load_itemDef_th_310:
	xor esi, esi
_Z14Load_itemDef_th_480:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_480
	jmp _Z14Load_itemDef_th_300
_Z14Load_itemDef_th_330:
	xor esi, esi
_Z14Load_itemDef_th_490:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_490
	jmp _Z14Load_itemDef_th_320
_Z14Load_itemDef_th_350:
	xor esi, esi
_Z14Load_itemDef_th_500:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_500
	jmp _Z14Load_itemDef_th_340
_Z14Load_itemDef_th_370:
	xor esi, esi
_Z14Load_itemDef_th_510:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_510
	jmp _Z14Load_itemDef_th_360
_Z14Load_itemDef_th_390:
	xor esi, esi
_Z14Load_itemDef_th_520:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_520
	jmp _Z14Load_itemDef_th_380
_Z14Load_itemDef_th_410:
	xor esi, esi
_Z14Load_itemDef_th_530:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_itemDef_th_530
	jmp _Z14Load_itemDef_th_400
_Z14Load_itemDef_th_240:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_230
_Z14Load_itemDef_th_260:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_250
_Z14Load_itemDef_th_80:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_70
_Z14Load_itemDef_th_100:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_90
_Z14Load_itemDef_th_120:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_110
_Z14Load_itemDef_th_140:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_130
_Z14Load_itemDef_th_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_30
_Z14Load_itemDef_th_60:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_50
_Z14Load_itemDef_th_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_10
_Z14Load_itemDef_th_290:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_280
_Z14Load_itemDef_th_160:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_150
_Z14Load_itemDef_th_180:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_170
_Z14Load_itemDef_th_200:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_190
_Z14Load_itemDef_th_220:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_itemDef_th_210
	nop


;Load_menuDef_t(unsigned char)
_Z14Load_menuDef_th:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x11c
	mov eax, [varmenuDef_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varmenuDef_t]
	mov [varWindow], eax
	mov dword [esp+0x8], 0x9c
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varWindow]
	mov [varwindowDef_t], eax
	mov dword [esp+0x8], 0x9c
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varwindowDef_t]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_10
	add eax, 0x1
	jz _Z14Load_menuDef_th_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_10:
	mov eax, [varwindowDef_t]
	add eax, 0x34
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_30
	add eax, 0x1
	jz _Z14Load_menuDef_th_40
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_30:
	mov eax, [varwindowDef_t]
	add eax, 0x98
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varmenuDef_t]
	add eax, 0x9c
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_50
	add eax, 0x1
	jz _Z14Load_menuDef_th_60
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_50:
	mov eax, [varmenuDef_t]
	add eax, 0xc4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_70
	add eax, 0x1
	jz _Z14Load_menuDef_th_80
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_70:
	mov eax, [varmenuDef_t]
	add eax, 0xc8
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_90
	add eax, 0x1
	jz _Z14Load_menuDef_th_100
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_90:
	mov eax, [varmenuDef_t]
	add eax, 0xcc
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_110
	add eax, 0x1
	jz _Z14Load_menuDef_th_120
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_110:
	mov ebx, [varmenuDef_t]
	mov eax, [ebx+0xd0]
	test eax, eax
	jz _Z14Load_menuDef_th_130
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xd0], eax
	mov eax, [varmenuDef_t]
	mov eax, [eax+0xd0]
	mov [varItemKeyHandler], eax
	mov dword [esp], 0x1
	call _Z19Load_ItemKeyHandlerh
	mov ebx, [varmenuDef_t]
_Z14Load_menuDef_th_130:
	lea eax, [ebx+0xd4]
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z14Load_menuDef_th_140
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_menuDef_th_150
_Z14Load_menuDef_th_140:
	mov eax, [varmenuDef_t]
	add eax, 0xdc
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_160
	add eax, 0x1
	jz _Z14Load_menuDef_th_170
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_160:
	mov eax, [varmenuDef_t]
	add eax, 0xe0
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z14Load_menuDef_th_180
	add eax, 0x1
	jz _Z14Load_menuDef_th_190
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z14Load_menuDef_th_180:
	mov eax, [varmenuDef_t]
	add eax, 0x108
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z14Load_menuDef_th_200
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_menuDef_th_210
_Z14Load_menuDef_th_200:
	mov eax, [varmenuDef_t]
	add eax, 0x110
	mov [varstatement], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varstatement]
	mov edi, [ebx+0x4]
	test edi, edi
	jz _Z14Load_menuDef_th_220
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varstatement]
	mov edx, [eax+0x4]
	mov [varexpressionEntry_ptr], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	test edi, edi
	jg _Z14Load_menuDef_th_230
_Z14Load_menuDef_th_220:
	mov ebx, [varmenuDef_t]
	mov esi, [ebx+0x118]
	test esi, esi
	jz _Z14Load_menuDef_th_240
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x118], eax
	mov eax, [varmenuDef_t]
	mov edx, [eax+0x118]
	mov [varitemDef_ptr], edx
	mov edi, [eax+0xa4]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varitemDef_ptr]
	test edi, edi
	jg _Z14Load_menuDef_th_250
_Z14Load_menuDef_th_240:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z14Load_menuDef_th_250:
	mov dword [ebp-0x1c], 0x0
_Z14Load_menuDef_th_270:
	mov [varitemDef_ptr], esi
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varitemDef_ptr]
	mov ecx, [ebx]
	test ecx, ecx
	jz _Z14Load_menuDef_th_260
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varitemDef_ptr]
	mov eax, [eax]
	mov [varitemDef_t], eax
	mov dword [esp], 0x1
	call _Z14Load_itemDef_th
_Z14Load_menuDef_th_260:
	add esi, 0x4
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jnz _Z14Load_menuDef_th_270
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z14Load_menuDef_th_230:
	xor esi, esi
_Z14Load_menuDef_th_280:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_menuDef_th_280
	jmp _Z14Load_menuDef_th_220
_Z14Load_menuDef_th_150:
	xor esi, esi
_Z14Load_menuDef_th_290:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_menuDef_th_290
	jmp _Z14Load_menuDef_th_140
_Z14Load_menuDef_th_210:
	xor esi, esi
_Z14Load_menuDef_th_300:
	mov [varexpressionEntry_ptr], ebx
	mov dword [esp], 0x0
	call _Z24Load_expressionEntry_ptrh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Load_menuDef_th_300
	jmp _Z14Load_menuDef_th_200
_Z14Load_menuDef_th_80:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_70
_Z14Load_menuDef_th_100:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_90
_Z14Load_menuDef_th_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_10
_Z14Load_menuDef_th_120:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_110
_Z14Load_menuDef_th_170:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_160
_Z14Load_menuDef_th_190:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_180
_Z14Load_menuDef_th_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_30
_Z14Load_menuDef_th_60:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z14Load_menuDef_th_50


;Mark_WeaponDef()
_Z14Mark_WeaponDefv:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov ebx, [varWeaponDef]
	add ebx, 0xc
	mov [varXModelPtr], ebx
	xor esi, esi
_Z14Mark_WeaponDefv_10:
	mov [varXModelPtr], ebx
	call _Z14Mark_XModelPtrv
	add ebx, 0x4
	add esi, 0x1
	cmp esi, 0x10
	jnz _Z14Mark_WeaponDefv_10
	mov eax, [varWeaponDef]
	add eax, 0x4c
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov ebx, [varWeaponDef]
	add ebx, 0xd8
	mov [varScriptString], ebx
	mov si, 0x8
_Z14Mark_WeaponDefv_20:
	mov [varScriptString], ebx
	mov [esp], ebx
	call _Z23Mark_ScriptStringCustomPt
	add ebx, 0x2
	sub esi, 0x1
	jnz _Z14Mark_WeaponDefv_20
	mov ebx, [varWeaponDef]
	add ebx, 0xe8
	mov [varScriptString], ebx
	mov esi, 0x10
_Z14Mark_WeaponDefv_30:
	mov [varScriptString], ebx
	mov [esp], ebx
	call _Z23Mark_ScriptStringCustomPt
	add ebx, 0x2
	sub esi, 0x1
	jnz _Z14Mark_WeaponDefv_30
	mov ebx, [varWeaponDef]
	add ebx, 0x108
	mov [varScriptString], ebx
	mov esi, 0x10
_Z14Mark_WeaponDefv_40:
	mov [varScriptString], ebx
	mov [esp], ebx
	call _Z23Mark_ScriptStringCustomPt
	add ebx, 0x2
	sub esi, 0x1
	jnz _Z14Mark_WeaponDefv_40
	mov eax, [varWeaponDef]
	add eax, 0x14c
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x150
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov edx, [varWeaponDef]
	lea eax, [edx+0x154]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x154]
	test eax, eax
	jz _Z14Mark_WeaponDefv_50
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_60
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_60
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_70
_Z14Mark_WeaponDefv_100:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_110:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_80
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_80:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_60
_Z14Mark_WeaponDefv_70:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_90
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_100
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_100
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_110
_Z14Mark_WeaponDefv_60:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_50:
	lea eax, [edx+0x158]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x158]
	test eax, eax
	jz _Z14Mark_WeaponDefv_120
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_130
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_130
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_140
_Z14Mark_WeaponDefv_170:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_180:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_150
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_150:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_130
_Z14Mark_WeaponDefv_140:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_160
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_170
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_170
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_180
_Z14Mark_WeaponDefv_130:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_120:
	lea eax, [edx+0x15c]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x15c]
	test eax, eax
	jz _Z14Mark_WeaponDefv_190
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_200
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_200
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_210
_Z14Mark_WeaponDefv_240:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_250:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_220
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_220:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_200
_Z14Mark_WeaponDefv_210:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_230
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_240
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_240
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_250
_Z14Mark_WeaponDefv_200:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_190:
	lea eax, [edx+0x160]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x160]
	test eax, eax
	jz _Z14Mark_WeaponDefv_260
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_270
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_270
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_280
_Z14Mark_WeaponDefv_310:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_320:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_290
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_290:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_270
_Z14Mark_WeaponDefv_280:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_300
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_310
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_310
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_320
_Z14Mark_WeaponDefv_270:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_260:
	lea eax, [edx+0x164]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x164]
	test eax, eax
	jz _Z14Mark_WeaponDefv_330
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_340
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_340
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_350
_Z14Mark_WeaponDefv_380:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_390:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_360
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_360:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_340
_Z14Mark_WeaponDefv_350:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_370
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_380
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_380
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_390
_Z14Mark_WeaponDefv_340:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_330:
	lea eax, [edx+0x168]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x168]
	test eax, eax
	jz _Z14Mark_WeaponDefv_400
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_410
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_410
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_420
_Z14Mark_WeaponDefv_450:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_460:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_430
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_430:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_410
_Z14Mark_WeaponDefv_420:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_440
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_450
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_450
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_460
_Z14Mark_WeaponDefv_410:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_400:
	lea eax, [edx+0x16c]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x16c]
	test eax, eax
	jz _Z14Mark_WeaponDefv_470
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_480
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_480
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_490
_Z14Mark_WeaponDefv_520:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_530:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_500
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_500:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_480
_Z14Mark_WeaponDefv_490:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_510
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_520
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_520
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_530
_Z14Mark_WeaponDefv_480:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_470:
	lea eax, [edx+0x170]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x170]
	test eax, eax
	jz _Z14Mark_WeaponDefv_540
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_550
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_550
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_560
_Z14Mark_WeaponDefv_590:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_600:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_570
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_570:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_550
_Z14Mark_WeaponDefv_560:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_580
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_590
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_590
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_600
_Z14Mark_WeaponDefv_550:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_540:
	lea eax, [edx+0x174]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x174]
	test eax, eax
	jz _Z14Mark_WeaponDefv_610
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_620
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_620
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_630
_Z14Mark_WeaponDefv_660:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_670:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_640
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_640:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_620
_Z14Mark_WeaponDefv_630:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_650
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_660
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_660
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_670
_Z14Mark_WeaponDefv_620:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_610:
	lea eax, [edx+0x178]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x178]
	test eax, eax
	jz _Z14Mark_WeaponDefv_680
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_690
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_690
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_700
_Z14Mark_WeaponDefv_730:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_740:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_710
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_710:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_690
_Z14Mark_WeaponDefv_700:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_720
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_730
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_730
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_740
_Z14Mark_WeaponDefv_690:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_680:
	lea eax, [edx+0x17c]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x17c]
	test eax, eax
	jz _Z14Mark_WeaponDefv_750
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_760
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_760
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_770
_Z14Mark_WeaponDefv_800:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_810:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_780
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_780:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_760
_Z14Mark_WeaponDefv_770:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_790
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_800
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_800
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_810
_Z14Mark_WeaponDefv_760:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_750:
	lea eax, [edx+0x180]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x180]
	test eax, eax
	jz _Z14Mark_WeaponDefv_820
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_830
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_830
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_840
_Z14Mark_WeaponDefv_870:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_880:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_850
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_850:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_830
_Z14Mark_WeaponDefv_840:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_860
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_870
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_870
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_880
_Z14Mark_WeaponDefv_830:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_820:
	lea eax, [edx+0x184]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x184]
	test eax, eax
	jz _Z14Mark_WeaponDefv_890
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_900
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_900
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_910
_Z14Mark_WeaponDefv_940:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_950:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_920
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_920:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_900
_Z14Mark_WeaponDefv_910:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_930
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_940
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_940
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_950
_Z14Mark_WeaponDefv_900:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_890:
	lea eax, [edx+0x188]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x188]
	test eax, eax
	jz _Z14Mark_WeaponDefv_960
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_970
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_970
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_980
_Z14Mark_WeaponDefv_1010:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1020:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_990
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_990:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_970
_Z14Mark_WeaponDefv_980:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1000
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1010
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1010
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1020
_Z14Mark_WeaponDefv_970:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_960:
	lea eax, [edx+0x18c]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x18c]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1030
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1040
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1040
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1050
_Z14Mark_WeaponDefv_1080:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1090:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1060
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1060:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1040
_Z14Mark_WeaponDefv_1050:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1070
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1080
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1080
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1090
_Z14Mark_WeaponDefv_1040:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1030:
	lea eax, [edx+0x190]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x190]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1100
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1110
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1110
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1120
_Z14Mark_WeaponDefv_1150:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1160:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1130
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1130:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1110
_Z14Mark_WeaponDefv_1120:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1140
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1150
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1150
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1160
_Z14Mark_WeaponDefv_1110:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1100:
	lea eax, [edx+0x194]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x194]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1170
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1180
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1180
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1190
_Z14Mark_WeaponDefv_1220:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1230:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1200
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1200:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1180
_Z14Mark_WeaponDefv_1190:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1210
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1220
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1220
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1230
_Z14Mark_WeaponDefv_1180:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1170:
	lea eax, [edx+0x198]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x198]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1240
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1250
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1250
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1260
_Z14Mark_WeaponDefv_1290:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1300:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1270
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1270:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1250
_Z14Mark_WeaponDefv_1260:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1280
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1290
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1290
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1300
_Z14Mark_WeaponDefv_1250:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1240:
	lea eax, [edx+0x19c]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x19c]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1310
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1320
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1320
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1330
_Z14Mark_WeaponDefv_1360:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1370:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1340
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1340:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1320
_Z14Mark_WeaponDefv_1330:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1350
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1360
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1360
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1370
_Z14Mark_WeaponDefv_1320:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1310:
	lea eax, [edx+0x1a0]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x1a0]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1380
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1390
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1390
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1400
_Z14Mark_WeaponDefv_1430:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1440:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1410
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1410:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1390
_Z14Mark_WeaponDefv_1400:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1420
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1430
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1430
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1440
_Z14Mark_WeaponDefv_1390:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1380:
	lea eax, [edx+0x1a4]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x1a4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1450
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1460
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1460
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1470
_Z14Mark_WeaponDefv_1500:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1510:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1480
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1480:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1460
_Z14Mark_WeaponDefv_1470:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1490
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1500
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1500
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1510
_Z14Mark_WeaponDefv_1460:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1450:
	lea eax, [edx+0x1a8]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x1a8]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1520
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1530
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z14Mark_WeaponDefv_1530
	xor esi, esi
	jmp _Z14Mark_WeaponDefv_1540
_Z14Mark_WeaponDefv_1570:
	mov edx, [varsnd_alias_t]
_Z14Mark_WeaponDefv_1580:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1550
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z14Mark_WeaponDefv_1550:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z14Mark_WeaponDefv_1530
_Z14Mark_WeaponDefv_1540:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1560
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z14Mark_WeaponDefv_1570
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z14Mark_WeaponDefv_1570
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z14Mark_WeaponDefv_1580
_Z14Mark_WeaponDefv_1530:
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1520:
	lea eax, [edx+0x1ac]
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1b0
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1b4
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1b8
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1bc
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1c0
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1c4
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1c8
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1cc
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1d0
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1d4
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1d8
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1dc
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1e0
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1e4
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1e8
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1ec
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1f0
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1f4
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1f8
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x1fc
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x200
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x204
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov edx, [varWeaponDef]
	mov ebx, [edx+0x208]
	test ebx, ebx
	jz _Z14Mark_WeaponDefv_1590
	mov [varsnd_alias_list_name], ebx
	mov esi, 0x1d
_Z14Mark_WeaponDefv_1600:
	mov [varsnd_alias_list_name], ebx
	mov [varsnd_alias_list_ptr], ebx
	call _Z23Mark_snd_alias_list_ptrv
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z14Mark_WeaponDefv_1600
	mov edx, [varWeaponDef]
_Z14Mark_WeaponDefv_1590:
	lea eax, [edx+0x20c]
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x210
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x214
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x218
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x21c
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varWeaponDef]
	add eax, 0x220
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov ebx, [varWeaponDef]
	add ebx, 0x2bc
	mov [varXModelPtr], ebx
	mov esi, 0x10
_Z14Mark_WeaponDefv_1610:
	mov [varXModelPtr], ebx
	call _Z14Mark_XModelPtrv
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z14Mark_WeaponDefv_1610
	mov eax, [varWeaponDef]
	add eax, 0x2fc
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov eax, [varWeaponDef]
	add eax, 0x300
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov eax, [varWeaponDef]
	add eax, 0x304
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov eax, [varWeaponDef]
	add eax, 0x308
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov eax, [varWeaponDef]
	add eax, 0x30c
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varWeaponDef]
	add eax, 0x314
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varWeaponDef]
	add eax, 0x430
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varWeaponDef]
	add eax, 0x434
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varWeaponDef]
	add eax, 0x518
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varWeaponDef]
	add eax, 0x524
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varWeaponDef]
	add eax, 0x584
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov eax, [varWeaponDef]
	add eax, 0x58c
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x594
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x598
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x59c
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	call _Z23Mark_snd_alias_list_ptrv
	mov eax, [varWeaponDef]
	add eax, 0x6a8
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x6c4
	mov [varFxEffectDefHandle], eax
	call _Z22Mark_FxEffectDefHandlev
	mov eax, [varWeaponDef]
	add eax, 0x6c8
	mov [varsnd_alias_list_name], eax
	mov [varsnd_alias_list_ptr], eax
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z23Mark_snd_alias_list_ptrv
_Z14Mark_WeaponDefv_90:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_110
_Z14Mark_WeaponDefv_160:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_180
_Z14Mark_WeaponDefv_1350:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1370
_Z14Mark_WeaponDefv_1420:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1440
_Z14Mark_WeaponDefv_1490:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1510
_Z14Mark_WeaponDefv_1560:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1580
_Z14Mark_WeaponDefv_230:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_250
_Z14Mark_WeaponDefv_300:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_320
_Z14Mark_WeaponDefv_370:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_390
_Z14Mark_WeaponDefv_440:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_460
_Z14Mark_WeaponDefv_510:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_530
_Z14Mark_WeaponDefv_580:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_600
_Z14Mark_WeaponDefv_650:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_670
_Z14Mark_WeaponDefv_720:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_740
_Z14Mark_WeaponDefv_790:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_810
_Z14Mark_WeaponDefv_860:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_880
_Z14Mark_WeaponDefv_930:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_950
_Z14Mark_WeaponDefv_1000:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1020
_Z14Mark_WeaponDefv_1070:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1090
_Z14Mark_WeaponDefv_1140:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1160
_Z14Mark_WeaponDefv_1210:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1230
_Z14Mark_WeaponDefv_1280:
	mov edx, ebx
	jmp _Z14Mark_WeaponDefv_1300
	nop


;Mark_XModelPtr()
_Z14Mark_XModelPtrv:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov eax, [varXModelPtr]
	mov eax, [eax]
	test eax, eax
	jz _Z14Mark_XModelPtrv_10
	mov [varXModel], eax
	mov [esp], eax
	call _Z16Mark_XModelAssetP6XModel
	mov edx, [varXModel]
	mov ebx, [edx+0x8]
	test ebx, ebx
	jz _Z14Mark_XModelPtrv_20
	mov [varScriptString], ebx
	movzx edi, byte [edx+0x4]
	test edi, edi
	jg _Z14Mark_XModelPtrv_30
_Z14Mark_XModelPtrv_20:
	mov ebx, [edx+0x24]
	test ebx, ebx
	jz _Z14Mark_XModelPtrv_40
	mov [varMaterialHandle], ebx
	movzx edi, byte [edx+0x6]
	test edi, edi
	jg _Z14Mark_XModelPtrv_50
_Z14Mark_XModelPtrv_40:
	lea eax, [edx+0xd4]
	mov [varPhysPresetPtr], eax
	mov eax, [edx+0xd4]
	test eax, eax
	jz _Z14Mark_XModelPtrv_10
	mov [varPhysPreset], eax
	mov [esp], eax
	call _Z20Mark_PhysPresetAssetP10PhysPreset
_Z14Mark_XModelPtrv_10:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z14Mark_XModelPtrv_50:
	xor esi, esi
_Z14Mark_XModelPtrv_60:
	mov [varMaterialHandle], ebx
	call _Z19Mark_MaterialHandlev
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Mark_XModelPtrv_60
	mov edx, [varXModel]
	jmp _Z14Mark_XModelPtrv_40
_Z14Mark_XModelPtrv_30:
	xor esi, esi
_Z14Mark_XModelPtrv_70:
	mov [varScriptString], ebx
	mov [esp], ebx
	call _Z23Mark_ScriptStringCustomPt
	add ebx, 0x2
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Mark_XModelPtrv_70
	mov edx, [varXModel]
	jmp _Z14Mark_XModelPtrv_20


;Mark_clipMap_t()
_Z14Mark_clipMap_tv:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x3c
	mov edx, [varclipMap_t]
	mov ebx, [edx+0x14]
	test ebx, ebx
	jz _Z14Mark_clipMap_tv_10
	mov [varcStaticModel_t], ebx
	mov edi, [edx+0x10]
	test edi, edi
	jg _Z14Mark_clipMap_tv_20
_Z14Mark_clipMap_tv_10:
	lea eax, [edx+0xa4]
	mov [varMapEntsPtr], eax
	mov eax, [edx+0xa4]
	test eax, eax
	jz _Z14Mark_clipMap_tv_30
	mov [varMapEnts], eax
	mov [esp], eax
	call _Z17Mark_MapEntsAssetP7MapEnts
	mov edx, [varclipMap_t]
_Z14Mark_clipMap_tv_30:
	mov eax, [edx+0xf8]
	mov [ebp-0x28], eax
	test eax, eax
	jz _Z14Mark_clipMap_tv_40
	mov [varDynEntityDef], eax
	movzx eax, word [edx+0xf4]
	mov [ebp-0x30], eax
	test eax, eax
	jg _Z14Mark_clipMap_tv_50
_Z14Mark_clipMap_tv_40:
	mov eax, [edx+0xfc]
	mov [ebp-0x1c], eax
	test eax, eax
	jz _Z14Mark_clipMap_tv_60
	mov [varDynEntityDef], eax
	movzx edx, word [edx+0xf6]
	mov [ebp-0x24], edx
	test edx, edx
	jg _Z14Mark_clipMap_tv_70
_Z14Mark_clipMap_tv_60:
	add esp, 0x3c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z14Mark_clipMap_tv_70:
	mov dword [ebp-0x20], 0x0
	jmp _Z14Mark_clipMap_tv_80
_Z14Mark_clipMap_tv_130:
	lea eax, [edx+0x30]
	mov [varPhysPresetPtr], eax
	mov eax, [edx+0x30]
	test eax, eax
	jz _Z14Mark_clipMap_tv_90
	mov [varPhysPreset], eax
	mov [esp], eax
	call _Z20Mark_PhysPresetAssetP10PhysPreset
_Z14Mark_clipMap_tv_90:
	add dword [ebp-0x1c], 0x60
	add dword [ebp-0x20], 0x1
	mov eax, [ebp-0x20]
	cmp [ebp-0x24], eax
	jz _Z14Mark_clipMap_tv_60
_Z14Mark_clipMap_tv_80:
	mov eax, [ebp-0x1c]
	mov [varDynEntityDef], eax
	add eax, 0x20
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov edx, [varDynEntityDef]
	lea eax, [edx+0x28]
	mov [varFxEffectDefHandle], eax
	mov eax, [edx+0x28]
	test eax, eax
	jz _Z14Mark_clipMap_tv_100
	mov [varFxEffectDef], eax
	mov [esp], eax
	call _Z21Mark_FxEffectDefAssetP11FxEffectDef
	mov edx, [varFxEffectDef]
	mov eax, [edx+0x1c]
	test eax, eax
	jz _Z14Mark_clipMap_tv_110
	mov [varFxElemDef], eax
	mov esi, [edx+0x10]
	add esi, [edx+0x14]
	add esi, [edx+0x18]
	mov ebx, eax
	test esi, esi
	jg _Z14Mark_clipMap_tv_120
_Z14Mark_clipMap_tv_110:
	mov edx, [varDynEntityDef]
_Z14Mark_clipMap_tv_100:
	lea eax, [edx+0x2c]
	mov [varXModelPiecesPtr], eax
	mov eax, [edx+0x2c]
	test eax, eax
	jz _Z14Mark_clipMap_tv_130
	mov [varXModelPieces], eax
	mov ebx, [eax+0x8]
	test ebx, ebx
	jz _Z14Mark_clipMap_tv_130
	mov [varXModelPiece], ebx
	mov edi, [eax+0x4]
	test edi, edi
	jle _Z14Mark_clipMap_tv_130
	xor esi, esi
_Z14Mark_clipMap_tv_140:
	mov [varXModelPiece], ebx
	mov [varXModelPtr], ebx
	call _Z14Mark_XModelPtrv
	add ebx, 0x10
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Mark_clipMap_tv_140
	mov edx, [varDynEntityDef]
	jmp _Z14Mark_clipMap_tv_130
_Z14Mark_clipMap_tv_120:
	xor edi, edi
_Z14Mark_clipMap_tv_150:
	mov [varFxElemDef], ebx
	lea eax, [ebx+0xbc]
	mov [varFxElemDefVisuals], eax
	call _Z21Mark_FxElemDefVisualsv
	add ebx, 0xfc
	add edi, 0x1
	cmp esi, edi
	jnz _Z14Mark_clipMap_tv_150
	jmp _Z14Mark_clipMap_tv_110
_Z14Mark_clipMap_tv_50:
	mov dword [ebp-0x2c], 0x0
	jmp _Z14Mark_clipMap_tv_160
_Z14Mark_clipMap_tv_220:
	lea eax, [edx+0x30]
	mov [varPhysPresetPtr], eax
	mov eax, [edx+0x30]
	test eax, eax
	jz _Z14Mark_clipMap_tv_170
	mov [varPhysPreset], eax
	mov [esp], eax
	call _Z20Mark_PhysPresetAssetP10PhysPreset
_Z14Mark_clipMap_tv_170:
	add dword [ebp-0x28], 0x60
	add dword [ebp-0x2c], 0x1
	mov eax, [ebp-0x2c]
	cmp [ebp-0x30], eax
	jz _Z14Mark_clipMap_tv_180
_Z14Mark_clipMap_tv_160:
	mov edx, [ebp-0x28]
	mov [varDynEntityDef], edx
	lea eax, [edx+0x20]
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	mov edx, [varDynEntityDef]
	lea eax, [edx+0x28]
	mov [varFxEffectDefHandle], eax
	mov eax, [edx+0x28]
	test eax, eax
	jz _Z14Mark_clipMap_tv_190
	mov [varFxEffectDef], eax
	mov [esp], eax
	call _Z21Mark_FxEffectDefAssetP11FxEffectDef
	mov edx, [varFxEffectDef]
	mov eax, [edx+0x1c]
	test eax, eax
	jz _Z14Mark_clipMap_tv_200
	mov [varFxElemDef], eax
	mov esi, [edx+0x10]
	add esi, [edx+0x14]
	add esi, [edx+0x18]
	mov ebx, eax
	test esi, esi
	jg _Z14Mark_clipMap_tv_210
_Z14Mark_clipMap_tv_200:
	mov edx, [varDynEntityDef]
_Z14Mark_clipMap_tv_190:
	lea eax, [edx+0x2c]
	mov [varXModelPiecesPtr], eax
	mov eax, [edx+0x2c]
	test eax, eax
	jz _Z14Mark_clipMap_tv_220
	mov [varXModelPieces], eax
	mov ebx, [eax+0x8]
	test ebx, ebx
	jz _Z14Mark_clipMap_tv_220
	mov [varXModelPiece], ebx
	mov edi, [eax+0x4]
	test edi, edi
	jle _Z14Mark_clipMap_tv_220
	xor esi, esi
_Z14Mark_clipMap_tv_230:
	mov [varXModelPiece], ebx
	mov [varXModelPtr], ebx
	call _Z14Mark_XModelPtrv
	add ebx, 0x10
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Mark_clipMap_tv_230
	mov edx, [varDynEntityDef]
	jmp _Z14Mark_clipMap_tv_220
_Z14Mark_clipMap_tv_210:
	xor edi, edi
_Z14Mark_clipMap_tv_240:
	mov [varFxElemDef], ebx
	lea eax, [ebx+0xbc]
	mov [varFxElemDefVisuals], eax
	call _Z21Mark_FxElemDefVisualsv
	add ebx, 0xfc
	add edi, 0x1
	cmp esi, edi
	jnz _Z14Mark_clipMap_tv_240
	jmp _Z14Mark_clipMap_tv_200
_Z14Mark_clipMap_tv_180:
	mov edx, [varclipMap_t]
	jmp _Z14Mark_clipMap_tv_40
_Z14Mark_clipMap_tv_20:
	xor esi, esi
_Z14Mark_clipMap_tv_250:
	mov [varcStaticModel_t], ebx
	lea eax, [ebx+0x4]
	mov [varXModelPtr], eax
	call _Z14Mark_XModelPtrv
	add ebx, 0x50
	add esi, 0x1
	cmp edi, esi
	jnz _Z14Mark_clipMap_tv_250
	mov edx, [varclipMap_t]
	jmp _Z14Mark_clipMap_tv_10
	nop
	add [eax], al


;Load_FontHandle(unsigned char)
_Z15Load_FontHandleh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varFontHandle]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varFontHandle]
	mov esi, [ebx]
	test esi, esi
	jz _Z15Load_FontHandleh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z15Load_FontHandleh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z15Load_FontHandleh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_FontHandleh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varFontHandle]
	mov eax, [eax]
	mov [varFont], eax
	cmp esi, 0xfffffffe
	jz _Z15Load_FontHandleh_30
	xor ebx, ebx
_Z15Load_FontHandleh_40:
	mov dword [esp], 0x1
	call _Z9Load_Fonth
	mov eax, [varFontHandle]
	mov [esp], eax
	call _Z14Load_FontAssetPP6Font_s
	test ebx, ebx
	jz _Z15Load_FontHandleh_10
	mov eax, [varFontHandle]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_FontHandleh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z15Load_FontHandleh_40
	nop


;Load_FxTrailDef(unsigned char)
_Z15Load_FxTrailDefh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x1c
	mov eax, [varFxTrailDef]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxTrailDef]
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z15Load_FxTrailDefh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10], eax
	mov eax, [varFxTrailDef]
	mov edx, [eax+0x10]
	mov [varFxTrailVertex], edx
	mov eax, [eax+0xc]
	lea eax, [eax+eax*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxTrailDef]
_Z15Load_FxTrailDefh_10:
	mov eax, [ebx+0x18]
	test eax, eax
	jz _Z15Load_FxTrailDefh_20
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x18], eax
	mov eax, [varFxTrailDef]
	mov edx, [eax+0x18]
	mov [varushort], edx
	mov eax, [eax+0x14]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z15Load_FxTrailDefh_20:
	add esp, 0x14
	pop ebx
	pop ebp
	ret


;Load_MapEntsPtr(unsigned char)
_Z15Load_MapEntsPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varMapEntsPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varMapEntsPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z15Load_MapEntsPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z15Load_MapEntsPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z15Load_MapEntsPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_MapEntsPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMapEntsPtr]
	mov eax, [eax]
	mov [varMapEnts], eax
	cmp esi, 0xfffffffe
	jz _Z15Load_MapEntsPtrh_30
	xor ebx, ebx
_Z15Load_MapEntsPtrh_40:
	mov dword [esp], 0x1
	call _Z12Load_MapEntsh
	mov eax, [varMapEntsPtr]
	mov [esp], eax
	call _Z17Load_MapEntsAssetPP7MapEnts
	test ebx, ebx
	jz _Z15Load_MapEntsPtrh_10
	mov eax, [varMapEntsPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_MapEntsPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z15Load_MapEntsPtrh_40
	nop


;Load_RawFilePtr(unsigned char)
_Z15Load_RawFilePtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varRawFilePtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varRawFilePtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z15Load_RawFilePtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z15Load_RawFilePtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z15Load_RawFilePtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_RawFilePtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varRawFilePtr]
	mov eax, [eax]
	mov [varRawFile], eax
	cmp esi, 0xfffffffe
	jz _Z15Load_RawFilePtrh_30
	xor ebx, ebx
_Z15Load_RawFilePtrh_40:
	mov dword [esp], 0x1
	call _Z12Load_RawFileh
	mov eax, [varRawFilePtr]
	mov [esp], eax
	call _Z17Load_RawFileAssetPP7RawFile
	test ebx, ebx
	jz _Z15Load_RawFilePtrh_10
	mov eax, [varRawFilePtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_RawFilePtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z15Load_RawFilePtrh_40
	nop


;Load_XAnimParts(unsigned char)
_Z15Load_XAnimPartsh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x58
	mov eax, [varXAnimParts]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varXAnimParts]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z15Load_XAnimPartsh_10
	add eax, 0x1
	jz _Z15Load_XAnimPartsh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z15Load_XAnimPartsh_10:
	mov ebx, [varXAnimParts]
	mov eax, [ebx+0x30]
	test eax, eax
	jz _Z15Load_XAnimPartsh_30
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x30], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x30]
	mov [varScriptString], edx
	movzx edi, byte [eax+0x1b]
	lea eax, [edi+edi]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varScriptString]
	test edi, edi
	jg _Z15Load_XAnimPartsh_40
_Z15Load_XAnimPartsh_190:
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_30:
	mov eax, [ebx+0x50]
	test eax, eax
	jz _Z15Load_XAnimPartsh_50
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x50], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x50]
	mov [varXAnimNotifyInfo], edx
	movzx edi, byte [eax+0x1c]
	lea eax, [edi*8]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimNotifyInfo]
	test edi, edi
	jg _Z15Load_XAnimPartsh_60
_Z15Load_XAnimPartsh_170:
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_50:
	mov eax, [ebx+0x54]
	test eax, eax
	jz _Z15Load_XAnimPartsh_70
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x54], eax
	mov eax, [varXAnimParts]
	mov eax, [eax+0x54]
	mov [varXAnimDeltaPart], eax
	mov dword [esp], 0x1
	call _Z19Load_XAnimDeltaParth
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_70:
	mov eax, [ebx+0x34]
	test eax, eax
	jz _Z15Load_XAnimPartsh_80
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x34], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x34]
	mov [varbyte], edx
	movzx eax, word [eax+0x4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_80:
	mov edi, [ebx+0x38]
	test edi, edi
	jz _Z15Load_XAnimPartsh_90
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x38], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x38]
	mov [varshort], edx
	movzx eax, word [eax+0x6]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_90:
	mov esi, [ebx+0x3c]
	test esi, esi
	jz _Z15Load_XAnimPartsh_100
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x3c], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x3c]
	mov [varint], edx
	movzx eax, word [eax+0x8]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_100:
	mov ecx, [ebx+0x40]
	test ecx, ecx
	jz _Z15Load_XAnimPartsh_110
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x40], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x40]
	mov [varshort], edx
	mov eax, [eax+0x20]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_110:
	mov edx, [ebx+0x44]
	test edx, edx
	jz _Z15Load_XAnimPartsh_120
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x44], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x44]
	mov [varbyte], edx
	movzx eax, word [eax+0xa]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_120:
	mov eax, [ebx+0x48]
	test eax, eax
	jz _Z15Load_XAnimPartsh_130
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x48], eax
	mov eax, [varXAnimParts]
	mov edx, [eax+0x48]
	mov [varint], edx
	movzx eax, word [eax+0xc]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimParts]
_Z15Load_XAnimPartsh_130:
	lea eax, [ebx+0x4c]
	mov [varXAnimIndices], eax
	cmp word [ebx+0xe], 0xff
	ja _Z15Load_XAnimPartsh_140
	mov eax, [ebx+0x4c]
	test eax, eax
	jz _Z15Load_XAnimPartsh_150
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4c], eax
	mov eax, [varXAnimIndices]
	mov edx, [eax]
	mov [varbyte], edx
	mov eax, [varXAnimParts]
	mov eax, [eax+0x24]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z15Load_XAnimPartsh_150:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_XAnimPartsh_140:
	mov eax, [ebx+0x4c]
	test eax, eax
	jz _Z15Load_XAnimPartsh_150
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4c], eax
	mov eax, [varXAnimIndices]
	mov edx, [eax]
	mov [varushort], edx
	mov eax, [varXAnimParts]
	mov eax, [eax+0x24]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z15Load_XAnimPartsh_60:
	xor esi, esi
_Z15Load_XAnimPartsh_160:
	mov [varXAnimNotifyInfo], ebx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varXAnimNotifyInfo]
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jnz _Z15Load_XAnimPartsh_160
	jmp _Z15Load_XAnimPartsh_170
_Z15Load_XAnimPartsh_40:
	xor esi, esi
_Z15Load_XAnimPartsh_180:
	mov [varScriptString], ebx
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	add ebx, 0x2
	add esi, 0x1
	cmp edi, esi
	jnz _Z15Load_XAnimPartsh_180
	jmp _Z15Load_XAnimPartsh_190
_Z15Load_XAnimPartsh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z15Load_XAnimPartsh_10
	nop


;Load_XStringPtr(unsigned char)
_Z15Load_XStringPtrh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x4
	mov eax, [varXStringPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varXStringPtr]
	mov eax, [ebx]
	test eax, eax
	jz _Z15Load_XStringPtrh_10
	add eax, 0x1
	jz _Z15Load_XStringPtrh_20
_Z15Load_XStringPtrh_30:
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z15Load_XStringPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXStringPtr]
	mov eax, [eax]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z15Load_XStringPtrh_10
	add eax, 0x1
	jnz _Z15Load_XStringPtrh_30
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [ebp+0x8], edx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_XStringCustomPPKc
_Z15Load_XStringPtrh_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	nop


;Load_multiDef_t(unsigned char)
_Z15Load_multiDef_th:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x188
	mov eax, [varmultiDef_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varmultiDef_t]
	mov [varXString], eax
	mov dword [esp+0x8], 0x80
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov esi, [varXString]
	mov edi, 0x20
	jmp _Z15Load_multiDef_th_10
_Z15Load_multiDef_th_40:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z15Load_multiDef_th_30:
	add esi, 0x4
	sub edi, 0x1
	jz _Z15Load_multiDef_th_20
_Z15Load_multiDef_th_10:
	mov [varXString], esi
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z15Load_multiDef_th_30
	add eax, 0x1
	jnz _Z15Load_multiDef_th_40
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	add esi, 0x4
	sub edi, 0x1
	jnz _Z15Load_multiDef_th_10
_Z15Load_multiDef_th_20:
	mov eax, [varmultiDef_t]
	sub eax, 0xffffff80
	mov [varXString], eax
	mov dword [esp+0x8], 0x80
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov esi, [varXString]
	mov edi, 0x20
	jmp _Z15Load_multiDef_th_50
_Z15Load_multiDef_th_80:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z15Load_multiDef_th_70:
	add esi, 0x4
	sub edi, 0x1
	jz _Z15Load_multiDef_th_60
_Z15Load_multiDef_th_50:
	mov [varXString], esi
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z15Load_multiDef_th_70
	add eax, 0x1
	jnz _Z15Load_multiDef_th_80
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	add esi, 0x4
	sub edi, 0x1
	jnz _Z15Load_multiDef_th_50
_Z15Load_multiDef_th_60:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
	nop


;AllocLoad_XAsset()
_Z16AllocLoad_XAssetv:
	push ebp
	mov ebp, esp
	sub esp, 0x18
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	leave
	ret


;Load_ComWorldPtr(unsigned char)
_Z16Load_ComWorldPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varComWorldPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varComWorldPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z16Load_ComWorldPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z16Load_ComWorldPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z16Load_ComWorldPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_ComWorldPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varComWorldPtr]
	mov eax, [eax]
	mov [varComWorld], eax
	cmp esi, 0xfffffffe
	jz _Z16Load_ComWorldPtrh_30
	xor ebx, ebx
_Z16Load_ComWorldPtrh_40:
	mov dword [esp], 0x1
	call _Z13Load_ComWorldh
	mov eax, [varComWorldPtr]
	mov [esp], eax
	call _Z18Load_ComWorldAssetPP8ComWorld
	test ebx, ebx
	jz _Z16Load_ComWorldPtrh_10
	mov eax, [varComWorldPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_ComWorldPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z16Load_ComWorldPtrh_40
	nop
	add [eax], al


;Load_FxEffectDef(unsigned char)
_Z16Load_FxEffectDefh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x20
	mov eax, [varFxEffectDef]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varFxEffectDef]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_FxEffectDefh_10
	add eax, 0x1
	jz _Z16Load_FxEffectDefh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_FxEffectDefh_10:
	mov ebx, [varFxEffectDef]
	mov eax, [ebx+0x1c]
	test eax, eax
	jz _Z16Load_FxEffectDefh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varFxEffectDef]
	mov ecx, [eax+0x1c]
	mov [varFxElemDef], ecx
	mov esi, [eax+0x10]
	add esi, [eax+0x14]
	add esi, [eax+0x18]
	lea edx, [esi*4]
	mov eax, esi
	shl eax, 0x8
	sub eax, edx
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxElemDef]
	test esi, esi
	jg _Z16Load_FxEffectDefh_40
_Z16Load_FxEffectDefh_30:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_FxEffectDefh_40:
	xor edi, edi
_Z16Load_FxEffectDefh_50:
	mov [varFxElemDef], ebx
	mov dword [esp], 0x0
	call _Z14Load_FxElemDefh
	add ebx, 0xfc
	add edi, 0x1
	cmp esi, edi
	jnz _Z16Load_FxEffectDefh_50
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_FxEffectDefh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_FxEffectDefh_10
	nop
	add [eax], al


;Load_GfxImagePtr(unsigned char)
_Z16Load_GfxImagePtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varGfxImagePtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxImagePtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z16Load_GfxImagePtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z16Load_GfxImagePtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z16Load_GfxImagePtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_GfxImagePtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxImagePtr]
	mov eax, [eax]
	mov [varGfxImage], eax
	cmp esi, 0xfffffffe
	jz _Z16Load_GfxImagePtrh_30
	xor esi, esi
_Z16Load_GfxImagePtrh_60:
	mov dword [esp+0x8], 0x24
	mov eax, [varGfxImage]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varGfxImage]
	add eax, 0x20
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_GfxImagePtrh_40
	add eax, 0x1
	jz _Z16Load_GfxImagePtrh_50
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_GfxImagePtrh_40:
	mov eax, [varGfxImage]
	add eax, 0x4
	mov [varGfxTextureLoad], eax
	mov dword [esp], 0x0
	call _Z19Load_GfxTextureLoadh
	call _Z15DB_PopStreamPosv
	mov eax, [varGfxImagePtr]
	mov [esp], eax
	call _Z18Load_GfxImageAssetPP8GfxImage
	test esi, esi
	jz _Z16Load_GfxImagePtrh_10
	mov eax, [varGfxImagePtr]
	mov eax, [eax]
	mov [esi], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_GfxImagePtrh_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_GfxImagePtrh_40
_Z16Load_GfxImagePtrh_30:
	call _Z16DB_InsertPointerv
	mov esi, eax
	jmp _Z16Load_GfxImagePtrh_60


;Load_GfxLightDef(unsigned char)
_Z16Load_GfxLightDefh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x10
	mov eax, [varGfxLightDef]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varGfxLightDef]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_GfxLightDefh_10
	add eax, 0x1
	jz _Z16Load_GfxLightDefh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_GfxLightDefh_10:
	mov eax, [varGfxLightDef]
	add eax, 0x4
	mov [varGfxLightImage], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxLightImage]
	mov [varGfxImagePtr], eax
	mov dword [esp], 0x0
	call _Z16Load_GfxImagePtrh
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_GfxLightDefh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_GfxLightDefh_10
	nop


;Load_GfxWorldPtr(unsigned char)
_Z16Load_GfxWorldPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varGfxWorldPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z16Load_GfxWorldPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z16Load_GfxWorldPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z16Load_GfxWorldPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_GfxWorldPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxWorldPtr]
	mov eax, [eax]
	mov [varGfxWorld], eax
	cmp esi, 0xfffffffe
	jz _Z16Load_GfxWorldPtrh_30
	xor ebx, ebx
_Z16Load_GfxWorldPtrh_40:
	mov dword [esp], 0x1
	call _Z13Load_GfxWorldh
	mov eax, [varGfxWorldPtr]
	mov [esp], eax
	call _Z18Load_GfxWorldAssetPP8GfxWorld
	test ebx, ebx
	jz _Z16Load_GfxWorldPtrh_10
	mov eax, [varGfxWorldPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_GfxWorldPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z16Load_GfxWorldPtrh_40
	nop
	add [eax], al


;Load_MenuListPtr(unsigned char)
_Z16Load_MenuListPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varMenuListPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varMenuListPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z16Load_MenuListPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z16Load_MenuListPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z16Load_MenuListPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_MenuListPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMenuListPtr]
	mov eax, [eax]
	mov [varMenuList], eax
	cmp esi, 0xfffffffe
	jz _Z16Load_MenuListPtrh_30
	xor ebx, ebx
_Z16Load_MenuListPtrh_40:
	mov dword [esp], 0x1
	call _Z13Load_MenuListh
	mov eax, [varMenuListPtr]
	mov [esp], eax
	call _Z18Load_MenuListAssetPP8MenuList
	test ebx, ebx
	jz _Z16Load_MenuListPtrh_10
	mov eax, [varMenuListPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_MenuListPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z16Load_MenuListPtrh_40
	nop


;Load_SndCurvePtr(unsigned char)
_Z16Load_SndCurvePtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varSndCurvePtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varSndCurvePtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z16Load_SndCurvePtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z16Load_SndCurvePtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z16Load_SndCurvePtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_SndCurvePtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varSndCurvePtr]
	mov eax, [eax]
	mov [varSndCurve], eax
	cmp esi, 0xfffffffe
	jz _Z16Load_SndCurvePtrh_30
	xor esi, esi
_Z16Load_SndCurvePtrh_60:
	mov dword [esp+0x8], 0x48
	mov eax, [varSndCurve]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varSndCurve]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_SndCurvePtrh_40
	add eax, 0x1
	jz _Z16Load_SndCurvePtrh_50
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_SndCurvePtrh_40:
	call _Z15DB_PopStreamPosv
	mov eax, [varSndCurvePtr]
	mov [esp], eax
	call _Z18Load_SndCurveAssetPP8SndCurve
	test esi, esi
	jz _Z16Load_SndCurvePtrh_10
	mov eax, [varSndCurvePtr]
	mov eax, [eax]
	mov [esi], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_SndCurvePtrh_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_SndCurvePtrh_40
_Z16Load_SndCurvePtrh_30:
	call _Z16DB_InsertPointerv
	mov esi, eax
	jmp _Z16Load_SndCurvePtrh_60


;Load_StringTable(unsigned char)
_Z16Load_StringTableh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x10
	mov eax, [varStringTable]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varStringTable]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_StringTableh_10
	add eax, 0x1
	jz _Z16Load_StringTableh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_StringTableh_10:
	mov ebx, [varStringTable]
	mov edx, [ebx+0xc]
	test edx, edx
	jz _Z16Load_StringTableh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xc], eax
	mov eax, [varStringTable]
	mov edx, [eax+0xc]
	mov [varXString], edx
	mov edi, [eax+0x4]
	imul edi, [eax+0x8]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varXString]
	test edi, edi
	jg _Z16Load_StringTableh_40
_Z16Load_StringTableh_30:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z16Load_StringTableh_40:
	mov dword [ebp-0x1c], 0x0
	jmp _Z16Load_StringTableh_50
_Z16Load_StringTableh_70:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_StringTableh_60:
	add esi, 0x4
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z16Load_StringTableh_30
_Z16Load_StringTableh_50:
	mov [varXString], esi
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_StringTableh_60
	add eax, 0x1
	jnz _Z16Load_StringTableh_70
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_StringTableh_60
_Z16Load_StringTableh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_StringTableh_10


;Load_clipMap_ptr(unsigned char)
_Z16Load_clipMap_ptrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varclipMap_ptr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varclipMap_ptr]
	mov esi, [ebx]
	test esi, esi
	jz _Z16Load_clipMap_ptrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z16Load_clipMap_ptrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z16Load_clipMap_ptrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_clipMap_ptrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varclipMap_ptr]
	mov eax, [eax]
	mov [varclipMap_t], eax
	cmp esi, 0xfffffffe
	jz _Z16Load_clipMap_ptrh_30
	xor ebx, ebx
_Z16Load_clipMap_ptrh_40:
	mov dword [esp], 0x1
	call _Z14Load_clipMap_th
	mov eax, [varclipMap_ptr]
	mov [esp], eax
	call _Z17Load_ClipMapAssetPP9clipMap_t
	test ebx, ebx
	jz _Z16Load_clipMap_ptrh_10
	mov eax, [varclipMap_ptr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_clipMap_ptrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z16Load_clipMap_ptrh_40
	nop
	add [eax], al


;Load_menuDef_ptr(unsigned char)
_Z16Load_menuDef_ptrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varmenuDef_ptr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varmenuDef_ptr]
	mov esi, [ebx]
	test esi, esi
	jz _Z16Load_menuDef_ptrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z16Load_menuDef_ptrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z16Load_menuDef_ptrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_menuDef_ptrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varmenuDef_ptr]
	mov eax, [eax]
	mov [varmenuDef_t], eax
	cmp esi, 0xfffffffe
	jz _Z16Load_menuDef_ptrh_30
	xor ebx, ebx
_Z16Load_menuDef_ptrh_40:
	mov dword [esp], 0x1
	call _Z14Load_menuDef_th
	mov eax, [varmenuDef_ptr]
	mov [esp], eax
	call _Z14Load_MenuAssetPP9menuDef_t
	test ebx, ebx
	jz _Z16Load_menuDef_ptrh_10
	mov eax, [varmenuDef_ptr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z16Load_menuDef_ptrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z16Load_menuDef_ptrh_40
	nop


;Load_snd_alias_t(unsigned char)
_Z16Load_snd_alias_th:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x5c
	mov eax, [varsnd_alias_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varsnd_alias_t]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_snd_alias_th_10
	add eax, 0x1
	jz _Z16Load_snd_alias_th_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_snd_alias_th_10:
	mov eax, [varsnd_alias_t]
	add eax, 0x4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_snd_alias_th_30
	add eax, 0x1
	jz _Z16Load_snd_alias_th_40
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_snd_alias_th_30:
	mov eax, [varsnd_alias_t]
	add eax, 0x8
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_snd_alias_th_50
	add eax, 0x1
	jz _Z16Load_snd_alias_th_60
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_snd_alias_th_50:
	mov eax, [varsnd_alias_t]
	add eax, 0xc
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_snd_alias_th_70
	add eax, 0x1
	jz _Z16Load_snd_alias_th_80
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_snd_alias_th_70:
	mov ebx, [varsnd_alias_t]
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z16Load_snd_alias_th_90
	add eax, 0x1
	jz _Z16Load_snd_alias_th_100
	lea eax, [ebx+0x10]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varsnd_alias_t]
_Z16Load_snd_alias_th_90:
	lea eax, [ebx+0x48]
	mov [varSndCurvePtr], eax
	mov dword [esp], 0x0
	call _Z16Load_SndCurvePtrh
	mov ebx, [varsnd_alias_t]
	mov eax, [ebx+0x58]
	test eax, eax
	jz _Z16Load_snd_alias_th_110
	add eax, 0x1
	jz _Z16Load_snd_alias_th_120
	lea eax, [ebx+0x58]
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z16Load_snd_alias_th_120:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x58], eax
	mov eax, [varsnd_alias_t]
	mov eax, [eax+0x58]
	mov [varSpeakerMap], eax
	mov dword [esp+0x8], 0x198
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varSpeakerMap]
	add eax, 0x4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_snd_alias_th_110
	add eax, 0x1
	jz _Z16Load_snd_alias_th_130
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z16Load_snd_alias_th_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_snd_alias_th_10
_Z16Load_snd_alias_th_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_snd_alias_th_30
_Z16Load_snd_alias_th_60:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_snd_alias_th_50
_Z16Load_snd_alias_th_80:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_snd_alias_th_70
_Z16Load_snd_alias_th_100:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10], eax
	mov eax, [varsnd_alias_t]
	mov eax, [eax+0x10]
	mov [varSoundFile], eax
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varSoundFile]
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jz _Z16Load_snd_alias_th_140
	mov [varStreamedSound], edx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varStreamedSound]
	mov [varStreamFileName], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varStreamFileName]
	mov [varStreamFileInfo], eax
	mov [varStreamFileNameRaw], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varStreamFileNameRaw]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_snd_alias_th_150
	add eax, 0x1
	jz _Z16Load_snd_alias_th_160
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z16Load_snd_alias_th_150:
	mov eax, [varStreamFileNameRaw]
	add eax, 0x4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z16Load_snd_alias_th_170
	add eax, 0x1
	jz _Z16Load_snd_alias_th_180
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varsnd_alias_t]
	jmp _Z16Load_snd_alias_th_90
_Z16Load_snd_alias_th_110:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z16Load_snd_alias_th_140:
	mov [varLoadedSoundPtr], edx
	mov dword [esp], 0x0
	call _Z19Load_LoadedSoundPtrh
	mov ebx, [varsnd_alias_t]
	jmp _Z16Load_snd_alias_th_90
_Z16Load_snd_alias_th_130:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [ebp+0x8], edx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_XStringCustomPPKc
_Z16Load_snd_alias_th_170:
	mov ebx, [varsnd_alias_t]
	jmp _Z16Load_snd_alias_th_90
_Z16Load_snd_alias_th_180:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	mov ebx, [varsnd_alias_t]
	jmp _Z16Load_snd_alias_th_90
_Z16Load_snd_alias_th_160:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z16Load_snd_alias_th_150
	nop


;Load_BrushWrapper(unsigned char)
_Z17Load_BrushWrapperh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x50
	mov eax, [varBrushWrapper]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varBrushWrapper]
	mov eax, [ebx+0x20]
	test eax, eax
	jz _Z17Load_BrushWrapperh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x20], eax
	mov eax, [varBrushWrapper]
	mov edx, [eax+0x20]
	mov [varcbrushside_t], edx
	mov edi, [eax+0x1c]
	lea eax, [edi+edi*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varcbrushside_t]
	test edi, edi
	jg _Z17Load_BrushWrapperh_20
_Z17Load_BrushWrapperh_70:
	mov ebx, [varBrushWrapper]
_Z17Load_BrushWrapperh_10:
	mov eax, [ebx+0x30]
	test eax, eax
	jz _Z17Load_BrushWrapperh_30
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x30], eax
	mov eax, [varBrushWrapper]
	mov edx, [eax+0x30]
	mov [varcbrushedge_t], edx
	mov eax, [eax+0x48]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varBrushWrapper]
_Z17Load_BrushWrapperh_30:
	mov eax, [ebx+0x4c]
	test eax, eax
	jz _Z17Load_BrushWrapperh_40
	add eax, 0x1
	jz _Z17Load_BrushWrapperh_50
	lea eax, [ebx+0x4c]
	mov [ebp+0x8], eax
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z17Load_BrushWrapperh_50:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4c], eax
	mov eax, [varBrushWrapper]
	mov edx, [eax+0x4c]
	mov [varcplane_t], edx
	mov eax, [eax+0x1c]
	lea eax, [eax+eax*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z17Load_BrushWrapperh_40:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z17Load_BrushWrapperh_20:
	mov dword [ebp-0x1c], 0x0
	jmp _Z17Load_BrushWrapperh_60
_Z17Load_BrushWrapperh_90:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z17Load_BrushWrapperh_80:
	add esi, 0xc
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z17Load_BrushWrapperh_70
_Z17Load_BrushWrapperh_60:
	mov [varcbrushside_t], esi
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varcbrushside_t]
	mov eax, [ebx]
	test eax, eax
	jz _Z17Load_BrushWrapperh_80
	add eax, 0x1
	jnz _Z17Load_BrushWrapperh_90
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varcbrushside_t]
	mov eax, [eax]
	mov [varcplane_t], eax
	mov dword [esp+0x8], 0x14
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z17Load_BrushWrapperh_80


;Load_DynEntityDef(unsigned char)
_Z17Load_DynEntityDefh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x60
	mov eax, [varDynEntityDef]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varDynEntityDef]
	add eax, 0x20
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	mov eax, [varDynEntityDef]
	add eax, 0x28
	mov [varFxEffectDefHandle], eax
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	mov eax, [varDynEntityDef]
	add eax, 0x2c
	mov [varXModelPiecesPtr], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModelPiecesPtr]
	mov eax, [ebx]
	test eax, eax
	jz _Z17Load_DynEntityDefh_10
	add eax, 0x1
	jz _Z17Load_DynEntityDefh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z17Load_DynEntityDefh_10:
	mov eax, [varDynEntityDef]
	add eax, 0x30
	mov [varPhysPresetPtr], eax
	mov dword [ebp+0x8], 0x0
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_PhysPresetPtrh
_Z17Load_DynEntityDefh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXModelPiecesPtr]
	mov eax, [eax]
	mov [varXModelPieces], eax
	mov dword [esp], 0x1
	call _Z17Load_XModelPiecesh
	mov eax, [varDynEntityDef]
	add eax, 0x30
	mov [varPhysPresetPtr], eax
	mov dword [ebp+0x8], 0x0
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_PhysPresetPtrh


;Load_GfxLightGrid(unsigned char)
_Z17Load_GfxLightGridh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x38
	mov eax, [varGfxLightGrid]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightGrid]
	mov eax, [ebx+0x1c]
	test eax, eax
	jz _Z17Load_GfxLightGridh_10
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov edx, [varGfxLightGrid]
	mov ebx, [edx+0x1c]
	mov [varushort], ebx
	mov ecx, [edx+0x14]
	movzx eax, word [edx+ecx*2+0xe]
	movzx edx, word [edx+ecx*2+0x8]
	sub eax, edx
	lea eax, [eax+eax+0x2]
	mov [esp+0x8], eax
	mov [esp+0x4], ebx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightGrid]
_Z17Load_GfxLightGridh_10:
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z17Load_GfxLightGridh_20
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varGfxLightGrid]
	mov edx, [eax+0x24]
	mov [varbyte], edx
	mov eax, [eax+0x20]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightGrid]
_Z17Load_GfxLightGridh_20:
	mov eax, [ebx+0x2c]
	test eax, eax
	jz _Z17Load_GfxLightGridh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x2c], eax
	mov eax, [varGfxLightGrid]
	mov edx, [eax+0x2c]
	mov [varGfxLightGridEntry], edx
	mov eax, [eax+0x28]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightGrid]
_Z17Load_GfxLightGridh_30:
	mov eax, [ebx+0x34]
	test eax, eax
	jz _Z17Load_GfxLightGridh_40
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x34], eax
	mov eax, [varGfxLightGrid]
	mov ecx, [eax+0x34]
	mov [varGfxLightGridColors], ecx
	mov eax, [eax+0x30]
	lea edx, [eax+eax*4]
	lea edx, [eax+edx*4]
	shl edx, 0x3
	mov [esp+0x8], edx
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z17Load_GfxLightGridh_40:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	nop


;Load_MaterialPass(unsigned char)
_Z17Load_MaterialPassh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x14
	mov eax, [varMaterialPass]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialPass]
	mov eax, [ebx]
	test eax, eax
	jz _Z17Load_MaterialPassh_10
	add eax, 0x1
	jz _Z17Load_MaterialPassh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varMaterialPass]
_Z17Load_MaterialPassh_10:
	lea eax, [ebx+0x4]
	mov [varMaterialVertexShaderPtr], eax
	mov dword [esp], 0x0
	call _Z28Load_MaterialVertexShaderPtrh
	mov eax, [varMaterialPass]
	add eax, 0x8
	mov [varMaterialPixelShaderPtr], eax
	mov dword [esp], 0x0
	call _Z27Load_MaterialPixelShaderPtrh
	mov ebx, [varMaterialPass]
	mov edx, [ebx+0x10]
	test edx, edx
	jz _Z17Load_MaterialPassh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10], eax
	mov ecx, [varMaterialPass]
	mov ebx, [ecx+0x10]
	mov [varMaterialShaderArgument], ebx
	movzx eax, byte [ecx+0xc]
	movzx edx, byte [ecx+0xd]
	add eax, edx
	movzx edx, byte [ecx+0xe]
	lea edi, [eax+edx]
	lea eax, [edi*8]
	mov [esp+0x8], eax
	mov [esp+0x4], ebx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialShaderArgument]
	test edi, edi
	jg _Z17Load_MaterialPassh_40
_Z17Load_MaterialPassh_30:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z17Load_MaterialPassh_40:
	xor esi, esi
_Z17Load_MaterialPassh_50:
	mov [varMaterialShaderArgument], ebx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialShaderArgument]
	add eax, 0x4
	mov [varMaterialArgumentDef], eax
	mov dword [esp], 0x0
	call _Z24Load_MaterialArgumentDefh
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jnz _Z17Load_MaterialPassh_50
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z17Load_MaterialPassh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialPass]
	mov eax, [eax]
	mov [varMaterialVertexDeclaration], eax
	mov dword [esp+0x8], 0x64
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialPass]
	mov [esp], eax
	call _Z20Load_BuildVertexDeclPP25MaterialVertexDeclaration
	mov ebx, [varMaterialPass]
	jmp _Z17Load_MaterialPassh_10


;Load_PhysGeomList(unsigned char)
_Z17Load_PhysGeomListh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x2c
	mov eax, [varPhysGeomList]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varPhysGeomList]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z17Load_PhysGeomListh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varPhysGeomList]
	mov edx, [eax+0x4]
	mov [varPhysGeomInfo], edx
	mov edi, [eax]
	mov eax, edi
	shl eax, 0x6
	lea eax, [eax+edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varPhysGeomInfo]
	test edi, edi
	jg _Z17Load_PhysGeomListh_20
_Z17Load_PhysGeomListh_10:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z17Load_PhysGeomListh_20:
	mov dword [ebp-0x1c], 0x0
	jmp _Z17Load_PhysGeomListh_30
_Z17Load_PhysGeomListh_50:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z17Load_PhysGeomListh_40:
	add esi, 0x44
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z17Load_PhysGeomListh_10
_Z17Load_PhysGeomListh_30:
	mov [varPhysGeomInfo], esi
	mov dword [esp+0x8], 0x44
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varPhysGeomInfo]
	mov eax, [ebx]
	test eax, eax
	jz _Z17Load_PhysGeomListh_40
	add eax, 0x1
	jnz _Z17Load_PhysGeomListh_50
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varPhysGeomInfo]
	mov eax, [eax]
	mov [varBrushWrapper], eax
	mov dword [esp], 0x1
	call _Z17Load_BrushWrapperh
	jmp _Z17Load_PhysGeomListh_40
	add [eax], al


;Load_WeaponDefPtr(unsigned char)
_Z17Load_WeaponDefPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varWeaponDefPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varWeaponDefPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z17Load_WeaponDefPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z17Load_WeaponDefPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z17Load_WeaponDefPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z17Load_WeaponDefPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varWeaponDefPtr]
	mov eax, [eax]
	mov [varWeaponDef], eax
	cmp esi, 0xfffffffe
	jz _Z17Load_WeaponDefPtrh_30
	xor ebx, ebx
_Z17Load_WeaponDefPtrh_40:
	mov dword [esp], 0x1
	call _Z14Load_WeaponDefh
	mov eax, [varWeaponDefPtr]
	mov [esp], eax
	call _Z19Load_WeaponDefAssetPP9WeaponDef
	test ebx, ebx
	jz _Z17Load_WeaponDefPtrh_10
	mov eax, [varWeaponDefPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z17Load_WeaponDefPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z17Load_WeaponDefPtrh_40
	nop
	add [eax], al


;Load_XAssetHeader(unsigned char)
_Z17Load_XAssetHeaderh:
	push ebp
	mov ebp, esp
	movzx ecx, byte [ebp+0x8]
	mov eax, [varXAsset]
	mov edx, [eax]
	cmp edx, 0x1
	jz _Z17Load_XAssetHeaderh_10
	cmp edx, 0x2
	jz _Z17Load_XAssetHeaderh_20
	cmp edx, 0x3
	jz _Z17Load_XAssetHeaderh_30
	cmp edx, 0x4
	jz _Z17Load_XAssetHeaderh_40
	cmp edx, 0x5
	jz _Z17Load_XAssetHeaderh_50
	cmp edx, 0x6
	jz _Z17Load_XAssetHeaderh_60
	cmp edx, 0x7
	jz _Z17Load_XAssetHeaderh_70
	cmp edx, 0x8
	jz _Z17Load_XAssetHeaderh_80
	cmp edx, 0x9
	jz _Z17Load_XAssetHeaderh_90
	lea eax, [edx-0xa]
	cmp eax, 0x1
	jbe _Z17Load_XAssetHeaderh_100
	cmp edx, 0xc
	jz _Z17Load_XAssetHeaderh_110
	cmp edx, 0xd
	jz _Z17Load_XAssetHeaderh_120
	cmp edx, 0xe
	jz _Z17Load_XAssetHeaderh_130
	cmp edx, 0xf
	jz _Z17Load_XAssetHeaderh_140
	cmp edx, 0x10
	jz _Z17Load_XAssetHeaderh_150
	cmp edx, 0x11
	jz _Z17Load_XAssetHeaderh_160
	cmp edx, 0x13
	jz _Z17Load_XAssetHeaderh_170
	cmp edx, 0x14
	jz _Z17Load_XAssetHeaderh_180
	cmp edx, 0x15
	jz _Z17Load_XAssetHeaderh_190
	cmp edx, 0x16
	jz _Z17Load_XAssetHeaderh_200
	cmp edx, 0x17
	jz _Z17Load_XAssetHeaderh_210
	cmp edx, 0x19
	jz _Z17Load_XAssetHeaderh_220
	cmp edx, 0x1a
	jz _Z17Load_XAssetHeaderh_230
	cmp edx, 0x1f
	jz _Z17Load_XAssetHeaderh_240
	cmp edx, 0x20
	jz _Z17Load_XAssetHeaderh_250
	pop ebp
	ret
_Z17Load_XAssetHeaderh_50:
	mov eax, [varXAssetHeader]
	mov [varMaterialTechniqueSetPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z28Load_MaterialTechniqueSetPtrh
_Z17Load_XAssetHeaderh_10:
	mov eax, [varXAssetHeader]
	mov [varPhysPresetPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z18Load_PhysPresetPtrh
_Z17Load_XAssetHeaderh_20:
	mov eax, [varXAssetHeader]
	mov [varXAnimPartsPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z18Load_XAnimPartsPtrh
_Z17Load_XAssetHeaderh_30:
	mov eax, [varXAssetHeader]
	mov [varXModelPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z14Load_XModelPtrh
_Z17Load_XAssetHeaderh_40:
	mov eax, [varXAssetHeader]
	mov [varMaterialHandle], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z19Load_MaterialHandleh
_Z17Load_XAssetHeaderh_60:
	mov eax, [varXAssetHeader]
	mov [varGfxImagePtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z16Load_GfxImagePtrh
_Z17Load_XAssetHeaderh_70:
	mov eax, [varXAssetHeader]
	mov [varsnd_alias_list_ptr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z23Load_snd_alias_list_ptrh
_Z17Load_XAssetHeaderh_110:
	mov eax, [varXAssetHeader]
	mov [varComWorldPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z16Load_ComWorldPtrh
_Z17Load_XAssetHeaderh_190:
	mov eax, [varXAssetHeader]
	mov [varmenuDef_ptr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z16Load_menuDef_ptrh
_Z17Load_XAssetHeaderh_80:
	mov eax, [varXAssetHeader]
	mov [varSndCurvePtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z16Load_SndCurvePtrh
_Z17Load_XAssetHeaderh_90:
	mov eax, [varXAssetHeader]
	mov [varLoadedSoundPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z19Load_LoadedSoundPtrh
_Z17Load_XAssetHeaderh_120:
	mov eax, [varXAssetHeader]
	mov [varGameWorldSpPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z19Load_GameWorldSpPtrh
_Z17Load_XAssetHeaderh_100:
	mov eax, [varXAssetHeader]
	mov [varclipMap_ptr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z16Load_clipMap_ptrh
_Z17Load_XAssetHeaderh_130:
	mov eax, [varXAssetHeader]
	mov [varGameWorldMpPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z19Load_GameWorldMpPtrh
_Z17Load_XAssetHeaderh_140:
	mov eax, [varXAssetHeader]
	mov [varMapEntsPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z15Load_MapEntsPtrh
_Z17Load_XAssetHeaderh_150:
	mov eax, [varXAssetHeader]
	mov [varGfxWorldPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z16Load_GfxWorldPtrh
_Z17Load_XAssetHeaderh_160:
	mov eax, [varXAssetHeader]
	mov [varGfxLightDefPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z19Load_GfxLightDefPtrh
_Z17Load_XAssetHeaderh_170:
	mov eax, [varXAssetHeader]
	mov [varFontHandle], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z15Load_FontHandleh
_Z17Load_XAssetHeaderh_180:
	mov eax, [varXAssetHeader]
	mov [varMenuListPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z16Load_MenuListPtrh
_Z17Load_XAssetHeaderh_200:
	mov eax, [varXAssetHeader]
	mov [varLocalizeEntryPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z21Load_LocalizeEntryPtrh
_Z17Load_XAssetHeaderh_210:
	mov eax, [varXAssetHeader]
	mov [varWeaponDefPtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z17Load_WeaponDefPtrh
_Z17Load_XAssetHeaderh_250:
	mov eax, [varXAssetHeader]
	mov [varStringTablePtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z19Load_StringTablePtrh
_Z17Load_XAssetHeaderh_220:
	mov eax, [varXAssetHeader]
	mov [varFxEffectDefHandle], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z22Load_FxEffectDefHandleh
_Z17Load_XAssetHeaderh_230:
	mov eax, [varXAssetHeader]
	mov [varFxImpactTablePtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z21Load_FxImpactTablePtrh
_Z17Load_XAssetHeaderh_240:
	mov eax, [varXAssetHeader]
	mov [varRawFilePtr], eax
	movzx eax, cl
	mov [ebp+0x8], eax
	pop ebp
	jmp _Z15Load_RawFilePtrh


;Load_XModelPieces(unsigned char)
_Z17Load_XModelPiecesh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0xc
	mov eax, [varXModelPieces]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varXModelPieces]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z17Load_XModelPiecesh_10
	add eax, 0x1
	jz _Z17Load_XModelPiecesh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z17Load_XModelPiecesh_10:
	mov ebx, [varXModelPieces]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z17Load_XModelPiecesh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varXModelPieces]
	mov edx, [eax+0x8]
	mov [varXModelPiece], edx
	mov edi, [eax+0x4]
	mov eax, edi
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXModelPiece]
	test edi, edi
	jg _Z17Load_XModelPiecesh_40
_Z17Load_XModelPiecesh_30:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z17Load_XModelPiecesh_40:
	xor esi, esi
_Z17Load_XModelPiecesh_50:
	mov [varXModelPiece], ebx
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varXModelPiece]
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	add ebx, 0x10
	add esi, 0x1
	cmp edi, esi
	jnz _Z17Load_XModelPiecesh_50
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z17Load_XModelPiecesh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z17Load_XModelPiecesh_10
	nop


;Mark_XAssetHeader()
_Z17Mark_XAssetHeaderv:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x5c
	mov eax, [varXAsset]
	mov edx, [eax]
	cmp edx, 0x1
	jz _Z17Mark_XAssetHeaderv_10
	cmp edx, 0x2
	jz _Z17Mark_XAssetHeaderv_20
	cmp edx, 0x3
	jz _Z17Mark_XAssetHeaderv_30
	cmp edx, 0x4
	jz _Z17Mark_XAssetHeaderv_40
	cmp edx, 0x5
	jz _Z17Mark_XAssetHeaderv_50
	cmp edx, 0x6
	jz _Z17Mark_XAssetHeaderv_60
	cmp edx, 0x7
	jz _Z17Mark_XAssetHeaderv_70
	cmp edx, 0x8
	jz _Z17Mark_XAssetHeaderv_80
	cmp edx, 0x9
	jz _Z17Mark_XAssetHeaderv_90
	lea eax, [edx-0xa]
	cmp eax, 0x1
	jbe _Z17Mark_XAssetHeaderv_100
	cmp edx, 0xc
	jz _Z17Mark_XAssetHeaderv_110
	cmp edx, 0xd
	jz _Z17Mark_XAssetHeaderv_120
	cmp edx, 0xe
	jz _Z17Mark_XAssetHeaderv_130
	cmp edx, 0xf
	jz _Z17Mark_XAssetHeaderv_140
	cmp edx, 0x10
	jz _Z17Mark_XAssetHeaderv_150
	cmp edx, 0x11
	jz _Z17Mark_XAssetHeaderv_160
	cmp edx, 0x13
	jz _Z17Mark_XAssetHeaderv_170
	cmp edx, 0x14
	jz _Z17Mark_XAssetHeaderv_180
	cmp edx, 0x15
	jz _Z17Mark_XAssetHeaderv_190
	cmp edx, 0x16
	jz _Z17Mark_XAssetHeaderv_200
	cmp edx, 0x17
	jz _Z17Mark_XAssetHeaderv_210
	cmp edx, 0x19
	jz _Z17Mark_XAssetHeaderv_220
	cmp edx, 0x1a
	jz _Z17Mark_XAssetHeaderv_230
	cmp edx, 0x1f
	jz _Z17Mark_XAssetHeaderv_240
	cmp edx, 0x20
	jnz _Z17Mark_XAssetHeaderv_250
	mov eax, [varXAssetHeader]
	mov [varStringTablePtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varStringTable], eax
	mov [esp], eax
	call _Z21Mark_StringTableAssetP11StringTable
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_10:
	mov eax, [varXAssetHeader]
	mov [varPhysPresetPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varPhysPreset], eax
	mov [esp], eax
	call _Z20Mark_PhysPresetAssetP10PhysPreset
_Z17Mark_XAssetHeaderv_250:
	add esp, 0x5c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z17Mark_XAssetHeaderv_20:
	mov eax, [varXAssetHeader]
	mov [varXAnimPartsPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varXAnimParts], eax
	mov [esp], eax
	call _Z20Mark_XAnimPartsAssetP10XAnimParts
	mov eax, [varXAnimParts]
	mov ebx, [eax+0x30]
	test ebx, ebx
	jz _Z17Mark_XAssetHeaderv_260
	mov [varScriptString], ebx
	movzx edi, byte [eax+0x1b]
	test edi, edi
	jg _Z17Mark_XAssetHeaderv_270
_Z17Mark_XAssetHeaderv_260:
	mov ebx, [eax+0x50]
	test ebx, ebx
	jz _Z17Mark_XAssetHeaderv_250
	mov [varXAnimNotifyInfo], ebx
	movzx edi, byte [eax+0x1c]
	test edi, edi
	jle _Z17Mark_XAssetHeaderv_250
	xor esi, esi
_Z17Mark_XAssetHeaderv_280:
	mov [varXAnimNotifyInfo], ebx
	mov [varScriptString], ebx
	mov [esp], ebx
	call _Z23Mark_ScriptStringCustomPt
	add ebx, 0x8
	add esi, 0x1
	cmp edi, esi
	jnz _Z17Mark_XAssetHeaderv_280
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_60:
	mov eax, [varXAssetHeader]
	mov [varGfxImagePtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_360:
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_30:
	mov eax, [varXAssetHeader]
	mov [varXModelPtr], eax
	add esp, 0x5c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z14Mark_XModelPtrv
_Z17Mark_XAssetHeaderv_50:
	mov eax, [varXAssetHeader]
	mov [varMaterialTechniqueSetPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varMaterialTechniqueSet], eax
	mov [esp], eax
	call _Z30Mark_MaterialTechniqueSetAssetP20MaterialTechniqueSet
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_40:
	mov eax, [varXAssetHeader]
_Z17Mark_XAssetHeaderv_370:
	mov [varMaterialHandle], eax
	add esp, 0x5c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z19Mark_MaterialHandlev
_Z17Mark_XAssetHeaderv_70:
	mov eax, [varXAssetHeader]
	mov [varsnd_alias_list_ptr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z17Mark_XAssetHeaderv_250
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z17Mark_XAssetHeaderv_250
	xor esi, esi
	jmp _Z17Mark_XAssetHeaderv_290
_Z17Mark_XAssetHeaderv_320:
	mov edx, [varsnd_alias_t]
_Z17Mark_XAssetHeaderv_330:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_300
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z17Mark_XAssetHeaderv_300:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_290:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_310
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z17Mark_XAssetHeaderv_320
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_320
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z17Mark_XAssetHeaderv_330
_Z17Mark_XAssetHeaderv_110:
	mov eax, [varXAssetHeader]
	mov [varComWorldPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varComWorld], eax
	mov [esp], eax
	call _Z18Mark_ComWorldAssetP8ComWorld
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_310:
	mov edx, ebx
	jmp _Z17Mark_XAssetHeaderv_330
_Z17Mark_XAssetHeaderv_270:
	xor esi, esi
_Z17Mark_XAssetHeaderv_340:
	mov [varScriptString], ebx
	mov [esp], ebx
	call _Z23Mark_ScriptStringCustomPt
	add ebx, 0x2
	add esi, 0x1
	cmp edi, esi
	jnz _Z17Mark_XAssetHeaderv_340
	mov eax, [varXAnimParts]
	jmp _Z17Mark_XAssetHeaderv_260
_Z17Mark_XAssetHeaderv_80:
	mov eax, [varXAssetHeader]
	mov [varSndCurvePtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_90:
	mov eax, [varXAssetHeader]
	mov [varLoadedSoundPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_100:
	mov eax, [varXAssetHeader]
	mov [varclipMap_ptr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varclipMap_t], eax
	mov [esp], eax
	call _Z17Mark_ClipMapAssetP9clipMap_t
	add esp, 0x5c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z14Mark_clipMap_tv
_Z17Mark_XAssetHeaderv_120:
	mov eax, [varXAssetHeader]
	mov [varGameWorldSpPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varGameWorldSp], eax
	mov [esp], eax
	call _Z21Mark_GameWorldSpAssetP11GameWorldSp
	mov edx, [varGameWorldSp]
	lea eax, [edx+0x4]
	mov [varPathData], eax
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z17Mark_XAssetHeaderv_250
	mov [varpathnode_t], ebx
	mov edi, [edx+0x4]
	test edi, edi
	jle _Z17Mark_XAssetHeaderv_250
	xor esi, esi
_Z17Mark_XAssetHeaderv_350:
	mov [varpathnode_t], ebx
	mov [varpathnode_constant_t], ebx
	call _Z24Mark_pathnode_constant_tv
	sub ebx, 0xffffff80
	add esi, 0x1
	cmp edi, esi
	jnz _Z17Mark_XAssetHeaderv_350
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_130:
	mov eax, [varXAssetHeader]
	mov [varGameWorldMpPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varGameWorldMp], eax
	mov [esp], eax
	call _Z21Mark_GameWorldMpAssetP11GameWorldMp
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_140:
	mov eax, [varXAssetHeader]
	mov [varMapEntsPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varMapEnts], eax
	mov [esp], eax
	call _Z17Mark_MapEntsAssetP7MapEnts
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_150:
	mov eax, [varXAssetHeader]
	mov [varGfxWorldPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varGfxWorld], eax
	mov [esp], eax
	call _Z18Mark_GfxWorldAssetP8GfxWorld
	add esp, 0x5c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z13Mark_GfxWorldv
_Z17Mark_XAssetHeaderv_160:
	mov eax, [varXAssetHeader]
	mov [varGfxLightDefPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varGfxLightDef], eax
	mov [esp], eax
	call _Z18Mark_LightDefAssetP11GfxLightDef
	mov edx, [varGfxLightDef]
	lea eax, [edx+0x4]
	mov [varGfxLightImage], eax
	mov [varGfxImagePtr], eax
	mov eax, [edx+0x4]
	test eax, eax
	jnz _Z17Mark_XAssetHeaderv_360
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_170:
	mov eax, [varXAssetHeader]
	mov [varFontHandle], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varFont], eax
	mov [esp], eax
	call _Z14Mark_FontAssetP6Font_s
	mov eax, [varFont]
	add eax, 0xc
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varFont]
	add eax, 0x10
	jmp _Z17Mark_XAssetHeaderv_370
_Z17Mark_XAssetHeaderv_180:
	mov eax, [varXAssetHeader]
	mov [varMenuListPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varMenuList], eax
	mov [esp], eax
	call _Z18Mark_MenuListAssetP8MenuList
	mov eax, [varMenuList]
	mov edx, [eax+0x8]
	mov [ebp-0x4c], edx
	test edx, edx
	jz _Z17Mark_XAssetHeaderv_250
	mov [varmenuDef_ptr], edx
	mov eax, [eax+0x4]
	mov [ebp-0x54], eax
	test eax, eax
	jle _Z17Mark_XAssetHeaderv_250
	mov dword [ebp-0x50], 0x0
_Z17Mark_XAssetHeaderv_480:
	mov eax, [ebp-0x4c]
	mov [varmenuDef_ptr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_380
	mov [varmenuDef_t], eax
	mov [esp], eax
	call _Z14Mark_MenuAssetP9menuDef_t
	mov eax, [varmenuDef_t]
	mov [varWindow], eax
	mov [varwindowDef_t], eax
	add eax, 0x98
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varmenuDef_t]
	mov edi, [eax+0x118]
	test edi, edi
	jz _Z17Mark_XAssetHeaderv_380
	mov [varitemDef_ptr], edi
	mov eax, [eax+0xa4]
	mov [ebp-0x48], eax
	test eax, eax
	jle _Z17Mark_XAssetHeaderv_380
	mov dword [ebp-0x44], 0x0
_Z17Mark_XAssetHeaderv_470:
	mov [varitemDef_ptr], edi
	mov eax, [edi]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_390
	mov [varitemDef_t], eax
	mov [varWindow], eax
	mov [varwindowDef_t], eax
	lea eax, [eax+0x98]
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov edx, [varitemDef_t]
	lea eax, [edx+0x120]
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x120]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_400
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z17Mark_XAssetHeaderv_410
	mov [varsnd_alias_t], ebx
	mov eax, [eax+0x8]
	mov [ebp-0x40], eax
	test eax, eax
	jle _Z17Mark_XAssetHeaderv_410
	xor esi, esi
	jmp _Z17Mark_XAssetHeaderv_420
_Z17Mark_XAssetHeaderv_450:
	mov edx, [varsnd_alias_t]
_Z17Mark_XAssetHeaderv_460:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_430
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z17Mark_XAssetHeaderv_430:
	add ebx, 0x5c
	add esi, 0x1
	cmp [ebp-0x40], esi
	jz _Z17Mark_XAssetHeaderv_410
_Z17Mark_XAssetHeaderv_420:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_440
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z17Mark_XAssetHeaderv_450
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_450
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z17Mark_XAssetHeaderv_460
_Z17Mark_XAssetHeaderv_410:
	mov edx, [varitemDef_t]
_Z17Mark_XAssetHeaderv_400:
	lea eax, [edx+0x12c]
	mov [varitemDefData_t], eax
	cmp dword [edx+0xb4], 0x6
	jnz _Z17Mark_XAssetHeaderv_390
	mov [varlistBoxDef_ptr], eax
	mov eax, [edx+0x12c]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_390
	mov [varlistBoxDef_t], eax
	add eax, 0x150
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
_Z17Mark_XAssetHeaderv_390:
	add edi, 0x4
	add dword [ebp-0x44], 0x1
	mov eax, [ebp-0x44]
	cmp [ebp-0x48], eax
	jnz _Z17Mark_XAssetHeaderv_470
_Z17Mark_XAssetHeaderv_380:
	add dword [ebp-0x4c], 0x4
	add dword [ebp-0x50], 0x1
	mov edx, [ebp-0x50]
	cmp [ebp-0x54], edx
	jnz _Z17Mark_XAssetHeaderv_480
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_440:
	mov edx, ebx
	jmp _Z17Mark_XAssetHeaderv_460
_Z17Mark_XAssetHeaderv_190:
	mov eax, [varXAssetHeader]
	mov [varmenuDef_ptr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varmenuDef_t], eax
	mov [esp], eax
	call _Z14Mark_MenuAssetP9menuDef_t
	mov eax, [varmenuDef_t]
	mov [varWindow], eax
	mov [varwindowDef_t], eax
	add eax, 0x98
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov eax, [varmenuDef_t]
	mov edi, [eax+0x118]
	test edi, edi
	jz _Z17Mark_XAssetHeaderv_250
	mov [varitemDef_ptr], edi
	mov eax, [eax+0xa4]
	mov [ebp-0x3c], eax
	test eax, eax
	jle _Z17Mark_XAssetHeaderv_250
	mov dword [ebp-0x38], 0x0
_Z17Mark_XAssetHeaderv_570:
	mov [varitemDef_ptr], edi
	mov eax, [edi]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_490
	mov [varitemDef_t], eax
	mov [varWindow], eax
	mov [varwindowDef_t], eax
	lea eax, [eax+0x98]
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
	mov edx, [varitemDef_t]
	lea eax, [edx+0x120]
	mov [varsnd_alias_list_ptr], eax
	mov eax, [edx+0x120]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_500
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z17Mark_XAssetHeaderv_510
	mov [varsnd_alias_t], ebx
	mov eax, [eax+0x8]
	mov [ebp-0x34], eax
	test eax, eax
	jle _Z17Mark_XAssetHeaderv_510
	xor esi, esi
	jmp _Z17Mark_XAssetHeaderv_520
_Z17Mark_XAssetHeaderv_550:
	mov edx, [varsnd_alias_t]
_Z17Mark_XAssetHeaderv_560:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_530
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z17Mark_XAssetHeaderv_530:
	add ebx, 0x5c
	add esi, 0x1
	cmp [ebp-0x34], esi
	jz _Z17Mark_XAssetHeaderv_510
_Z17Mark_XAssetHeaderv_520:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_540
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z17Mark_XAssetHeaderv_550
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_550
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z17Mark_XAssetHeaderv_560
_Z17Mark_XAssetHeaderv_510:
	mov edx, [varitemDef_t]
_Z17Mark_XAssetHeaderv_500:
	lea eax, [edx+0x12c]
	mov [varitemDefData_t], eax
	cmp dword [edx+0xb4], 0x6
	jnz _Z17Mark_XAssetHeaderv_490
	mov [varlistBoxDef_ptr], eax
	mov eax, [edx+0x12c]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_490
	mov [varlistBoxDef_t], eax
	add eax, 0x150
	mov [varMaterialHandle], eax
	call _Z19Mark_MaterialHandlev
_Z17Mark_XAssetHeaderv_490:
	add edi, 0x4
	add dword [ebp-0x38], 0x1
	mov eax, [ebp-0x38]
	cmp [ebp-0x3c], eax
	jnz _Z17Mark_XAssetHeaderv_570
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_540:
	mov edx, ebx
	jmp _Z17Mark_XAssetHeaderv_560
_Z17Mark_XAssetHeaderv_200:
	mov eax, [varXAssetHeader]
	mov [varLocalizeEntryPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varLocalizeEntry], eax
	mov [esp], eax
	call _Z23Mark_LocalizeEntryAssetP13LocalizeEntry
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_210:
	mov eax, [varXAssetHeader]
	mov [varWeaponDefPtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varWeaponDef], eax
	mov [esp], eax
	call _Z19Mark_WeaponDefAssetP9WeaponDef
	add esp, 0x5c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z14Mark_WeaponDefv
_Z17Mark_XAssetHeaderv_220:
	mov eax, [varXAssetHeader]
	mov [varFxEffectDefHandle], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varFxEffectDef], eax
	mov [esp], eax
	call _Z21Mark_FxEffectDefAssetP11FxEffectDef
	mov edx, [varFxEffectDef]
	mov eax, [edx+0x1c]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varFxElemDef], eax
	mov esi, [edx+0x10]
	add esi, [edx+0x14]
	add esi, [edx+0x18]
	mov ebx, eax
	test esi, esi
	jle _Z17Mark_XAssetHeaderv_250
	xor edi, edi
_Z17Mark_XAssetHeaderv_580:
	mov [varFxElemDef], ebx
	lea eax, [ebx+0xbc]
	mov [varFxElemDefVisuals], eax
	call _Z21Mark_FxElemDefVisualsv
	add ebx, 0xfc
	add edi, 0x1
	cmp esi, edi
	jnz _Z17Mark_XAssetHeaderv_580
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_240:
	mov eax, [varXAssetHeader]
	mov [varRawFilePtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varRawFile], eax
	mov [esp], eax
	call _Z17Mark_RawFileAssetP7RawFile
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_230:
	mov eax, [varXAssetHeader]
	mov [varFxImpactTablePtr], eax
	mov eax, [eax]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varFxImpactTable], eax
	mov [esp], eax
	call _Z23Mark_FxImpactTableAssetP13FxImpactTable
	mov eax, [varFxImpactTable]
	mov eax, [eax+0x4]
	mov [ebp-0x2c], eax
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_250
	mov [varFxImpactEntry], eax
	mov dword [ebp-0x30], 0x0
_Z17Mark_XAssetHeaderv_670:
	mov edx, [ebp-0x2c]
	mov [varFxImpactEntry], edx
	mov [ebp-0x28], edx
	mov [varFxEffectDefHandle], edx
	mov dword [ebp-0x20], 0x1d
	jmp _Z17Mark_XAssetHeaderv_590
_Z17Mark_XAssetHeaderv_610:
	add dword [ebp-0x28], 0x4
	sub dword [ebp-0x20], 0x1
	jz _Z17Mark_XAssetHeaderv_600
	mov edx, [ebp-0x28]
_Z17Mark_XAssetHeaderv_590:
	mov [varFxEffectDefHandle], edx
	mov eax, [edx]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_610
	mov [varFxEffectDef], eax
	mov [esp], eax
	call _Z21Mark_FxEffectDefAssetP11FxEffectDef
	mov edx, [varFxEffectDef]
	mov eax, [edx+0x1c]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_610
	mov [varFxElemDef], eax
	mov esi, [edx+0x10]
	add esi, [edx+0x14]
	add esi, [edx+0x18]
	mov ebx, eax
	test esi, esi
	jle _Z17Mark_XAssetHeaderv_610
	xor edi, edi
_Z17Mark_XAssetHeaderv_620:
	mov [varFxElemDef], ebx
	lea eax, [ebx+0xbc]
	mov [varFxElemDefVisuals], eax
	call _Z21Mark_FxElemDefVisualsv
	add ebx, 0xfc
	add edi, 0x1
	cmp esi, edi
	jnz _Z17Mark_XAssetHeaderv_620
	jmp _Z17Mark_XAssetHeaderv_610
_Z17Mark_XAssetHeaderv_600:
	mov eax, [varFxImpactEntry]
	add eax, 0x74
	mov [ebp-0x24], eax
	mov [varFxEffectDefHandle], eax
	mov dword [ebp-0x1c], 0x4
	mov edx, eax
	mov [varFxEffectDefHandle], edx
	mov eax, [edx]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_630
_Z17Mark_XAssetHeaderv_660:
	mov [varFxEffectDef], eax
	mov [esp], eax
	call _Z21Mark_FxEffectDefAssetP11FxEffectDef
	mov edx, [varFxEffectDef]
	mov eax, [edx+0x1c]
	test eax, eax
	jz _Z17Mark_XAssetHeaderv_630
	mov [varFxElemDef], eax
	mov esi, [edx+0x10]
	add esi, [edx+0x14]
	add esi, [edx+0x18]
	mov ebx, eax
	test esi, esi
	jg _Z17Mark_XAssetHeaderv_640
_Z17Mark_XAssetHeaderv_630:
	add dword [ebp-0x24], 0x4
	sub dword [ebp-0x1c], 0x1
	jz _Z17Mark_XAssetHeaderv_650
	mov edx, [ebp-0x24]
	mov [varFxEffectDefHandle], edx
	mov eax, [edx]
	test eax, eax
	jnz _Z17Mark_XAssetHeaderv_660
	jmp _Z17Mark_XAssetHeaderv_630
_Z17Mark_XAssetHeaderv_650:
	add dword [ebp-0x2c], 0x84
	add dword [ebp-0x30], 0x1
	cmp dword [ebp-0x30], 0xc
	jnz _Z17Mark_XAssetHeaderv_670
	jmp _Z17Mark_XAssetHeaderv_250
_Z17Mark_XAssetHeaderv_640:
	xor edi, edi
_Z17Mark_XAssetHeaderv_680:
	mov [varFxElemDef], ebx
	lea eax, [ebx+0xbc]
	mov [varFxElemDefVisuals], eax
	call _Z21Mark_FxElemDefVisualsv
	add ebx, 0xfc
	add edi, 0x1
	cmp esi, edi
	jnz _Z17Mark_XAssetHeaderv_680
	jmp _Z17Mark_XAssetHeaderv_630


;Load_FxElemVisuals(unsigned char)
_Z18Load_FxElemVisualsh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	movzx edx, byte [ebp+0x8]
	mov eax, [varFxElemDef]
	movzx eax, byte [eax+0xb0]
	cmp al, 0x5
	jz _Z18Load_FxElemVisualsh_10
	cmp al, 0xa
	jz _Z18Load_FxElemVisualsh_20
	cmp al, 0x8
	jz _Z18Load_FxElemVisualsh_30
	sub al, 0x6
	cmp al, 0x1
	jbe _Z18Load_FxElemVisualsh_40
	mov eax, [varFxElemVisuals]
	mov [varMaterialHandle], eax
	movzx eax, dl
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z19Load_MaterialHandleh
_Z18Load_FxElemVisualsh_40:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z18Load_FxElemVisualsh_10:
	mov eax, [varFxElemVisuals]
	mov [varXModelPtr], eax
	movzx eax, dl
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z14Load_XModelPtrh
_Z18Load_FxElemVisualsh_20:
	mov eax, [varFxElemVisuals]
	mov [varFxEffectDefRef], eax
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	movzx eax, dl
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_FxElemVisualsh_50
	add eax, 0x1
	jz _Z18Load_FxElemVisualsh_60
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z18Load_FxElemVisualsh_50:
	mov eax, [varFxEffectDefRef]
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z24Load_FxEffectDefFromNamePPKc
_Z18Load_FxElemVisualsh_30:
	mov eax, [varFxElemVisuals]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	movzx eax, dl
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_FxElemVisualsh_40
	add eax, 0x1
	jz _Z18Load_FxElemVisualsh_70
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z18Load_FxElemVisualsh_60:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z18Load_FxElemVisualsh_50
_Z18Load_FxElemVisualsh_70:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [ebp+0x8], edx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_XStringCustomPPKc


;Load_FxImpactEntry(unsigned char)
_Z18Load_FxImpactEntryh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x84
	mov eax, [varFxImpactEntry]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varFxImpactEntry]
	mov [varFxEffectDefHandle], eax
	mov dword [esp+0x8], 0x74
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxEffectDefHandle]
	mov esi, 0x1d
_Z18Load_FxImpactEntryh_10:
	mov [varFxEffectDefHandle], ebx
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z18Load_FxImpactEntryh_10
	mov eax, [varFxImpactEntry]
	add eax, 0x74
	mov [varFxEffectDefHandle], eax
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxEffectDefHandle]
	mov esi, 0x4
_Z18Load_FxImpactEntryh_20:
	mov [varFxEffectDefHandle], ebx
	mov dword [esp], 0x0
	call _Z22Load_FxEffectDefHandleh
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z18Load_FxImpactEntryh_20
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	ret
	nop


;Load_FxImpactTable(unsigned char)
_Z18Load_FxImpactTableh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x8
	mov eax, [varFxImpactTable]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varFxImpactTable]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_FxImpactTableh_10
	add eax, 0x1
	jz _Z18Load_FxImpactTableh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z18Load_FxImpactTableh_10:
	mov ebx, [varFxImpactTable]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z18Load_FxImpactTableh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varFxImpactTable]
	mov eax, [eax+0x4]
	mov [varFxImpactEntry], eax
	mov dword [esp+0x8], 0x630
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxImpactEntry]
	mov esi, 0xc
_Z18Load_FxImpactTableh_40:
	mov [varFxImpactEntry], ebx
	mov dword [esp], 0x0
	call _Z18Load_FxImpactEntryh
	add ebx, 0x84
	sub esi, 0x1
	jnz _Z18Load_FxImpactTableh_40
_Z18Load_FxImpactTableh_30:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z18Load_FxImpactTableh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z18Load_FxImpactTableh_10


;Load_PhysPresetPtr(unsigned char)
_Z18Load_PhysPresetPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varPhysPresetPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varPhysPresetPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z18Load_PhysPresetPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z18Load_PhysPresetPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z18Load_PhysPresetPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z18Load_PhysPresetPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varPhysPresetPtr]
	mov eax, [eax]
	mov [varPhysPreset], eax
	cmp esi, 0xfffffffe
	jz _Z18Load_PhysPresetPtrh_30
	xor esi, esi
_Z18Load_PhysPresetPtrh_80:
	mov dword [esp+0x8], 0x2c
	mov eax, [varPhysPreset]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varPhysPreset]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_PhysPresetPtrh_40
	add eax, 0x1
	jz _Z18Load_PhysPresetPtrh_50
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z18Load_PhysPresetPtrh_40:
	mov eax, [varPhysPreset]
	add eax, 0x1c
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_PhysPresetPtrh_60
	add eax, 0x1
	jz _Z18Load_PhysPresetPtrh_70
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z18Load_PhysPresetPtrh_60:
	call _Z15DB_PopStreamPosv
	mov eax, [varPhysPresetPtr]
	mov [esp], eax
	call _Z20Load_PhysPresetAssetPP10PhysPreset
	test esi, esi
	jz _Z18Load_PhysPresetPtrh_10
	mov eax, [varPhysPresetPtr]
	mov eax, [eax]
	mov [esi], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z18Load_PhysPresetPtrh_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z18Load_PhysPresetPtrh_40
_Z18Load_PhysPresetPtrh_70:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z18Load_PhysPresetPtrh_60
_Z18Load_PhysPresetPtrh_30:
	call _Z16DB_InsertPointerv
	mov esi, eax
	jmp _Z18Load_PhysPresetPtrh_80
	add [eax], al


;Load_XAnimPartsPtr(unsigned char)
_Z18Load_XAnimPartsPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varXAnimPartsPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varXAnimPartsPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z18Load_XAnimPartsPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z18Load_XAnimPartsPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z18Load_XAnimPartsPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z18Load_XAnimPartsPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXAnimPartsPtr]
	mov eax, [eax]
	mov [varXAnimParts], eax
	cmp esi, 0xfffffffe
	jz _Z18Load_XAnimPartsPtrh_30
	xor ebx, ebx
_Z18Load_XAnimPartsPtrh_40:
	mov dword [esp], 0x1
	call _Z15Load_XAnimPartsh
	mov eax, [varXAnimPartsPtr]
	mov [esp], eax
	call _Z20Load_XAnimPartsAssetPP10XAnimParts
	test ebx, ebx
	jz _Z18Load_XAnimPartsPtrh_10
	mov eax, [varXAnimPartsPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z18Load_XAnimPartsPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z18Load_XAnimPartsPtrh_40
	nop


;Load_itemDefData_t(unsigned char)
_Z18Load_itemDefData_th:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	movzx edx, byte [ebp+0x8]
	mov eax, [varitemDef_t]
	mov eax, [eax+0xb4]
	cmp eax, 0x6
	jz _Z18Load_itemDefData_th_10
	cmp eax, 0x4
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0x9
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0x10
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0x12
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0xb
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0xe
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0xa
	jz _Z18Load_itemDefData_th_20
	test eax, eax
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0x11
	jz _Z18Load_itemDefData_th_20
	cmp eax, 0xc
	jz _Z18Load_itemDefData_th_30
	cmp eax, 0xd
	jnz _Z18Load_itemDefData_th_40
	mov eax, [varitemDefData_t]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	movzx eax, dl
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_itemDefData_th_40
	add eax, 0x1
	jz _Z18Load_itemDefData_th_50
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z18Load_itemDefData_th_20:
	mov eax, [varitemDefData_t]
	mov [vareditFieldDef_ptr], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	movzx eax, dl
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [vareditFieldDef_ptr]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_itemDefData_th_40
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [vareditFieldDef_ptr]
	mov eax, [eax]
	mov [vareditFieldDef_t], eax
	mov dword [esp+0x8], 0x20
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z18Load_itemDefData_th_40:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z18Load_itemDefData_th_10:
	mov eax, [varitemDefData_t]
	mov [varlistBoxDef_ptr], eax
	movzx eax, dl
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z19Load_listBoxDef_ptrh
_Z18Load_itemDefData_th_30:
	mov eax, [varitemDefData_t]
	mov [varmultiDef_ptr], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	movzx eax, dl
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varmultiDef_ptr]
	mov eax, [ebx]
	test eax, eax
	jz _Z18Load_itemDefData_th_40
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varmultiDef_ptr]
	mov eax, [eax]
	mov [varmultiDef_t], eax
	mov dword [ebp+0x8], 0x1
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15Load_multiDef_th
_Z18Load_itemDefData_th_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [ebp+0x8], edx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_XStringCustomPPKc
	nop


;Load_GameWorldMpPtr(unsigned char)
_Z19Load_GameWorldMpPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varGameWorldMpPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varGameWorldMpPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z19Load_GameWorldMpPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z19Load_GameWorldMpPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z19Load_GameWorldMpPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GameWorldMpPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGameWorldMpPtr]
	mov eax, [eax]
	mov [varGameWorldMp], eax
	cmp esi, 0xfffffffe
	jz _Z19Load_GameWorldMpPtrh_30
	xor esi, esi
_Z19Load_GameWorldMpPtrh_60:
	mov dword [esp+0x8], 0x4
	mov eax, [varGameWorldMp]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varGameWorldMp]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_GameWorldMpPtrh_40
	add eax, 0x1
	jz _Z19Load_GameWorldMpPtrh_50
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z19Load_GameWorldMpPtrh_40:
	call _Z15DB_PopStreamPosv
	mov eax, [varGameWorldMpPtr]
	mov [esp], eax
	call _Z21Load_GameWorldMpAssetPP11GameWorldMp
	test esi, esi
	jz _Z19Load_GameWorldMpPtrh_10
	mov eax, [varGameWorldMpPtr]
	mov eax, [eax]
	mov [esi], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GameWorldMpPtrh_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z19Load_GameWorldMpPtrh_40
_Z19Load_GameWorldMpPtrh_30:
	call _Z16DB_InsertPointerv
	mov esi, eax
	jmp _Z19Load_GameWorldMpPtrh_60
	add [eax], al


;Load_GameWorldSpPtr(unsigned char)
_Z19Load_GameWorldSpPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varGameWorldSpPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varGameWorldSpPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z19Load_GameWorldSpPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z19Load_GameWorldSpPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z19Load_GameWorldSpPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GameWorldSpPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGameWorldSpPtr]
	mov eax, [eax]
	mov [varGameWorldSp], eax
	cmp esi, 0xfffffffe
	jz _Z19Load_GameWorldSpPtrh_30
	xor esi, esi
_Z19Load_GameWorldSpPtrh_60:
	mov dword [esp+0x8], 0x2c
	mov eax, [varGameWorldSp]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varGameWorldSp]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_GameWorldSpPtrh_40
	add eax, 0x1
	jz _Z19Load_GameWorldSpPtrh_50
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z19Load_GameWorldSpPtrh_40:
	mov eax, [varGameWorldSp]
	add eax, 0x4
	mov [varPathData], eax
	mov dword [esp], 0x0
	call _Z13Load_PathDatah
	call _Z15DB_PopStreamPosv
	mov eax, [varGameWorldSpPtr]
	mov [esp], eax
	call _Z21Load_GameWorldSpAssetPP11GameWorldSp
	test esi, esi
	jz _Z19Load_GameWorldSpPtrh_10
	mov eax, [varGameWorldSpPtr]
	mov eax, [eax]
	mov [esi], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GameWorldSpPtrh_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z19Load_GameWorldSpPtrh_40
_Z19Load_GameWorldSpPtrh_30:
	call _Z16DB_InsertPointerv
	mov esi, eax
	jmp _Z19Load_GameWorldSpPtrh_60
	nop
	add [eax], al


;Load_GfxLightDefPtr(unsigned char)
_Z19Load_GfxLightDefPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varGfxLightDefPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxLightDefPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z19Load_GfxLightDefPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z19Load_GfxLightDefPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z19Load_GfxLightDefPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GfxLightDefPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxLightDefPtr]
	mov eax, [eax]
	mov [varGfxLightDef], eax
	cmp esi, 0xfffffffe
	jz _Z19Load_GfxLightDefPtrh_30
	xor ebx, ebx
_Z19Load_GfxLightDefPtrh_40:
	mov dword [esp], 0x1
	call _Z16Load_GfxLightDefh
	mov eax, [varGfxLightDefPtr]
	mov [esp], eax
	call _Z18Load_LightDefAssetPP11GfxLightDef
	test ebx, ebx
	jz _Z19Load_GfxLightDefPtrh_10
	mov eax, [varGfxLightDefPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GfxLightDefPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z19Load_GfxLightDefPtrh_40
	nop
	add [eax], al


;Load_GfxLightRegion(unsigned char)
_Z19Load_GfxLightRegionh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x8
	mov eax, [varGfxLightRegion]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightRegion]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z19Load_GfxLightRegionh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varGfxLightRegion]
	mov edx, [eax+0x4]
	mov [varGfxLightRegionHull], edx
	mov edi, [eax]
	lea eax, [edi+edi*4]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varGfxLightRegionHull]
	test edi, edi
	jg _Z19Load_GfxLightRegionh_20
_Z19Load_GfxLightRegionh_10:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z19Load_GfxLightRegionh_20:
	mov dword [ebp-0x1c], 0x0
_Z19Load_GfxLightRegionh_40:
	mov [varGfxLightRegionHull], esi
	mov dword [esp+0x8], 0x50
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxLightRegionHull]
	mov eax, [ebx+0x4c]
	test eax, eax
	jz _Z19Load_GfxLightRegionh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4c], eax
	mov eax, [varGfxLightRegionHull]
	mov edx, [eax+0x4c]
	mov [varGfxLightRegionAxis], edx
	mov eax, [eax+0x48]
	lea eax, [eax+eax*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z19Load_GfxLightRegionh_30:
	add esi, 0x50
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jnz _Z19Load_GfxLightRegionh_40
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret


;Load_GfxTextureLoad(unsigned char)
_Z19Load_GfxTextureLoadh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varGfxTextureLoad]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxTextureLoad]
	mov esi, [ebx]
	test esi, esi
	jz _Z19Load_GfxTextureLoadh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z19Load_GfxTextureLoadh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z19Load_GfxTextureLoadh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GfxTextureLoadh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxTextureLoad]
	mov eax, [eax]
	mov [varGfxImageLoadDef], eax
	cmp esi, 0xfffffffe
	jz _Z19Load_GfxTextureLoadh_30
	xor ebx, ebx
_Z19Load_GfxTextureLoadh_40:
	mov dword [esp+0x8], 0x10
	mov eax, [varGfxImageLoadDef]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxImageLoadDef]
	lea edx, [eax+0x10]
	mov [varbyte], edx
	mov eax, [eax+0xc]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxImage]
	mov [esp+0x4], eax
	mov eax, [varGfxTextureLoad]
	mov [esp], eax
	call _Z12Load_TexturePP15GfxImageLoadDefP8GfxImage
	test ebx, ebx
	jz _Z19Load_GfxTextureLoadh_10
	mov eax, [varGfxTextureLoad]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_GfxTextureLoadh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z19Load_GfxTextureLoadh_40
	add [eax], al


;Load_ItemKeyHandler(unsigned char)
_Z19Load_ItemKeyHandlerh:
_Z19Load_ItemKeyHandlerh_40:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0xc
	mov eax, [varItemKeyHandler]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varItemKeyHandler]
	add eax, 0x4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_ItemKeyHandlerh_10
	add eax, 0x1
	jz _Z19Load_ItemKeyHandlerh_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z19Load_ItemKeyHandlerh_10:
	mov ebx, [varItemKeyHandler]
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z19Load_ItemKeyHandlerh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varItemKeyHandler]
	mov eax, [eax+0x8]
	mov [varItemKeyHandlerNext], eax
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varItemKeyHandlerNext]
	mov [varItemKeyHandler], eax
	mov dword [ebp+0x8], 0x0
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z19Load_ItemKeyHandlerh_40
_Z19Load_ItemKeyHandlerh_30:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z19Load_ItemKeyHandlerh_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z19Load_ItemKeyHandlerh_10


;Load_LoadedSoundPtr(unsigned char)
_Z19Load_LoadedSoundPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varLoadedSoundPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varLoadedSoundPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z19Load_LoadedSoundPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z19Load_LoadedSoundPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z19Load_LoadedSoundPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_LoadedSoundPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varLoadedSoundPtr]
	mov eax, [eax]
	mov [varLoadedSound], eax
	cmp esi, 0xfffffffe
	jz _Z19Load_LoadedSoundPtrh_30
	xor esi, esi
_Z19Load_LoadedSoundPtrh_60:
	mov dword [esp+0x8], 0x2c
	mov eax, [varLoadedSound]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varLoadedSound]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_LoadedSoundPtrh_40
	add eax, 0x1
	jz _Z19Load_LoadedSoundPtrh_50
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z19Load_LoadedSoundPtrh_40:
	mov eax, [varLoadedSound]
	add eax, 0x4
	mov [varMssSound], eax
	mov dword [esp], 0x0
	call _Z13Load_MssSoundh
	call _Z15DB_PopStreamPosv
	mov eax, [varLoadedSoundPtr]
	mov [esp], eax
	call _Z21Load_LoadedSoundAssetPP11LoadedSound
	test esi, esi
	jz _Z19Load_LoadedSoundPtrh_10
	mov eax, [varLoadedSoundPtr]
	mov eax, [eax]
	mov [esi], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_LoadedSoundPtrh_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z19Load_LoadedSoundPtrh_40
_Z19Load_LoadedSoundPtrh_30:
	call _Z16DB_InsertPointerv
	mov esi, eax
	jmp _Z19Load_LoadedSoundPtrh_60
	nop
	add [eax], al


;Load_MaterialHandle(unsigned char)
_Z19Load_MaterialHandleh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varMaterialHandle]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varMaterialHandle]
	mov esi, [ebx]
	test esi, esi
	jz _Z19Load_MaterialHandleh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z19Load_MaterialHandleh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z19Load_MaterialHandleh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_MaterialHandleh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialHandle]
	mov eax, [eax]
	mov [varMaterial], eax
	cmp esi, 0xfffffffe
	jz _Z19Load_MaterialHandleh_30
	xor ebx, ebx
_Z19Load_MaterialHandleh_40:
	mov dword [esp], 0x1
	call _Z13Load_Materialh
	mov eax, [varMaterialHandle]
	mov [esp], eax
	call _Z18Load_MaterialAssetPP8Material
	test ebx, ebx
	jz _Z19Load_MaterialHandleh_10
	mov eax, [varMaterialHandle]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z19Load_MaterialHandleh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z19Load_MaterialHandleh_40
	nop
	add [eax], al


;Load_StringTablePtr(unsigned char)
_Z19Load_StringTablePtrh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x4
	mov eax, [varStringTablePtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varStringTablePtr]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_StringTablePtrh_10
	add eax, 0x1
	jz _Z19Load_StringTablePtrh_20
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z19Load_StringTablePtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varStringTablePtr]
	mov eax, [eax]
	mov [varStringTable], eax
	mov dword [esp], 0x1
	call _Z16Load_StringTableh
	mov eax, [varStringTablePtr]
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z21Load_StringTableAssetPP11StringTable
_Z19Load_StringTablePtrh_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	add [eax], al


;Load_XAnimDeltaPart(unsigned char)
_Z19Load_XAnimDeltaParth:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x8
	mov eax, [varXAnimDeltaPart]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimDeltaPart]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_XAnimDeltaParth_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXAnimDeltaPart]
	mov eax, [eax]
	mov [varXAnimPartTrans], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varXAnimPartTrans]
	lea edx, [eax+0x4]
	mov [varXAnimPartTransData], edx
	cmp word [eax], 0x0
	jnz _Z19Load_XAnimDeltaParth_20
	mov [varvec3_t], edx
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXAnimDeltaPart]
_Z19Load_XAnimDeltaParth_10:
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z19Load_XAnimDeltaParth_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varXAnimDeltaPart]
	mov eax, [eax+0x4]
	mov [varXAnimDeltaPartQuat], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varXAnimDeltaPartQuat]
	lea edx, [eax+0x4]
	mov [varXAnimDeltaPartQuatData], edx
	cmp word [eax], 0x0
	jnz _Z19Load_XAnimDeltaParth_40
	mov [varXQuat2], edx
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z19Load_XAnimDeltaParth_30:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z19Load_XAnimDeltaParth_40:
	mov [varXAnimDeltaPartQuatDataFrames], edx
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edx, [varXAnimDeltaPartQuatDataFrames]
	add edx, 0x4
	mov [varXAnimDynamicIndicesDeltaQuat], edx
	mov eax, [varXAnimParts]
	cmp word [eax+0xe], 0xff
	ja _Z19Load_XAnimDeltaParth_50
	mov dword [esp+0x8], 0x0
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edx, [varXAnimDynamicIndicesDeltaQuat]
	mov [varbyte], edx
	mov eax, [varXAnimDeltaPartQuat]
	movzx eax, word [eax]
	add eax, 0x1
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z19Load_XAnimDeltaParth_80:
	mov ebx, [varXAnimDeltaPartQuatDataFrames]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_XAnimDeltaParth_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXAnimDeltaPartQuatDataFrames]
	mov edx, [eax]
	mov [varXQuat2], edx
	mov eax, [varXAnimDeltaPartQuat]
	movzx eax, word [eax]
	test ax, ax
	jnz _Z19Load_XAnimDeltaParth_60
	xor eax, eax
_Z19Load_XAnimDeltaParth_100:
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z19Load_XAnimDeltaParth_20:
	mov [varXAnimPartTransFrames], edx
	mov dword [esp+0x8], 0x1c
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edx, [varXAnimPartTransFrames]
	add edx, 0x1c
	mov [varXAnimDynamicIndicesTrans], edx
	mov eax, [varXAnimParts]
	cmp word [eax+0xe], 0xff
	ja _Z19Load_XAnimDeltaParth_70
	mov dword [esp+0x8], 0x0
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edx, [varXAnimDynamicIndicesTrans]
	mov [varbyte], edx
	mov eax, [varXAnimPartTrans]
	movzx eax, word [eax]
	add eax, 0x1
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z19Load_XAnimDeltaParth_90:
	mov eax, [varXAnimPartTransFrames]
	add eax, 0x18
	mov [varXAnimDynamicFrames], eax
	mov dword [esp], 0x0
	call _Z23Load_XAnimDynamicFramesh
	mov ebx, [varXAnimDeltaPart]
	jmp _Z19Load_XAnimDeltaParth_10
_Z19Load_XAnimDeltaParth_50:
	mov dword [esp+0x8], 0x0
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edx, [varXAnimDynamicIndicesDeltaQuat]
	mov [varUnsignedShort], edx
	mov eax, [varXAnimDeltaPartQuat]
	movzx eax, word [eax]
	lea eax, [eax+eax+0x2]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z19Load_XAnimDeltaParth_80
_Z19Load_XAnimDeltaParth_70:
	mov dword [esp+0x8], 0x0
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edx, [varXAnimDynamicIndicesTrans]
	mov [varUnsignedShort], edx
	mov eax, [varXAnimPartTrans]
	movzx eax, word [eax]
	lea eax, [eax+eax+0x2]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z19Load_XAnimDeltaParth_90
_Z19Load_XAnimDeltaParth_60:
	movzx eax, ax
	add eax, 0x1
	jmp _Z19Load_XAnimDeltaParth_100
	nop


;Load_listBoxDef_ptr(unsigned char)
_Z19Load_listBoxDef_ptrh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x4
	mov eax, [varlistBoxDef_ptr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varlistBoxDef_ptr]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_listBoxDef_ptrh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varlistBoxDef_ptr]
	mov eax, [eax]
	mov [varlistBoxDef_t], eax
	mov dword [esp+0x8], 0x154
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varlistBoxDef_t]
	add eax, 0x120
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z19Load_listBoxDef_ptrh_20
	add eax, 0x1
	jz _Z19Load_listBoxDef_ptrh_30
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z19Load_listBoxDef_ptrh_20:
	mov eax, [varlistBoxDef_t]
	add eax, 0x150
	mov [varMaterialHandle], eax
	mov dword [ebp+0x8], 0x0
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z19Load_MaterialHandleh
_Z19Load_listBoxDef_ptrh_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z19Load_listBoxDef_ptrh_30:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	mov eax, [varlistBoxDef_t]
	add eax, 0x150
	mov [varMaterialHandle], eax
	mov dword [ebp+0x8], 0x0
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z19Load_MaterialHandleh
	nop
	add [eax], al


;Mark_MaterialHandle()
_Z19Mark_MaterialHandlev:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov eax, [varMaterialHandle]
	mov eax, [eax]
	test eax, eax
	jz _Z19Mark_MaterialHandlev_10
	mov [varMaterial], eax
	mov [esp], eax
	call _Z18Mark_MaterialAssetP8Material
	mov edx, [varMaterial]
	lea eax, [edx+0x40]
	mov [varMaterialTechniqueSetPtr], eax
	mov eax, [edx+0x40]
	test eax, eax
	jz _Z19Mark_MaterialHandlev_20
	mov [varMaterialTechniqueSet], eax
	mov [esp], eax
	call _Z30Mark_MaterialTechniqueSetAssetP20MaterialTechniqueSet
	mov edx, [varMaterial]
_Z19Mark_MaterialHandlev_20:
	mov ebx, [edx+0x44]
	test ebx, ebx
	jz _Z19Mark_MaterialHandlev_10
	mov [varMaterialTextureDef], ebx
	movzx edi, byte [edx+0x3a]
	test edi, edi
	jle _Z19Mark_MaterialHandlev_10
	xor esi, esi
	jmp _Z19Mark_MaterialHandlev_30
_Z19Mark_MaterialHandlev_50:
	mov [varGfxImagePtr], eax
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z19Mark_MaterialHandlev_40
_Z19Mark_MaterialHandlev_60:
	mov [varGfxImage], eax
	mov [esp], eax
	call _Z18Mark_GfxImageAssetP8GfxImage
_Z19Mark_MaterialHandlev_40:
	add ebx, 0xc
	add esi, 0x1
	cmp edi, esi
	jz _Z19Mark_MaterialHandlev_10
_Z19Mark_MaterialHandlev_30:
	mov [varMaterialTextureDef], ebx
	lea eax, [ebx+0x8]
	mov [varMaterialTextureDefInfo], eax
	cmp byte [ebx+0x7], 0xb
	jnz _Z19Mark_MaterialHandlev_50
	mov edx, [ebx+0x8]
	test edx, edx
	jz _Z19Mark_MaterialHandlev_40
	mov [varwater_t], edx
	lea eax, [edx+0x40]
	mov [varGfxImagePtr], eax
	mov eax, [edx+0x40]
	test eax, eax
	jnz _Z19Mark_MaterialHandlev_60
	add ebx, 0xc
	add esi, 0x1
	cmp edi, esi
	jnz _Z19Mark_MaterialHandlev_30
_Z19Mark_MaterialHandlev_10:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
	nop


;Load_FxElemDefVisuals(unsigned char)
_Z21Load_FxElemDefVisualsh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	movzx edx, byte [ebp+0x8]
	mov eax, [varFxElemDef]
	cmp byte [eax+0xb0], 0x9
	jz _Z21Load_FxElemDefVisualsh_10
	cmp byte [eax+0xb1], 0x1
	jbe _Z21Load_FxElemDefVisualsh_20
	mov ebx, [varFxElemDefVisuals]
	mov eax, [ebx]
	test eax, eax
	jz _Z21Load_FxElemDefVisualsh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varFxElemDefVisuals]
	mov edx, [eax]
	mov [varFxElemVisuals], edx
	mov eax, [varFxElemDef]
	movzx edi, byte [eax+0xb1]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varFxElemVisuals]
	test edi, edi
	jg _Z21Load_FxElemDefVisualsh_40
_Z21Load_FxElemDefVisualsh_30:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z21Load_FxElemDefVisualsh_40:
	xor esi, esi
_Z21Load_FxElemDefVisualsh_50:
	mov [varFxElemVisuals], ebx
	mov dword [esp], 0x0
	call _Z18Load_FxElemVisualsh
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z21Load_FxElemDefVisualsh_50
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z21Load_FxElemDefVisualsh_10:
	mov ebx, [varFxElemDefVisuals]
	mov edx, [ebx]
	test edx, edx
	jz _Z21Load_FxElemDefVisualsh_30
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varFxElemDefVisuals]
	mov edx, [eax]
	mov [varFxElemMarkVisuals], edx
	mov eax, [varFxElemDef]
	movzx eax, byte [eax+0xb1]
	mov [ebp-0x20], eax
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov edi, [varFxElemMarkVisuals]
	mov eax, [ebp-0x20]
	test eax, eax
	jle _Z21Load_FxElemDefVisualsh_30
	mov dword [ebp-0x1c], 0x0
_Z21Load_FxElemDefVisualsh_70:
	mov [varFxElemMarkVisuals], edi
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], edi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varFxElemMarkVisuals]
	mov [varMaterialHandle], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialHandle]
	mov esi, 0x2
_Z21Load_FxElemDefVisualsh_60:
	mov [varMaterialHandle], ebx
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z21Load_FxElemDefVisualsh_60
	add edi, 0x8
	add dword [ebp-0x1c], 0x1
	mov eax, [ebp-0x1c]
	cmp [ebp-0x20], eax
	jnz _Z21Load_FxElemDefVisualsh_70
	jmp _Z21Load_FxElemDefVisualsh_30
_Z21Load_FxElemDefVisualsh_20:
	mov eax, [varFxElemDefVisuals]
	mov [varFxElemVisuals], eax
	movzx eax, dl
	mov [ebp+0x8], eax
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z18Load_FxElemVisualsh


;Load_FxImpactTablePtr(unsigned char)
_Z21Load_FxImpactTablePtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varFxImpactTablePtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varFxImpactTablePtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z21Load_FxImpactTablePtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z21Load_FxImpactTablePtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z21Load_FxImpactTablePtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z21Load_FxImpactTablePtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varFxImpactTablePtr]
	mov eax, [eax]
	mov [varFxImpactTable], eax
	cmp esi, 0xfffffffe
	jz _Z21Load_FxImpactTablePtrh_30
	xor ebx, ebx
_Z21Load_FxImpactTablePtrh_40:
	mov dword [esp], 0x1
	call _Z18Load_FxImpactTableh
	mov eax, [varFxImpactTablePtr]
	mov [esp], eax
	call _Z23Load_FxImpactTableAssetPP13FxImpactTable
	test ebx, ebx
	jz _Z21Load_FxImpactTablePtrh_10
	mov eax, [varFxImpactTablePtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z21Load_FxImpactTablePtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z21Load_FxImpactTablePtrh_40
	nop


;Load_LocalizeEntryPtr(unsigned char)
_Z21Load_LocalizeEntryPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varLocalizeEntryPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varLocalizeEntryPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z21Load_LocalizeEntryPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z21Load_LocalizeEntryPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z21Load_LocalizeEntryPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z21Load_LocalizeEntryPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varLocalizeEntryPtr]
	mov eax, [eax]
	mov [varLocalizeEntry], eax
	cmp esi, 0xfffffffe
	jz _Z21Load_LocalizeEntryPtrh_30
	xor esi, esi
_Z21Load_LocalizeEntryPtrh_80:
	mov dword [esp+0x8], 0x8
	mov eax, [varLocalizeEntry]
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varLocalizeEntry]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z21Load_LocalizeEntryPtrh_40
	add eax, 0x1
	jz _Z21Load_LocalizeEntryPtrh_50
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z21Load_LocalizeEntryPtrh_40:
	mov eax, [varLocalizeEntry]
	add eax, 0x4
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z21Load_LocalizeEntryPtrh_60
	add eax, 0x1
	jz _Z21Load_LocalizeEntryPtrh_70
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z21Load_LocalizeEntryPtrh_60:
	call _Z15DB_PopStreamPosv
	mov eax, [varLocalizeEntryPtr]
	mov [esp], eax
	call _Z23Load_LocalizeEntryAssetPP13LocalizeEntry
	test esi, esi
	jz _Z21Load_LocalizeEntryPtrh_10
	mov eax, [varLocalizeEntryPtr]
	mov eax, [eax]
	mov [esi], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z21Load_LocalizeEntryPtrh_50:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z21Load_LocalizeEntryPtrh_40
_Z21Load_LocalizeEntryPtrh_70:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z21Load_LocalizeEntryPtrh_60
_Z21Load_LocalizeEntryPtrh_30:
	call _Z16DB_InsertPointerv
	mov esi, eax
	jmp _Z21Load_LocalizeEntryPtrh_80


;Load_ScriptStringList(unsigned char)
_Z21Load_ScriptStringListh:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x8
	mov eax, [varScriptStringList]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov ebx, [varScriptStringList]
	mov edx, [ebx+0x4]
	test edx, edx
	jz _Z21Load_ScriptStringListh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varScriptStringList]
	mov edx, [eax+0x4]
	mov [varTempString], edx
	mov edi, [eax]
	lea eax, [edi*4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov esi, [varTempString]
	test edi, edi
	jg _Z21Load_ScriptStringListh_20
_Z21Load_ScriptStringListh_10:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z21Load_ScriptStringListh_20:
	mov dword [ebp-0x1c], 0x0
	jmp _Z21Load_ScriptStringListh_30
_Z21Load_ScriptStringListh_50:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z21Load_ScriptStringListh_40:
	add esi, 0x4
	add dword [ebp-0x1c], 0x1
	cmp edi, [ebp-0x1c]
	jz _Z21Load_ScriptStringListh_10
_Z21Load_ScriptStringListh_30:
	mov [varTempString], esi
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], esi
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varTempString]
	mov eax, [ebx]
	test eax, eax
	jz _Z21Load_ScriptStringListh_40
	add eax, 0x1
	jnz _Z21Load_ScriptStringListh_50
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varTempString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z21Load_TempStringCustomPPKc
	jmp _Z21Load_ScriptStringListh_40


;Load_snd_alias_list_t(unsigned char)
_Z21Load_snd_alias_list_th:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0xc
	mov eax, [varsnd_alias_list_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varsnd_alias_list_t]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z21Load_snd_alias_list_th_10
	add eax, 0x1
	jz _Z21Load_snd_alias_list_th_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z21Load_snd_alias_list_th_10:
	mov ebx, [varsnd_alias_list_t]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z21Load_snd_alias_list_th_30
	add eax, 0x1
	jz _Z21Load_snd_alias_list_th_40
	lea eax, [ebx+0x4]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z21Load_snd_alias_list_th_30:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z21Load_snd_alias_list_th_40:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varsnd_alias_list_t]
	mov edx, [eax+0x4]
	mov [varsnd_alias_t], edx
	mov edi, [eax+0x8]
	lea eax, [edi+edi*2]
	shl eax, 0x3
	sub eax, edi
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varsnd_alias_t]
	test edi, edi
	jle _Z21Load_snd_alias_list_th_30
	xor esi, esi
_Z21Load_snd_alias_list_th_50:
	mov [varsnd_alias_t], ebx
	mov dword [esp], 0x0
	call _Z16Load_snd_alias_th
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jnz _Z21Load_snd_alias_list_th_50
	jmp _Z21Load_snd_alias_list_th_30
_Z21Load_snd_alias_list_th_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z21Load_snd_alias_list_th_10
	nop


;Mark_FxElemDefVisuals()
_Z21Mark_FxElemDefVisualsv:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov edx, [varFxElemDef]
	cmp byte [edx+0xb0], 0x9
	jz _Z21Mark_FxElemDefVisualsv_10
	cmp byte [edx+0xb1], 0x1
	jbe _Z21Mark_FxElemDefVisualsv_20
	mov eax, [varFxElemDefVisuals]
	mov ebx, [eax]
	test ebx, ebx
	jz _Z21Mark_FxElemDefVisualsv_30
	mov [varFxElemVisuals], ebx
	movzx edi, byte [edx+0xb1]
	test edi, edi
	jle _Z21Mark_FxElemDefVisualsv_30
	xor esi, esi
	jmp _Z21Mark_FxElemDefVisualsv_40
_Z21Mark_FxElemDefVisualsv_60:
	cmp al, 0xa
	jz _Z21Mark_FxElemDefVisualsv_50
	cmp al, 0x8
	jz _Z21Mark_FxElemDefVisualsv_50
	sub al, 0x6
	cmp al, 0x1
	jbe _Z21Mark_FxElemDefVisualsv_50
	mov [varMaterialHandle], ebx
	call _Z19Mark_MaterialHandlev
_Z21Mark_FxElemDefVisualsv_50:
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jz _Z21Mark_FxElemDefVisualsv_30
_Z21Mark_FxElemDefVisualsv_70:
	mov edx, [varFxElemDef]
_Z21Mark_FxElemDefVisualsv_40:
	mov [varFxElemVisuals], ebx
	movzx eax, byte [edx+0xb0]
	cmp al, 0x5
	jnz _Z21Mark_FxElemDefVisualsv_60
	mov [varXModelPtr], ebx
	call _Z14Mark_XModelPtrv
	add ebx, 0x4
	add esi, 0x1
	cmp edi, esi
	jnz _Z21Mark_FxElemDefVisualsv_70
_Z21Mark_FxElemDefVisualsv_30:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z21Mark_FxElemDefVisualsv_10:
	mov eax, [varFxElemDefVisuals]
	mov edi, [eax]
	test edi, edi
	jz _Z21Mark_FxElemDefVisualsv_30
	mov [varFxElemMarkVisuals], edi
	movzx edx, byte [edx+0xb1]
	mov [ebp-0x20], edx
	test edx, edx
	jle _Z21Mark_FxElemDefVisualsv_30
	mov dword [ebp-0x1c], 0x0
_Z21Mark_FxElemDefVisualsv_90:
	mov [varFxElemMarkVisuals], edi
	mov ebx, edi
	mov [varMaterialHandle], edi
	mov esi, 0x2
_Z21Mark_FxElemDefVisualsv_80:
	mov [varMaterialHandle], ebx
	call _Z19Mark_MaterialHandlev
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z21Mark_FxElemDefVisualsv_80
	add edi, 0x8
	add dword [ebp-0x1c], 0x1
	mov eax, [ebp-0x1c]
	cmp [ebp-0x20], eax
	jnz _Z21Mark_FxElemDefVisualsv_90
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z21Mark_FxElemDefVisualsv_20:
	mov ecx, [varFxElemDefVisuals]
	mov [varFxElemVisuals], ecx
	movzx eax, byte [edx+0xb0]
	cmp al, 0x5
	jz _Z21Mark_FxElemDefVisualsv_100
	cmp al, 0xa
	jz _Z21Mark_FxElemDefVisualsv_30
	cmp al, 0x8
	jz _Z21Mark_FxElemDefVisualsv_30
	sub al, 0x6
	cmp al, 0x1
	jbe _Z21Mark_FxElemDefVisualsv_30
	mov [varMaterialHandle], ecx
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z19Mark_MaterialHandlev
_Z21Mark_FxElemDefVisualsv_100:
	mov [varXModelPtr], ecx
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z14Mark_XModelPtrv
	add [eax], al


;Load_FxEffectDefHandle(unsigned char)
_Z22Load_FxEffectDefHandleh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varFxEffectDefHandle]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varFxEffectDefHandle]
	mov esi, [ebx]
	test esi, esi
	jz _Z22Load_FxEffectDefHandleh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z22Load_FxEffectDefHandleh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z22Load_FxEffectDefHandleh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z22Load_FxEffectDefHandleh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varFxEffectDefHandle]
	mov eax, [eax]
	mov [varFxEffectDef], eax
	cmp esi, 0xfffffffe
	jz _Z22Load_FxEffectDefHandleh_30
	xor ebx, ebx
_Z22Load_FxEffectDefHandleh_40:
	mov dword [esp], 0x1
	call _Z16Load_FxEffectDefh
	mov eax, [varFxEffectDefHandle]
	mov [esp], eax
	call _Z21Load_FxEffectDefAssetPPK11FxEffectDef
	test ebx, ebx
	jz _Z22Load_FxEffectDefHandleh_10
	mov eax, [varFxEffectDefHandle]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z22Load_FxEffectDefHandleh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z22Load_FxEffectDefHandleh_40
	nop


;Load_GfxShadowGeometry(unsigned char)
_Z22Load_GfxShadowGeometryh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0xc
	mov eax, [varGfxShadowGeometry]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxShadowGeometry]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z22Load_GfxShadowGeometryh_10
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varGfxShadowGeometry]
	mov edx, [eax+0x4]
	mov [varushort], edx
	movzx eax, word [eax]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxShadowGeometry]
_Z22Load_GfxShadowGeometryh_10:
	mov eax, [ebx+0x8]
	test eax, eax
	jz _Z22Load_GfxShadowGeometryh_20
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varGfxShadowGeometry]
	mov edx, [eax+0x8]
	mov [varushort], edx
	movzx eax, word [eax+0x2]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z22Load_GfxShadowGeometryh_20:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	nop


;Load_pathnode_tree_ptr(unsigned char)
_Z22Load_pathnode_tree_ptrh:
_Z22Load_pathnode_tree_ptrh_40:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varpathnode_tree_ptr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varpathnode_tree_ptr]
	mov eax, [ebx]
	test eax, eax
	jz _Z22Load_pathnode_tree_ptrh_10
	add eax, 0x1
	jz _Z22Load_pathnode_tree_ptrh_20
	mov [ebp+0x8], ebx
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z22Load_pathnode_tree_ptrh_30:
	mov [varpathnode_tree_nodes_t], edx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varpathnode_tree_nodes_t]
	mov edx, [ebx+0x4]
	test edx, edx
	jz _Z22Load_pathnode_tree_ptrh_10
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varpathnode_tree_nodes_t]
	mov edx, [eax+0x4]
	mov [varushort], edx
	mov eax, [eax]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z22Load_pathnode_tree_ptrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	ret
_Z22Load_pathnode_tree_ptrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varpathnode_tree_ptr]
	mov eax, [eax]
	mov [varpathnode_tree_t], eax
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varpathnode_tree_t]
	lea edx, [eax+0x8]
	mov [varpathnode_tree_info_t], edx
	mov ecx, [eax]
	test ecx, ecx
	js _Z22Load_pathnode_tree_ptrh_30
	mov [varpathnode_tree_ptr], edx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varpathnode_tree_ptr]
	mov esi, 0x2
_Z22Load_pathnode_tree_ptrh_50:
	mov [varpathnode_tree_ptr], ebx
	mov dword [esp], 0x0
	call _Z22Load_pathnode_tree_ptrh_40
	add ebx, 0x4
	sub esi, 0x1
	jnz _Z22Load_pathnode_tree_ptrh_50
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	ret
	nop


;Mark_FxEffectDefHandle()
_Z22Mark_FxEffectDefHandlev:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov eax, [varFxEffectDefHandle]
	mov eax, [eax]
	test eax, eax
	jz _Z22Mark_FxEffectDefHandlev_10
	mov [varFxEffectDef], eax
	mov [esp], eax
	call _Z21Mark_FxEffectDefAssetP11FxEffectDef
	mov edx, [varFxEffectDef]
	mov eax, [edx+0x1c]
	test eax, eax
	jz _Z22Mark_FxEffectDefHandlev_10
	mov [varFxElemDef], eax
	mov esi, [edx+0x10]
	add esi, [edx+0x14]
	add esi, [edx+0x18]
	mov ebx, eax
	test esi, esi
	jg _Z22Mark_FxEffectDefHandlev_20
_Z22Mark_FxEffectDefHandlev_10:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z22Mark_FxEffectDefHandlev_20:
	xor edi, edi
_Z22Mark_FxEffectDefHandlev_30:
	mov [varFxElemDef], ebx
	lea eax, [ebx+0xbc]
	mov [varFxElemDefVisuals], eax
	call _Z21Mark_FxElemDefVisualsv
	add ebx, 0xfc
	add edi, 0x1
	cmp esi, edi
	jnz _Z22Mark_FxEffectDefHandlev_30
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
	nop


;Load_GfxWorldDpvsPlanes(unsigned char)
_Z23Load_GfxWorldDpvsPlanesh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x10
	mov eax, [varGfxWorldDpvsPlanes]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldDpvsPlanes]
	mov eax, [ebx+0x4]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsPlanesh_10
	add eax, 0x1
	jz _Z23Load_GfxWorldDpvsPlanesh_20
	lea eax, [ebx+0x4]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
	mov ebx, [varGfxWorldDpvsPlanes]
_Z23Load_GfxWorldDpvsPlanesh_10:
	mov edx, [ebx+0x8]
	test edx, edx
	jz _Z23Load_GfxWorldDpvsPlanesh_30
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x8], eax
	mov eax, [varGfxWorldDpvsPlanes]
	mov edx, [eax+0x8]
	mov [varushort], edx
	mov eax, [varGfxWorld]
	mov eax, [eax+0xc]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsPlanesh_30:
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsPlanes]
	mov eax, [ebx+0xc]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsPlanesh_40
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0xc], eax
	mov eax, [varGfxWorldDpvsPlanes]
	mov edx, [eax+0xc]
	mov [varraw_uint], edx
	mov eax, [eax]
	shl eax, 0xa
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsPlanesh_40:
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z23Load_GfxWorldDpvsPlanesh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4], eax
	mov eax, [varGfxWorldDpvsPlanes]
	mov edx, [eax+0x4]
	mov [varcplane_t], edx
	mov eax, [varGfxWorld]
	mov eax, [eax+0x8]
	lea eax, [eax+eax*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldDpvsPlanes]
	jmp _Z23Load_GfxWorldDpvsPlanesh_10


;Load_GfxWorldDpvsStatic(unsigned char)
_Z23Load_GfxWorldDpvsStatich:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov dword [esp+0x8], 0x68
	mov eax, [varGfxWorldDpvsStatic]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov eax, [ebx+0x2c]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_10
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x2c], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x2c]
	mov [varraw_byte], edx
	mov eax, [eax]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_10:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov eax, [ebx+0x30]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_20
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x30], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x30]
	mov [varraw_byte], edx
	mov eax, [eax]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_20:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov edi, [ebx+0x34]
	test edi, edi
	jz _Z23Load_GfxWorldDpvsStatich_30
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x34], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x34]
	mov [varraw_byte], edx
	mov eax, [eax]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_30:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov esi, [ebx+0x38]
	test esi, esi
	jz _Z23Load_GfxWorldDpvsStatich_40
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x38], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x38]
	mov [varraw_byte], edx
	mov eax, [eax+0x4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_40:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov ecx, [ebx+0x3c]
	test ecx, ecx
	jz _Z23Load_GfxWorldDpvsStatich_50
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x3c], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x3c]
	mov [varraw_byte], edx
	mov eax, [eax+0x4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_50:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov edx, [ebx+0x40]
	test edx, edx
	jz _Z23Load_GfxWorldDpvsStatich_60
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x40], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x40]
	mov [varraw_byte], edx
	mov eax, [eax+0x4]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_60:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov eax, [ebx+0x44]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_70
	mov dword [esp], 0x7f
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x44], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x44]
	mov [varraw_uint128], edx
	mov eax, [eax+0x24]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_70:
	call _Z15DB_PopStreamPosv
	mov ebx, [varGfxWorldDpvsStatic]
	mov eax, [ebx+0x48]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_80
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x48], eax
	mov edx, [varGfxWorldDpvsStatic]
	mov ecx, [edx+0x48]
	mov [varushort], ecx
	mov eax, [edx+0x4]
	add eax, [edx+0x8]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldDpvsStatic]
_Z23Load_GfxWorldDpvsStatich_80:
	mov eax, [ebx+0x4c]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_90
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x4c], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov ecx, [eax+0x4c]
	mov [varGfxStaticModelInst], ecx
	mov eax, [eax]
	lea edx, [eax*4]
	shl eax, 0x5
	sub eax, edx
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldDpvsStatic]
_Z23Load_GfxWorldDpvsStatich_90:
	mov eax, [ebx+0x50]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_100
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x50], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x50]
	mov [varGfxSurface], edx
	mov eax, [varGfxWorld]
	mov edi, [eax+0x18]
	lea eax, [edi+edi*2]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxSurface]
	test edi, edi
	jg _Z23Load_GfxWorldDpvsStatich_110
_Z23Load_GfxWorldDpvsStatich_190:
	mov ebx, [varGfxWorldDpvsStatic]
_Z23Load_GfxWorldDpvsStatich_100:
	mov eax, [ebx+0x54]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_120
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x54], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x54]
	mov [varGfxCullGroup], edx
	mov eax, [varGfxWorld]
	mov eax, [eax+0xe0]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldDpvsStatic]
_Z23Load_GfxWorldDpvsStatich_120:
	mov eax, [ebx+0x58]
	test eax, eax
	jz _Z23Load_GfxWorldDpvsStatich_130
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x58], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x58]
	mov [varGfxStaticModelDrawInst], edx
	mov esi, [eax]
	lea eax, [esi+esi*8]
	lea eax, [esi+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxStaticModelDrawInst]
	test esi, esi
	jg _Z23Load_GfxWorldDpvsStatich_140
_Z23Load_GfxWorldDpvsStatich_130:
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov edi, [ebx+0x5c]
	test edi, edi
	jz _Z23Load_GfxWorldDpvsStatich_150
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x5c], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x5c]
	mov [varGfxDrawSurf], edx
	mov eax, [eax+0x4]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_150:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsStatic]
	mov esi, [ebx+0x60]
	test esi, esi
	jz _Z23Load_GfxWorldDpvsStatich_160
	mov dword [esp], 0x7f
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x60], eax
	mov eax, [varGfxWorldDpvsStatic]
	mov edx, [eax+0x60]
	mov [varraw_uint128], edx
	mov eax, [eax+0x28]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_GfxWorldDpvsStatich_160:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z23Load_GfxWorldDpvsStatich_140:
	xor edi, edi
_Z23Load_GfxWorldDpvsStatich_170:
	mov [varGfxStaticModelDrawInst], ebx
	mov dword [esp+0x8], 0x4c
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxStaticModelDrawInst]
	add eax, 0x38
	mov [varXModelPtr], eax
	mov dword [esp], 0x0
	call _Z14Load_XModelPtrh
	add ebx, 0x4c
	add edi, 0x1
	cmp esi, edi
	jnz _Z23Load_GfxWorldDpvsStatich_170
	jmp _Z23Load_GfxWorldDpvsStatich_130
_Z23Load_GfxWorldDpvsStatich_110:
	xor esi, esi
_Z23Load_GfxWorldDpvsStatich_180:
	mov [varGfxSurface], ebx
	mov dword [esp+0x8], 0x30
	mov [esp+0x4], ebx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varGfxSurface]
	add eax, 0x10
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	add ebx, 0x30
	add esi, 0x1
	cmp edi, esi
	jnz _Z23Load_GfxWorldDpvsStatich_180
	jmp _Z23Load_GfxWorldDpvsStatich_190
	nop


;Load_GfxWorldVertexData(unsigned char)
_Z23Load_GfxWorldVertexDatah:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x8
	mov eax, [varGfxWorldVertexData]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldVertexData]
	mov edx, [ebx]
	test edx, edx
	jz _Z23Load_GfxWorldVertexDatah_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxWorldVertexData]
	mov ecx, [eax]
	mov [varGfxWorldVertex0], ecx
	mov eax, [varGfxWorld]
	mov eax, [eax+0x30]
	lea edx, [eax+eax*4]
	lea edx, [eax+edx*2]
	shl edx, 0x2
	mov [esp+0x8], edx
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldVertexData]
_Z23Load_GfxWorldVertexDatah_10:
	lea eax, [ebx+0x4]
	mov [varGfxVertexBuffer], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ecx, [varGfxWorld]
	mov eax, [ecx+0x30]
	lea edx, [eax+eax*4]
	lea edx, [eax+edx*2]
	shl edx, 0x2
	mov [esp+0x8], edx
	mov eax, [ecx+0x34]
	mov [esp+0x4], eax
	mov eax, [varGfxWorldVertexData]
	add eax, 0x4
	mov [esp], eax
	call _Z17Load_VertexBufferPP22IDirect3DVertexBuffer9Pvi
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	nop


;Load_XAnimDynamicFrames(unsigned char)
_Z23Load_XAnimDynamicFramesh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov eax, [varXAnimPartTrans]
	cmp byte [eax+0x2], 0x0
	jz _Z23Load_XAnimDynamicFramesh_10
	mov ebx, [varXAnimDynamicFrames]
	mov edx, [ebx]
	test edx, edx
	jz _Z23Load_XAnimDynamicFramesh_20
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXAnimDynamicFrames]
	mov edx, [eax]
	mov [varByteVec], edx
	mov eax, [varXAnimPartTrans]
	movzx eax, word [eax]
	test ax, ax
	jnz _Z23Load_XAnimDynamicFramesh_30
	xor eax, eax
_Z23Load_XAnimDynamicFramesh_50:
	lea eax, [eax+eax*2]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z23Load_XAnimDynamicFramesh_20:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z23Load_XAnimDynamicFramesh_10:
	mov ebx, [varXAnimDynamicFrames]
	mov eax, [ebx]
	test eax, eax
	jz _Z23Load_XAnimDynamicFramesh_20
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varXAnimDynamicFrames]
	mov edx, [eax]
	mov [varUShortVec], edx
	mov eax, [varXAnimPartTrans]
	movzx eax, word [eax]
	test ax, ax
	jnz _Z23Load_XAnimDynamicFramesh_40
	xor eax, eax
_Z23Load_XAnimDynamicFramesh_60:
	lea eax, [eax+eax*2]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z23Load_XAnimDynamicFramesh_30:
	movzx eax, ax
	add eax, 0x1
	jmp _Z23Load_XAnimDynamicFramesh_50
_Z23Load_XAnimDynamicFramesh_40:
	movzx eax, ax
	add eax, 0x1
	jmp _Z23Load_XAnimDynamicFramesh_60
	add [eax], al


;Load_snd_alias_list_ptr(unsigned char)
_Z23Load_snd_alias_list_ptrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varsnd_alias_list_ptr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varsnd_alias_list_ptr]
	mov esi, [ebx]
	test esi, esi
	jz _Z23Load_snd_alias_list_ptrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z23Load_snd_alias_list_ptrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z23Load_snd_alias_list_ptrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z23Load_snd_alias_list_ptrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varsnd_alias_list_ptr]
	mov eax, [eax]
	mov [varsnd_alias_list_t], eax
	cmp esi, 0xfffffffe
	jz _Z23Load_snd_alias_list_ptrh_30
	xor ebx, ebx
_Z23Load_snd_alias_list_ptrh_40:
	mov dword [esp], 0x1
	call _Z21Load_snd_alias_list_th
	mov eax, [varsnd_alias_list_ptr]
	mov [esp], eax
	call _Z25Load_snd_alias_list_AssetPP16snd_alias_list_t
	test ebx, ebx
	jz _Z23Load_snd_alias_list_ptrh_10
	mov eax, [varsnd_alias_list_ptr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z23Load_snd_alias_list_ptrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z23Load_snd_alias_list_ptrh_40
	nop
	add [eax], al


;Mark_snd_alias_list_ptr()
_Z23Mark_snd_alias_list_ptrv:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x1c
	mov eax, [varsnd_alias_list_ptr]
	mov eax, [eax]
	test eax, eax
	jz _Z23Mark_snd_alias_list_ptrv_10
	mov [varsnd_alias_list_t], eax
	mov [esp], eax
	call _Z25Mark_snd_alias_list_AssetP16snd_alias_list_t
	mov eax, [varsnd_alias_list_t]
	mov ebx, [eax+0x4]
	test ebx, ebx
	jz _Z23Mark_snd_alias_list_ptrv_10
	mov [varsnd_alias_t], ebx
	mov edi, [eax+0x8]
	test edi, edi
	jle _Z23Mark_snd_alias_list_ptrv_10
	xor esi, esi
	jmp _Z23Mark_snd_alias_list_ptrv_20
_Z23Mark_snd_alias_list_ptrv_50:
	mov edx, [varsnd_alias_t]
_Z23Mark_snd_alias_list_ptrv_60:
	lea eax, [edx+0x48]
	mov [varSndCurvePtr], eax
	mov eax, [edx+0x48]
	test eax, eax
	jz _Z23Mark_snd_alias_list_ptrv_30
	mov [varSndCurve], eax
	mov [esp], eax
	call _Z18Mark_SndCurveAssetP8SndCurve
_Z23Mark_snd_alias_list_ptrv_30:
	add ebx, 0x5c
	add esi, 0x1
	cmp edi, esi
	jz _Z23Mark_snd_alias_list_ptrv_10
_Z23Mark_snd_alias_list_ptrv_20:
	mov [varsnd_alias_t], ebx
	mov eax, [ebx+0x10]
	test eax, eax
	jz _Z23Mark_snd_alias_list_ptrv_40
	mov [varSoundFile], eax
	lea edx, [eax+0x4]
	mov [varSoundFileRef], edx
	cmp byte [eax], 0x1
	jnz _Z23Mark_snd_alias_list_ptrv_50
	mov [varLoadedSoundPtr], edx
	mov eax, [eax+0x4]
	test eax, eax
	jz _Z23Mark_snd_alias_list_ptrv_50
	mov [varLoadedSound], eax
	mov [esp], eax
	call _Z21Mark_LoadedSoundAssetP11LoadedSound
	mov edx, [varsnd_alias_t]
	jmp _Z23Mark_snd_alias_list_ptrv_60
_Z23Mark_snd_alias_list_ptrv_10:
	add esp, 0x1c
	pop ebx
	pop esi
	pop edi
	pop ebp
	ret
_Z23Mark_snd_alias_list_ptrv_40:
	mov edx, ebx
	jmp _Z23Mark_snd_alias_list_ptrv_60


;Load_GfxWorldDpvsDynamic(unsigned char)
_Z24Load_GfxWorldDpvsDynamich:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x30
	mov eax, [varGfxWorldDpvsDynamic]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov ecx, [ebx+0x10]
	test ecx, ecx
	jz _Z24Load_GfxWorldDpvsDynamich_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x10], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov ecx, [eax+0x10]
	mov [varraw_uint], ecx
	mov eax, [eax]
	mov edx, [varGfxWorld]
	imul eax, [edx+0xf0]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_10:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov edx, [ebx+0x14]
	test edx, edx
	jz _Z24Load_GfxWorldDpvsDynamich_20
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x14], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov ecx, [eax+0x14]
	mov [varraw_uint], ecx
	mov eax, [eax+0x4]
	mov edx, [varGfxWorld]
	imul eax, [edx+0xf0]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], ecx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_20:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov eax, [ebx+0x18]
	test eax, eax
	jz _Z24Load_GfxWorldDpvsDynamich_30
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x18], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov edx, [eax+0x18]
	mov [varraw_byte16], edx
	mov eax, [eax]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_30:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z24Load_GfxWorldDpvsDynamich_40
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov edx, [eax+0x24]
	mov [varraw_byte16], edx
	mov eax, [eax+0x4]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_40:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov eax, [ebx+0x1c]
	test eax, eax
	jz _Z24Load_GfxWorldDpvsDynamich_50
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov edx, [eax+0x1c]
	mov [varraw_byte16], edx
	mov eax, [eax]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_50:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov eax, [ebx+0x28]
	test eax, eax
	jz _Z24Load_GfxWorldDpvsDynamich_60
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x28], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov edx, [eax+0x28]
	mov [varraw_byte16], edx
	mov eax, [eax+0x4]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_60:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov eax, [ebx+0x20]
	test eax, eax
	jz _Z24Load_GfxWorldDpvsDynamich_70
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x20], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov edx, [eax+0x20]
	mov [varraw_byte16], edx
	mov eax, [eax]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_70:
	call _Z15DB_PopStreamPosv
	mov dword [esp], 0x1
	call _Z16DB_PushStreamPosj
	mov ebx, [varGfxWorldDpvsDynamic]
	mov eax, [ebx+0x2c]
	test eax, eax
	jz _Z24Load_GfxWorldDpvsDynamich_80
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x2c], eax
	mov eax, [varGfxWorldDpvsDynamic]
	mov edx, [eax+0x2c]
	mov [varraw_byte16], edx
	mov eax, [eax+0x4]
	shl eax, 0x5
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_GfxWorldDpvsDynamich_80:
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15DB_PopStreamPosv
	nop


;Load_MaterialArgumentDef(unsigned char)
_Z24Load_MaterialArgumentDefh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	movzx edx, byte [ebp+0x8]
	mov eax, [varMaterialShaderArgument]
	movzx eax, word [eax]
	cmp ax, 0x1
	jz _Z24Load_MaterialArgumentDefh_10
	cmp ax, 0x7
	jz _Z24Load_MaterialArgumentDefh_10
	cmp ax, 0x3
	jz _Z24Load_MaterialArgumentDefh_20
	cmp ax, 0x5
	jz _Z24Load_MaterialArgumentDefh_20
	test dl, dl
	jnz _Z24Load_MaterialArgumentDefh_30
_Z24Load_MaterialArgumentDefh_40:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z24Load_MaterialArgumentDefh_20:
	test dl, dl
	jz _Z24Load_MaterialArgumentDefh_40
	mov eax, [varMaterialArgumentDef]
	mov [varMaterialArgumentCodeConst], eax
	jmp _Z24Load_MaterialArgumentDefh_50
_Z24Load_MaterialArgumentDefh_10:
	mov ebx, [varMaterialArgumentDef]
	mov eax, [ebx]
	test eax, eax
	jz _Z24Load_MaterialArgumentDefh_40
	add eax, 0x1
	jz _Z24Load_MaterialArgumentDefh_60
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z24Load_MaterialArgumentDefh_30:
	mov eax, [varMaterialArgumentDef]
	mov [varuint], eax
_Z24Load_MaterialArgumentDefh_50:
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	movzx eax, dl
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z24Load_MaterialArgumentDefh_60:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialArgumentDef]
	mov eax, [eax]
	mov [varfloat], eax
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	jmp _Z24Load_MaterialArgumentDefh_40
	nop


;Load_expressionEntry_ptr(unsigned char)
_Z24Load_expressionEntry_ptrh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x4
	mov eax, [varexpressionEntry_ptr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varexpressionEntry_ptr]
	mov eax, [ebx]
	test eax, eax
	jz _Z24Load_expressionEntry_ptrh_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varexpressionEntry_ptr]
	mov eax, [eax]
	mov [varexpressionEntry], eax
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varexpressionEntry]
	lea edx, [eax+0x4]
	mov [varentryInternalData], edx
	mov eax, [eax]
	test eax, eax
	jnz _Z24Load_expressionEntry_ptrh_20
_Z24Load_expressionEntry_ptrh_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z24Load_expressionEntry_ptrh_20:
	mov [varOperand], edx
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varOperand]
	lea edx, [eax+0x4]
	mov [varoperandInternalDataUnion], edx
	mov eax, [eax]
	test eax, eax
	jz _Z24Load_expressionEntry_ptrh_10
	cmp eax, 0x1
	jz _Z24Load_expressionEntry_ptrh_10
	cmp eax, 0x2
	jnz _Z24Load_expressionEntry_ptrh_10
	mov [varXString], edx
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], edx
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z24Load_expressionEntry_ptrh_10
	add eax, 0x1
	jz _Z24Load_expressionEntry_ptrh_30
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z24Load_expressionEntry_ptrh_30:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [ebp+0x8], edx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z18Load_XStringCustomPPKc


;Load_pathnode_constant_t(unsigned char)
_Z24Load_pathnode_constant_th:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x44
	mov eax, [varpathnode_constant_t]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov eax, [varpathnode_constant_t]
	add eax, 0x6
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0x8
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0xa
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0xc
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0xe
	mov [varScriptString], eax
	mov dword [esp+0x8], 0x2
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varScriptString]
	mov [esp], eax
	call _Z23Load_ScriptStringCustomPt
	mov ebx, [varpathnode_constant_t]
	mov eax, [ebx+0x40]
	test eax, eax
	jz _Z24Load_pathnode_constant_th_10
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x40], eax
	mov eax, [varpathnode_constant_t]
	mov edx, [eax+0x40]
	mov [varpathlink_t], edx
	movzx eax, word [eax+0x3e]
	lea eax, [eax+eax*2]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z24Load_pathnode_constant_th_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret


;Mark_pathnode_constant_t()
_Z24Mark_pathnode_constant_tv:
	push ebp
	mov ebp, esp
	sub esp, 0x18
	mov eax, [varpathnode_constant_t]
	add eax, 0x6
	mov [varScriptString], eax
	mov [esp], eax
	call _Z23Mark_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0x8
	mov [varScriptString], eax
	mov [esp], eax
	call _Z23Mark_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0xa
	mov [varScriptString], eax
	mov [esp], eax
	call _Z23Mark_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0xc
	mov [varScriptString], eax
	mov [esp], eax
	call _Z23Mark_ScriptStringCustomPt
	mov eax, [varpathnode_constant_t]
	add eax, 0xe
	mov [varScriptString], eax
	mov [esp], eax
	call _Z23Mark_ScriptStringCustomPt
	leave
	ret
	nop
	add [eax], al


;Load_MaterialTechniqueSet(unsigned char)
_Z25Load_MaterialTechniqueSeth:
	push ebp
	mov ebp, esp
	push edi
	push esi
	push ebx
	sub esp, 0x2c
	mov dword [esp+0x8], 0x94
	mov eax, [varMaterialTechniqueSet]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varMaterialTechniqueSet]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z25Load_MaterialTechniqueSeth_10
	add eax, 0x1
	jz _Z25Load_MaterialTechniqueSeth_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z25Load_MaterialTechniqueSeth_10:
	mov eax, [varMaterialTechniqueSet]
	add eax, 0xc
	mov [varMaterialTechniquePtr], eax
	mov dword [esp+0x8], 0x88
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialTechniquePtr]
	mov [ebp-0x20], eax
	mov dword [ebp-0x1c], 0x22
	jmp _Z25Load_MaterialTechniqueSeth_30
_Z25Load_MaterialTechniqueSeth_60:
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z25Load_MaterialTechniqueSeth_50:
	add dword [ebp-0x20], 0x4
	sub dword [ebp-0x1c], 0x1
	jz _Z25Load_MaterialTechniqueSeth_40
_Z25Load_MaterialTechniqueSeth_80:
	mov eax, [ebp-0x20]
_Z25Load_MaterialTechniqueSeth_30:
	mov [varMaterialTechniquePtr], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialTechniquePtr]
	mov eax, [ebx]
	test eax, eax
	jz _Z25Load_MaterialTechniqueSeth_50
	add eax, 0x1
	jnz _Z25Load_MaterialTechniqueSeth_60
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialTechniquePtr]
	mov eax, [eax]
	mov [varMaterialTechnique], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialTechnique]
	lea edx, [eax+0x8]
	mov [varMaterialPass], edx
	movzx edi, word [eax+0x6]
	lea eax, [edi+edi*4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialPass]
	test edi, edi
	jg _Z25Load_MaterialTechniqueSeth_70
_Z25Load_MaterialTechniqueSeth_100:
	mov eax, [varMaterialTechnique]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z25Load_MaterialTechniqueSeth_50
	add eax, 0x1
	jnz _Z25Load_MaterialTechniqueSeth_60
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	add dword [ebp-0x20], 0x4
	sub dword [ebp-0x1c], 0x1
	jnz _Z25Load_MaterialTechniqueSeth_80
_Z25Load_MaterialTechniqueSeth_40:
	add esp, 0x2c
	pop ebx
	pop esi
	pop edi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z25Load_MaterialTechniqueSeth_70:
	xor esi, esi
_Z25Load_MaterialTechniqueSeth_90:
	mov [varMaterialPass], ebx
	mov dword [esp], 0x0
	call _Z17Load_MaterialPassh
	add ebx, 0x14
	add esi, 0x1
	cmp edi, esi
	jnz _Z25Load_MaterialTechniqueSeth_90
	jmp _Z25Load_MaterialTechniqueSeth_100
_Z25Load_MaterialTechniqueSeth_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z25Load_MaterialTechniqueSeth_10
	nop


;Load_XSurfaceCollisionTree(unsigned char)
_Z26Load_XSurfaceCollisionTreeh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x28
	mov eax, [varXSurfaceCollisionTree]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varXSurfaceCollisionTree]
	mov eax, [ebx+0x1c]
	test eax, eax
	jz _Z26Load_XSurfaceCollisionTreeh_10
	mov dword [esp], 0xf
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x1c], eax
	mov eax, [varXSurfaceCollisionTree]
	mov edx, [eax+0x1c]
	mov [varXSurfaceCollisionNode], edx
	mov eax, [eax+0x18]
	shl eax, 0x4
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varXSurfaceCollisionTree]
_Z26Load_XSurfaceCollisionTreeh_10:
	mov eax, [ebx+0x24]
	test eax, eax
	jz _Z26Load_XSurfaceCollisionTreeh_20
	mov dword [esp], 0x1
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x24], eax
	mov eax, [varXSurfaceCollisionTree]
	mov edx, [eax+0x24]
	mov [varXSurfaceCollisionLeaf], edx
	mov eax, [eax+0x20]
	add eax, eax
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z26Load_XSurfaceCollisionTreeh_20:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	nop
	add [eax], al


;Load_MaterialPixelShaderPtr(unsigned char)
_Z27Load_MaterialPixelShaderPtrh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x4
	mov eax, [varMaterialPixelShaderPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialPixelShaderPtr]
	mov eax, [ebx]
	test eax, eax
	jz _Z27Load_MaterialPixelShaderPtrh_10
	add eax, 0x1
	jz _Z27Load_MaterialPixelShaderPtrh_20
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z27Load_MaterialPixelShaderPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialPixelShaderPtr]
	mov eax, [eax]
	mov [varMaterialPixelShader], eax
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialPixelShader]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z27Load_MaterialPixelShaderPtrh_30
	add eax, 0x1
	jz _Z27Load_MaterialPixelShaderPtrh_40
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z27Load_MaterialPixelShaderPtrh_30:
	mov eax, [varMaterialPixelShader]
	add eax, 0x4
	mov [varMaterialPixelShaderProgram], eax
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialPixelShaderProgram]
	add eax, 0x4
	mov [varGfxPixelShaderLoadDef], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxPixelShaderLoadDef]
	mov eax, [ebx]
	test eax, eax
	jz _Z27Load_MaterialPixelShaderPtrh_50
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxPixelShaderLoadDef]
	mov edx, [eax]
	mov [varDWORD], edx
	movzx eax, word [eax+0x4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z27Load_MaterialPixelShaderPtrh_50:
	mov eax, [varMaterialPixelShader]
	mov [esp+0x4], eax
	mov eax, [varMaterialPixelShaderProgram]
	add eax, 0x4
	mov [esp], eax
	call _Z30Load_CreateMaterialPixelShaderP21GfxPixelShaderLoadDefP19MaterialPixelShader
_Z27Load_MaterialPixelShaderPtrh_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z27Load_MaterialPixelShaderPtrh_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z27Load_MaterialPixelShaderPtrh_30


;Load_MaterialTextureDefInfo(unsigned char)
_Z27Load_MaterialTextureDefInfoh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	movzx edx, byte [ebp+0x8]
	mov eax, [varMaterialTextureDef]
	cmp byte [eax+0x7], 0xb
	jz _Z27Load_MaterialTextureDefInfoh_10
	mov eax, [varMaterialTextureDefInfo]
	mov [varGfxImagePtr], eax
	movzx eax, dl
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z16Load_GfxImagePtrh
_Z27Load_MaterialTextureDefInfoh_10:
	mov ebx, [varMaterialTextureDefInfo]
	mov eax, [ebx]
	test eax, eax
	jz _Z27Load_MaterialTextureDefInfoh_20
	add eax, 0x1
	jz _Z27Load_MaterialTextureDefInfoh_30
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z27Load_MaterialTextureDefInfoh_30:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialTextureDefInfo]
	mov eax, [eax]
	mov [varwater_t], eax
	mov dword [esp], 0x1
	call _Z12Load_water_th
	mov eax, [varMaterialTextureDefInfo]
	mov [ebp+0x8], eax
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z16Load_PicmipWaterPP7water_t
_Z27Load_MaterialTextureDefInfoh_20:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	add [eax], al


;Load_GfxWorldVertexLayerData(unsigned char)
_Z28Load_GfxWorldVertexLayerDatah:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x8
	mov eax, [varGfxWorldVertexLayerData]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldVertexLayerData]
	mov eax, [ebx]
	test eax, eax
	jz _Z28Load_GfxWorldVertexLayerDatah_10
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxWorldVertexLayerData]
	mov edx, [eax]
	mov [varbyte], edx
	mov eax, [varGfxWorld]
	mov eax, [eax+0x3c]
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxWorldVertexLayerData]
_Z28Load_GfxWorldVertexLayerDatah_10:
	lea eax, [ebx+0x4]
	mov [varGfxVertexBuffer], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov edx, [varGfxWorld]
	mov eax, [edx+0x3c]
	mov [esp+0x8], eax
	mov eax, [edx+0x40]
	mov [esp+0x4], eax
	mov eax, [varGfxWorldVertexLayerData]
	add eax, 0x4
	mov [esp], eax
	call _Z17Load_VertexBufferPP22IDirect3DVertexBuffer9Pvi
	add esp, 0x14
	pop ebx
	pop ebp
	ret
	nop


;Load_MaterialTechniqueSetPtr(unsigned char)
_Z28Load_MaterialTechniqueSetPtrh:
	push ebp
	mov ebp, esp
	push esi
	push ebx
	sub esp, 0x10
	mov dword [esp+0x8], 0x4
	mov eax, [varMaterialTechniqueSetPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x0
	call _Z16DB_PushStreamPosj
	mov ebx, [varMaterialTechniqueSetPtr]
	mov esi, [ebx]
	test esi, esi
	jz _Z28Load_MaterialTechniqueSetPtrh_10
	lea eax, [esi+0x2]
	cmp eax, 0x1
	jbe _Z28Load_MaterialTechniqueSetPtrh_20
	mov [esp], ebx
	call _Z23DB_ConvertOffsetToAliasPv
_Z28Load_MaterialTechniqueSetPtrh_10:
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z28Load_MaterialTechniqueSetPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialTechniqueSetPtr]
	mov eax, [eax]
	mov [varMaterialTechniqueSet], eax
	cmp esi, 0xfffffffe
	jz _Z28Load_MaterialTechniqueSetPtrh_30
	xor ebx, ebx
_Z28Load_MaterialTechniqueSetPtrh_40:
	mov dword [esp], 0x1
	call _Z25Load_MaterialTechniqueSeth
	mov eax, [varMaterialTechniqueSetPtr]
	mov [esp], eax
	call _Z30Load_MaterialTechniqueSetAssetPP20MaterialTechniqueSet
	test ebx, ebx
	jz _Z28Load_MaterialTechniqueSetPtrh_10
	mov eax, [varMaterialTechniqueSetPtr]
	mov eax, [eax]
	mov [ebx], eax
	add esp, 0x10
	pop ebx
	pop esi
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z28Load_MaterialTechniqueSetPtrh_30:
	call _Z16DB_InsertPointerv
	mov ebx, eax
	jmp _Z28Load_MaterialTechniqueSetPtrh_40
	nop


;Load_MaterialVertexShaderPtr(unsigned char)
_Z28Load_MaterialVertexShaderPtrh:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x4
	mov eax, [varMaterialVertexShaderPtr]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov ebx, [varMaterialVertexShaderPtr]
	mov eax, [ebx]
	test eax, eax
	jz _Z28Load_MaterialVertexShaderPtrh_10
	add eax, 0x1
	jz _Z28Load_MaterialVertexShaderPtrh_20
	mov [ebp+0x8], ebx
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z25DB_ConvertOffsetToPointerPv
_Z28Load_MaterialVertexShaderPtrh_20:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varMaterialVertexShaderPtr]
	mov eax, [eax]
	mov [varMaterialVertexShader], eax
	mov dword [esp+0x8], 0x10
	mov [esp+0x4], eax
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialVertexShader]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z28Load_MaterialVertexShaderPtrh_30
	add eax, 0x1
	jz _Z28Load_MaterialVertexShaderPtrh_40
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z28Load_MaterialVertexShaderPtrh_30:
	mov eax, [varMaterialVertexShader]
	add eax, 0x4
	mov [varMaterialVertexShaderProgram], eax
	mov dword [esp+0x8], 0xc
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov eax, [varMaterialVertexShaderProgram]
	add eax, 0x4
	mov [varGfxVertexShaderLoadDef], eax
	mov dword [esp+0x8], 0x8
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varGfxVertexShaderLoadDef]
	mov eax, [ebx]
	test eax, eax
	jz _Z28Load_MaterialVertexShaderPtrh_50
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov eax, [varGfxVertexShaderLoadDef]
	mov edx, [eax]
	mov [varDWORD], edx
	movzx eax, word [eax+0x4]
	shl eax, 0x2
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
_Z28Load_MaterialVertexShaderPtrh_50:
	mov eax, [varMaterialVertexShader]
	mov [esp+0x4], eax
	mov eax, [varMaterialVertexShaderProgram]
	add eax, 0x4
	mov [esp], eax
	call _Z31Load_CreateMaterialVertexShaderP22GfxVertexShaderLoadDefP20MaterialVertexShader
_Z28Load_MaterialVertexShaderPtrh_10:
	add esp, 0x14
	pop ebx
	pop ebp
	ret
_Z28Load_MaterialVertexShaderPtrh_40:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z28Load_MaterialVertexShaderPtrh_30
	add [eax], al


;Load_Font(unsigned char)
_Z9Load_Fonth:
	push ebp
	mov ebp, esp
	push ebx
	sub esp, 0x14
	mov dword [esp+0x8], 0x18
	mov eax, [varFont]
	mov [esp+0x4], eax
	movzx eax, byte [ebp+0x8]
	mov [esp], eax
	call _Z11Load_StreamhPKvi
	mov dword [esp], 0x4
	call _Z16DB_PushStreamPosj
	mov eax, [varFont]
	mov [varXString], eax
	mov dword [esp+0x8], 0x4
	mov [esp+0x4], eax
	mov dword [esp], 0x0
	call _Z11Load_StreamhPKvi
	mov ebx, [varXString]
	mov eax, [ebx]
	test eax, eax
	jz _Z9Load_Fonth_10
	add eax, 0x1
	jz _Z9Load_Fonth_20
	mov [esp], ebx
	call _Z25DB_ConvertOffsetToPointerPv
_Z9Load_Fonth_10:
	mov eax, [varFont]
	add eax, 0xc
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov eax, [varFont]
	add eax, 0x10
	mov [varMaterialHandle], eax
	mov dword [esp], 0x0
	call _Z19Load_MaterialHandleh
	mov ebx, [varFont]
	mov eax, [ebx+0x14]
	test eax, eax
	jz _Z9Load_Fonth_30
	add eax, 0x1
	jz _Z9Load_Fonth_40
	lea eax, [ebx+0x14]
	mov [esp], eax
	call _Z25DB_ConvertOffsetToPointerPv
_Z9Load_Fonth_30:
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z9Load_Fonth_40:
	mov dword [esp], 0x3
	call _Z17DB_AllocStreamPosi
	mov [ebx+0x14], eax
	mov eax, [varFont]
	mov edx, [eax+0x14]
	mov [varGlyph], edx
	mov eax, [eax+0x8]
	lea eax, [eax+eax*2]
	shl eax, 0x3
	mov [esp+0x8], eax
	mov [esp+0x4], edx
	mov dword [esp], 0x1
	call _Z11Load_StreamhPKvi
	add esp, 0x14
	pop ebx
	pop ebp
	jmp _Z15DB_PopStreamPosv
_Z9Load_Fonth_20:
	mov dword [esp], 0x0
	call _Z17DB_AllocStreamPosi
	mov [ebx], eax
	mov edx, [varXString]
	mov eax, [edx]
	mov [varConstChar], eax
	mov [esp], edx
	call _Z18Load_XStringCustomPPKc
	jmp _Z9Load_Fonth_10


;Initialized global or static variables of db_load:
SECTION .data


;Initialized constant data of db_load:
SECTION .rdata


;Zero initialized global or static variables of db_load:
SECTION .bss
varScriptStringList: resb 0x4
varXAsset: resb 0x8
varXAssetList: resb 0x4
varBrushWrapper: resb 0x10
varByteVec: resb 0x4
varCollisionAabbTree: resb 0x8
varCollisionBorder: resb 0x4
varCollisionPartition: resb 0x4
varComPrimaryLight: resb 0x4
varComWorld: resb 0x4
varComWorldPtr: resb 0x4
varConstChar: resb 0x4
varDObjAnimMat: resb 0x4
varDWORD: resb 0x10
varDynEntityClient: resb 0x4
varDynEntityColl: resb 0x4
varDynEntityDef: resb 0xc
varDynEntityPose: resb 0x4
varFont: resb 0x4
varFontHandle: resb 0x4
varFxEffectDef: resb 0x4
varFxEffectDefHandle: resb 0x14
varFxEffectDefRef: resb 0x4
varFxElemDef: resb 0x4
varFxElemDefVisuals: resb 0x14
varFxElemMarkVisuals: resb 0x4
varFxElemVelStateSample: resb 0xc
varFxElemVisStateSample: resb 0x8
varFxElemVisuals: resb 0x4
varFxImpactEntry: resb 0x4
varFxImpactTable: resb 0x4
varFxImpactTablePtr: resb 0x4
varFxTrailDef: resb 0x4
varFxTrailVertex: resb 0x4
varGameWorldMp: resb 0x4
varGameWorldMpPtr: resb 0x4
varGameWorldSp: resb 0x4
varGameWorldSpPtr: resb 0x4
varGfxAabbTree: resb 0x4
varGfxBrushModel: resb 0x10
varGfxCell: resb 0x4
varGfxCullGroup: resb 0x4
varGfxDrawSurf: resb 0x4
varGfxImage: resb 0x8
varGfxImageLoadDef: resb 0x4
varGfxImagePtr: resb 0x4
varGfxLight: resb 0x4
varGfxLightDef: resb 0x8
varGfxLightDefPtr: resb 0x4
varGfxLightGrid: resb 0x4
varGfxLightGridColors: resb 0x4
varGfxLightGridEntry: resb 0x8
varGfxLightImage: resb 0x4
varGfxLightRegion: resb 0x4
varGfxLightRegionAxis: resb 0x4
varGfxLightRegionHull: resb 0x4
varGfxLightmapArray: resb 0x4
varGfxPackedVertex0: resb 0xc
varGfxPixelShaderLoadDef: resb 0x4
varGfxPortal: resb 0x4
varGfxRawTexture: resb 0x4
varGfxReflectionProbe: resb 0x4
varGfxSceneDynBrush: resb 0x4
varGfxSceneDynModel: resb 0xc
varGfxShadowGeometry: resb 0x4
varGfxStateBits: resb 0x4
varGfxStaticModelDrawInst: resb 0x4
varGfxStaticModelInst: resb 0x4
varGfxSurface: resb 0x8
varGfxTextureLoad: resb 0x10
varGfxVertexBuffer: resb 0x4
varGfxVertexShaderLoadDef: resb 0x10
varGfxWorld: resb 0x4
varGfxWorldDpvsDynamic: resb 0x4
varGfxWorldDpvsPlanes: resb 0x4
varGfxWorldDpvsStatic: resb 0x4
varGfxWorldPtr: resb 0x4
varGfxWorldVertex0: resb 0xc
varGfxWorldVertexData: resb 0x4
varGfxWorldVertexLayerData: resb 0x4
varGlyph: resb 0x4
varItemKeyHandler: resb 0x4
varItemKeyHandlerNext: resb 0x4
varLeafBrush: resb 0x4
varLoadedSound: resb 0x4
varLoadedSoundPtr: resb 0x4
varLocalizeEntry: resb 0x4
varLocalizeEntryPtr: resb 0x4
varMapEnts: resb 0x8
varMapEntsPtr: resb 0x4
varMaterial: resb 0x4
varMaterialArgumentCodeConst: resb 0x4
varMaterialArgumentDef: resb 0x4
varMaterialConstantDef: resb 0x4
varMaterialHandle: resb 0x4
varMaterialInfo: resb 0x10
varMaterialMemory: resb 0x4
varMaterialPass: resb 0x4
varMaterialPixelShader: resb 0x4
varMaterialPixelShaderProgram: resb 0x4
varMaterialPixelShaderPtr: resb 0x4
varMaterialShaderArgument: resb 0x4
varMaterialTechnique: resb 0x4
varMaterialTechniquePtr: resb 0x4
varMaterialTechniqueSet: resb 0x8
varMaterialTechniqueSetPtr: resb 0x4
varMaterialTextureDef: resb 0x4
varMaterialTextureDefInfo: resb 0x8
varMaterialVertexDeclaration: resb 0x8
varMaterialVertexShader: resb 0x4
varMaterialVertexShaderProgram: resb 0x4
varMaterialVertexShaderPtr: resb 0x4
varMenuList: resb 0x4
varMenuListPtr: resb 0x4
varMssSound: resb 0xc
varOperand: resb 0x8
varPathData: resb 0x4
varPhysGeomInfo: resb 0x4
varPhysGeomList: resb 0x4
varPhysPreset: resb 0x4
varPhysPresetPtr: resb 0x4
varRawFile: resb 0x4
varRawFilePtr: resb 0x4
varScriptString: resb 0x4
varSndCurve: resb 0x4
varSndCurvePtr: resb 0x4
varSoundFile: resb 0x4
varSoundFileRef: resb 0x4
varSpeakerMap: resb 0x10
varStaticModelIndex: resb 0x10
varStreamFileInfo: resb 0x4
varStreamFileName: resb 0x4
varStreamFileNameRaw: resb 0xc
varStreamedSound: resb 0x4
varStringTable: resb 0x4
varStringTablePtr: resb 0x4
varTempString: resb 0x4
varUShortVec: resb 0x4
varUnsignedShort: resb 0x4
varWeaponDef: resb 0x54
varWeaponDefPtr: resb 0x4
varWindow: resb 0x4
varXAnimDeltaPart: resb 0x4
varXAnimDeltaPartQuat: resb 0x4
varXAnimDeltaPartQuatData: resb 0x4
varXAnimDeltaPartQuatDataFrames: resb 0x4
varXAnimDynamicFrames: resb 0x4
varXAnimDynamicIndicesDeltaQuat: resb 0x4
varXAnimDynamicIndicesTrans: resb 0x4
varXAnimIndices: resb 0x4
varXAnimNotifyInfo: resb 0x4
varXAnimPartTrans: resb 0x4
varXAnimPartTransData: resb 0x4
varXAnimPartTransFrames: resb 0x4
varXAnimParts: resb 0x4
varXAnimPartsPtr: resb 0x4
varXAssetHeader: resb 0x4
varXBlendInfo: resb 0x4
varXBoneInfo: resb 0x4
varXModel: resb 0x4
varXModelCollSurf: resb 0x4
varXModelCollTri: resb 0x8
varXModelPiece: resb 0x4
varXModelPieces: resb 0x4
varXModelPiecesPtr: resb 0x4
varXModelPtr: resb 0x4
varXQuat2: resb 0x8
varXRigidVertList: resb 0x4
varXString: resb 0x4
varXStringPtr: resb 0x4
varXSurface: resb 0x4
varXSurfaceCollisionLeaf: resb 0x8
varXSurfaceCollisionNode: resb 0x4
varXSurfaceCollisionTree: resb 0x4
varXSurfaceVertexInfo: resb 0x4
varXZoneHandle: resb 0x4
varbyte: resb 0x1c
varcLeafBrushNodeData_t: resb 0x8
varcLeafBrushNodeLeaf_t: resb 0x4
varcLeafBrushNode_t: resb 0x4
varcLeaf_t: resb 0x4
varcNode_t: resb 0x4
varcStaticModel_t: resb 0x4
varcbrush_t: resb 0x8
varcbrushedge_t: resb 0x8
varcbrushside_t: resb 0x4
varchar: resb 0x8
varclipMap_ptr: resb 0x4
varclipMap_t: resb 0x4
varcmodel_t: resb 0x4
varcomplex_t: resb 0x4
varcplane_t: resb 0x8
vardmaterial_t: resb 0x4
vareditFieldDef_ptr: resb 0x4
vareditFieldDef_t: resb 0x4
varentryInternalData: resb 0x8
varexpressionEntry: resb 0x8
varexpressionEntry_ptr: resb 0x4
varfloat: resb 0xc
varint: resb 0x14
varitemDefData_t: resb 0x4
varitemDef_ptr: resb 0x4
varitemDef_t: resb 0x4
varlistBoxDef_ptr: resb 0x4
varlistBoxDef_t: resb 0x8
varmenuDef_ptr: resb 0x4
varmenuDef_t: resb 0x4
varmultiDef_ptr: resb 0x4
varmultiDef_t: resb 0x4
varoperandInternalDataUnion: resb 0x4
varpathbasenode_t: resb 0x4
varpathlink_t: resb 0x4
varpathnode_constant_t: resb 0x8
varpathnode_t: resb 0x4
varpathnode_tree_info_t: resb 0x4
varpathnode_tree_nodes_t: resb 0x4
varpathnode_tree_ptr: resb 0x4
varpathnode_tree_t: resb 0x4
varr_index16_t: resb 0x4
varr_index_t: resb 0x8
varraw_byte: resb 0x4
varraw_byte16: resb 0x4
varraw_uint: resb 0xc
varraw_uint128: resb 0x4
varshort: resb 0x10
varsnd_alias_list_name: resb 0x4
varsnd_alias_list_ptr: resb 0x4
varsnd_alias_list_t: resb 0x4
varsnd_alias_t: resb 0x4
varstatement: resb 0x4
varsunflare_t: resb 0x4
varuint: resb 0xc
varushort: resb 0xc
varvec2_t: resb 0x8
varvec3_t: resb 0x4
varwater_t: resb 0x4
varwindowDef_t: resb 0xc


;All cstrings:
SECTION .rdata



;All constant floats and doubles:
SECTION .rdata

