{"type": "func", "start": 6442478416, "end": 6442478473, "name": "cocos2d::extension::CCControlButton::getBackgroundSpriteForState", "pseudocode": "// \n// cocos2d::extension::CCControlButton::getBackgroundSpriteForState from 0x180006b50 to 0x180006b89 (57 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x1800241f8\n// > <???> @ 0x180028040\n// > <???> @ 0x18002fdf8\n// > <???> @ 0x1800496c0\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\nstruct cocos2d::extension::CCScale9Sprite *__fastcall cocos2d::extension::CCControlButton::getBackgroundSpriteForState(\n        cocos2d::CCDictionary **this,\n        unsigned int a2)\n{\n  struct cocos2d::extension::CCScale9Sprite *result; // rax\n\n  result = cocos2d::CCDictionary::objectForKey(*(this + 69), a2);\n  if ( !result )\n    return cocos2d::CCDictionary::objectForKey(*(this + 69), 1);\n  return result;\n}", "assembly": "; \n; cocos2d::extension::CCControlButton::getBackgroundSpriteForState from 0x180006b50 to 0x180006b89 (57 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x1800241f8\n; > <???> @ 0x180028040\n; > <???> @ 0x18002fdf8\n; > <???> @ 0x1800496c0\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\npush    rbx                                                            ; +0x0, 0x180006b50\nsub     rsp, 20h                                                       ; +0x2, 0x180006b52\nmov     rbx, rcx                                                       ; +0x6, 0x180006b56\nmov     edx, edx                                                       ; +0x9, 0x180006b59\nmov     rcx, [rcx+228h]                                                ; +0xb, 0x180006b5b\ncall    cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x12, 0x180006b62\ntest    rax, rax                                                       ; +0x18, 0x180006b68\njnz     short loc_180006B83                                            ; +0x1b, 0x180006b6b\nmov     rcx, [rbx+228h]                                                ; +0x1d, 0x180006b6d\nlea     edx, [rax+1]                                                   ; +0x24, 0x180006b74\nadd     rsp, 20h                                                       ; +0x27, 0x180006b77\npop     rbx                                                            ; +0x2b, 0x180006b7b\njmp     cs:?objectForKey@CCDictionary@cocos2d@@QEAAPEAVCCObject@2@_J@Z; cocos2d::CCDictionary::objectForKey(__int64) ; +0x2c, 0x180006b7c\nadd     rsp, 20h                                                       ; +0x33, 0x180006b83\npop     rbx                                                            ; +0x37, 0x180006b87\nretn                                                                   ; +0x38, 0x180006b88", "xrefs": ["<???> @ 0x1800241f8", "<???> @ 0x180028040", "<???> @ 0x18002fdf8", "<???> @ 0x1800496c0"], "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"}