{"type": "func", "start": 11084584, "end": 11084764, "name": "DungeonBarsSprite::init", "pseudocode": "// \n// DungeonBarsSprite::init from 0xa92328 to 0xa923dc (180 bytes)\n// \n// 3 xrefs:\n// > DungeonBarsSprite::create @ 0xa92410\n// > <???> @ 0xa33a8\n// > <???> @ 0x149a9f0\n// \n// This function is hookable on this platform (idp: arm, 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 13:00:41 +0000\n// \n\n__int64 __fastcall DungeonBarsSprite::init(DungeonBarsSprite *this)\n{\n  unsigned __int8 v2; // w0\n  const char *v3; // x1\n  unsigned int v4; // w20\n  __int64 v5; // x0\n  __int64 v6; // x2\n  __int64 v7; // x21\n  void (__fastcall *v8)(__int64, _BYTE *); // x22\n  _BYTE v10[8]; // [xsp+40h] [xbp+40h] BYREF\n\n  v2 = cocos2d::CCNode::init(this);\n  v4 = v2;\n  if ( v2 )\n  {\n    v5 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)\"dungeon_bars_001.png\", v3);\n    v6 = *(_QWORD *)this;\n    *((_QWORD *)this + 40) = v5;\n    (*(void (__fastcall **)(DungeonBarsSprite *))(v6 + 456))(this);\n    v7 = *((_QWORD *)this + 40);\n    v8 = *(void (__fastcall **)(__int64, _BYTE *))(*(_QWORD *)v7 + 184LL);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v10, 0.0, -2.0);\n    v8(v7, v10);\n  }\n  return v4;\n}", "assembly": "; \n; DungeonBarsSprite::init from 0xa92328 to 0xa923dc (180 bytes)\n; \n; 3 xrefs:\n; > DungeonBarsSprite::create @ 0xa92410\n; > <???> @ 0xa33a8\n; > <???> @ 0x149a9f0\n; \n; This function is hookable on this platform (idp: arm, 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 13:00:41 +0000\n; \nSTP             X29, X30, [SP,#var_50]!                                ; +0x0, 0xa92328\nMOV             X29, SP                                                ; +0x4, 0xa9232c\nSTP             X19, X20, [SP,#0x50+var_40]                            ; +0x8, 0xa92330\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa92334\nSTP             X21, X22, [SP,#0x50+var_30]                            ; +0x10, 0xa92338\nMOV             X21, X0                                                ; +0x14, 0xa9233c\nLDR             X1, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0xa92340\nLDR             X1, [X1]                                               ; +0x1c, 0xa92344\nSTR             X1, [X29,#0x50+var_8]                                  ; +0x20, 0xa92348\nBL              _ZN7cocos2d6CCNode4initEv; cocos2d::CCNode::init(void) ; +0x24, 0xa9234c\nUXTB            W0, W0                                                 ; +0x28, 0xa92350\nMOV             W20, W0                                                ; +0x2c, 0xa92354\nCBZ             W0, loc_A923B0                                         ; +0x30, 0xa92358\nADRP            X0, #aDungeonBars001@PAGE; \"dungeon_bars_001.png\"      ; +0x34, 0xa9235c\nADD             X22, X29, #0x50+var_10                                 ; +0x38, 0xa92360\nADD             X0, X0, #aDungeonBars001@PAGEOFF; \"dungeon_bars_001.png\" ; +0x3c, 0xa92364\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x40, 0xa92368\nMOV             X1, X0                                                 ; +0x44, 0xa9236c\nLDR             X2, [X21]                                              ; +0x48, 0xa92370\nMOV             X0, X21                                                ; +0x4c, 0xa92374\nSTR             X1, [X21,#0x140]                                       ; +0x50, 0xa92378\nLDR             X2, [X2,#0x1C8]                                        ; +0x54, 0xa9237c\nBLR             X2                                                     ; +0x58, 0xa92380\nLDR             X21, [X21,#0x140]                                      ; +0x5c, 0xa92384\nFMOV            S0, WZR; float                                         ; +0x60, 0xa92388\nMOV             X0, X22; this                                          ; +0x64, 0xa9238c\nFMOV            S1, #-2.0; float                                       ; +0x68, 0xa92390\nSTR             X22, [X29,#0x50+var_18]                                ; +0x6c, 0xa92394\nLDR             X2, [X21]                                              ; +0x70, 0xa92398\nLDR             X22, [X2,#0xB8]                                        ; +0x74, 0xa9239c\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x78, 0xa923a0\nLDR             X1, [X29,#0x50+var_18]                                 ; +0x7c, 0xa923a4\nMOV             X0, X21                                                ; +0x80, 0xa923a8\nBLR             X22                                                    ; +0x84, 0xa923ac\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x88, 0xa923b0\nMOV             W0, W20                                                ; +0x8c, 0xa923b4\nLDR             X2, [X29,#0x50+var_8]                                  ; +0x90, 0xa923b8\nLDR             X1, [X19]                                              ; +0x94, 0xa923bc\nCMP             X2, X1                                                 ; +0x98, 0xa923c0\nB.NE            loc_A923D8                                             ; +0x9c, 0xa923c4\nLDP             X19, X20, [SP,#0x50+var_40]                            ; +0xa0, 0xa923c8\nLDP             X21, X22, [SP,#0x50+var_30]                            ; +0xa4, 0xa923cc\nLDP             X29, X30, [SP+0x50+var_50],#0x50                       ; +0xa8, 0xa923d0\nRET                                                                    ; +0xac, 0xa923d4\nBL              .__stack_chk_fail                                      ; +0xb0, 0xa923d8", "xrefs": ["DungeonBarsSprite::create @ 0xa92410", "<???> @ 0xa33a8", "<???> @ 0x149a9f0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}