{"type": "func", "start": 6442478864, "end": 6442478917, "name": "cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState from 0x180006d10 to 0x180006d45 (53 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180024208\n// > <???> @ 0x180028050\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800496d8\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\nvoid __fastcall cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState(\n        cocos2d::extension::CCControlButton *this,\n        struct cocos2d::CCSpriteFrame *a2,\n        unsigned int a3)\n{\n  struct cocos2d::extension::CCScale9Sprite *v5; // rax\n\n  v5 = cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(a2);\n  (*(void (__fastcall **)(cocos2d::extension::CCControlButton *, struct cocos2d::extension::CCScale9Sprite *, _QWORD))(*(_QWORD *)this + 1296LL))(\n    this,\n    v5,\n    a3);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState from 0x180006d10 to 0x180006d45 (53 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180024208\n; > <???> @ 0x180028050\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800496d8\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, 0x180006d10\npush    rdi                                                            ; +0x5, 0x180006d15\nsub     rsp, 20h                                                       ; +0x6, 0x180006d16\nmov     rdi, rcx                                                       ; +0xa, 0x180006d1a\nmov     ebx, r8d                                                       ; +0xd, 0x180006d1d\nmov     rcx, rdx; struct cocos2d::CCSpriteFrame *                      ; +0x10, 0x180006d20\ncall    ?createWithSpriteFrame@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEAVCCSpriteFrame@3@@Z; cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(cocos2d::CCSpriteFrame *) ; +0x13, 0x180006d23\nmov     r9, [rdi]                                                      ; +0x18, 0x180006d28\nmov     r8d, ebx                                                       ; +0x1b, 0x180006d2b\nmov     rdx, rax                                                       ; +0x1e, 0x180006d2e\nmov     rcx, rdi                                                       ; +0x21, 0x180006d31\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x24, 0x180006d34\nadd     rsp, 20h                                                       ; +0x29, 0x180006d39\npop     rdi                                                            ; +0x2d, 0x180006d3d\njmp     qword ptr [r9+510h]                                            ; +0x2e, 0x180006d3e", "xrefs": ["<???> @ 0x180024208", "<???> @ 0x180028050", "<???> @ 0x18002fdf8", "<???> @ 0x1800496d8"], "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"}