{"type": "func", "start": 6442834720, "end": 6442834866, "name": "cocos2d::CCMenuItemSprite::setSelectedImage", "pseudocode": "// \n// cocos2d::CCMenuItemSprite::setSelectedImage from 0x18005db20 to 0x18005dbb2 (146 bytes)\n// \n// 6 xrefs:\n// > <???> @ 0x1800febd8\n// > <???> @ 0x1800ff048\n// > <???> @ 0x180142038\n// > <???> @ 0x180142048\n// > <???> @ 0x18014cf68\n// > <???> @ 0x1801bd1f8\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::setSelectedImage(\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        2);\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 + 48);\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 + 48) = a2;\n    (*(void (__fastcall **)(cocos2d::CCMenuItemSprite *))(v8 + 1000))(this);\n  }\n}", "assembly": "; \n; cocos2d::CCMenuItemSprite::setSelectedImage from 0x18005db20 to 0x18005dbb2 (146 bytes)\n; \n; 6 xrefs:\n; > <???> @ 0x1800febd8\n; > <???> @ 0x1800ff048\n; > <???> @ 0x180142038\n; > <???> @ 0x180142048\n; > <???> @ 0x18014cf68\n; > <???> @ 0x1801bd1f8\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, 0x18005db20\npush    rdi                                                            ; +0x5, 0x18005db25\nsub     rsp, 20h                                                       ; +0x6, 0x18005db26\nmov     rsi, rdx                                                       ; +0xa, 0x18005db2a\nmov     rdi, rcx                                                       ; +0xd, 0x18005db2d\ncmp     rdx, [rcx+178h]                                                ; +0x10, 0x18005db30\njz      short loc_18005DBA7                                            ; +0x17, 0x18005db37\ntest    rdx, rdx                                                       ; +0x19, 0x18005db39\njz      short loc_18005DB79                                            ; +0x1c, 0x18005db3c\nmov     rax, [rcx]                                                     ; +0x1e, 0x18005db3e\nmov     r9d, 2                                                         ; +0x21, 0x18005db41\nxor     r8d, r8d                                                       ; +0x27, 0x18005db47\nmov     [rsp+28h+arg_8], rbx                                           ; +0x2a, 0x18005db4a\ncall    qword ptr [rax+1C0h]                                           ; +0x2f, 0x18005db4f\nmov     rbx, [rsi]                                                     ; +0x35, 0x18005db55\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x38, 0x18005db58\nxorps   xmm2, xmm2                                                     ; +0x3d, 0x18005db5d\nxorps   xmm1, xmm1                                                     ; +0x40, 0x18005db60\ncall    kmVec2Fill                                                     ; +0x43, 0x18005db63\nmov     rdx, rax                                                       ; +0x48, 0x18005db68\nmov     rcx, rsi                                                       ; +0x4b, 0x18005db6b\ncall    qword ptr [rbx+120h]                                           ; +0x4e, 0x18005db6e\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x54, 0x18005db74\nmov     rdx, [rdi+180h]                                                ; +0x59, 0x18005db79\ntest    rdx, rdx                                                       ; +0x60, 0x18005db80\njz      short loc_18005DB94                                            ; +0x63, 0x18005db83\nmov     rax, [rdi]                                                     ; +0x65, 0x18005db85\nmov     r8b, 1                                                         ; +0x68, 0x18005db88\nmov     rcx, rdi                                                       ; +0x6b, 0x18005db8b\ncall    qword ptr [rax+218h]                                           ; +0x6e, 0x18005db8e\nmov     rax, [rdi]                                                     ; +0x74, 0x18005db94\nmov     rcx, rdi                                                       ; +0x77, 0x18005db97\nmov     [rdi+180h], rsi                                                ; +0x7a, 0x18005db9a\ncall    qword ptr [rax+3E8h]                                           ; +0x81, 0x18005dba1\nmov     rsi, [rsp+28h+arg_10]                                          ; +0x87, 0x18005dba7\nadd     rsp, 20h                                                       ; +0x8c, 0x18005dbac\npop     rdi                                                            ; +0x90, 0x18005dbb0\nretn                                                                   ; +0x91, 0x18005dbb1", "xrefs": ["<???> @ 0x1800febd8", "<???> @ 0x1800ff048", "<???> @ 0x180142038", "<???> @ 0x180142048", "<???> @ 0x18014cf68", "<???> @ 0x1801bd1f8"], "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"}