// // SequenceTriggerGameObject::customObjectSetup from 0x1404b4c90 to 0x1404b4fbf (815 bytes) // // 2 xrefs: // > @ 0x14061ec18 // > @ 0x1406dcba8 // // 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 SequenceTriggerGameObject::customObjectSetup( SequenceTriggerGameObject *a1, std::vector *a2, std::vector *a3) { int v6; // ebx double v7; // xmm6_8 double v8; // xmm0_8 std::_Vector_val>::pointer m_bigStorage; // rcx float v10; // xmm0_4 int v11; // eax std::_Vector_val>::pointer v12; // rcx int v13; // eax std::_Vector_val>::pointer v14; // rcx std::_Vector_val>::pointer v15; // rcx float v16; // xmm0_4 int v17; // eax std::_Vector_val>::pointer v18; // rcx __int64 v19; // rax char v20; // di void *v21; // rcx cocos2d::CCArray *v22; // r15 unsigned int i; // edi cocos2d::CCString *v24; // rax int v25; // r14d cocos2d::CCString *v26; // rax int v27; // eax std::_Vector_val>::pointer Mylast; // rdx std::_Vector_val>::pointer v29; // r8 std::_Vector_val>::pointer j; // rdx int v31; // ecx int v32; // [rsp+20h] [rbp-A8h] BYREF int v33; // [rsp+24h] [rbp-A4h] BYREF void *Block[2]; // [rsp+28h] [rbp-A0h] BYREF __int64 v35; // [rsp+38h] [rbp-90h] unsigned __int64 v36; // [rsp+40h] [rbp-88h] __int128 v37; // [rsp+48h] [rbp-80h] BYREF __int128 v38; // [rsp+58h] [rbp-70h] _BYTE v39[32]; // [rsp+68h] [rbp-60h] BYREF v6 = 0; v32 = 0; EffectGameObject::customObjectSetup(a1, a2, a3); v7 = 0.0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 437) ) { m_bigStorage = a2->_Mypair._Myval2._Myfirst + 437; if ( a2->_Mypair._Myval2._Myfirst[437].m_data.m_capacity > 0xF ) m_bigStorage = (std::_Vector_val>::pointer)m_bigStorage->m_data.m_bigStorage; v8 = atof(m_bigStorage->m_data.m_smallStorage._Elems); } else { v8 = 0.0; } v10 = v8; a1->m_minInt = v10; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 436) ) { v12 = a2->_Mypair._Myval2._Myfirst + 436; if ( a2->_Mypair._Myval2._Myfirst[436].m_data.m_capacity > 0xF ) v12 = (std::_Vector_val>::pointer)v12->m_data.m_bigStorage; v11 = atoi(v12->m_data.m_smallStorage._Elems); } else { v11 = 0; } a1->m_sequenceMode = v11; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 439) ) { v14 = a2->_Mypair._Myval2._Myfirst + 439; if ( a2->_Mypair._Myval2._Myfirst[439].m_data.m_capacity > 0xF ) v14 = (std::_Vector_val>::pointer)v14->m_data.m_bigStorage; v13 = atoi(v14->m_data.m_smallStorage._Elems); } else { v13 = 0; } a1->m_resetMode = v13; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 438) ) { v15 = a2->_Mypair._Myval2._Myfirst + 438; if ( a2->_Mypair._Myval2._Myfirst[438].m_data.m_capacity > 0xF ) v15 = (std::_Vector_val>::pointer)v15->m_data.m_bigStorage; v7 = atof(v15->m_data.m_smallStorage._Elems); } v16 = v7; a1->m_reset = v16; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 505) ) { v18 = a2->_Mypair._Myval2._Myfirst + 505; if ( a2->_Mypair._Myval2._Myfirst[505].m_data.m_capacity > 0xF ) v18 = (std::_Vector_val>::pointer)v18->m_data.m_bigStorage; v17 = atoi(v18->m_data.m_smallStorage._Elems); } else { v17 = 0; } a1->m_uniqueRemap = v17 != 0; if ( *((_QWORD *)a3->_Mypair._Myval2._Myfirst + 435) ) { v19 = sub_14003BDB0((__int64)v39, (__int64)&a2->_Mypair._Myval2._Myfirst[435]); v20 = 2; } else { *(_OWORD *)Block = 0; v35 = 0; v36 = 15; LOBYTE(Block[0]) = 0; v19 = (__int64)Block; v20 = 1; } v37 = 0; v38 = 0; v37 = *(_OWORD *)v19; v38 = *(_OWORD *)(v19 + 16); *(_QWORD *)(v19 + 16) = 0; *(_QWORD *)(v19 + 24) = 15; *(_BYTE *)v19 = 0; if ( (v20 & 2) != 0 ) { v20 &= ~2u; sub_14003A830((__int64)v39); } if ( (v20 & 1) != 0 && v36 > 0xF ) { v21 = Block[0]; if ( v36 + 1 >= 0x1000 ) { v21 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v21 - 8) > 0x1F ) invalid_parameter_noinfo_noreturn(); } j_j_free(v21); } v22 = (cocos2d::CCArray *)sub_140495350((__int64 *)&v37); for ( i = 0; i < cocos2d::CCArray::count(v22); i += 2 ) { v24 = cocos2d::CCArray::stringAtIndex(v22, i); v25 = cocos2d::CCString::intValue(v24); v32 = v25; v26 = cocos2d::CCArray::stringAtIndex(v22, i + 1); v27 = cocos2d::CCString::intValue(v26); v33 = v27; Mylast = a1->m_chanceObjects._Mypair._Myval2._Mylast; if ( Mylast == a1->m_chanceObjects._Mypair._Myval2._Myend ) { sub_14043F020((const void **)&a1->m_chanceObjects._Mypair._Myval2._Myfirst, Mylast, &v32, &v33); } else { Mylast->m_groupID = v25; Mylast->m_oldGroupID = v25; Mylast->m_chance = v27; Mylast->m_unk00c = 0; ++a1->m_chanceObjects._Mypair._Myval2._Mylast; } } a1->m_sequenceTotalCount = 0; v29 = a1->m_chanceObjects._Mypair._Myval2._Mylast; for ( j = a1->m_chanceObjects._Mypair._Myval2._Myfirst; j != v29; v6 = v31 ) { v31 = v6 + j->m_chance; a1->m_sequenceTotalCount = v31; ++j; } sub_14003A830((__int64)&v37); }
GD Web Decomp Icon

GD Web Decomp

Raw Source