{"type": "func", "start": 6399296, "end": 6399590, "name": "DungeonBarsSprite::visit", "pseudocode": "// \n// DungeonBarsSprite::visit from 0x61a540 to 0x61a666 (294 bytes)\n// \n// 0 xrefs:\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:54:58 +0000\n// \n\nvoid __fastcall DungeonBarsSprite::visit(DungeonBarsSprite *this)\n{\n  float v2; // s17\n  float *v3; // r0\n  float v4; // s16\n  float v5; // s17\n  int v6; // r0\n  float v7; // s18\n  float v8; // s16\n  int v9; // r0\n  float v10; // s19\n  float v11; // s15\n  float v12; // r0\n  const cocos2d::CCPoint *v13; // r8\n  int v14; // r0\n  cocos2d::CCEGLView *v15; // r0\n  int v16; // r0\n  float v17; // [sp+Ch] [bp-10h] BYREF\n  float v18; // [sp+10h] [bp-Ch]\n  _DWORD v19[2]; // [sp+14h] [bp-8h] BYREF\n  int v20; // [sp+1Ch] [bp+0h] BYREF\n  _BYTE v21[8]; // [sp+24h] [bp+8h] BYREF\n  float v22; // [sp+2Ch] [bp+10h]\n  float v23; // [sp+30h] [bp+14h]\n  _BYTE v24[8]; // [sp+34h] [bp+18h] BYREF\n  int v25; // [sp+3Ch] [bp+20h]\n  int v26; // [sp+40h] [bp+24h]\n\n  cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v17, 140.0, 125.0);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v21, -(float)(v17 * 0.5), -(float)(v18 * 0.5), v17, v18);\n  v2 = v22;\n  v3 = (float *)(*(int (__fastcall **)(DungeonBarsSprite *))(*(_DWORD *)this + 152))(this);\n  v4 = -v23;\n  v5 = (float)-v2 * *v3;\n  v6 = (*(int (__fastcall **)(DungeonBarsSprite *))(*(_DWORD *)this + 152))(this);\n  v7 = v22;\n  v8 = v4 * *(float *)(v6 + 4);\n  v9 = (*(int (__fastcall **)(DungeonBarsSprite *))(*(_DWORD *)this + 68))(this);\n  v10 = v23;\n  v11 = *(float *)&v9;\n  v12 = (*(float (__fastcall **)(DungeonBarsSprite *))(*(_DWORD *)this + 76))(this);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v24, v5, v8, v7 * v11, v10 * v12);\n  glEnable(0xC11u);\n  v13 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(DungeonBarsSprite *))(*(_DWORD *)this + 256))(this);\n  v14 = (*(int (__fastcall **)(DungeonBarsSprite *))(*(_DWORD *)this + 96))(this);\n  cocos2d::CCPoint::operator+(&v20, v14, v21);\n  v15 = (cocos2d::CCEGLView *)cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v19, v13);\n  v16 = cocos2d::CCEGLView::sharedOpenGLView(v15);\n  (*(void (__fastcall **)(int, _DWORD, _DWORD, int, int))(*(_DWORD *)v16 + 56))(v16, v19[0], v19[1], v25, v26);\n  cocos2d::CCNode::visit(this);\n  glDisable(0xC11u);\n}", "assembly": "; \n; DungeonBarsSprite::visit from 0x61a540 to 0x61a666 (294 bytes)\n; \n; 0 xrefs:\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:54:58 +0000\n; \nPUSH.W          {R4-R8,LR}                                             ; +0x0, 0x61a540\nMOV             R4, R0                                                 ; +0x4, 0x61a544\nVPUSH           {D8-D9}                                                ; +0x6, 0x61a546\nLDR             R5, =(__stack_chk_guard_ptr - 0x61A552)                ; +0xa, 0x61a54a\nLDR             R1, flt_61A668; float                                  ; +0xc, 0x61a54c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x61a54e\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x61a550\nLDR             R2, flt_61A66C; float                                  ; +0x12, 0x61a552\nSUB             SP, SP, #0x48; float                                   ; +0x14, 0x61a554\nLDR             R3, [R5]                                               ; +0x16, 0x61a556\nADD             R0, SP, #0x48+var_3C; this                             ; +0x18, 0x61a558\nADD             R6, SP, #0x48+var_24                                   ; +0x1a, 0x61a55a\nADD             R7, SP, #0x1C                                          ; +0x1c, 0x61a55c\nSTR             R3, [SP,#0x48+var_4]                                   ; +0x1e, 0x61a55e\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x20, 0x61a560\nVMOV.F32        S15, #0.5                                              ; +0x24, 0x61a564\nMOV             R0, R6; this                                           ; +0x28, 0x61a568\nVLDR            S14, [SP,#0x48+var_38]                                 ; +0x2a, 0x61a56a\nLDR             R3, [SP,#0x48+var_3C]; float                           ; +0x2e, 0x61a56e\nVLDR            S13, [SP,#0x48+var_3C]                                 ; +0x30, 0x61a570\nVSTR            S14, [SP,#0x48+var_48]                                 ; +0x34, 0x61a574\nVNMUL.F32       S13, S13, S15                                          ; +0x38, 0x61a578\nVNMUL.F32       S15, S14, S15                                          ; +0x3c, 0x61a57c\nVMOV            R1, S13; float                                         ; +0x40, 0x61a580\nVMOV            R2, S15; float                                         ; +0x44, 0x61a584\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x48, 0x61a588\nLDR             R3, [R4]                                               ; +0x4c, 0x61a58c\nMOV             R0, R4                                                 ; +0x4e, 0x61a58e\nVLDR            S17, [SP,#0x48+var_1C]                                 ; +0x50, 0x61a590\nLDR.W           R3, [R3,#0x98]                                         ; +0x54, 0x61a594\nBLX             R3                                                     ; +0x58, 0x61a598\nLDR             R3, [R4]                                               ; +0x5a, 0x61a59a\nVNEG.F32        S17, S17                                               ; +0x5c, 0x61a59c\nVLDR            S16, [SP,#0x48+var_18]                                 ; +0x60, 0x61a5a0\nLDR.W           R3, [R3,#0x98]                                         ; +0x64, 0x61a5a4\nVNEG.F32        S16, S16                                               ; +0x68, 0x61a5a8\nVLDR            S15, [R0]                                              ; +0x6c, 0x61a5ac\nMOV             R0, R4                                                 ; +0x70, 0x61a5b0\nVMUL.F32        S17, S17, S15                                          ; +0x72, 0x61a5b2\nBLX             R3                                                     ; +0x76, 0x61a5b6\nLDR             R3, [R4]                                               ; +0x78, 0x61a5b8\nVLDR            S18, [SP,#0x48+var_1C]                                 ; +0x7a, 0x61a5ba\nLDR             R3, [R3,#0x44]                                         ; +0x7e, 0x61a5be\nVLDR            S15, [R0,#4]                                           ; +0x80, 0x61a5c0\nMOV             R0, R4                                                 ; +0x84, 0x61a5c4\nVMUL.F32        S16, S16, S15                                          ; +0x86, 0x61a5c6\nBLX             R3                                                     ; +0x8a, 0x61a5ca\nLDR             R3, [R4]                                               ; +0x8c, 0x61a5cc\nVLDR            S19, [SP,#0x48+var_18]                                 ; +0x8e, 0x61a5ce\nLDR             R3, [R3,#0x4C]                                         ; +0x92, 0x61a5d2\nVMOV            S15, R0                                                ; +0x94, 0x61a5d4\nMOV             R0, R4                                                 ; +0x98, 0x61a5d8\nVMUL.F32        S18, S18, S15                                          ; +0x9a, 0x61a5da\nBLX             R3                                                     ; +0x9e, 0x61a5de\nVMOV            R1, S17; float                                         ; +0xa0, 0x61a5e0\nVMOV            R2, S16; float                                         ; +0xa4, 0x61a5e4\nVMOV            R3, S18; float                                         ; +0xa8, 0x61a5e8\nVMOV            S15, R0                                                ; +0xac, 0x61a5ec\nADD             R0, SP, #0x48+var_14; this                             ; +0xb0, 0x61a5f0\nVMUL.F32        S19, S19, S15                                          ; +0xb2, 0x61a5f2\nVSTR            S19, [SP,#0x48+var_48]                                 ; +0xb6, 0x61a5f6\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xba, 0x61a5fa\nMOVW            R0, #0xC11; cap                                        ; +0xbe, 0x61a5fe\nBLX             glEnable                                               ; +0xc2, 0x61a602\nLDR             R3, [R4]                                               ; +0xc6, 0x61a606\nMOV             R0, R4                                                 ; +0xc8, 0x61a608\nLDR.W           R3, [R3,#0x100]                                        ; +0xca, 0x61a60a\nBLX             R3                                                     ; +0xce, 0x61a60e\nLDR             R3, [R4]                                               ; +0xd0, 0x61a610\nLDR             R3, [R3,#0x60]                                         ; +0xd2, 0x61a612\nMOV             R8, R0                                                 ; +0xd4, 0x61a614\nMOV             R0, R4                                                 ; +0xd6, 0x61a616\nBLX             R3                                                     ; +0xd8, 0x61a618\nMOV             R2, R6                                                 ; +0xda, 0x61a61a\nMOV             R1, R0                                                 ; +0xdc, 0x61a61c\nMOV             R0, R7                                                 ; +0xde, 0x61a61e\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xe0, 0x61a620\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0xe4, 0x61a624\nMOV             R2, R7                                                 ; +0xe6, 0x61a626\nADD             R0, SP, #0x48+var_34; this                             ; +0xe8, 0x61a628\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0xea, 0x61a62a\nBL              _ZN7cocos2d9CCEGLView16sharedOpenGLViewEv; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0xee, 0x61a62e\nLDR             R2, [SP,#0x48+var_8]                                   ; +0xf2, 0x61a632\nLDR             R1, [SP,#0x48+var_34]                                  ; +0xf4, 0x61a634\nLDR             R3, [R0]                                               ; +0xf6, 0x61a636\nSTR             R2, [SP,#0x48+var_48]                                  ; +0xf8, 0x61a638\nLDR             R2, [SP,#0x48+var_30]                                  ; +0xfa, 0x61a63a\nLDR             R6, [R3,#0x38]                                         ; +0xfc, 0x61a63c\nLDR             R3, [SP,#0x48+var_C]                                   ; +0xfe, 0x61a63e\nBLX             R6                                                     ; +0x100, 0x61a640\nMOV             R0, R4; this                                           ; +0x102, 0x61a642\nBL              _ZN7cocos2d6CCNode5visitEv; cocos2d::CCNode::visit(void) ; +0x104, 0x61a644\nMOVW            R0, #0xC11; cap                                        ; +0x108, 0x61a648\nBLX             glDisable                                              ; +0x10c, 0x61a64c\nLDR             R2, [SP,#0x48+var_4]                                   ; +0x110, 0x61a650\nLDR             R3, [R5]                                               ; +0x112, 0x61a652\nCMP             R2, R3                                                 ; +0x114, 0x61a654\nBEQ             loc_61A65C                                             ; +0x116, 0x61a656\nBLX             __stack_chk_fail                                       ; +0x118, 0x61a658\nADD             SP, SP, #0x48 ; 'H'                                    ; +0x11c, 0x61a65c\nVPOP            {D8-D9}                                                ; +0x11e, 0x61a65e\nPOP.W           {R4-R8,PC}                                             ; +0x122, 0x61a662", "xrefs": [], "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"}