// // CustomizeObjectLayer::updateKerningLabel from 0x84018c to 0x8403f8 (620 bytes) // // 3 xrefs: // > CustomizeObjectLayer::sliderChanged @ 0x84043c // > CustomizeObjectLayer::init @ 0x84368c // > @ 0x790e0 // // 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 CustomizeObjectLayer::updateKerningLabel(CustomizeObjectLayer *a1) { GameToolbox *v2; // x0 void *v3; // x0 cocos2d::CCLabelBMFont *m_kerningLabel; // x0 const unsigned __int8 *v5; // x1 cocos2d::CCLabelBMFont_vtbl *v6; // x3 CCTextInputNode *m_textInput; // x22 unsigned __int8 *v8; // x0 unsigned __int8 *v9; // x0 unsigned int *v10; // x1 int v11; // w2 unsigned int *v12; // x1 int v13; // w2 unsigned int *v14; // x1 int v15; // w2 const unsigned __int8 *v16; // [xsp+50h] [xbp+50h] BYREF __int64 v17; // [xsp+58h] [xbp+58h] BYREF const unsigned __int8 *v18; // [xsp+60h] [xbp+60h] BYREF if ( a1->m_kerningLabel ) { sub_D153B8((int)&v16, "Kerning: "); v2 = (GameToolbox *)((__int64 (__fastcall *)(GameObject *))a1->m_targetObject->getTextKerning)(a1->m_targetObject); GameToolbox::intToString(&v17, v2); sub_D15E14(&v16, &v17); v3 = (void *)(v17 - 24); if ( (__int64 *)(v17 - 24) != &qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v17 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *(_DWORD *)(v17 - 8); *(_DWORD *)(v17 - 8) = v15 - 1; } if ( v15 <= 0 ) operator delete(v3); } m_kerningLabel = a1->m_kerningLabel; v5 = v16; v6 = m_kerningLabel->cocos2d::CCSpriteBatchNode::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable; m_kerningLabel->m_nExtraKerning = a1->m_kerningAmount; v6->setString(m_kerningLabel, v5); m_textInput = a1->m_textInput; if ( m_textInput ) { m_textInput->m_kerningAmount = a1->m_kerningAmount; CCTextInputNode::getString(m_textInput, (__int64)&v18); CCTextInputNode::setString(m_textInput, &v18); v8 = (unsigned __int8 *)(v18 - 24); if ( v18 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v10 = (unsigned int *)(v18 - 8); do v11 = __ldaxr(v10); while ( __stlxr(v11 - 1, v10) ); } else { v11 = *((_DWORD *)v18 - 2); *((_DWORD *)v18 - 2) = v11 - 1; } if ( v11 <= 0 ) operator delete(v8); } } v9 = (unsigned __int8 *)(v16 - 24); if ( v16 - 24 != (const unsigned __int8 *)&qword_124B6B0 ) { if ( &pthread_create ) { v12 = (unsigned int *)(v16 - 8); do v13 = __ldaxr(v12); while ( __stlxr(v13 - 1, v12) ); } else { v13 = *((_DWORD *)v16 - 2); *((_DWORD *)v16 - 2) = v13 - 1; } if ( v13 <= 0 ) operator delete(v9); } } }