// // SetupInstantCollisionTriggerPopup::updateSpecialNodes from 0x951f4c to 0x9523e4 (1176 bytes) // // 3 xrefs: // > SetupInstantCollisionTriggerPopup::valueDidChange @ 0x952400 // > SetupInstantCollisionTriggerPopup::updateDefaultTriggerValues @ 0x952424 // > @ 0x7c5d8 // // 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 SetupInstantCollisionTriggerPopup::updateSpecialNodes(SetupInstantCollisionTriggerPopup *a1) { _BOOL4 v2; // w20 float v3; // s8 CCTextInputNode *v4; // x21 const unsigned __int8 *v5; // x1 unsigned __int8 *v6; // x0 CCTextInputNode *v7; // x23 const unsigned __int8 *v8; // x19 unsigned __int8 *v9; // x20 unsigned int *v10; // x19 int v11; // w0 float v12; // s0 unsigned int *v13; // x19 unsigned int *v14; // x1 int v15; // w2 unsigned __int8 *v16; // x0 float v17; // s0 unsigned int *v18; // x1 unsigned int *v19; // x1 unsigned int *v20; // x1 unsigned int *v21; // x1 int v22; // w2 long double v23; // [xsp+50h] [xbp+50h] const unsigned __int8 *v24; // [xsp+70h] [xbp+70h] BYREF v2 = a1->getValue(a1, 201) != 0.0; v3 = a1->getValue(a1, 138); v23 = ((long double (__fastcall *)(SetupInstantCollisionTriggerPopup *, __int64))a1->getValue)(a1, 200); v4 = (CCTextInputNode *)cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 80); if ( !v4 ) { v7 = (CCTextInputNode *)cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 95); if ( !v7 ) return; if ( !v2 ) { LABEL_16: v12 = a1->getValue(a1, 95); GameToolbox::intToString((__int64 *)&v24, (GameToolbox *)(unsigned int)(int)v12); CCTextInputNode::setString(v7, &v24); v8 = v24; v9 = (unsigned __int8 *)(v24 - 24); if ( v24 - 24 == (const unsigned __int8 *)&qword_124B6B0 ) return; if ( &pthread_create ) { v13 = (unsigned int *)(v24 - 8); do v11 = __ldaxr(v13); while ( __stlxr(v11 - 1, v13) ); goto LABEL_14; } LABEL_45: v11 = *((_DWORD *)v8 - 2); *((_DWORD *)v8 - 2) = v11 - 1; LABEL_14: if ( v11 <= 0 ) operator delete(v9); return; } goto LABEL_10; } if ( !v2 ) { if ( *(float *)&v23 == 0.0 ) { if ( v3 == 0.0 ) { v17 = ((float (__fastcall *)(SetupInstantCollisionTriggerPopup *, __int64, long double))a1->getValue)( a1, 80, v23); GameToolbox::intToString((__int64 *)&v24, (GameToolbox *)(unsigned int)(int)v17); CCTextInputNode::setString(v4, &v24); v5 = v24; v6 = (unsigned __int8 *)(v24 - 24); if ( v24 - 24 == (const unsigned __int8 *)&qword_124B6B0 ) goto LABEL_6; if ( !&pthread_create ) goto LABEL_51; v18 = (unsigned int *)(v24 - 8); do v15 = __ldaxr(v18); while ( __stlxr(v15 - 1, v18) ); } else { sub_D153B8((int)&v24, "P1"); CCTextInputNode::setString(v4, &v24); v5 = v24; v6 = (unsigned __int8 *)(v24 - 24); if ( v24 - 24 == (const unsigned __int8 *)&qword_124B6B0 ) goto LABEL_6; if ( !&pthread_create ) goto LABEL_51; v14 = (unsigned int *)(v24 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } } else { if ( v3 == 0.0 ) { sub_D153B8((int)&v24, "P2"); CCTextInputNode::setString(v4, &v24); v5 = v24; v6 = (unsigned __int8 *)(v24 - 24); if ( v24 - 24 == (const unsigned __int8 *)&qword_124B6B0 ) goto LABEL_6; if ( &pthread_create ) { v20 = (unsigned int *)(v24 - 8); do v15 = __ldaxr(v20); while ( __stlxr(v15 - 1, v20) ); goto LABEL_39; } LABEL_51: v15 = *((_DWORD *)v5 - 2); *((_DWORD *)v5 - 2) = v15 - 1; goto LABEL_39; } sub_D153B8((int)&v24, "P"); CCTextInputNode::setString(v4, &v24); v5 = v24; v6 = (unsigned __int8 *)(v24 - 24); if ( v24 - 24 == (const unsigned __int8 *)&qword_124B6B0 ) goto LABEL_6; if ( !&pthread_create ) goto LABEL_51; v19 = (unsigned int *)(v24 - 8); do v15 = __ldaxr(v19); while ( __stlxr(v15 - 1, v19) ); } LABEL_39: if ( v15 <= 0 ) operator delete(v6); LABEL_6: v7 = (CCTextInputNode *)cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 95); if ( !v7 ) return; goto LABEL_16; } sub_D153B8((int)&v24, "P1"); CCTextInputNode::setString(v4, &v24); v16 = (unsigned __int8 *)(v24 - 24); if ( v24 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v21 = (unsigned int *)(v24 - 8); do v22 = __ldaxr(v21); while ( __stlxr(v22 - 1, v21) ); } else { v22 = *((_DWORD *)v24 - 2); *((_DWORD *)v24 - 2) = v22 - 1; } if ( v22 <= 0 ) operator delete(v16); } v7 = (CCTextInputNode *)cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 95); if ( v7 ) { LABEL_10: sub_D153B8((int)&v24, "P2"); CCTextInputNode::setString(v7, &v24); v8 = v24; v9 = (unsigned __int8 *)(v24 - 24); if ( v24 - 24 == (const unsigned __int8 *)&qword_124B6B0 ) return; if ( &pthread_create ) { v10 = (unsigned int *)(v24 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); goto LABEL_14; } goto LABEL_45; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source