{"type": "func", "start": 5739604, "end": 5739796, "name": "CCScrollLayerExt::preVisitWithClippingRect", "pseudocode": "// \n// CCScrollLayerExt::preVisitWithClippingRect from 0x579454 to 0x579514 (192 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xa4718\n// > <???> @ 0x113a8c0\n// > <???> @ 0x113af40\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\n// local variable allocation has failed, the output may be wrong!\nvoid CCScrollLayerExt::preVisitWithClippingRect(CCScrollLayerExt *a1, cocos2d::CCRect a2)\n{\n  __int64 v2; // x1\n  __int64 v4; // x21\n  cocos2d::CCNode *v5; // x22\n  const cocos2d::CCPoint *v6; // x0\n  cocos2d::CCEGLView *v7; // x0\n  float v8; // [xsp+30h] [xbp+30h]\n  float v9; // [xsp+34h] [xbp+34h]\n\n  v4 = v2;\n  if ( ((unsigned __int8 (__fastcall *)(CCScrollLayerExt *, long double, long double, long double, long double))a1->isVisible)(\n         a1,\n         *(long double *)&a2,\n         *(long double *)((char *)&a2 + 4),\n         *(long double *)&a2.size.width,\n         *(long double *)&a2.size.height) )\n  {\n    glEnable();\n    v5 = a1->getParent(a1);\n    v6 = a1->getPosition(a1);\n    cocos2d::CCNode::convertToWorldSpace(v5, v6);\n    v7 = cocos2d::CCEGLView::sharedOpenGLView();\n    v7->setScissorInPoints(v7, v8, v9, *(float *)(v4 + 8), *(float *)(v4 + 12));\n  }\n}", "assembly": "; \n; CCScrollLayerExt::preVisitWithClippingRect from 0x579454 to 0x579514 (192 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xa4718\n; > <???> @ 0x113a8c0\n; > <???> @ 0x113af40\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x579454\nMOV             X29, SP                                                ; +0x4, 0x579458\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x57945c\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x579460\nMOV             X20, X0                                                ; +0x10, 0x579464\nSTP             X21, X22, [SP,#0x40+var_20]                            ; +0x14, 0x579468\nMOV             X21, X1                                                ; +0x18, 0x57946c\nLDR             X1, [X0]                                               ; +0x1c, 0x579470\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x20, 0x579474\nLDR             X1, [X1,#0x150]                                        ; +0x24, 0x579478\nLDR             X2, [X2]                                               ; +0x28, 0x57947c\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x2c, 0x579480\nBLR             X1                                                     ; +0x30, 0x579484\nUXTB            W0, W0                                                 ; +0x34, 0x579488\nCBZ             W0, loc_5794EC                                         ; +0x38, 0x57948c\nMOV             W0, #0xC11                                             ; +0x3c, 0x579490\nBL              .glEnable                                              ; +0x40, 0x579494\nLDR             X1, [X20]                                              ; +0x44, 0x579498\nMOV             X0, X20                                                ; +0x48, 0x57949c\nLDR             X1, [X1,#0x1F0]                                        ; +0x4c, 0x5794a0\nBLR             X1                                                     ; +0x50, 0x5794a4\nMOV             X22, X0                                                ; +0x54, 0x5794a8\nLDR             X1, [X20]                                              ; +0x58, 0x5794ac\nMOV             X0, X20                                                ; +0x5c, 0x5794b0\nLDR             X1, [X1,#0xC0]                                         ; +0x60, 0x5794b4\nBLR             X1                                                     ; +0x64, 0x5794b8\nMOV             X1, X0; cocos2d::CCPoint *                             ; +0x68, 0x5794bc\nADD             X8, X29, #0x40+var_10                                  ; +0x6c, 0x5794c0\nMOV             X0, X22; this                                          ; +0x70, 0x5794c4\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x74, 0x5794c8\nBL              _ZN7cocos2d9CCEGLView16sharedOpenGLViewEv; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x78, 0x5794cc\nLDR             X1, [X0]                                               ; +0x7c, 0x5794d0\nLDR             S0, [X29,#0x40+var_10]                                 ; +0x80, 0x5794d4\nLDR             S1, [X29,#0x40+var_C]                                  ; +0x84, 0x5794d8\nLDR             S2, [X21,#8]                                           ; +0x88, 0x5794dc\nLDR             X1, [X1,#0x70]                                         ; +0x8c, 0x5794e0\nLDR             S3, [X21,#0xC]                                         ; +0x90, 0x5794e4\nBLR             X1                                                     ; +0x94, 0x5794e8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x98, 0x5794ec\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x9c, 0x5794f0\nLDR             X0, [X19]                                              ; +0xa0, 0x5794f4\nCMP             X1, X0                                                 ; +0xa4, 0x5794f8\nB.NE            loc_579510                                             ; +0xa8, 0x5794fc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0xac, 0x579500\nLDP             X21, X22, [SP,#0x40+var_20]                            ; +0xb0, 0x579504\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0xb4, 0x579508\nRET                                                                    ; +0xb8, 0x57950c\nBL              .__stack_chk_fail                                      ; +0xbc, 0x579510", "xrefs": ["<???> @ 0xa4718", "<???> @ 0x113a8c0", "<???> @ 0x113af40"], "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"}