{"type": "func", "start": 6442477472, "end": 6442477528, "name": "cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState from 0x1800067a0 to 0x1800067d8 (56 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x180026750\n// > <???> @ 0x18002a6c8\n// > <???> @ 0x180032408\n// > <???> @ 0x18004b624\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:36 +0000\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 + 1312LL))(\n    this,\n    v5,\n    a3);\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::setBackgroundSpriteFrameForState from 0x1800067a0 to 0x1800067d8 (56 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x180026750\n; > <???> @ 0x18002a6c8\n; > <???> @ 0x180032408\n; > <???> @ 0x18004b624\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:36 +0000\n; \nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x1800067a0\npush    rdi                                                            ; +0x5, 0x1800067a5\nsub     rsp, 20h                                                       ; +0x6, 0x1800067a6\nmov     rdi, rcx                                                       ; +0xa, 0x1800067aa\nmov     ebx, r8d                                                       ; +0xd, 0x1800067ad\nmov     rcx, rdx; struct cocos2d::CCSpriteFrame *                      ; +0x10, 0x1800067b0\ncall    ?createWithSpriteFrame@CCScale9Sprite@extension@cocos2d@@SAPEAV123@PEAVCCSpriteFrame@3@@Z; cocos2d::extension::CCScale9Sprite::createWithSpriteFrame(cocos2d::CCSpriteFrame *) ; +0x13, 0x1800067b3\nmov     rdx, [rdi]                                                     ; +0x18, 0x1800067b8\nmov     r8d, ebx                                                       ; +0x1b, 0x1800067bb\nmov     rcx, rdi                                                       ; +0x1e, 0x1800067be\nmov     r9, [rdx+520h]                                                 ; +0x21, 0x1800067c1\nmov     rdx, rax                                                       ; +0x28, 0x1800067c8\nmov     rbx, [rsp+28h+arg_0]                                           ; +0x2b, 0x1800067cb\nadd     rsp, 20h                                                       ; +0x30, 0x1800067d0\npop     rdi                                                            ; +0x34, 0x1800067d4\njmp     r9                                                             ; +0x35, 0x1800067d5", "xrefs": ["<???> @ 0x180026750", "<???> @ 0x18002a6c8", "<???> @ 0x180032408", "<???> @ 0x18004b624"], "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"}