// // SetupTriggerPopup::updateDefaultTriggerValues from 0x10023ba00 to 0x10023bdf7 (1015 bytes) // // 97 xrefs: // > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x1002d011e // > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x1003095be // > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x10030be3e // > SetupTeleportPopup::updateDefaultTriggerValues @ 0x10035a32e // > SetupInstantCollisionTriggerPopup::updateDefaultTriggerValues @ 0x100397d09 // > SetupAreaMoveTriggerPopup::updateDefaultTriggerValues @ 0x1004d49d9 // > SetupAreaAnimTriggerPopup::updateDefaultTriggerValues @ 0x1004dc254 // > @ 0x1008af2d8 // > @ 0x1008afad0 // > @ 0x1008b2570 // > @ 0x1008b2d68 // > @ 0x1008b5050 // > @ 0x1008b6000 // > @ 0x1008da100 // > @ 0x1008daff0 // > @ 0x1008db7d0 // > @ 0x1008e2b98 // > @ 0x1008edf90 // > @ 0x1008ee7a0 // > @ 0x1008f6a40 // > @ 0x1008f8ad8 // > @ 0x1008fccc0 // > @ 0x1008fdbc8 // > @ 0x1008fe3c0 // > @ 0x1008febd0 // > @ 0x1008ffc98 // > @ 0x100902590 // > @ 0x100902db8 // > @ 0x1009035b0 // > @ 0x100904820 // > @ 0x1009055b8 // > @ 0x100905db0 // > @ 0x1009065a8 // > @ 0x1009080f8 // > @ 0x100909078 // > @ 0x10090e1e8 // > @ 0x100911aa0 // > @ 0x100912ed8 // > @ 0x10091abc8 // > @ 0x10091e7c8 // > @ 0x10091f3f0 // > @ 0x100920b88 // > @ 0x1009230b8 // > @ 0x1009252b0 // > @ 0x100925aa8 // > @ 0x1009262a0 // > @ 0x100928f20 // > @ 0x10092fa00 // > @ 0x1009328e8 // > @ 0x1009470e0 // > @ 0x10094b2c8 // > @ 0x10094bac0 // > @ 0x10094c2b8 // > @ 0x10094cb50 // > @ 0x10094d3e8 // > @ 0x10094dbe0 // > @ 0x10094feb0 // > @ 0x100955a40 // > @ 0x1009591d8 // > @ 0x10095a1f8 // > @ 0x10095b1b8 // > @ 0x10095b9b0 // > @ 0x10095d008 // > @ 0x10095d958 // > @ 0x100966370 // > @ 0x100966b50 // > @ 0x100967360 // > @ 0x100967b58 // > @ 0x100968350 // > @ 0x100968b48 // > @ 0x100969340 // > @ 0x100969b38 // > @ 0x10096a370 // > @ 0x10096ab68 // > @ 0x10096b3a0 // > @ 0x10096bb98 // > @ 0x10096c390 // > @ 0x10096cb88 // > @ 0x10096d380 // > @ 0x10096db78 // > @ 0x10096e370 // > @ 0x10096eb68 // > @ 0x10096f360 // > @ 0x10096fb58 // > @ 0x100971168 // > @ 0x1009776e0 // > @ 0x100977ed8 // > @ 0x100978de0 // > @ 0x10097b290 // > @ 0x10097f848 // > @ 0x100987838 // > @ 0x100988030 // > @ 0x100988858 // > @ 0x100989050 // > @ 0x10098ae38 // > @ 0x10098d6e8 // > @ 0x10098dee0 // // 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 SetupTriggerPopup::updateDefaultTriggerValues(SetupTriggerPopup *a1) { __int64 v1; // rsi SetupTriggerPopup *v2; // rbx __int64 m_gameObjects; // r12 cocos2d::CCDictionary *m_inputNodes; // rdi cocos2d::CCArray *v5; // rax cocos2d::ccArray *v6; // rax unsigned __int64 v7; // r14 int v8; // r15d unsigned int *v9; // rax float TriggerValue; // xmm0_4 GameObject **v11; // r13 GameObject **v12; // r12 float v13; // xmm1_4 bool v14; // zf cocos2d::CCArray *v15; // rax cocos2d::ccArray *data; // rax unsigned __int64 arr; // r15 unsigned __int64 v18; // r12 unsigned int v19; // r14d float v20; // xmm0_4 cocos2d::CCArray *v21; // rax cocos2d::ccArray *v22; // rax cocos2d::CCObject **v23; // r13 cocos2d::CCObject **v24; // r15 unsigned int v25; // r14d SetupTriggerPopup *v26; // rax cocos2d::CCObject **v27; // rbx cocos2d::CCDictionary *m_triggerValues; // r15 cocos2d::CCObject *v29; // r12 cocos2d::CCDictionary *m_valueToggles; // rdi cocos2d::CCArray *v31; // rax cocos2d::ccArray *v32; // rax unsigned __int64 v33; // r14 intptr_t v34; // r15 unsigned int *v35; // rax GameObject **v36; // r12 unsigned __int64 v37; // r13 cocos2d::CCDictionary *v38; // r13 cocos2d::CCObject *v39; // r12 __int64 v40; // [rsp+10h] [rbp-40h] unsigned __int64 v41; // [rsp+18h] [rbp-38h] unsigned __int64 v42; // [rsp+20h] [rbp-30h] v2 = a1; if ( a1->m_gameObject ) { m_gameObjects = sub_10071F9E0(a1, v1); sub_10071FCD0(m_gameObjects, a1->m_gameObject); if ( !m_gameObjects ) goto LABEL_22; } else { m_gameObjects = (__int64)a1->m_gameObjects; if ( !m_gameObjects ) { LABEL_22: v15 = cocos2d::CCDictionary::allKeys(a1->m_inputNodes); if ( v15 ) { data = v15->data; if ( data->num ) { arr = (unsigned __int64)data->arr; v18 = arr + 8LL * data->num - 8; do { if ( !*(_QWORD *)arr ) break; v19 = *(_DWORD *)(*(_QWORD *)arr + 56LL); v20 = ((float (__fastcall *)(SetupTriggerPopup *, _QWORD))a1->getValue)(a1, v19); SetupTriggerPopup::updateValueControls(a1, v19, v20); arr += 8LL; } while ( arr <= v18 ); } } v21 = cocos2d::CCDictionary::allKeys(a1->m_valueToggles); if ( v21 ) { v22 = v21->data; if ( v22->num ) { v23 = v22->arr; v24 = &v23[v22->num - 1]; while ( *v23 ) { v25 = (unsigned int)(*v23)[1].__vftable; if ( ((float (__fastcall *)(SetupTriggerPopup *, _QWORD))v2->getValue)(v2, v25) == 0.0 ) { v26 = v2; v27 = v24; m_triggerValues = v26->m_triggerValues; v29 = (cocos2d::CCObject *)operator new(0x40u); cocos2d::CCObject::CCObject(v29); v29->__vftable = (cocos2d::CCObject_vtbl *)off_1008E2E78; LODWORD(v29[1].__vftable) = 0; cocos2d::CCObject::autorelease(v29); cocos2d::CCDictionary::setObject(m_triggerValues, v29, (int)v25); v24 = v27; v2 = a1; if ( ++v23 > v24 ) return; } else { ((void (__fastcall *)(SetupTriggerPopup *, _QWORD, __int64))v2->updateToggleItem)(v2, v25, 1); if ( ++v23 > v24 ) return; } } } } return; } } if ( !(unsigned int)sub_100720070(m_gameObjects) ) goto LABEL_22; m_inputNodes = a1->m_inputNodes; v5 = cocos2d::CCDictionary::allKeys(m_inputNodes); v40 = m_gameObjects; if ( v5 ) { v6 = v5->data; if ( v6->num ) { v7 = (unsigned __int64)v6->arr; v41 = v7 + 8LL * v6->num - 8; do { if ( !*(_QWORD *)v7 ) break; v8 = *(_DWORD *)(*(_QWORD *)v7 + 56LL); v9 = *(unsigned int **)(m_gameObjects + 56); TriggerValue = -99999.0; if ( !*v9 ) goto LABEL_9; v11 = *((GameObject ***)v9 + 2); v12 = &v11[*v9 - 1]; v13 = -99999.0; while ( *v11 ) { TriggerValue = SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)m_inputNodes, v8, *v11); if ( v13 != -99999.0 ) { v14 = v13 == TriggerValue; TriggerValue = v13; if ( !v14 ) goto LABEL_10; } ++v11; v13 = TriggerValue; if ( v11 > v12 ) goto LABEL_20; } TriggerValue = v13; LABEL_20: if ( TriggerValue != -99998.0 ) { LABEL_9: m_inputNodes = (cocos2d::CCDictionary *)v2; SetupTriggerPopup::updateValueControls(v2, v8, TriggerValue); } LABEL_10: v7 += 8LL; m_gameObjects = v40; } while ( v7 <= v41 ); } } m_valueToggles = v2->m_valueToggles; v31 = cocos2d::CCDictionary::allKeys(m_valueToggles); if ( v31 ) { v32 = v31->data; if ( v32->num ) { v33 = (unsigned __int64)v32->arr; v42 = v33 + 8LL * v32->num - 8; do { if ( !*(_QWORD *)v33 ) break; v34 = *(int *)(*(_QWORD *)v33 + 56LL); v35 = *(unsigned int **)(m_gameObjects + 56); if ( *v35 ) { v36 = *((GameObject ***)v35 + 2); v37 = (unsigned __int64)&v36[*v35 - 1]; while ( *v36 ) { if ( SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)m_valueToggles, v34, *v36) == 0.0 ) { v38 = v2->m_triggerValues; v39 = (cocos2d::CCObject *)operator new(0x40u); cocos2d::CCObject::CCObject(v39); v39->__vftable = (cocos2d::CCObject_vtbl *)off_1008E2E78; LODWORD(v39[1].__vftable) = 0; cocos2d::CCObject::autorelease(v39); m_valueToggles = v38; cocos2d::CCDictionary::setObject(v38, v39, v34); goto LABEL_39; } if ( (unsigned __int64)++v36 > v37 ) break; } } m_valueToggles = (cocos2d::CCDictionary *)v2; ((void (__fastcall *)(SetupTriggerPopup *, _QWORD, __int64))v2->updateToggleItem)(v2, (unsigned int)v34, 1); LABEL_39: v33 += 8LL; m_gameObjects = v40; } while ( v33 <= v42 ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source