// // RandTriggerGameObject::customObjectSetup from 0x1001c3560 to 0x1001c37d3 (627 bytes) // // 1 xrefs: // > @ 0x1008cef48 // // 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 // void __fastcall RandTriggerGameObject::customObjectSetup( RandTriggerGameObject *a1, std::vector *a2, std::vector *a3) { double v3; // xmm0_8 std::__vector_base::pointer begin; // r14 std::__vector_base::pointer v6; // rdi const char *longStorage; // rdi std::__vector_base::pointer v8; // rax std::__vector_base::pointer v9; // rax cocos2d::CCArray *v10; // rbx unsigned int v11; // r15d int v12; // ecx ChanceObject *v13; // r13 cocos2d::CCString *v14; // rax unsigned int v15; // r15d cocos2d::CCString *v16; // rax int v17; // eax RandTriggerGameObject *v18; // r14 ChanceObject *end; // rbx ChanceObject *value; // rdi std::__vector_base::pointer v21; // rsi signed __int64 v22; // rbx unsigned __int64 v23; // rcx __int64 v24; // rdi unsigned __int64 v25; // r12 ChanceObject *v26; // r14 int v27; // ecx __int64 v28; // r13 ChanceObject *v29; // r12 RandTriggerGameObject *v30; // rax std::__vector_base::pointer __src; // [rsp+8h] [rbp-68h] __int128 v32; // [rsp+10h] [rbp-60h] BYREF void *__p; // [rsp+20h] [rbp-50h] int v34; // [rsp+2Ch] [rbp-44h] RandTriggerGameObject *v35; // [rsp+30h] [rbp-40h] cocos2d::CCArray *v36; // [rsp+38h] [rbp-38h] __int64 v37; // [rsp+40h] [rbp-30h] v35 = a1; EffectGameObject::customObjectSetup(a1, a2, a3); begin = a3->__begin_; if ( begin[56] ) { v6 = a2->__begin_; if ( (a2->__begin_[56].m_data.m_short.sizex2 & 1) != 0 ) longStorage = v6[56].m_data.m_long.longStorage; else longStorage = v6[56].m_data.m_short.shortStorage.__elems_; v35->m_activateGroup = atoi(longStorage) != 0; if ( begin[152] ) goto LABEL_8; } else { v35->m_activateGroup = 0; if ( begin[152] ) { LABEL_8: v8 = a2->__begin_; if ( (a2->__begin_[152].m_data.m_short.sizex2 & 1) != 0 ) { sub_100006B70(&v32, v8[152].m_data.m_long.longStorage, v8[152].m_data.m_long.size, v3); } else { v9 = v8 + 152; __p = v9->m_data.m_long.longStorage; v32 = *(_OWORD *)&v9->m_data.m_short.sizex2; } goto LABEL_11; } } LOWORD(v32) = 0; LABEL_11: v10 = (cocos2d::CCArray *)sub_1001C3800(&v32); v11 = 0; v36 = v10; while ( v11 < (unsigned int)sub_100720070(v10) ) { v14 = cocos2d::CCArray::stringAtIndex(v10, v11); LODWORD(v37) = cocos2d::CCString::intValue(v14); v15 = v11 + 1; v16 = cocos2d::CCArray::stringAtIndex(v10, v15); v17 = cocos2d::CCString::intValue(v16); v18 = v35; end = v35->m_chanceObjects.__end_; value = v35->m_chanceObjects.__end_cap_.__value_; if ( end < value ) { v12 = v37; end->m_groupID = v37; end->m_oldGroupID = v12; end->m_chance = v17; end->m_unk00c = 0; v13 = end + 1; } else { v21 = v35->m_chanceObjects.__begin_; v22 = (char *)end - (char *)v21; v23 = (v22 >> 4) + 1; if ( v23 > 0xFFFFFFFFFFFFFFFLL ) sub_1001F4810(); v24 = (char *)value - (char *)v21; v25 = v24 >> 3; if ( v24 >> 3 <= v23 ) v25 = (v22 >> 4) + 1; if ( (unsigned __int64)v24 >= 0x7FFFFFFFFFFFFFF0LL ) v25 = 0xFFFFFFFFFFFFFFFLL; __src = v35->m_chanceObjects.__begin_; if ( v25 ) { v34 = v17; if ( v25 > 0xFFFFFFFFFFFFFFFLL ) sub_100054850(); v26 = (ChanceObject *)operator new(16 * v25); v17 = v34; } else { v26 = nullptr; } v27 = v37; v28 = v22 >> 4; v29 = &v26[v25]; v26[v28].m_groupID = v37; v26[v28].m_oldGroupID = v27; v26[v28].m_chance = v17; v26[v28].m_unk00c = 0; v37 = (__int64)&v26[v28 + 1]; memcpy(v26, __src, v22); v13 = (ChanceObject *)v37; v30 = v35; v35->m_chanceObjects.__begin_ = v26; v18 = v30; v30->m_chanceObjects.__end_ = v13; v30->m_chanceObjects.__end_cap_.__value_ = v29; if ( __src ) operator delete(__src); } v10 = v36; v18->m_chanceObjects.__end_ = v13; v11 = v15 + 1; } if ( (v32 & 1) != 0 ) operator delete(__p); }
GD Web Decomp Icon

GD Web Decomp

Raw Source