// // SpawnTriggerGameObject::customObjectSetup from 0x1404b9560 to 0x1404b9892 (818 bytes) // // 2 xrefs: // > @ 0x14061d178 // > @ 0x1406dccc8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=3 void SpawnTriggerGameObject::customObjectSetup( SpawnTriggerGameObject *a1, std::vector *a2, std::vector *a3) { int v6; // eax std::_Vector_val>::pointer m_bigStorage; // rcx double v8; // xmm6_8 double v9; // xmm0_8 std::_Vector_val>::pointer v10; // rcx float v11; // xmm0_4 std::_Vector_val>::pointer v12; // rcx float v13; // xmm0_4 int v14; // eax std::_Vector_val>::pointer v15; // rcx int v16; // eax std::_Vector_val>::pointer v17; // rcx int v18; // eax std::_Vector_val>::pointer v19; // rcx __int64 v20; // rax char v21; // bl void *v22; // rcx cocos2d::CCArray *v23; // rbp unsigned int v24; // ebx std::vector *p_m_remapObjects; // rdi cocos2d::CCString *v26; // rax int v27; // esi cocos2d::CCString *v28; // rax int v29; // eax std::_Vector_val>::pointer Mylast; // rdx int v31; // [rsp+20h] [rbp-A8h] BYREF int v32; // [rsp+24h] [rbp-A4h] BYREF __int128 v33; // [rsp+28h] [rbp-A0h] BYREF __int128 v34; // [rsp+38h] [rbp-90h] void *Block[2]; // [rsp+48h] [rbp-80h] BYREF __int64 v36; // [rsp+58h] [rbp-70h] unsigned __int64 v37; // [rsp+60h] [rbp-68h] _BYTE v38[32]; // [rsp+68h] [rbp-60h] BYREF v31 = 0; EffectGameObject::customObjectSetup(a1, a2, a3); if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 51) ) { m_bigStorage = a2->_Mypair._Myval2._Myfirst + 51; if ( a2->_Mypair._Myval2._Myfirst[51].m_data.m_capacity > 0xF ) m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage; v6 = atoi(m_bigStorage->m_data.m_smallStorage._Elems); } else { v6 = 0; } a1->m_targetGroupID = v6; v8 = 0.0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 63) ) { v10 = a2->_Mypair._Myval2._Myfirst + 63; if ( a2->_Mypair._Myval2._Myfirst[63].m_data.m_capacity > 0xF ) v10 = (std::_Vector_val>::pointer)v10->m_data.m_bigStorage; v9 = atof(v10->m_data.m_smallStorage._Elems); } else { v9 = 0.0; } v11 = v9; a1->m_spawnDelay = v11; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 556) ) { v12 = a2->_Mypair._Myval2._Myfirst + 556; if ( a2->_Mypair._Myval2._Myfirst[556].m_data.m_capacity > 0xF ) v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage; v8 = atof(v12->m_data.m_smallStorage._Elems); } v13 = v8; a1->m_delayRange = v13; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 102) ) { v15 = a2->_Mypair._Myval2._Myfirst + 102; if ( a2->_Mypair._Myval2._Myfirst[102].m_data.m_capacity > 0xF ) v15 = (std::_Vector_val>::pointer)v15->m_data.m_bigStorage; v14 = atoi(v15->m_data.m_smallStorage._Elems); } else { v14 = 0; } a1->m_previewDisable = v14 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 441) ) { v17 = a2->_Mypair._Myval2._Myfirst + 441; if ( a2->_Mypair._Myval2._Myfirst[441].m_data.m_capacity > 0xF ) v17 = (std::_Vector_val>::pointer)v17->m_data.m_bigStorage; v16 = atoi(v17->m_data.m_smallStorage._Elems); } else { v16 = 0; } a1->m_spawnOrdered = v16 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 581) ) { v19 = a2->_Mypair._Myval2._Myfirst + 581; if ( a2->_Mypair._Myval2._Myfirst[581].m_data.m_capacity > 0xF ) v19 = (std::_Vector_val>::pointer)v19->m_data.m_bigStorage; v18 = atoi(v19->m_data.m_smallStorage._Elems); } else { v18 = 0; } a1->m_resetRemap = v18 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 442) ) { v20 = sub_14003BDB0((__int64)v38, (__int64)&a2->_Mypair._Myval2._Myfirst[442]); v21 = 2; } else { *(_OWORD *)Block = 0; v36 = 0; v37 = 15; LOBYTE(Block[0]) = 0; v20 = (__int64)Block; v21 = 1; } v33 = 0; v34 = 0u; v33 = *(_OWORD *)v20; v34 = *(_OWORD *)(v20 + 16); *(_QWORD *)(v20 + 16) = 0; *(_QWORD *)(v20 + 24) = 15; *(_BYTE *)v20 = 0; if ( (v21 & 2) != 0 ) { v21 &= ~2u; sub_14003A830((__int64)v38); } if ( (v21 & 1) != 0 && v37 > 0xF ) { v22 = Block[0]; if ( v37 + 1 >= 0x1000 ) { v22 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v22 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v22); } if ( (_QWORD)v34 ) { v23 = (cocos2d::CCArray *)sub_140495350((__int64 *)&v33); v24 = 0; if ( cocos2d::CCArray::count(v23) ) { p_m_remapObjects = &a1->m_remapObjects; do { v26 = cocos2d::CCArray::stringAtIndex(v23, v24); v27 = cocos2d::CCString::intValue(v26); v31 = v27; v28 = cocos2d::CCArray::stringAtIndex(v23, v24 + 1); v29 = cocos2d::CCString::intValue(v28); v32 = v29; Mylast = p_m_remapObjects->_Mypair._Myval2._Mylast; if ( Mylast == p_m_remapObjects->_Mypair._Myval2._Myend ) { sub_14043F020((const void **)&p_m_remapObjects->_Mypair._Myval2._Myfirst, Mylast, &v31, &v32); } else { Mylast->m_groupID = v27; Mylast->m_oldGroupID = v27; Mylast->m_chance = v29; Mylast->m_unk00c = 0; ++p_m_remapObjects->_Mypair._Myval2._Mylast; } v24 += 2; } while ( v24 < cocos2d::CCArray::count(v23) ); } } sub_14003A830((__int64)&v33); }
GD Web Decomp Icon

GD Web Decomp

Raw Source