{"type": "func", "start": 5160516, "end": 5160810, "name": "DungeonBarsSprite::visit", "pseudocode": "// \n// DungeonBarsSprite::visit from 0x4ebe44 to 0x4ebf6a (294 bytes)\n// \n// 0 xrefs:\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\nvoid DungeonBarsSprite::visit(DungeonBarsSprite *a1)\n{\n  float width; // s17\n  const cocos2d::CCPoint *v3; // r0\n  float v4; // s16\n  float v5; // s17\n  const cocos2d::CCPoint *v6; // r0\n  float v7; // s18\n  float v8; // s16\n  int v9; // r0\n  float height; // s19\n  float v11; // s15\n  float v12; // r0\n  cocos2d::CCNode *v13; // r8\n  const cocos2d::CCPoint *v14; // r0\n  cocos2d::CCEGLView *v15; // r0\n  cocos2d::CCSize v16; // [sp+Ch] [bp-3Ch] BYREF\n  cocos2d::CCPoint v17; // [sp+14h] [bp-34h] BYREF\n  cocos2d::CCPoint v18; // [sp+1Ch] [bp-2Ch] BYREF\n  cocos2d::CCRect v19; // [sp+24h] [bp-24h] BYREF\n  cocos2d::CCRect v20; // [sp+34h] [bp-14h] BYREF\n\n  cocos2d::CCSize::CCSize(&v16, 140.0, 125.0);\n  cocos2d::CCRect::CCRect(&v19, -(float)(v16.width * 0.5), -(float)(v16.height * 0.5), v16.width, v16.height);\n  width = v19.size.width;\n  v3 = a1->getAnchorPoint(a1);\n  v4 = -v19.size.height;\n  v5 = (float)-width * v3->x;\n  v6 = a1->getAnchorPoint(a1);\n  v7 = v19.size.width;\n  v8 = v4 * v6->y;\n  v9 = ((int (__fastcall *)(DungeonBarsSprite *))a1->getScaleX)(a1);\n  height = v19.size.height;\n  v11 = *(float *)&v9;\n  v12 = a1->getScaleY(a1);\n  cocos2d::CCRect::CCRect(&v20, v5, v8, v7 * v11, height * v12);\n  glEnable(0xC11u);\n  v13 = a1->getParent(a1);\n  v14 = a1->getPosition(a1);\n  cocos2d::CCPoint::operator+(&v18, v14, &v19);\n  cocos2d::CCNode::convertToWorldSpace(&v17, v13, &v18);\n  v15 = cocos2d::CCEGLView::sharedOpenGLView();\n  ((void (__fastcall *)(cocos2d::CCEGLView *, _DWORD, _DWORD, _DWORD, _DWORD))v15->setScissorInPoints)(\n    v15,\n    LODWORD(v17.x),\n    LODWORD(v17.y),\n    LODWORD(v20.size.width),\n    LODWORD(v20.size.height));\n  cocos2d::CCNode::visit(a1);\n  glDisable(0xC11u);\n}", "assembly": "; \n; DungeonBarsSprite::visit from 0x4ebe44 to 0x4ebf6a (294 bytes)\n; \n; 0 xrefs:\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          {R4-R8,LR}                                             ; +0x0, 0x4ebe44\nMOV             R4, R0                                                 ; +0x4, 0x4ebe48\nLDR             R5, =(__stack_chk_guard_ptr - 0x4EBE54)                ; +0x6, 0x4ebe4a\nVPUSH           {D8-D9}                                                ; +0x8, 0x4ebe4c\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x4ebe50\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x4ebe52\nLDR             R1, flt_4EBF6C; float                                  ; +0x10, 0x4ebe54\nLDR             R2, flt_4EBF70; float                                  ; +0x12, 0x4ebe56\nLDR             R3, [R5]                                               ; +0x14, 0x4ebe58\nSUB             SP, SP, #0x48; float                                   ; +0x16, 0x4ebe5a\nADD             R0, SP, #0x48+var_3C; this                             ; +0x18, 0x4ebe5c\nADD             R6, SP, #0x48+var_24                                   ; +0x1a, 0x4ebe5e\nSTR             R3, [SP,#0x48+var_4]                                   ; +0x1c, 0x4ebe60\nBL              _ZN7cocos2d6CCSizeC1Eff; cocos2d::CCSize::CCSize(float,float) ; +0x1e, 0x4ebe62\nVMOV.F32        S15, #0.5                                              ; +0x22, 0x4ebe66\nMOV             R0, R6; this                                           ; +0x26, 0x4ebe6a\nVLDR            S14, [SP,#0x48+var_38]                                 ; +0x28, 0x4ebe6c\nADD             R7, SP, #0x48+var_2C                                   ; +0x2c, 0x4ebe70\nLDR             R3, [SP,#0x48+var_3C]; float                           ; +0x2e, 0x4ebe72\nVLDR            S13, [SP,#0x48+var_3C]                                 ; +0x30, 0x4ebe74\nVSTR            S14, [SP,#0x48+var_48]                                 ; +0x34, 0x4ebe78\nVNMUL.F32       S13, S13, S15                                          ; +0x38, 0x4ebe7c\nVNMUL.F32       S15, S14, S15                                          ; +0x3c, 0x4ebe80\nVMOV            R1, S13; float                                         ; +0x40, 0x4ebe84\nVMOV            R2, S15; float                                         ; +0x44, 0x4ebe88\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x48, 0x4ebe8c\nLDR             R3, [R4]                                               ; +0x4c, 0x4ebe90\nMOV             R0, R4                                                 ; +0x4e, 0x4ebe92\nVLDR            S17, [SP,#0x48+var_1C]                                 ; +0x50, 0x4ebe94\nLDR.W           R3, [R3,#0x90]                                         ; +0x54, 0x4ebe98\nBLX             R3                                                     ; +0x58, 0x4ebe9c\nLDR             R3, [R4]                                               ; +0x5a, 0x4ebe9e\nVNEG.F32        S17, S17                                               ; +0x5c, 0x4ebea0\nVLDR            S16, [SP,#0x48+var_18]                                 ; +0x60, 0x4ebea4\nLDR.W           R3, [R3,#0x90]                                         ; +0x64, 0x4ebea8\nVNEG.F32        S16, S16                                               ; +0x68, 0x4ebeac\nVLDR            S15, [R0]                                              ; +0x6c, 0x4ebeb0\nMOV             R0, R4                                                 ; +0x70, 0x4ebeb4\nVMUL.F32        S17, S17, S15                                          ; +0x72, 0x4ebeb6\nBLX             R3                                                     ; +0x76, 0x4ebeba\nLDR             R3, [R4]                                               ; +0x78, 0x4ebebc\nVLDR            S18, [SP,#0x48+var_1C]                                 ; +0x7a, 0x4ebebe\nLDR             R3, [R3,#0x44]                                         ; +0x7e, 0x4ebec2\nVLDR            S15, [R0,#4]                                           ; +0x80, 0x4ebec4\nMOV             R0, R4                                                 ; +0x84, 0x4ebec8\nVMUL.F32        S16, S16, S15                                          ; +0x86, 0x4ebeca\nBLX             R3                                                     ; +0x8a, 0x4ebece\nLDR             R3, [R4]                                               ; +0x8c, 0x4ebed0\nVLDR            S19, [SP,#0x48+var_18]                                 ; +0x8e, 0x4ebed2\nLDR             R3, [R3,#0x4C]                                         ; +0x92, 0x4ebed6\nVMOV            S15, R0                                                ; +0x94, 0x4ebed8\nMOV             R0, R4                                                 ; +0x98, 0x4ebedc\nVMUL.F32        S18, S18, S15                                          ; +0x9a, 0x4ebede\nBLX             R3                                                     ; +0x9e, 0x4ebee2\nVMOV            R1, S17; float                                         ; +0xa0, 0x4ebee4\nVMOV            R2, S16; float                                         ; +0xa4, 0x4ebee8\nVMOV            R3, S18; float                                         ; +0xa8, 0x4ebeec\nVMOV            S15, R0                                                ; +0xac, 0x4ebef0\nADD             R0, SP, #0x48+var_14; this                             ; +0xb0, 0x4ebef4\nVMUL.F32        S19, S19, S15                                          ; +0xb2, 0x4ebef6\nVSTR            S19, [SP,#0x48+var_48]                                 ; +0xb6, 0x4ebefa\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xba, 0x4ebefe\nMOVW            R0, #0xC11; cap                                        ; +0xbe, 0x4ebf02\nBLX             glEnable                                               ; +0xc2, 0x4ebf06\nLDR             R3, [R4]                                               ; +0xc6, 0x4ebf0a\nMOV             R0, R4                                                 ; +0xc8, 0x4ebf0c\nLDR.W           R3, [R3,#0xF8]                                         ; +0xca, 0x4ebf0e\nBLX             R3                                                     ; +0xce, 0x4ebf12\nLDR             R3, [R4]                                               ; +0xd0, 0x4ebf14\nLDR             R3, [R3,#0x60]                                         ; +0xd2, 0x4ebf16\nMOV             R8, R0                                                 ; +0xd4, 0x4ebf18\nMOV             R0, R4                                                 ; +0xd6, 0x4ebf1a\nBLX             R3                                                     ; +0xd8, 0x4ebf1c\nMOV             R2, R6                                                 ; +0xda, 0x4ebf1e\nMOV             R1, R0                                                 ; +0xdc, 0x4ebf20\nMOV             R0, R7                                                 ; +0xde, 0x4ebf22\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0xe0, 0x4ebf24\nMOV             R1, R8; cocos2d::CCPoint *                             ; +0xe4, 0x4ebf28\nMOV             R2, R7                                                 ; +0xe6, 0x4ebf2a\nADD             R0, SP, #0x48+var_34; this                             ; +0xe8, 0x4ebf2c\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0xea, 0x4ebf2e\nBL              _ZN7cocos2d9CCEGLView16sharedOpenGLViewEv; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0xee, 0x4ebf32\nLDR             R2, [SP,#0x48+var_8]                                   ; +0xf2, 0x4ebf36\nLDR             R1, [SP,#0x48+var_34]                                  ; +0xf4, 0x4ebf38\nLDR             R3, [R0]                                               ; +0xf6, 0x4ebf3a\nSTR             R2, [SP,#0x48+var_48]                                  ; +0xf8, 0x4ebf3c\nLDR             R2, [SP,#0x48+var_30]                                  ; +0xfa, 0x4ebf3e\nLDR             R6, [R3,#0x38]                                         ; +0xfc, 0x4ebf40\nLDR             R3, [SP,#0x48+var_C]                                   ; +0xfe, 0x4ebf42\nBLX             R6                                                     ; +0x100, 0x4ebf44\nMOV             R0, R4; this                                           ; +0x102, 0x4ebf46\nBL              _ZN7cocos2d6CCNode5visitEv; cocos2d::CCNode::visit(void) ; +0x104, 0x4ebf48\nMOVW            R0, #0xC11; cap                                        ; +0x108, 0x4ebf4c\nBLX             glDisable                                              ; +0x10c, 0x4ebf50\nLDR             R2, [SP,#0x48+var_4]                                   ; +0x110, 0x4ebf54\nLDR             R3, [R5]                                               ; +0x112, 0x4ebf56\nCMP             R2, R3                                                 ; +0x114, 0x4ebf58\nBEQ             loc_4EBF60                                             ; +0x116, 0x4ebf5a\nBLX             __stack_chk_fail                                       ; +0x118, 0x4ebf5c\nADD             SP, SP, #0x48 ; 'H'                                    ; +0x11c, 0x4ebf60\nVPOP            {D8-D9}                                                ; +0x11e, 0x4ebf62\nPOP.W           {R4-R8,PC}                                             ; +0x122, 0x4ebf66", "xrefs": [], "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"}