{"type": "func", "start": 4296835348, "end": 4296835448, "name": "GJChestSprite::init", "pseudocode": "// \n// GJChestSprite::init from 0x1001c8114 to 0x1001c8178 (100 bytes)\n// \n// 1 xrefs:\n// > GJChestSprite::create @ 0x1001c5b70\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  _BOOL4 v4; // w19\n\n  v4 = cocos2d::CCSprite::init(a1);\n  if ( v4 )\n  {\n    a1->m_chestType = a2;\n    ((void (__fastcall *)(GJChestSprite *, void *))a1->setContentSize)(a1, &unk_10086C538);\n    GJChestSprite::switchToState(a1, Closed, 0);\n  }\n  return v4;\n}", "assembly": "; \n; GJChestSprite::init from 0x1001c8114 to 0x1001c8178 (100 bytes)\n; \n; 1 xrefs:\n; > GJChestSprite::create @ 0x1001c5b70\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\nSTP             X22, X21, [SP,#-0x10+var_20]!                          ; +0x0, 0x1001c8114\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1001c8118\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1001c811c\nADD             X29, SP, #0x20                                         ; +0xc, 0x1001c8120\nMOV             X21, X1                                                ; +0x10, 0x1001c8124\nMOV             X20, X0                                                ; +0x14, 0x1001c8128\nBL              cocos2d__CCSprite__init                                ; +0x18, 0x1001c812c\nMOV             X19, X0                                                ; +0x1c, 0x1001c8130\nCBZ             W0, loc_1001C8164                                      ; +0x20, 0x1001c8134\nSTR             W21, [X20,#0x254]                                      ; +0x24, 0x1001c8138\nLDR             X8, [X20]                                              ; +0x28, 0x1001c813c\nLDR             X8, [X8,#0x130]                                        ; +0x2c, 0x1001c8140\nADRL            X1, unk_10086C538                                      ; +0x30, 0x1001c8144\nMOV             X0, X20                                                ; +0x38, 0x1001c814c\nBLR             X8                                                     ; +0x3c, 0x1001c8150\nMOV             X0, X20                                                ; +0x40, 0x1001c8154\nMOV             W1, #2                                                 ; +0x44, 0x1001c8158\nMOV             W2, #0                                                 ; +0x48, 0x1001c815c\nBL              GJChestSprite__switchToState                           ; +0x4c, 0x1001c8160\nMOV             X0, X19                                                ; +0x50, 0x1001c8164\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x54, 0x1001c8168\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x58, 0x1001c816c\nLDP             X22, X21, [SP+0x20+var_20],#0x30                       ; +0x5c, 0x1001c8170\nRET                                                                    ; +0x60, 0x1001c8174", "xrefs": ["GJChestSprite::create @ 0x1001c5b70"], "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"}