{"type": "func", "start": 4297193552, "end": 4297193626, "name": "GJChestSprite::init", "pseudocode": "// \n// GJChestSprite::init from 0x10021f850 to 0x10021f89a (74 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nbool __fastcall GJChestSprite::init(GJChestSprite *a1, int a2)\n{\n  bool result; // al\n  bool v3; // r14\n\n  result = cocos2d::CCSprite::init(a1);\n  if ( result )\n  {\n    a1->m_chestType = a2;\n    v3 = result;\n    ((void (__fastcall *)(GJChestSprite *, void *))a1->setContentSize)(a1, &unk_10099F3F8);\n    GJChestSprite::switchToState(a1, Closed, 0);\n    return v3;\n  }\n  return result;\n}", "assembly": "; \n; GJChestSprite::init from 0x10021f850 to 0x10021f89a (74 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\npush    rbp                                                            ; +0x0, 0x10021f850\nmov     rbp, rsp                                                       ; +0x1, 0x10021f851\npush    r14                                                            ; +0x4, 0x10021f854\npush    rbx                                                            ; +0x6, 0x10021f856\nmov     r14d, esi                                                      ; +0x7, 0x10021f857\nmov     rbx, rdi                                                       ; +0xa, 0x10021f85a\ncall    cocos2d__CCSprite__init                                        ; +0xd, 0x10021f85d\ntest    al, al                                                         ; +0x12, 0x10021f862\njz      short loc_10021F895                                            ; +0x14, 0x10021f864\nmov     [rbx+254h], r14d                                               ; +0x16, 0x10021f866\nmov     rcx, [rbx]                                                     ; +0x1d, 0x10021f86d\nlea     rsi, unk_10099F3F8                                             ; +0x20, 0x10021f870\nmov     rdi, rbx                                                       ; +0x27, 0x10021f877\nmov     r14d, eax                                                      ; +0x2a, 0x10021f87a\ncall    qword ptr [rcx+130h]                                           ; +0x2d, 0x10021f87d\nmov     rdi, rbx                                                       ; +0x33, 0x10021f883\nmov     esi, 2                                                         ; +0x36, 0x10021f886\nxor     edx, edx                                                       ; +0x3b, 0x10021f88b\ncall    GJChestSprite__switchToState                                   ; +0x3d, 0x10021f88d\nmov     eax, r14d                                                      ; +0x42, 0x10021f892\npop     rbx                                                            ; +0x45, 0x10021f895\npop     r14                                                            ; +0x46, 0x10021f896\npop     rbp                                                            ; +0x48, 0x10021f898\nretn                                                                   ; +0x49, 0x10021f899", "xrefs": [], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}