{"type": "func", "start": 4297076576, "end": 4297076650, "name": "GJChestSprite::init", "pseudocode": "// \n// GJChestSprite::init from 0x100202f60 to 0x100202faa (74 bytes)\n// \n// 0 xrefs:\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:26:52 +0000\n// \n\n__int64 __fastcall GJChestSprite::init(_DWORD *a1, int a2, double a3, double a4, __m128 a5)\n{\n  __int64 result; // rax\n  unsigned int v6; // r14d\n  double v7; // xmm0_8\n\n  result = cocos2d::CCSprite::init(a1);\n  if ( (_BYTE)result )\n  {\n    a1[149] = a2;\n    v6 = result;\n    v7 = (*(double (__fastcall **)(_DWORD *, void *))(*(_QWORD *)a1 + 320LL))(a1, &unk_100BE1670);\n    GJChestSprite::switchToState(a1, 2, 0, v7, a4, a5);\n    return v6;\n  }\n  return result;\n}", "assembly": "; \n; GJChestSprite::init from 0x100202f60 to 0x100202faa (74 bytes)\n; \n; 0 xrefs:\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:26:52 +0000\n; \npush    rbp                                                            ; +0x0, 0x100202f60\nmov     rbp, rsp                                                       ; +0x1, 0x100202f61\npush    r14                                                            ; +0x4, 0x100202f64\npush    rbx                                                            ; +0x6, 0x100202f66\nmov     r14d, esi                                                      ; +0x7, 0x100202f67\nmov     rbx, rdi                                                       ; +0xa, 0x100202f6a\ncall    cocos2d__CCSprite__init                                        ; +0xd, 0x100202f6d\ntest    al, al                                                         ; +0x12, 0x100202f72\njz      short loc_100202FA5                                            ; +0x14, 0x100202f74\nmov     [rbx+254h], r14d                                               ; +0x16, 0x100202f76\nmov     rcx, [rbx]                                                     ; +0x1d, 0x100202f7d\nlea     rsi, unk_100BE1670                                             ; +0x20, 0x100202f80\nmov     rdi, rbx                                                       ; +0x27, 0x100202f87\nmov     r14d, eax                                                      ; +0x2a, 0x100202f8a\ncall    qword ptr [rcx+140h]                                           ; +0x2d, 0x100202f8d\nmov     rdi, rbx                                                       ; +0x33, 0x100202f93\nmov     esi, 2                                                         ; +0x36, 0x100202f96\nxor     edx, edx                                                       ; +0x3b, 0x100202f9b\ncall    GJChestSprite__switchToState                                   ; +0x3d, 0x100202f9d\nmov     eax, r14d                                                      ; +0x42, 0x100202fa2\npop     rbx                                                            ; +0x45, 0x100202fa5\npop     r14                                                            ; +0x46, 0x100202fa6\npop     rbp                                                            ; +0x48, 0x100202fa8\nretn                                                                   ; +0x49, 0x100202fa9", "xrefs": [], "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"}