{"type": "func", "start": 4298184880, "end": 4298185008, "name": "DungeonBarsSprite::init", "pseudocode": "// \n// DungeonBarsSprite::init from 0x1003118b0 to 0x100311930 (128 bytes)\n// \n// 2 xrefs:\n// > DungeonBarsSprite::create @ 0x10030ef90\n// > <???> @ 0x1007ee880\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 DungeonBarsSprite::init(DungeonBarsSprite *a1)\n{\n  _BOOL4 v2; // w19\n  cocos2d::CCSprite *v3; // x0\n  __n128 v4; // q0\n  cocos2d::CCSprite *m_barsSprite; // x20\n  __n128 v6; // q1\n  int v8; // [xsp+8h] [xbp-18h] BYREF\n\n  v2 = cocos2d::CCNode::init(a1);\n  if ( v2 )\n  {\n    v3 = cocos2d::CCSprite::createWithSpriteFrameName(\"dungeon_bars_001.png\");\n    a1->m_barsSprite = v3;\n    v4 = ((__n128 (__fastcall *)(DungeonBarsSprite *, cocos2d::CCSprite *))a1->addChild)(a1, v3);\n    m_barsSprite = a1->m_barsSprite;\n    v4.n128_u32[0] = 0;\n    v6.n128_u32[0] = -2.0;\n    sub_100022980(v4, v6, &v8);\n    ((void (__fastcall *)(cocos2d::CCSprite *, int *))m_barsSprite->setPosition)(m_barsSprite, &v8);\n  }\n  return v2;\n}", "assembly": "; \n; DungeonBarsSprite::init from 0x1003118b0 to 0x100311930 (128 bytes)\n; \n; 2 xrefs:\n; > DungeonBarsSprite::create @ 0x10030ef90\n; > <???> @ 0x1007ee880\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\nSUB             SP, SP, #0x30                                          ; +0x0, 0x1003118b0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1003118b4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1003118b8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1003118bc\nMOV             X20, X0                                                ; +0x10, 0x1003118c0\nBL              cocos2d__CCNode__init                                  ; +0x14, 0x1003118c4\nMOV             X19, X0                                                ; +0x18, 0x1003118c8\nCBZ             W0, loc_10031191C                                      ; +0x1c, 0x1003118cc\nADRL            X0, aDungeonBars001; \"dungeon_bars_001.png\"            ; +0x20, 0x1003118d0\nBL              cocos2d__CCSprite__createWithSpriteFrameName           ; +0x28, 0x1003118d8\nMOV             X1, X0                                                 ; +0x2c, 0x1003118dc\nSTR             X0, [X20,#0x140]                                       ; +0x30, 0x1003118e0\nLDR             X8, [X20]                                              ; +0x34, 0x1003118e4\nLDR             X8, [X8,#0x1B8]                                        ; +0x38, 0x1003118e8\nMOV             X0, X20                                                ; +0x3c, 0x1003118ec\nBLR             X8                                                     ; +0x40, 0x1003118f0\nLDR             X20, [X20,#0x140]                                      ; +0x44, 0x1003118f4\nADD             X0, SP, #0x20+var_18                                   ; +0x48, 0x1003118f8\nFMOV            S0, WZR                                                ; +0x4c, 0x1003118fc\nFMOV            S1, #-2.0                                              ; +0x50, 0x100311900\nBL              sub_100022980                                          ; +0x54, 0x100311904\nLDR             X8, [X20]                                              ; +0x58, 0x100311908\nLDR             X8, [X8,#0xB8]                                         ; +0x5c, 0x10031190c\nADD             X1, SP, #0x20+var_18                                   ; +0x60, 0x100311910\nMOV             X0, X20                                                ; +0x64, 0x100311914\nBLR             X8                                                     ; +0x68, 0x100311918\nMOV             X0, X19                                                ; +0x6c, 0x10031191c\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0x70, 0x100311920\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0x74, 0x100311924\nADD             SP, SP, #0x30 ; '0'                                    ; +0x78, 0x100311928\nRET                                                                    ; +0x7c, 0x10031192c", "xrefs": ["DungeonBarsSprite::create @ 0x10030ef90", "<???> @ 0x1007ee880"], "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"}