// // SetupItemEditTriggerPopup::updateOpButton from 0xa49304 to 0xa49614 (784 bytes) // // 3 xrefs: // > SetupItemEditTriggerPopup::init @ 0xa4b03c // > SetupItemEditTriggerPopup::onOpButton @ 0xa4bcbc // > @ 0x72d08 // // 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 SetupItemEditTriggerPopup::updateOpButton( SetupItemEditTriggerPopup *a1, CCMenuItemSpriteExtra *a2, int a3, int a4) { unsigned int v5; // w23 cocos2d::CCLabelBMFont *m_pComponentContainer; // x22 void *v7; // x0 char *v8; // x1 char *v9; // x0 unsigned int *v10; // x1 int v11; // w2 __int64 v12; // x1 unsigned int *v13; // x1 int v14; // w2 unsigned int *v15; // x1 unsigned int *v16; // x1 int v17; // w2 char *v19; // [xsp+58h] [xbp+58h] BYREF __int64 v20; // [xsp+60h] [xbp+60h] BYREF __int64 v21; // [xsp+68h] [xbp+68h] BYREF __int64 v22; // [xsp+70h] [xbp+70h] BYREF v5 = a4 - 485; m_pComponentContainer = (cocos2d::CCLabelBMFont *)a2->getNormalImage(a2)[1].m_pComponentContainer; v19 = &byte_124B6C8; if ( v5 > 1 ) { if ( (unsigned int)(a4 - 578) > 1 ) { opKeyToString(a3, (__int64)&v22); sub_D163D4(&v19, &v22); v7 = (void *)(v22 - 24); if ( (__int64 *)(v22 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v22 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *(_DWORD *)(v22 - 8); *(_DWORD *)(v22 - 8) = v17 - 1; } if ( v17 <= 0 ) goto LABEL_19; } goto LABEL_4; } signKeyToString(a3, 1, (__int64)&v21); sub_D163D4(&v19, &v21); v12 = v21; v7 = (void *)(v21 - 24); if ( (__int64 *)(v21 - 24) == &qword_124B6B0 ) goto LABEL_4; if ( &pthread_create ) { v13 = (unsigned int *)(v21 - 8); do v14 = __ldaxr(v13); while ( __stlxr(v14 - 1, v13) ); goto LABEL_18; } LABEL_32: v14 = *(_DWORD *)(v12 - 8); *(_DWORD *)(v12 - 8) = v14 - 1; goto LABEL_18; } roundKeyToString(a3, 1, (__int64)&v20); sub_D163D4(&v19, &v20); v12 = v20; v7 = (void *)(v20 - 24); if ( (__int64 *)(v20 - 24) == &qword_124B6B0 ) goto LABEL_4; if ( !&pthread_create ) goto LABEL_32; v15 = (unsigned int *)(v20 - 8); do v14 = __ldaxr(v15); while ( __stlxr(v14 - 1, v15) ); LABEL_18: if ( v14 <= 0 ) LABEL_19: operator delete(v7); LABEL_4: m_pComponentContainer->setString(m_pComponentContainer, (const unsigned __int8 *)v19); if ( (unsigned int)(a4 - 578) <= 1 || v5 <= 1 ) { cocos2d::CCLabelBMFont::limitLabelWidth(m_pComponentContainer, 50.0, 0.8, 0.0); v8 = v19; v9 = v19 - 24; if ( v19 - 24 == (char *)&qword_124B6B0 ) return; } else { v8 = v19; v9 = v19 - 24; if ( v19 - 24 == (char *)&qword_124B6B0 ) return; } if ( &pthread_create ) { v10 = (unsigned int *)(v8 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v8 - 2); *((_DWORD *)v8 - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v9); }
GD Web Decomp Icon

GD Web Decomp

Raw Source