{"type": "func", "start": 4298185008, "end": 4298185344, "name": "DungeonBarsSprite::visit", "pseudocode": "// \n// DungeonBarsSprite::visit from 0x100311930 to 0x100311a80 (336 bytes)\n// \n// 1 xrefs:\n// > <???> @ 0x1007eeb10\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 __fastcall DungeonBarsSprite::visit(DungeonBarsSprite *a1)\n{\n  float v2; // s8\n  float v3; // s8\n  float v4; // s9\n  float v5; // s9\n  float v6; // s10\n  float v7; // s10\n  float v8; // s11\n  float v9; // s0\n  cocos2d::CCNode *v10; // x20\n  float32x2_t *v11; // x0\n  cocos2d::CCEGLView *v12; // x0\n  float32x2_t v13; // [xsp+8h] [xbp-68h] BYREF\n  float v14; // [xsp+10h] [xbp-60h]\n  float v15; // [xsp+14h] [xbp-5Ch]\n  float v16[4]; // [xsp+18h] [xbp-58h] BYREF\n  float32x2_t v17; // [xsp+28h] [xbp-48h] BYREF\n  float v18; // [xsp+30h] [xbp-40h]\n  float v19; // [xsp+34h] [xbp-3Ch]\n  float v20; // [xsp+38h] [xbp-38h] BYREF\n  float v21; // [xsp+3Ch] [xbp-34h]\n\n  sub_100022988(&v20, 140.0, 125.0);\n  sub_100022990((float *)&v17, v20 * -0.5, v21 * -0.5, v20, v21);\n  v2 = v18;\n  v3 = -(float)(v2 * *(float *)((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getAnchorPoint)(a1));\n  v4 = v19;\n  v5 = -(float)(v4 * *(float *)(((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getAnchorPoint)(a1) + 4));\n  v6 = v18;\n  v7 = v6 * ((float (__fastcall *)(DungeonBarsSprite *))a1->getScaleX)(a1);\n  v8 = v19;\n  v9 = ((float (__fastcall *)(DungeonBarsSprite *))a1->getScaleY)(a1);\n  sub_100022990(v16, v3, v5, v7, v8 * v9);\n  glEnable(0xC11u);\n  v10 = (cocos2d::CCNode *)((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getParent)(a1);\n  v11 = (float32x2_t *)((__int64 (__fastcall *)(DungeonBarsSprite *))a1->getPosition)(a1);\n  sub_1000229DC(v11, &v17, &v13);\n  cocos2d::CCNode::convertToWorldSpace(v10, (const cocos2d::CCPoint *)&v13);\n  v12 = cocos2d::CCEGLView::sharedOpenGLView();\n  ((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v12->setScissorInPoints)(\n    v12,\n    v14,\n    v15,\n    v16[2],\n    v16[3]);\n  cocos2d::CCNode::visit(a1);\n  glDisable(0xC11u);\n}", "assembly": "; \n; DungeonBarsSprite::visit from 0x100311930 to 0x100311a80 (336 bytes)\n; \n; 1 xrefs:\n; > <???> @ 0x1007eeb10\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, #0x80                                          ; +0x0, 0x100311930\nSTP             D11, D10, [SP,#0x70+var_30]                            ; +0x4, 0x100311934\nSTP             D9, D8, [SP,#0x70+var_20]                              ; +0x8, 0x100311938\nSTP             X20, X19, [SP,#0x70+var_10]                            ; +0xc, 0x10031193c\nSTP             X29, X30, [SP,#0x70+var_s0]                            ; +0x10, 0x100311940\nADD             X29, SP, #0x70                                         ; +0x14, 0x100311944\nMOV             X19, X0                                                ; +0x18, 0x100311948\nMOV             W8, #0x430C0000                                        ; +0x1c, 0x10031194c\nFMOV            S0, W8                                                 ; +0x20, 0x100311950\nMOV             W8, #0x42FA0000                                        ; +0x24, 0x100311954\nFMOV            S1, W8                                                 ; +0x28, 0x100311958\nADD             X0, SP, #0x70+var_38                                   ; +0x2c, 0x10031195c\nBL              sub_100022988                                          ; +0x30, 0x100311960\nFMOV            S1, #-0.5                                              ; +0x34, 0x100311964\nLDP             S2, S3, [SP,#0x70+var_38]                              ; +0x38, 0x100311968\nFMUL            S0, S2, S1                                             ; +0x3c, 0x10031196c\nFMUL            S1, S3, S1                                             ; +0x40, 0x100311970\nADD             X0, SP, #0x70+var_48                                   ; +0x44, 0x100311974\nBL              sub_100022990                                          ; +0x48, 0x100311978\nLDR             S8, [SP,#0x70+var_40]                                  ; +0x4c, 0x10031197c\nLDR             X8, [X19]                                              ; +0x50, 0x100311980\nLDR             X8, [X8,#0x120]                                        ; +0x54, 0x100311984\nMOV             X0, X19                                                ; +0x58, 0x100311988\nBLR             X8                                                     ; +0x5c, 0x10031198c\nLDR             S0, [X0]                                               ; +0x60, 0x100311990\nFNMUL           S8, S8, S0                                             ; +0x64, 0x100311994\nLDR             S9, [SP,#0x70+var_3C]                                  ; +0x68, 0x100311998\nLDR             X8, [X19]                                              ; +0x6c, 0x10031199c\nLDR             X8, [X8,#0x120]                                        ; +0x70, 0x1003119a0\nMOV             X0, X19                                                ; +0x74, 0x1003119a4\nBLR             X8                                                     ; +0x78, 0x1003119a8\nLDR             S0, [X0,#4]                                            ; +0x7c, 0x1003119ac\nFNMUL           S9, S9, S0                                             ; +0x80, 0x1003119b0\nLDR             S10, [SP,#0x70+var_40]                                 ; +0x84, 0x1003119b4\nLDR             X8, [X19]                                              ; +0x88, 0x1003119b8\nLDR             X8, [X8,#0x88]                                         ; +0x8c, 0x1003119bc\nMOV             X0, X19                                                ; +0x90, 0x1003119c0\nBLR             X8                                                     ; +0x94, 0x1003119c4\nFMUL            S10, S10, S0                                           ; +0x98, 0x1003119c8\nLDR             S11, [SP,#0x70+var_3C]                                 ; +0x9c, 0x1003119cc\nLDR             X8, [X19]                                              ; +0xa0, 0x1003119d0\nLDR             X8, [X8,#0x98]                                         ; +0xa4, 0x1003119d4\nMOV             X0, X19                                                ; +0xa8, 0x1003119d8\nBLR             X8                                                     ; +0xac, 0x1003119dc\nFMUL            S3, S11, S0                                            ; +0xb0, 0x1003119e0\nADD             X0, SP, #0x70+var_58                                   ; +0xb4, 0x1003119e4\nFMOV            S0, S8                                                 ; +0xb8, 0x1003119e8\nFMOV            S1, S9                                                 ; +0xbc, 0x1003119ec\nFMOV            S2, S10                                                ; +0xc0, 0x1003119f0\nBL              sub_100022990                                          ; +0xc4, 0x1003119f4\nMOV             W0, #0xC11; cap                                        ; +0xc8, 0x1003119f8\nBL              _glEnable                                              ; +0xcc, 0x1003119fc\nLDR             X8, [X19]                                              ; +0xd0, 0x100311a00\nLDR             X8, [X8,#0x1F0]                                        ; +0xd4, 0x100311a04\nMOV             X0, X19                                                ; +0xd8, 0x100311a08\nBLR             X8                                                     ; +0xdc, 0x100311a0c\nMOV             X20, X0                                                ; +0xe0, 0x100311a10\nLDR             X8, [X19]                                              ; +0xe4, 0x100311a14\nLDR             X8, [X8,#0xC0]                                         ; +0xe8, 0x100311a18\nMOV             X0, X19                                                ; +0xec, 0x100311a1c\nBLR             X8                                                     ; +0xf0, 0x100311a20\nADD             X8, SP, #0x70+var_68                                   ; +0xf4, 0x100311a24\nADD             X1, SP, #0x70+var_48                                   ; +0xf8, 0x100311a28\nBL              sub_1000229DC                                          ; +0xfc, 0x100311a2c\nADD             X8, SP, #0x70+var_60                                   ; +0x100, 0x100311a30\nADD             X1, SP, #0x70+var_68                                   ; +0x104, 0x100311a34\nMOV             X0, X20                                                ; +0x108, 0x100311a38\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0x10c, 0x100311a3c\nBL              cocos2d__CCEGLView__sharedOpenGLView                   ; +0x110, 0x100311a40\nLDP             S0, S1, [SP,#0x70+var_60]                              ; +0x114, 0x100311a44\nLDP             S2, S3, [SP,#0x70+var_50]                              ; +0x118, 0x100311a48\nLDR             X8, [X0]                                               ; +0x11c, 0x100311a4c\nLDR             X8, [X8,#0x70]                                         ; +0x120, 0x100311a50\nBLR             X8                                                     ; +0x124, 0x100311a54\nMOV             X0, X19                                                ; +0x128, 0x100311a58\nBL              cocos2d__CCNode__visit                                 ; +0x12c, 0x100311a5c\nMOV             W0, #0xC11; cap                                        ; +0x130, 0x100311a60\nBL              _glDisable                                             ; +0x134, 0x100311a64\nLDP             X29, X30, [SP,#0x70+var_s0]                            ; +0x138, 0x100311a68\nLDP             X20, X19, [SP,#0x70+var_10]                            ; +0x13c, 0x100311a6c\nLDP             D9, D8, [SP,#0x70+var_20]                              ; +0x140, 0x100311a70\nLDP             D11, D10, [SP,#0x70+var_30]                            ; +0x144, 0x100311a74\nADD             SP, SP, #0x80                                          ; +0x148, 0x100311a78\nRET                                                                    ; +0x14c, 0x100311a7c", "xrefs": ["<???> @ 0x1007eeb10"], "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"}