// // cocos2d::extension::CCControlButton::init from 0x180005910 to 0x1800059a7 (151 bytes) // // 4 xrefs: // > @ 0x180023d38 // > @ 0x180027b80 // > @ 0x18002fdf8 // > @ 0x180049540 // // 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 // // Hidden C++ exception states: #wind=1 bool __fastcall cocos2d::extension::CCControlButton::init(cocos2d::extension::CCControlButton *this) { __int64 v2; // rax cocos2d::CCObject *v3; // rdi __int64 v4; // rbx struct cocos2d::CCLabelTTF *v5; // rax cocos2d::extension::CCScale9Sprite *v7; // [rsp+30h] [rbp+8h] v7 = (cocos2d::extension::CCScale9Sprite *)operator new(0x210u); v2 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v7); v3 = (cocos2d::CCObject *)v2; if ( !v2 ) goto LABEL_5; if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 72LL))(v2) ) { (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1); LABEL_5: v3 = nullptr; goto LABEL_6; } cocos2d::CCObject::autorelease(v3); LABEL_6: v4 = *(_QWORD *)this; v5 = cocos2d::CCLabelTTF::create(byte_180023460, "Helvetica", 12.0); return (*(bool (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCLabelTTF *, cocos2d::CCObject *))(v4 + 1168))( this, v5, v3); }