{"type": "func", "start": 5176752, "end": 5176850, "name": "DungeonBarsSprite::init", "pseudocode": "// \n// DungeonBarsSprite::init from 0x4efdb0 to 0x4efe12 (98 bytes)\n// \n// 1 xrefs:\n// > DungeonBarsSprite::create @ 0x4ee492\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  _BOOL4 v2; // r6\n  cocos2d::CCSprite *v3; // r0\n  DungeonBarsSprite_vtbl *v4; // r3\n  cocos2d::CCSprite *m_barsSprite; // r7\n  void (__fastcall *setPosition)(cocos2d::CCSprite *__hidden, const cocos2d::CCPoint *); // r8\n  cocos2d::CCPoint v8; // [sp+4h] [bp-Ch] 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    v4->addChild(a1, v3);\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 0x4efdb0 to 0x4efe12 (98 bytes)\n; \n; 1 xrefs:\n; > DungeonBarsSprite::create @ 0x4ee492\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\nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x4efdb0\nMOV             R4, R0                                                 ; +0x4, 0x4efdb4\nLDR             R5, =(__stack_chk_guard_ptr - 0x4EFDBC)                ; +0x6, 0x4efdb6\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x8, 0x4efdb8\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xa, 0x4efdba\nLDR             R3, [R5]                                               ; +0xc, 0x4efdbc\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xe, 0x4efdbe\nBL              _ZN7cocos2d6CCNode4initEv; cocos2d::CCNode::init(void) ; +0x10, 0x4efdc0\nMOV             R6, R0                                                 ; +0x14, 0x4efdc4\nCBZ             R0, loc_4EFDFE                                         ; +0x16, 0x4efdc6\nLDR             R0, =(aDungeonBars001 - 0x4EFDCE); \"dungeon_bars_001.png\" ; +0x18, 0x4efdc8\nADD             R0, PC; \"dungeon_bars_001.png\"                         ; +0x1a, 0x4efdca\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x1c, 0x4efdcc\nLDR             R3, [R4]                                               ; +0x20, 0x4efdd0\nSTR.W           R0, [R4,#0x108]                                        ; +0x22, 0x4efdd2\nMOV             R1, R0                                                 ; +0x26, 0x4efdd6\nLDR.W           R3, [R3,#0xDC]                                         ; +0x28, 0x4efdd8\nMOV             R0, R4                                                 ; +0x2c, 0x4efddc\nBLX             R3                                                     ; +0x2e, 0x4efdde\nLDR.W           R7, [R4,#0x108]                                        ; +0x30, 0x4efde0\nADD             R4, SP, #0x10+var_C                                    ; +0x34, 0x4efde4\nMOVS            R1, #0; float                                          ; +0x36, 0x4efde6\nMOV.W           R2, #0xC0000000; float                                 ; +0x38, 0x4efde8\nLDR             R3, [R7]                                               ; +0x3c, 0x4efdec\nMOV             R0, R4; this                                           ; +0x3e, 0x4efdee\nLDR.W           R8, [R3,#0x5C]                                         ; +0x40, 0x4efdf0\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x44, 0x4efdf4\nMOV             R0, R7                                                 ; +0x48, 0x4efdf8\nMOV             R1, R4                                                 ; +0x4a, 0x4efdfa\nBLX             R8                                                     ; +0x4c, 0x4efdfc\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x4e, 0x4efdfe\nMOV             R0, R6                                                 ; +0x50, 0x4efe00\nLDR             R3, [R5]                                               ; +0x52, 0x4efe02\nCMP             R2, R3                                                 ; +0x54, 0x4efe04\nBEQ             loc_4EFE0C                                             ; +0x56, 0x4efe06\nBLX             __stack_chk_fail                                       ; +0x58, 0x4efe08\nADD             SP, SP, #0x10                                          ; +0x5c, 0x4efe0c\nPOP.W           {R4-R8,PC}                                             ; +0x5e, 0x4efe0e", "xrefs": ["DungeonBarsSprite::create @ 0x4ee492"], "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"}