// // cocos2d::extension::CCControlButton::setTitleTTFForState from 0x1800061d0 to 0x1800062ea (282 bytes) // // 4 xrefs: // > @ 0x180026710 // > @ 0x18002a688 // > @ 0x180032408 // > @ 0x18004b5c4 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 12:15:36 +0000 // // Hidden C++ exception states: #wind=1 void __fastcall cocos2d::extension::CCControlButton::setTitleTTFForState( cocos2d::extension::CCControlButton *this, const char *a2, unsigned int a3) { cocos2d::CCString *v6; // rdi __m128i si128; // xmm6 void *v8; // rcx __int64 v9; // rbx const char *CString; // rax struct cocos2d::CCLabelTTF *v11; // rax void *Block[2]; // [rsp+30h] [rbp-68h] BYREF __m128i v13; // [rsp+40h] [rbp-58h] v6 = (cocos2d::CCString *)(*(__int64 (__fastcall **)(cocos2d::extension::CCControlButton *, _QWORD))(*(_QWORD *)this + 1208LL))( this, a3); if ( !v6 ) { *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_18002BCB0); v13 = si128; LOBYTE(Block[0]) = 0; v6 = (cocos2d::CCString *)cocos2d::CCString::create(Block); if ( v13.m128i_i64[1] > 0xFuLL ) { v8 = Block[0]; if ( (unsigned __int64)(v13.m128i_i64[1] + 1) >= 0x1000 ) { v8 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v8 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v8); si128 = _mm_load_si128((const __m128i *)&xmmword_18002BCB0); } v13 = si128; LOBYTE(Block[0]) = 0; } v9 = *(_QWORD *)this; CString = cocos2d::CCString::getCString(v6); v11 = cocos2d::CCLabelTTF::create(CString, a2, 12.0); (*(void (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCLabelTTF *, _QWORD))(v9 + 1248))( this, v11, a3); }