{"type": "func", "start": 3047824, "end": 3047926, "name": "CCScrollLayerExt::preVisitWithClippingRect", "pseudocode": "// \n// CCScrollLayerExt::preVisitWithClippingRect from 0x2e8190 to 0x2e81f6 (102 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 CCScrollLayerExt::preVisitWithClippingRect(CCScrollLayerExt *a1, cocos2d::CCRect a2)\n{\n  float x; // r6\n  cocos2d::CCNode *v4; // r7\n  const cocos2d::CCPoint *v5; // r0\n  cocos2d::CCEGLView *v6; // r0\n  cocos2d::CCPoint v7; // [sp+Ch] [bp-10h] BYREF\n\n  x = a2.origin.x;\n  if ( ((int (__fastcall *)(CCScrollLayerExt *, _DWORD, _DWORD))a1->isVisible)(\n         a1,\n         LODWORD(a2.origin.x),\n         LODWORD(a2.origin.y)) )\n  {\n    glEnable(0xC11u);\n    v4 = a1->getParent(a1);\n    v5 = a1->getPosition(a1);\n    cocos2d::CCNode::convertToWorldSpace(&v7, v4, v5);\n    v6 = cocos2d::CCEGLView::sharedOpenGLView();\n    ((void (__fastcall *)(cocos2d::CCEGLView *, _DWORD, _DWORD, _DWORD, _DWORD))v6->setScissorInPoints)(\n      v6,\n      LODWORD(v7.x),\n      LODWORD(v7.y),\n      *(_DWORD *)(LODWORD(x) + 8),\n      *(_DWORD *)(LODWORD(x) + 12));\n  }\n}", "assembly": "; \n; CCScrollLayerExt::preVisitWithClippingRect from 0x2e8190 to 0x2e81f6 (102 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            {R4-R7,LR}                                             ; +0x0, 0x2e8190\nSUB             SP, SP, #0x1C                                          ; +0x2, 0x2e8192\nLDR             R5, =(__stack_chk_guard_ptr - 0x2E819E)                ; +0x4, 0x2e8194\nMOV             R4, R0                                                 ; +0x6, 0x2e8196\nMOV             R6, R1                                                 ; +0x8, 0x2e8198\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x2e819a\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x2e819c\nLDR             R3, [R5]                                               ; +0xe, 0x2e819e\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x10, 0x2e81a0\nLDR             R3, [R0]                                               ; +0x12, 0x2e81a2\nLDR.W           R3, [R3,#0xA8]                                         ; +0x14, 0x2e81a4\nBLX             R3                                                     ; +0x18, 0x2e81a8\nCBZ             R0, loc_2E81E6                                         ; +0x1a, 0x2e81aa\nMOVW            R0, #0xC11; cap                                        ; +0x1c, 0x2e81ac\nBLX             glEnable                                               ; +0x20, 0x2e81b0\nLDR             R3, [R4]                                               ; +0x24, 0x2e81b4\nMOV             R0, R4                                                 ; +0x26, 0x2e81b6\nLDR.W           R3, [R3,#0xF8]                                         ; +0x28, 0x2e81b8\nBLX             R3                                                     ; +0x2c, 0x2e81bc\nLDR             R3, [R4]                                               ; +0x2e, 0x2e81be\nLDR             R3, [R3,#0x60]                                         ; +0x30, 0x2e81c0\nMOV             R7, R0                                                 ; +0x32, 0x2e81c2\nMOV             R0, R4                                                 ; +0x34, 0x2e81c4\nBLX             R3                                                     ; +0x36, 0x2e81c6\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x38, 0x2e81c8\nMOV             R2, R0                                                 ; +0x3a, 0x2e81ca\nADD             R0, SP, #0x1C+var_10; this                             ; +0x3c, 0x2e81cc\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x3e, 0x2e81ce\nBL              _ZN7cocos2d9CCEGLView16sharedOpenGLViewEv; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x42, 0x2e81d2\nLDR             R2, [R6,#0xC]                                          ; +0x46, 0x2e81d6\nLDR             R1, [SP,#0x1C+var_10]                                  ; +0x48, 0x2e81d8\nLDR             R3, [R0]                                               ; +0x4a, 0x2e81da\nSTR             R2, [SP,#0x1C+var_1C]                                  ; +0x4c, 0x2e81dc\nLDR             R2, [SP,#0x1C+var_C]                                   ; +0x4e, 0x2e81de\nLDR             R4, [R3,#0x38]                                         ; +0x50, 0x2e81e0\nLDR             R3, [R6,#8]                                            ; +0x52, 0x2e81e2\nBLX             R4                                                     ; +0x54, 0x2e81e4\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x56, 0x2e81e6\nLDR             R3, [R5]                                               ; +0x58, 0x2e81e8\nCMP             R2, R3                                                 ; +0x5a, 0x2e81ea\nBEQ             loc_2E81F2                                             ; +0x5c, 0x2e81ec\nBLX             __stack_chk_fail                                       ; +0x5e, 0x2e81ee\nADD             SP, SP, #0x1C                                          ; +0x62, 0x2e81f2\nPOP             {R4-R7,PC}                                             ; +0x64, 0x2e81f4", "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"}