{"type": "func", "start": 6442472368, "end": 6442472519, "name": "cocos2d::extension::CCControlButton::init", "pseudocode": "// \n// cocos2d::extension::CCControlButton::init from 0x1800053b0 to 0x180005447 (151 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180026270\n// > <???> @ 0x18002a1e8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b48c\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 12:15:35 +0000\n// \n\n// Hidden C++ exception states: #wind=1\nbool __fastcall cocos2d::extension::CCControlButton::init(cocos2d::extension::CCControlButton *this)\n{\n  __int64 v2; // rax\n  cocos2d::CCObject *v3; // rdi\n  __int64 v4; // rbx\n  struct cocos2d::CCLabelTTF *v5; // rax\n  cocos2d::extension::CCScale9Sprite *v7; // [rsp+30h] [rbp+8h]\n\n  v7 = (cocos2d::extension::CCScale9Sprite *)sub_18001F040(0x210u);\n  v2 = cocos2d::extension::CCScale9Sprite::CCScale9Sprite(v7);\n  v3 = (cocos2d::CCObject *)v2;\n  if ( !v2 )\n    goto LABEL_5;\n  if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)v2 + 72LL))(v2) )\n  {\n    (*(void (__fastcall **)(cocos2d::CCObject *, __int64))(*(_QWORD *)v3 + 8LL))(v3, 1);\nLABEL_5:\n    v3 = nullptr;\n    goto LABEL_6;\n  }\n  cocos2d::CCObject::autorelease(v3);\nLABEL_6:\n  v4 = *(_QWORD *)this;\n  v5 = cocos2d::CCLabelTTF::create(byte_180025968, \"Helvetica\", 12.0);\n  return (*(bool (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCLabelTTF *, cocos2d::CCObject *))(v4 + 1184))(\n           this,\n           v5,\n           v3);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::init from 0x1800053b0 to 0x180005447 (151 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180026270\n; > <???> @ 0x18002a1e8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b48c\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 12:15:35 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x1800053b0\nmov     [rsp+arg_10], rsi                                              ; +0x5, 0x1800053b5\npush    rdi                                                            ; +0xa, 0x1800053ba\nsub     rsp, 20h                                                       ; +0xb, 0x1800053bb\nmov     rsi, rcx                                                       ; +0xf, 0x1800053bf\nmov     ecx, 210h; Size                                                ; +0x12, 0x1800053c2\ncall    sub_18001F040                                                  ; +0x17, 0x1800053c7\nmov     [rsp+28h+arg_0], rax                                           ; +0x1c, 0x1800053cc\nmov     rcx, rax; this                                                 ; +0x21, 0x1800053d1\ncall    ??0CCScale9Sprite@extension@cocos2d@@QEAA@XZ; cocos2d::extension::CCScale9Sprite::CCScale9Sprite(void) ; +0x24, 0x1800053d4\nmov     rdi, rax                                                       ; +0x29, 0x1800053d9\ntest    rax, rax                                                       ; +0x2c, 0x1800053dc\njz      short loc_180005404                                            ; +0x2f, 0x1800053df\nmov     rax, [rax]                                                     ; +0x31, 0x1800053e1\nmov     rcx, rdi                                                       ; +0x34, 0x1800053e4\ncall    qword ptr [rax+48h]                                            ; +0x37, 0x1800053e7\nmov     rcx, rdi                                                       ; +0x3a, 0x1800053ea\ntest    al, al                                                         ; +0x3d, 0x1800053ed\njz      short loc_1800053F9                                            ; +0x3f, 0x1800053ef\ncall    cs:?autorelease@CCObject@cocos2d@@QEAAPEAV12@XZ; cocos2d::CCObject::autorelease(void) ; +0x41, 0x1800053f1\njmp     short loc_180005406                                            ; +0x47, 0x1800053f7\nmov     rax, [rdi]                                                     ; +0x49, 0x1800053f9\nmov     edx, 1                                                         ; +0x4c, 0x1800053fc\ncall    qword ptr [rax+8]                                              ; +0x51, 0x180005401\nxor     edi, edi                                                       ; +0x54, 0x180005404\nmov     rbx, [rsi]                                                     ; +0x56, 0x180005406\nmovss   xmm2, cs:dword_18002BC58                                       ; +0x59, 0x180005409\nlea     rdx, aHelvetica; \"Helvetica\"                                   ; +0x61, 0x180005411\nlea     rcx, byte_180025968                                            ; +0x68, 0x180005418\ncall    cs:?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x6f, 0x18000541f\nmov     rdx, rax                                                       ; +0x75, 0x180005425\nmov     r8, rdi                                                        ; +0x78, 0x180005428\nmov     rcx, rsi                                                       ; +0x7b, 0x18000542b\nmov     rax, [rbx+4A0h]                                                ; +0x7e, 0x18000542e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x85, 0x180005435\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x8a, 0x18000543a\nadd     rsp, 20h                                                       ; +0x8f, 0x18000543f\npop     rdi                                                            ; +0x93, 0x180005443\njmp     rax                                                            ; +0x94, 0x180005444", "xrefs": ["<???> @ 0x180026270", "<???> @ 0x18002a1e8", "<???> @ 0x180032408", "<???> @ 0x18004b48c"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}