{"type": "func", "start": 9718528, "end": 9718708, "name": "DungeonBarsSprite::init", "pseudocode": "// \n// DungeonBarsSprite::init from 0x944b00 to 0x944bb4 (180 bytes)\n// \n// 3 xrefs:\n// > DungeonBarsSprite::create @ 0x944be8\n// > <???> @ 0x7a1d8\n// > <???> @ 0x11b3b30\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 DungeonBarsSprite::init(DungeonBarsSprite *a1)\n{\n  bool v2; // w20\n  cocos2d::CCSprite *v3; // x0\n  DungeonBarsSprite_vtbl *v4; // x2\n  cocos2d::CCSprite *m_barsSprite; // x21\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // x22\n  cocos2d::CCPoint v8; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = cocos2d::CCNode::init(a1);\n  if ( v2 )\n  {\n    v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"dungeon_bars_001.png\");\n    v4 = a1->__vftable;\n    a1->m_barsSprite = v3;\n    ((void (__fastcall *)(DungeonBarsSprite *))v4->addChild)(a1);\n    m_barsSprite = a1->m_barsSprite;\n    setPosition = m_barsSprite->setPosition;\n    cocos2d::CCPoint::CCPoint(&v8, 0.0, -2.0);\n    setPosition(m_barsSprite, &v8);\n  }\n  return v2;\n}", "assembly": "; \n; DungeonBarsSprite::init from 0x944b00 to 0x944bb4 (180 bytes)\n; \n; 3 xrefs:\n; > DungeonBarsSprite::create @ 0x944be8\n; > <???> @ 0x7a1d8\n; > <???> @ 0x11b3b30\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_50]!                                ; +0x0, 0x944b00\nMOV             X29, SP                                                ; +0x4, 0x944b04\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0x944b08\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x944b0c\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0x944b10\nMOV             X21, X0                                                ; +0x14, 0x944b14\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x944b18\nLDR             X1, [X1]                                               ; +0x1c, 0x944b1c\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x20, 0x944b20\nBL              _ZN7cocos2d6CCNode4initEv; cocos2d::CCNode::init(void) ; +0x24, 0x944b24\nUXTB            W0, W0                                                 ; +0x28, 0x944b28\nMOV             W20, W0                                                ; +0x2c, 0x944b2c\nCBZ             W0, loc_944B88                                         ; +0x30, 0x944b30\nADRP            X0, #aDungeonBars001@PAGE; \"dungeon_bars_001.png\"      ; +0x34, 0x944b34\nADD             X22, X29, #0x50+var_10                                 ; +0x38, 0x944b38\nADD             X0, X0, #aDungeonBars001@PAGEOFF; \"dungeon_bars_001.png\" ; +0x3c, 0x944b3c\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x40, 0x944b40\nMOV             X1, X0                                                 ; +0x44, 0x944b44\nLDR             X2, [X21]                                              ; +0x48, 0x944b48\nMOV             X0, X21                                                ; +0x4c, 0x944b4c\nSTR             X1, [X21,#0x140]                                       ; +0x50, 0x944b50\nLDR             X2, [X2,#0x1B8]                                        ; +0x54, 0x944b54\nBLR             X2                                                     ; +0x58, 0x944b58\nLDR             X21, [X21,#0x140]                                      ; +0x5c, 0x944b5c\nFMOV            S0, WZR; float                                         ; +0x60, 0x944b60\nMOV             X0, X22; this                                          ; +0x64, 0x944b64\nFMOV            S1, #-2.0; float                                       ; +0x68, 0x944b68\nSTR             X22, [X29,#0x50+var_18]                                ; +0x6c, 0x944b6c\nLDR             X2, [X21]                                              ; +0x70, 0x944b70\nLDR             X22, [X2,#0xB8]                                        ; +0x74, 0x944b74\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x78, 0x944b78\nLDR             X1, [X29,#0x50+var_18]                                 ; +0x7c, 0x944b7c\nMOV             X0, X21                                                ; +0x80, 0x944b80\nBLR             X22                                                    ; +0x84, 0x944b84\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0x944b88\nMOV             W0, W20                                                ; +0x8c, 0x944b8c\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x90, 0x944b90\nLDR             X1, [X19]                                              ; +0x94, 0x944b94\nCMP             X2, X1                                                 ; +0x98, 0x944b98\nB.NE            loc_944BB0                                             ; +0x9c, 0x944b9c\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa0, 0x944ba0\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa4, 0x944ba4\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa8, 0x944ba8\nRET                                                                    ; +0xac, 0x944bac\nBL              .__stack_chk_fail                                      ; +0xb0, 0x944bb0", "xrefs": ["DungeonBarsSprite::create @ 0x944be8", "<???> @ 0x7a1d8", "<???> @ 0x11b3b30"], "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"}