{"type": "func", "start": 6442833488, "end": 6442833634, "name": "cocos2d::CCMenuItemSprite::setDisabledImage", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::setDisabledImage from 0x18005d650 to 0x18005d6e2 (146 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800febe8\n// > <???> @ 0x1800ff058\n// > <???> @ 0x18014205c\n// > <???> @ 0x18014206c\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd108\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 11:21:49 +0000\n// \n\nvoid __fastcall cocos2d::CCMenuItemSprite::setDisabledImage(\n        cocos2d::CCMenuItemSprite *this,\n        struct cocos2d::CCNode *a2,\n        __int64 a3)\n{\n  __int64 v5; // rbx\n  float *v6; // rax\n  __int64 v7; // rdx\n  __int64 v8; // rax\n  float v9; // [rsp+30h] [rbp+8h] BYREF\n\n  if ( a2 != *((struct cocos2d::CCNode **)this + 47) )\n  {\n    if ( a2 )\n    {\n      (*(void (__fastcall **)(cocos2d::CCMenuItemSprite *, struct cocos2d::CCNode *, _QWORD, __int64))(*(_QWORD *)this + 448LL))(\n        this,\n        a2,\n        0,\n        3);\n      v5 = *(_QWORD *)a2;\n      v6 = kmVec2Fill(&v9, 0.0, 0.0);\n      (*(void (__fastcall **)(struct cocos2d::CCNode *, float *))(v5 + 288))(a2, v6);\n    }\n    v7 = *((_QWORD *)this + 49);\n    if ( v7 )\n    {\n      LOBYTE(a3) = 1;\n      (*(void (__fastcall **)(cocos2d::CCMenuItemSprite *, __int64, __int64))(*(_QWORD *)this + 536LL))(this, v7, a3);\n    }\n    v8 = *(_QWORD *)this;\n    *((_QWORD *)this + 49) = a2;\n    (*(void (__fastcall **)(cocos2d::CCMenuItemSprite *))(v8 + 1000))(this);\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::setDisabledImage from 0x18005d650 to 0x18005d6e2 (146 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800febe8\n; > <???> @ 0x1800ff058\n; > <???> @ 0x18014205c\n; > <???> @ 0x18014206c\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd108\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 11:21:49 +0000\n; \nmov     [rsp+arg_10], rsi                                              ; +0x0, 0x18005d650\npush    rdi                                                            ; +0x5, 0x18005d655\nsub     rsp, 20h                                                       ; +0x6, 0x18005d656\nmov     rsi, rdx                                                       ; +0xa, 0x18005d65a\nmov     rdi, rcx                                                       ; +0xd, 0x18005d65d\ncmp     rdx, [rcx+178h]                                                ; +0x10, 0x18005d660\njz      short loc_18005D6D7                                            ; +0x17, 0x18005d667\ntest    rdx, rdx                                                       ; +0x19, 0x18005d669\njz      short loc_18005D6A9                                            ; +0x1c, 0x18005d66c\nmov     rax, [rcx]                                                     ; +0x1e, 0x18005d66e\nmov     r9d, 3                                                         ; +0x21, 0x18005d671\nxor     r8d, r8d                                                       ; +0x27, 0x18005d677\nmov     [rsp+28h+arg_8], rbx                                           ; +0x2a, 0x18005d67a\ncall    qword ptr [rax+1C0h]                                           ; +0x2f, 0x18005d67f\nmov     rbx, [rsi]                                                     ; +0x35, 0x18005d685\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x38, 0x18005d688\nxorps   xmm2, xmm2                                                     ; +0x3d, 0x18005d68d\nxorps   xmm1, xmm1                                                     ; +0x40, 0x18005d690\ncall    kmVec2Fill                                                     ; +0x43, 0x18005d693\nmov     rdx, rax                                                       ; +0x48, 0x18005d698\nmov     rcx, rsi                                                       ; +0x4b, 0x18005d69b\ncall    qword ptr [rbx+120h]                                           ; +0x4e, 0x18005d69e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x54, 0x18005d6a4\nmov     rdx, [rdi+188h]                                                ; +0x59, 0x18005d6a9\ntest    rdx, rdx                                                       ; +0x60, 0x18005d6b0\njz      short loc_18005D6C4                                            ; +0x63, 0x18005d6b3\nmov     rax, [rdi]                                                     ; +0x65, 0x18005d6b5\nmov     r8b, 1                                                         ; +0x68, 0x18005d6b8\nmov     rcx, rdi                                                       ; +0x6b, 0x18005d6bb\ncall    qword ptr [rax+218h]                                           ; +0x6e, 0x18005d6be\nmov     rax, [rdi]                                                     ; +0x74, 0x18005d6c4\nmov     rcx, rdi                                                       ; +0x77, 0x18005d6c7\nmov     [rdi+188h], rsi                                                ; +0x7a, 0x18005d6ca\ncall    qword ptr [rax+3E8h]                                           ; +0x81, 0x18005d6d1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x87, 0x18005d6d7\nadd     rsp, 20h                                                       ; +0x8c, 0x18005d6dc\npop     rdi                                                            ; +0x90, 0x18005d6e0\nretn                                                                   ; +0x91, 0x18005d6e1", "xrefs": ["<???> @ 0x1800febe8", "<???> @ 0x1800ff058", "<???> @ 0x18014205c", "<???> @ 0x18014206c", "<???> @ 0x18014cf68", "<???> @ 0x1801bd108"], "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"}