// // SetupTriggerPopup::updateDefaultTriggerValues from 0x679178 to 0x679396 (542 bytes) // // 8 xrefs: // > SetupCollisionTriggerPopup::updateDefaultTriggerValues @ 0x6260b0 // > SetupInstantCollisionTriggerPopup::updateDefaultTriggerValues @ 0x6266d6 // > SetupTeleportPopup::updateDefaultTriggerValues @ 0x680722 // > SetupShaderEffectPopup::updateDefaultTriggerValues @ 0x68814a // > SetupAreaAnimTriggerPopup::updateDefaultTriggerValues @ 0x68f190 // > SetupAreaMoveTriggerPopup::updateDefaultTriggerValues @ 0x693698 // > SetupAdvFollowPopup::updateDefaultTriggerValues @ 0x696566 // > SetupAdvFollowRetargetPopup::updateDefaultTriggerValues @ 0x69738a // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:55:57 +0000 // int __fastcall SetupTriggerPopup::updateDefaultTriggerValues(cocos2d::CCObject **this) { cocos2d::CCArray *v2; // r7 int v3; // r0 _DWORD *v4; // r2 int result; // r0 int *v6; // r6 int *v7; // r5 int v8; // r3 int v9; // t1 int v10; // r7 cocos2d::CCFloat *v11; // r0 _DWORD *v12; // r2 int *v13; // r5 int *v14; // r6 int v15; // r3 int v16; // t1 int v17; // r0 _DWORD *v18; // r3 unsigned int v19; // r8 int *v20; // r9 int v21; // r3 int v22; // t1 _DWORD *v23; // r3 unsigned int v24; // r5 int *v25; // r8 int v26; // r3 int v27; // t1 _DWORD *v28; // r2 int v29; // r10 GameObject **v30; // r6 int v31; // r3 float v32; // s16 GameObject **v33; // r5 int v34; // r2 GameObject *v35; // r2 GameObject *v36; // t1 float TriggerValue; // r0 _DWORD *v38; // r2 int v39; // r10 int v40; // r3 GameObject **v41; // r2 int v42; // r3 unsigned int v43; // r6 GameObject **v44; // r9 GameObject *v45; // r2 GameObject *v46; // t1 float v47; // r1 cocos2d::CCDictionary *v48; // r6 cocos2d::CCObject *v49; // r0 int v50; // r7 float v51; // r1 cocos2d::CCDictionary *v52; // r8 cocos2d::CCObject *v53; // r0 if ( *(this + 132) ) { v2 = (cocos2d::CCArray *)cocos2d::CCArray::create((cocos2d::CCArray *)this); cocos2d::CCArray::addObject(v2, *(this + 132)); } else { v2 = *(this + 133); } if ( !v2 || !cocos2d::CCArray::count(v2) ) { v3 = cocos2d::CCDictionary::allKeys(*(this + 144)); if ( v3 ) { v4 = *(_DWORD **)(v3 + 52); if ( *v4 ) { v6 = (int *)v4[3]; v7 = &v6[*v4 - 1]; while ( v6 <= v7 ) { v9 = *v6++; v8 = v9; if ( !v9 ) break; v10 = *(_DWORD *)(v8 + 52); v11 = (cocos2d::CCFloat *)(*((int (__fastcall **)(cocos2d::CCObject **, int))*this + 183))(this, v10); SetupTriggerPopup::updateValueControls((SetupTriggerPopup *)this, v10, v11); } } } result = cocos2d::CCDictionary::allKeys(*(this + 143)); if ( result ) { v12 = *(_DWORD **)(result + 52); if ( *v12 ) { v13 = (int *)v12[3]; v14 = &v13[*v12 - 1]; while ( v13 <= v14 ) { v16 = *v13++; v15 = v16; if ( !v16 ) break; v50 = *(_DWORD *)(v15 + 52); if ( (*((float (__fastcall **)(cocos2d::CCObject **, int))*this + 183))(this, v50) == 0.0 ) { v52 = *(this + 154); v53 = cocos2d::CCFloat::create(nullptr, v51); result = cocos2d::CCDictionary::setObject(v52, v53, v50); } else { result = (*((int (__fastcall **)(cocos2d::CCObject **, int, int))*this + 181))(this, v50, 1); } } } } return result; } v17 = cocos2d::CCDictionary::allKeys(*(this + 144)); if ( v17 ) { v18 = *(_DWORD **)(v17 + 52); if ( *v18 ) { v19 = v18[3] + 4 * (*v18 + 0x3FFFFFFF); v20 = (int *)v18[3]; while ( 1 ) { LABEL_24: if ( (unsigned int)v20 > v19 ) goto LABEL_21; v22 = *v20++; v21 = v22; if ( !v22 ) goto LABEL_21; v28 = *((_DWORD **)v2 + 13); v29 = *(_DWORD *)(v21 + 52); if ( !*v28 ) break; v30 = (GameObject **)v28[3]; v31 = *v28 + 0x3FFFFFFF; v32 = -99999.0; v33 = &v30[v31]; while ( v30 <= v33 ) { v36 = *v30++; v35 = v36; if ( !v36 ) break; TriggerValue = SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)this, *(float *)&v29, v35, v31); if ( v32 == -99999.0 ) { v32 = TriggerValue; } else if ( v32 != TriggerValue ) { goto LABEL_24; } } v34 = LODWORD(v32); if ( v32 != -99998.0 ) LABEL_40: SetupTriggerPopup::updateValueControls((SetupTriggerPopup *)this, v29, (cocos2d::CCFloat *)v34); } v34 = -943501440; goto LABEL_40; } } LABEL_21: result = cocos2d::CCDictionary::allKeys(*(this + 143)); if ( result ) { v23 = *(_DWORD **)(result + 52); if ( *v23 ) { v24 = v23[3] + 4 * (*v23 + 0x3FFFFFFF); v25 = (int *)v23[3]; LABEL_29: while ( (unsigned int)v25 <= v24 ) { v27 = *v25++; v26 = v27; if ( !v27 ) break; v38 = *((_DWORD **)v2 + 13); v39 = *(_DWORD *)(v26 + 52); if ( *v38 ) { v40 = *v38 + 0x40000000; v41 = (GameObject **)v38[3]; v42 = v40 - 1; v43 = (unsigned int)&v41[v42]; v44 = v41; while ( (unsigned int)v44 <= v43 ) { v46 = *v44++; v45 = v46; if ( !v46 ) break; if ( SetupTriggerPopup::getTriggerValue((SetupTriggerPopup *)this, *(float *)&v39, v45, v42) == 0.0 ) { v48 = *(this + 154); v49 = cocos2d::CCFloat::create(nullptr, v47); result = cocos2d::CCDictionary::setObject(v48, v49, v39); goto LABEL_29; } } } result = (*((int (__fastcall **)(cocos2d::CCObject **, int, int))*this + 181))(this, v39, 1); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source