{"type": "func", "start": 6442834464, "end": 6442834641, "name": "cocos2d::CCMenuItemSprite::setNormalImage", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::setNormalImage from 0x18005da20 to 0x18005dad1 (177 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800febc8\n// > <???> @ 0x1800ff038\n// > <???> @ 0x180142014\n// > <???> @ 0x180142024\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd1c8\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::setNormalImage(\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; // rbx\n  __int64 v9; // rax\n  float v10; // [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        1);\n      v5 = *(_QWORD *)a2;\n      v6 = kmVec2Fill(&v10, 0.0, 0.0);\n      (*(void (__fastcall **)(struct cocos2d::CCNode *, float *))(v5 + 288))(a2, v6);\n    }\n    v7 = *((_QWORD *)this + 47);\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 + 47) = a2;\n    v9 = (*(__int64 (__fastcall **)(struct cocos2d::CCNode *))(*(_QWORD *)a2 + 320LL))(a2);\n    (*(void (__fastcall **)(cocos2d::CCMenuItemSprite *, __int64))(v8 + 312))(this, v9);\n    (*(void (__fastcall **)(cocos2d::CCMenuItemSprite *))(*(_QWORD *)this + 1000LL))(this);\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::setNormalImage from 0x18005da20 to 0x18005dad1 (177 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800febc8\n; > <???> @ 0x1800ff038\n; > <???> @ 0x180142014\n; > <???> @ 0x180142024\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd1c8\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, 0x18005da20\npush    rdi                                                            ; +0x5, 0x18005da25\nsub     rsp, 20h                                                       ; +0x6, 0x18005da26\nmov     rsi, rdx                                                       ; +0xa, 0x18005da2a\nmov     rdi, rcx                                                       ; +0xd, 0x18005da2d\ncmp     rdx, [rcx+178h]                                                ; +0x10, 0x18005da30\njz      loc_18005DAC6                                                  ; +0x17, 0x18005da37\nmov     [rsp+28h+arg_8], rbx                                           ; +0x1d, 0x18005da3d\ntest    rdx, rdx                                                       ; +0x22, 0x18005da42\njz      short loc_18005DA78                                            ; +0x25, 0x18005da45\nmov     rax, [rcx]                                                     ; +0x27, 0x18005da47\nmov     r9d, 1                                                         ; +0x2a, 0x18005da4a\nxor     r8d, r8d                                                       ; +0x30, 0x18005da50\ncall    qword ptr [rax+1C0h]                                           ; +0x33, 0x18005da53\nmov     rbx, [rsi]                                                     ; +0x39, 0x18005da59\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x3c, 0x18005da5c\nxorps   xmm2, xmm2                                                     ; +0x41, 0x18005da61\nxorps   xmm1, xmm1                                                     ; +0x44, 0x18005da64\ncall    kmVec2Fill                                                     ; +0x47, 0x18005da67\nmov     rdx, rax                                                       ; +0x4c, 0x18005da6c\nmov     rcx, rsi                                                       ; +0x4f, 0x18005da6f\ncall    qword ptr [rbx+120h]                                           ; +0x52, 0x18005da72\nmov     rdx, [rdi+178h]                                                ; +0x58, 0x18005da78\ntest    rdx, rdx                                                       ; +0x5f, 0x18005da7f\njz      short loc_18005DA93                                            ; +0x62, 0x18005da82\nmov     rax, [rdi]                                                     ; +0x64, 0x18005da84\nmov     r8b, 1                                                         ; +0x67, 0x18005da87\nmov     rcx, rdi                                                       ; +0x6a, 0x18005da8a\ncall    qword ptr [rax+218h]                                           ; +0x6d, 0x18005da8d\nmov     rbx, [rdi]                                                     ; +0x73, 0x18005da93\nmov     rcx, rsi                                                       ; +0x76, 0x18005da96\nmov     [rdi+178h], rsi                                                ; +0x79, 0x18005da99\nmov     rax, [rsi]                                                     ; +0x80, 0x18005daa0\ncall    qword ptr [rax+140h]                                           ; +0x83, 0x18005daa3\nmov     rdx, rax                                                       ; +0x89, 0x18005daa9\nmov     rcx, rdi                                                       ; +0x8c, 0x18005daac\ncall    qword ptr [rbx+138h]                                           ; +0x8f, 0x18005daaf\nmov     rax, [rdi]                                                     ; +0x95, 0x18005dab5\nmov     rcx, rdi                                                       ; +0x98, 0x18005dab8\ncall    qword ptr [rax+3E8h]                                           ; +0x9b, 0x18005dabb\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa1, 0x18005dac1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0xa6, 0x18005dac6\nadd     rsp, 20h                                                       ; +0xab, 0x18005dacb\npop     rdi                                                            ; +0xaf, 0x18005dacf\nretn                                                                   ; +0xb0, 0x18005dad0", "xrefs": ["<???> @ 0x1800febc8", "<???> @ 0x1800ff038", "<???> @ 0x180142014", "<???> @ 0x180142024", "<???> @ 0x18014cf68", "<???> @ 0x1801bd1c8"], "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"}