{"type": "func", "start": 6425360, "end": 6425458, "name": "DungeonBarsSprite::init", "pseudocode": "// \n// DungeonBarsSprite::init from 0x620b10 to 0x620b72 (98 bytes)\n// \n// 1 xrefs:\n// > DungeonBarsSprite::create @ 0x61b206\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:05 +0000\n// \n\nint __fastcall DungeonBarsSprite::init(DungeonBarsSprite *this, int a2, int a3, int a4)\n{\n  const char *v5; // r1\n  int v6; // r6\n  int v7; // r0\n  int v8; // r3\n  int v9; // r7\n  void (__fastcall *v10)(int, _DWORD *); // r8\n  _DWORD v12[3]; // [sp+4h] [bp-Ch] BYREF\n\n  v12[0] = a2;\n  v12[1] = a3;\n  v12[2] = a4;\n  v6 = cocos2d::CCNode::init(this);\n  if ( v6 )\n  {\n    v7 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)\"dungeon_bars_001.png\", v5);\n    v8 = *(_DWORD *)this;\n    *((_DWORD *)this + 66) = v7;\n    (*(void (__fastcall **)(DungeonBarsSprite *, int))(v8 + 228))(this, v7);\n    v9 = *((_DWORD *)this + 66);\n    v10 = *(void (__fastcall **)(int, _DWORD *))(*(_DWORD *)v9 + 92);\n    cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, 0.0, -2.0);\n    v10(v9, v12);\n  }\n  return v6;\n}", "assembly": "; \n; DungeonBarsSprite::init from 0x620b10 to 0x620b72 (98 bytes)\n; \n; 1 xrefs:\n; > DungeonBarsSprite::create @ 0x61b206\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:55:05 +0000\n; \nPUSH.W          {R0-R8,LR}                                             ; +0x0, 0x620b10\nMOV             R4, R0                                                 ; +0x4, 0x620b14\nLDR             R5, =(__stack_chk_guard_ptr - 0x620B1C)                ; +0x6, 0x620b16\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0x8, 0x620b18\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xa, 0x620b1a\nLDR             R3, [R5]                                               ; +0xc, 0x620b1c\nSTR             R3, [SP,#0x10+var_4]                                   ; +0xe, 0x620b1e\nBL              _ZN7cocos2d6CCNode4initEv; cocos2d::CCNode::init(void) ; +0x10, 0x620b20\nMOV             R6, R0                                                 ; +0x14, 0x620b24\nCBZ             R0, loc_620B5E                                         ; +0x16, 0x620b26\nLDR             R0, =(aDungeonBars001 - 0x620B2E); \"dungeon_bars_001.png\" ; +0x18, 0x620b28\nADD             R0, PC; \"dungeon_bars_001.png\"                         ; +0x1a, 0x620b2a\nBL              _ZN7cocos2d8CCSprite25createWithSpriteFrameNameEPKc; cocos2d::CCSprite::createWithSpriteFrameName(char const*) ; +0x1c, 0x620b2c\nLDR             R3, [R4]                                               ; +0x20, 0x620b30\nSTR.W           R0, [R4,#0x108]                                        ; +0x22, 0x620b32\nMOV             R1, R0                                                 ; +0x26, 0x620b36\nLDR.W           R3, [R3,#0xE4]                                         ; +0x28, 0x620b38\nMOV             R0, R4                                                 ; +0x2c, 0x620b3c\nBLX             R3                                                     ; +0x2e, 0x620b3e\nLDR.W           R7, [R4,#0x108]                                        ; +0x30, 0x620b40\nADD             R4, SP, #0x10+var_C                                    ; +0x34, 0x620b44\nMOVS            R1, #0; float                                          ; +0x36, 0x620b46\nMOV.W           R2, #0xC0000000; float                                 ; +0x38, 0x620b48\nLDR             R3, [R7]                                               ; +0x3c, 0x620b4c\nMOV             R0, R4; this                                           ; +0x3e, 0x620b4e\nLDR.W           R8, [R3,#0x5C]                                         ; +0x40, 0x620b50\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x44, 0x620b54\nMOV             R0, R7                                                 ; +0x48, 0x620b58\nMOV             R1, R4                                                 ; +0x4a, 0x620b5a\nBLX             R8                                                     ; +0x4c, 0x620b5c\nLDR             R2, [SP,#0x10+var_4]                                   ; +0x4e, 0x620b5e\nMOV             R0, R6                                                 ; +0x50, 0x620b60\nLDR             R3, [R5]                                               ; +0x52, 0x620b62\nCMP             R2, R3                                                 ; +0x54, 0x620b64\nBEQ             loc_620B6C                                             ; +0x56, 0x620b66\nBLX             __stack_chk_fail                                       ; +0x58, 0x620b68\nADD             SP, SP, #0x10                                          ; +0x5c, 0x620b6c\nPOP.W           {R4-R8,PC}                                             ; +0x5e, 0x620b6e", "xrefs": ["DungeonBarsSprite::create @ 0x61b206"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}