{"type": "func", "start": 4297470400, "end": 4297470701, "name": "CCMenuItemSpriteExtra::init", "pseudocode": "// \n// CCMenuItemSpriteExtra::init from 0x1002631c0 to 0x1002632ed (301 bytes)\n// \n// 7 xrefs:\n// > GJThreadCell::loadFromThread @ 0x100233c76\n// > sub_100240CB0 @ 0x100240d20\n// > CCMenuItemSpriteExtra::create @ 0x100263176\n// > InfoAlertButton::create @ 0x1005a3014\n// > InfoAlertButton::init @ 0x1005a314d\n// > CreateMenuItem::create @ 0x100603d51\n// > CreateMenuItem::init @ 0x100603da5\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:27:32 +0000\n// \n\n__int64 __fastcall CCMenuItemSpriteExtra::init(__int64 a1, __int64 a2, int a3, int a4, __int64 a5, __int64 a6)\n{\n  __int64 result; // rax\n  unsigned int v7; // r12d\n  float v8; // xmm0_4\n  float v9; // xmm0_4\n  double v10; // xmm1_8\n  __int64 v11; // rax\n  __int128 v12; // [rsp+18h] [rbp-38h] BYREF\n  float v13; // [rsp+28h] [rbp-28h]\n  float v14; // [rsp+2Ch] [rbp-24h]\n\n  *(_QWORD *)&v12 = a5;\n  *((_QWORD *)&v12 + 1) = a6;\n  result = cocos2d::CCMenuItemSprite::initWithNormalSprite(a1, a2, a3, 0, a4, a6, v12);\n  if ( (_BYTE)result )\n  {\n    *(_DWORD *)(a1 + 404) = 1065353216;\n    v7 = result;\n    sub_100278250(&v12, 0.5, 0.5);\n    (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)a2 + 296LL))(a2, &v12);\n    v14 = *(float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2);\n    v8 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 136LL))(a2);\n    v14 = v8 * v14;\n    v13 = *(float *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 328LL))(a2) + 4);\n    v9 = (*(float (__fastcall **)(__int64))(*(_QWORD *)a2 + 152LL))(a2);\n    *(_QWORD *)&v10 = LODWORD(v13);\n    *(float *)&v10 = v13 * v9;\n    sub_100278260(&v12, COERCE_DOUBLE((unsigned __int64)LODWORD(v14)), v10);\n    (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)a1 + 320LL))(a1, &v12);\n    v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a2 + 512LL))(a2);\n    cocos2d::CCNode::convertToNodeSpace((double *)&v12, v11, (unsigned int *)&unk_100BE1930);\n    (*(void (__fastcall **)(__int64, __int128 *))(*(_QWORD *)a2 + 184LL))(a2, &v12);\n    *(_BYTE *)(a1 + 408) = 1;\n    *(_DWORD *)(a1 + 400) = 1067534254;\n    return v7;\n  }\n  return result;\n}", "assembly": "; \n; CCMenuItemSpriteExtra::init from 0x1002631c0 to 0x1002632ed (301 bytes)\n; \n; 7 xrefs:\n; > GJThreadCell::loadFromThread @ 0x100233c76\n; > sub_100240CB0 @ 0x100240d20\n; > CCMenuItemSpriteExtra::create @ 0x100263176\n; > InfoAlertButton::create @ 0x1005a3014\n; > InfoAlertButton::init @ 0x1005a314d\n; > CreateMenuItem::create @ 0x100603d51\n; > CreateMenuItem::init @ 0x100603da5\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:27:32 +0000\n; \npush    rbp                                                            ; +0x0, 0x1002631c0\nmov     rbp, rsp                                                       ; +0x1, 0x1002631c1\npush    r15                                                            ; +0x4, 0x1002631c4\npush    r14                                                            ; +0x6, 0x1002631c6\npush    r12                                                            ; +0x8, 0x1002631c8\npush    rbx                                                            ; +0xa, 0x1002631ca\nsub     rsp, 30h                                                       ; +0xb, 0x1002631cb\nmov     rax, rcx                                                       ; +0xf, 0x1002631cf\nmov     r14, rsi                                                       ; +0x12, 0x1002631d2\nmov     rbx, rdi                                                       ; +0x15, 0x1002631d5\nmov     qword ptr [rbp+var_38], r8                                     ; +0x18, 0x1002631d8\nmov     qword ptr [rbp+var_38+8], r9                                   ; +0x1c, 0x1002631dc\nmovups  xmm0, [rbp+var_38]                                             ; +0x20, 0x1002631e0\nmovups  [rsp+50h+var_50], xmm0                                         ; +0x24, 0x1002631e4\nxor     ecx, ecx                                                       ; +0x28, 0x1002631e8\nmov     r8, rax                                                        ; +0x2a, 0x1002631ea\ncall    cocos2d__CCMenuItemSprite__initWithNormalSprite                ; +0x2d, 0x1002631ed\ntest    al, al                                                         ; +0x32, 0x1002631f2\njz      loc_1002632E0                                                  ; +0x34, 0x1002631f4\nmov     dword ptr [rbx+194h], 3F800000h                                ; +0x3a, 0x1002631fa\nlea     r15, [rbp+var_38]                                              ; +0x44, 0x100263204\nmovss   xmm0, cs:dword_100A03578                                       ; +0x48, 0x100263208\nmov     rdi, r15                                                       ; +0x50, 0x100263210\nmovaps  xmm1, xmm0                                                     ; +0x53, 0x100263213\nmov     r12d, eax                                                      ; +0x56, 0x100263216\ncall    sub_100278250                                                  ; +0x59, 0x100263219\nmov     rax, [r14]                                                     ; +0x5e, 0x10026321e\nmov     rdi, r14                                                       ; +0x61, 0x100263221\nmov     rsi, r15                                                       ; +0x64, 0x100263224\ncall    qword ptr [rax+128h]                                           ; +0x67, 0x100263227\nmov     rax, [r14]                                                     ; +0x6d, 0x10026322d\nmov     rdi, r14                                                       ; +0x70, 0x100263230\ncall    qword ptr [rax+148h]                                           ; +0x73, 0x100263233\nmovss   xmm0, dword ptr [rax]                                          ; +0x79, 0x100263239\nmovss   [rbp+var_24], xmm0                                             ; +0x7d, 0x10026323d\nmov     rax, [r14]                                                     ; +0x82, 0x100263242\nmov     rdi, r14                                                       ; +0x85, 0x100263245\ncall    qword ptr [rax+88h]                                            ; +0x88, 0x100263248\nmulss   xmm0, [rbp+var_24]                                             ; +0x8e, 0x10026324e\nmovss   [rbp+var_24], xmm0                                             ; +0x93, 0x100263253\nmov     rax, [r14]                                                     ; +0x98, 0x100263258\nmov     rdi, r14                                                       ; +0x9b, 0x10026325b\ncall    qword ptr [rax+148h]                                           ; +0x9e, 0x10026325e\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xa4, 0x100263264\nmovss   [rbp+var_28], xmm0                                             ; +0xa9, 0x100263269\nmov     rax, [r14]                                                     ; +0xae, 0x10026326e\nmov     rdi, r14                                                       ; +0xb1, 0x100263271\ncall    qword ptr [rax+98h]                                            ; +0xb4, 0x100263274\nmovss   xmm1, [rbp+var_28]                                             ; +0xba, 0x10026327a\nmulss   xmm1, xmm0                                                     ; +0xbf, 0x10026327f\nmov     rdi, r15                                                       ; +0xc3, 0x100263283\nmovss   xmm0, [rbp+var_24]                                             ; +0xc6, 0x100263286\ncall    sub_100278260                                                  ; +0xcb, 0x10026328b\nmov     rax, [rbx]                                                     ; +0xd0, 0x100263290\nmov     rdi, rbx                                                       ; +0xd3, 0x100263293\nmov     rsi, r15                                                       ; +0xd6, 0x100263296\ncall    qword ptr [rax+140h]                                           ; +0xd9, 0x100263299\nmov     rax, [r14]                                                     ; +0xdf, 0x10026329f\nmov     rdi, r14                                                       ; +0xe2, 0x1002632a2\ncall    qword ptr [rax+200h]                                           ; +0xe5, 0x1002632a5\nlea     rdx, unk_100BE1930                                             ; +0xeb, 0x1002632ab\nmov     rdi, r15                                                       ; +0xf2, 0x1002632b2\nmov     rsi, rax                                                       ; +0xf5, 0x1002632b5\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0xf8, 0x1002632b8\nmov     rax, [r14]                                                     ; +0xfd, 0x1002632bd\nmov     rdi, r14                                                       ; +0x100, 0x1002632c0\nmov     rsi, r15                                                       ; +0x103, 0x1002632c3\ncall    qword ptr [rax+0B8h]                                           ; +0x106, 0x1002632c6\nmov     eax, r12d                                                      ; +0x10c, 0x1002632cc\nmov     byte ptr [rbx+198h], 1                                         ; +0x10f, 0x1002632cf\nmov     dword ptr [rbx+190h], 3FA147AEh                                ; +0x116, 0x1002632d6\nadd     rsp, 30h                                                       ; +0x120, 0x1002632e0\npop     rbx                                                            ; +0x124, 0x1002632e4\npop     r12                                                            ; +0x125, 0x1002632e5\npop     r14                                                            ; +0x127, 0x1002632e7\npop     r15                                                            ; +0x129, 0x1002632e9\npop     rbp                                                            ; +0x12b, 0x1002632eb\nretn                                                                   ; +0x12c, 0x1002632ec", "xrefs": ["GJThreadCell::loadFromThread @ 0x100233c76", "sub_100240CB0 @ 0x100240d20", "CCMenuItemSpriteExtra::create @ 0x100263176", "InfoAlertButton::create @ 0x1005a3014", "InfoAlertButton::init @ 0x1005a314d", "CreateMenuItem::create @ 0x100603d51", "CreateMenuItem::init @ 0x100603da5"], "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"}