{"type": "func", "start": 9665572, "end": 9665676, "name": "GJChestSprite::init", "pseudocode": "// \n// GJChestSprite::init from 0x937c24 to 0x937c8c (104 bytes)\n// \n// 2 xrefs:\n// > GJChestSprite::create @ 0x937ce0\n// > <???> @ 0x876c0\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 GJChestSprite::init(GJChestSprite *a1, int a2)\n{\n  bool v3; // w19\n  GJChestSprite_vtbl *v4; // x2\n\n  v3 = cocos2d::CCSprite::init(a1);\n  if ( v3 )\n  {\n    v4 = a1->cocos2d::CCSprite::cocos2d::CCNodeRGBA::cocos2d::CCNode::cocos2d::CCObject::cocos2d::CCCopying::__vftable;\n    a1->m_chestType = a2;\n    v4->setContentSize(a1, &stru_1243500);\n    GJChestSprite::switchToState(a1, Closed, 0);\n  }\n  return v3;\n}", "assembly": "; \n; GJChestSprite::init from 0x937c24 to 0x937c8c (104 bytes)\n; \n; 2 xrefs:\n; > GJChestSprite::create @ 0x937ce0\n; > <???> @ 0x876c0\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             X29, X30, [SP,#var_30]!                                ; +0x0, 0x937c24\nMOV             X29, SP                                                ; +0x4, 0x937c28\nSTP             X19, X20, [SP,#0x30+var_20]                            ; +0x8, 0x937c2c\nMOV             X20, X0                                                ; +0xc, 0x937c30\nSTR             X1, [X29,#0x30+var_8]                                  ; +0x10, 0x937c34\nBL              _ZN7cocos2d8CCSprite4initEv; cocos2d::CCSprite::init(void) ; +0x14, 0x937c38\nUXTB            W0, W0                                                 ; +0x18, 0x937c3c\nLDR             X1, [X29,#0x30+var_8]                                  ; +0x1c, 0x937c40\nMOV             W19, W0                                                ; +0x20, 0x937c44\nCBZ             W0, loc_937C7C                                         ; +0x24, 0x937c48\nLDR             X2, [X20]                                              ; +0x28, 0x937c4c\nMOV             X0, X20                                                ; +0x2c, 0x937c50\nSTR             W1, [X20,#0x254]                                       ; +0x30, 0x937c54\nADRL            X1, stru_12434F8                                       ; +0x34, 0x937c58\nLDR             X2, [X2,#0x130]                                        ; +0x3c, 0x937c60\nADD             X1, X1, #(stru_1243500 - 0x12434F8)                    ; +0x40, 0x937c64\nBLR             X2                                                     ; +0x44, 0x937c68\nMOV             X0, X20                                                ; +0x48, 0x937c6c\nMOV             W1, #2                                                 ; +0x4c, 0x937c70\nMOV             W2, #0                                                 ; +0x50, 0x937c74\nBL              _ZN13GJChestSprite13switchToStateE16ChestSpriteStateb; GJChestSprite::switchToState(ChestSpriteState,bool) ; +0x54, 0x937c78\nMOV             W0, W19                                                ; +0x58, 0x937c7c\nLDP             X19, X20, [SP,#0x30+var_20]                            ; +0x5c, 0x937c80\nLDP             X29, X30, [SP+0x30+var_30],#0x30                       ; +0x60, 0x937c84\nRET                                                                    ; +0x64, 0x937c88", "xrefs": ["GJChestSprite::create @ 0x937ce0", "<???> @ 0x876c0"], "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"}