{"type": "func", "start": 4298119216, "end": 4298119364, "name": "CCScrollLayerExt::preVisitWithClippingRect", "pseudocode": "// \n// CCScrollLayerExt::preVisitWithClippingRect from 0x100301830 to 0x1003018c4 (148 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1007eb458\n// > <???> @ 0x1007eba88\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 __fastcall CCScrollLayerExt::preVisitWithClippingRect(CCScrollLayerExt *a1, cocos2d::CCRect a2)\n{\n  __int64 v2; // x1\n  __int64 v3; // x19\n  cocos2d::CCNode *v5; // x21\n  const cocos2d::CCPoint *v6; // x0\n  cocos2d::CCEGLView *v7; // x0\n  float v8; // [xsp+8h] [xbp-28h]\n  float v9; // [xsp+Ch] [xbp-24h]\n\n  v3 = v2;\n  if ( ((unsigned int (__fastcall *)(CCScrollLayerExt *, __n128, __n128, __n128, __n128))a1->isVisible)(\n         a1,\n         (__n128)a2,\n         *(__n128 *)((char *)&a2 + 4),\n         *(__n128 *)&a2.size.width,\n         *(__n128 *)&a2.size.height) )\n  {\n    glEnable(0xC11u);\n    v5 = (cocos2d::CCNode *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getParent)(a1);\n    v6 = (const cocos2d::CCPoint *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getPosition)(a1);\n    cocos2d::CCNode::convertToWorldSpace(v5, v6);\n    v7 = cocos2d::CCEGLView::sharedOpenGLView();\n    ((void (__fastcall *)(cocos2d::CCEGLView *, float, float, float, float))v7->setScissorInPoints)(\n      v7,\n      v8,\n      v9,\n      *(float *)(v3 + 8),\n      *(float *)(v3 + 12));\n  }\n}", "assembly": "; \n; CCScrollLayerExt::preVisitWithClippingRect from 0x100301830 to 0x1003018c4 (148 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1007eb458\n; > <???> @ 0x1007eba88\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, #0x40                                          ; +0x0, 0x100301830\nSTP             X22, X21, [SP,#0x30+var_20]                            ; +0x4, 0x100301834\nSTP             X20, X19, [SP,#0x30+var_10]                            ; +0x8, 0x100301838\nSTP             X29, X30, [SP,#0x30+var_s0]                            ; +0xc, 0x10030183c\nADD             X29, SP, #0x30                                         ; +0x10, 0x100301840\nMOV             X19, X1                                                ; +0x14, 0x100301844\nMOV             X20, X0                                                ; +0x18, 0x100301848\nLDR             X8, [X0]                                               ; +0x1c, 0x10030184c\nLDR             X8, [X8,#0x150]                                        ; +0x20, 0x100301850\nBLR             X8                                                     ; +0x24, 0x100301854\nCBZ             W0, loc_1003018B0                                      ; +0x28, 0x100301858\nMOV             W0, #0xC11; cap                                        ; +0x2c, 0x10030185c\nBL              _glEnable                                              ; +0x30, 0x100301860\nLDR             X8, [X20]                                              ; +0x34, 0x100301864\nLDR             X8, [X8,#0x1F0]                                        ; +0x38, 0x100301868\nMOV             X0, X20                                                ; +0x3c, 0x10030186c\nBLR             X8                                                     ; +0x40, 0x100301870\nMOV             X21, X0                                                ; +0x44, 0x100301874\nLDR             X8, [X20]                                              ; +0x48, 0x100301878\nLDR             X8, [X8,#0xC0]                                         ; +0x4c, 0x10030187c\nMOV             X0, X20                                                ; +0x50, 0x100301880\nBLR             X8                                                     ; +0x54, 0x100301884\nMOV             X1, X0                                                 ; +0x58, 0x100301888\nADD             X8, SP, #0x30+var_28                                   ; +0x5c, 0x10030188c\nMOV             X0, X21                                                ; +0x60, 0x100301890\nBL              cocos2d__CCNode__convertToWorldSpace                   ; +0x64, 0x100301894\nBL              cocos2d__CCEGLView__sharedOpenGLView                   ; +0x68, 0x100301898\nLDP             S0, S1, [SP,#0x30+var_28]                              ; +0x6c, 0x10030189c\nLDP             S2, S3, [X19,#8]                                       ; +0x70, 0x1003018a0\nLDR             X8, [X0]                                               ; +0x74, 0x1003018a4\nLDR             X8, [X8,#0x70]                                         ; +0x78, 0x1003018a8\nBLR             X8                                                     ; +0x7c, 0x1003018ac\nLDP             X29, X30, [SP,#0x30+var_s0]                            ; +0x80, 0x1003018b0\nLDP             X20, X19, [SP,#0x30+var_10]                            ; +0x84, 0x1003018b4\nLDP             X22, X21, [SP,#0x30+var_20]                            ; +0x88, 0x1003018b8\nADD             SP, SP, #0x40 ; '@'                                    ; +0x8c, 0x1003018bc\nRET                                                                    ; +0x90, 0x1003018c0", "xrefs": ["<???> @ 0x1007eb458", "<???> @ 0x1007eba88"], "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"}