// // cocos2d::extension::CCControlButton::getTitleForState from 0x180005e20 to 0x180005f0f (239 bytes) // // 5 xrefs: // > @ 0x1800266e0 // > @ 0x18002a658 // > @ 0x180032408 // > @ 0x18004b570 // > @ 0x18004b57c // // 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 struct cocos2d::CCString *__fastcall cocos2d::extension::CCControlButton::getTitleForState( cocos2d::extension::CCControlButton *this, unsigned int a2) { cocos2d::CCDictionary *v3; // rcx struct cocos2d::CCString *result; // rax __int64 v5; // rbx void *v6; // r8 void *Block[2]; // [rsp+30h] [rbp-38h] BYREF __m128i si128; // [rsp+40h] [rbp-28h] v3 = *((cocos2d::CCDictionary **)this + 66); if ( v3 ) { result = cocos2d::CCDictionary::objectForKey(v3, a2); if ( !result ) return cocos2d::CCDictionary::objectForKey(*((cocos2d::CCDictionary **)this + 66), 1); } else { *(_OWORD *)Block = 0; si128 = _mm_load_si128((const __m128i *)&xmmword_18002BCB0); LOBYTE(Block[0]) = 0; v5 = cocos2d::CCString::create(Block); if ( si128.m128i_i64[1] > 0xFuLL ) { v6 = Block[0]; if ( (unsigned __int64)(si128.m128i_i64[1] + 1) >= 0x1000 ) { v6 = *((void **)Block[0] - 1); if ( (unsigned __int64)((char *)Block[0] - (char *)v6 - 8) > 0x1F ) invoke_watson(nullptr, nullptr, nullptr, 0, 0); } j_j_free(v6); } return (struct cocos2d::CCString *)v5; } return result; }