{"type": "func", "start": 6442475536, "end": 6442475609, "name": "cocos2d::extension::CCControlButton::initWithBackgroundSprite", "pseudocode": "// \n// cocos2d::extension::CCControlButton::initWithBackgroundSprite from 0x180006010 to 0x180006059 (73 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180024190\n// > <???> @ 0x180027fd8\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x18004957c\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall cocos2d::extension::CCControlButton::initWithBackgroundSprite(\n        cocos2d::extension::CCControlButton *this,\n        struct cocos2d::extension::CCScale9Sprite *a2)\n{\n  struct cocos2d::CCLabelTTF *v4; // rax\n\n  v4 = cocos2d::CCLabelTTF::create(byte_180023460, \"Arial\", 30.0);\n  return (*(bool (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::CCLabelTTF *, struct cocos2d::extension::CCScale9Sprite *))(*(_QWORD *)this + 1168LL))(\n           this,\n           v4,\n           a2);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::initWithBackgroundSprite from 0x180006010 to 0x180006059 (73 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180024190\n; > <???> @ 0x180027fd8\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x18004957c\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x180006010\npush    rdi                                                            ; +0x5, 0x180006015\nsub     rsp, 20h                                                       ; +0x6, 0x180006016\nmovss   xmm2, cs:dword_1800295A0                                       ; +0xa, 0x18000601a\nmov     rbx, rdx                                                       ; +0x12, 0x180006022\nmov     rdi, rcx                                                       ; +0x15, 0x180006025\nlea     rdx, aArial; \"Arial\"                                           ; +0x18, 0x180006028\nlea     rcx, byte_180023460                                            ; +0x1f, 0x18000602f\ncall    cs:?create@CCLabelTTF@cocos2d@@SAPEAV12@PEBD0M@Z; cocos2d::CCLabelTTF::create(char const *,char const *,float) ; +0x26, 0x180006036\nmov     r9, [rdi]                                                      ; +0x2c, 0x18000603c\nmov     r8, rbx                                                        ; +0x2f, 0x18000603f\nmov     rdx, rax                                                       ; +0x32, 0x180006042\nmov     rcx, rdi                                                       ; +0x35, 0x180006045\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x38, 0x180006048\nadd     rsp, 20h                                                       ; +0x3d, 0x18000604d\npop     rdi                                                            ; +0x41, 0x180006051\njmp     qword ptr [r9+490h]                                            ; +0x42, 0x180006052", "xrefs": ["<???> @ 0x180024190", "<???> @ 0x180027fd8", "<???> @ 0x18002fdf8", "<???> @ 0x18004957c"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}