{"type": "func", "start": 3966040, "end": 3966142, "name": "CCScrollLayerExt::preVisitWithClippingRect", "pseudocode": "// \n// CCScrollLayerExt::preVisitWithClippingRect from 0x3c8458 to 0x3c84be (102 bytes)\n// \n// 0 xrefs:\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n// \n// Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n// Generated at Fri, 27 Nov 2026 11:46:35 +0000\n// \n\nint __fastcall CCScrollLayerExt::preVisitWithClippingRect(int a1, int a2)\n{\n  int result; // r0\n  const cocos2d::CCPoint *v5; // r7\n  cocos2d::CCEGLView *v6; // r0\n  int v7; // r0\n  _DWORD v8[2]; // [sp+Ch] [bp-10h] BYREF\n\n  result = (*(int (__fastcall **)(int))(*(_DWORD *)a1 + 176))(a1);\n  if ( result )\n  {\n    glEnable(0xC11u);\n    v5 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)a1 + 256))(a1);\n    (*(void (__fastcall **)(int))(*(_DWORD *)a1 + 96))(a1);\n    v6 = (cocos2d::CCEGLView *)cocos2d::CCNode::convertToWorldSpace((cocos2d::CCNode *)v8, v5);\n    v7 = cocos2d::CCEGLView::sharedOpenGLView(v6);\n    return (*(int (__fastcall **)(int, _DWORD, _DWORD, _DWORD, _DWORD))(*(_DWORD *)v7 + 56))(\n             v7,\n             v8[0],\n             v8[1],\n             *(_DWORD *)(a2 + 8),\n             *(_DWORD *)(a2 + 12));\n  }\n  return result;\n}", "assembly": "; \n; CCScrollLayerExt::preVisitWithClippingRect from 0x3c8458 to 0x3c84be (102 bytes)\n; \n; 0 xrefs:\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\n; \n; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA\n; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings\n; Generated at Fri, 27 Nov 2026 11:46:35 +0000\n; \nPUSH            {R4-R7,LR}                                             ; +0x0, 0x3c8458\nSUB             SP, SP, #0x1C                                          ; +0x2, 0x3c845a\nLDR             R5, =(__stack_chk_guard_ptr - 0x3C8466)                ; +0x4, 0x3c845c\nMOV             R4, R0                                                 ; +0x6, 0x3c845e\nMOV             R6, R1                                                 ; +0x8, 0x3c8460\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xa, 0x3c8462\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xc, 0x3c8464\nLDR             R3, [R5]                                               ; +0xe, 0x3c8466\nSTR             R3, [SP,#0x1C+var_8]                                   ; +0x10, 0x3c8468\nLDR             R3, [R0]                                               ; +0x12, 0x3c846a\nLDR.W           R3, [R3,#0xB0]                                         ; +0x14, 0x3c846c\nBLX             R3                                                     ; +0x18, 0x3c8470\nCBZ             R0, loc_3C84AE                                         ; +0x1a, 0x3c8472\nMOVW            R0, #0xC11; cap                                        ; +0x1c, 0x3c8474\nBLX             glEnable                                               ; +0x20, 0x3c8478\nLDR             R3, [R4]                                               ; +0x24, 0x3c847c\nMOV             R0, R4                                                 ; +0x26, 0x3c847e\nLDR.W           R3, [R3,#0x100]                                        ; +0x28, 0x3c8480\nBLX             R3                                                     ; +0x2c, 0x3c8484\nLDR             R3, [R4]                                               ; +0x2e, 0x3c8486\nLDR             R3, [R3,#0x60]                                         ; +0x30, 0x3c8488\nMOV             R7, R0                                                 ; +0x32, 0x3c848a\nMOV             R0, R4                                                 ; +0x34, 0x3c848c\nBLX             R3                                                     ; +0x36, 0x3c848e\nMOV             R1, R7; cocos2d::CCPoint *                             ; +0x38, 0x3c8490\nMOV             R2, R0                                                 ; +0x3a, 0x3c8492\nADD             R0, SP, #0x1C+var_10; this                             ; +0x3c, 0x3c8494\nBL              _ZN7cocos2d6CCNode19convertToWorldSpaceERKNS_7CCPointE; cocos2d::CCNode::convertToWorldSpace(cocos2d::CCPoint const&) ; +0x3e, 0x3c8496\nBL              _ZN7cocos2d9CCEGLView16sharedOpenGLViewEv; cocos2d::CCEGLView::sharedOpenGLView(void) ; +0x42, 0x3c849a\nLDR             R2, [R6,#0xC]                                          ; +0x46, 0x3c849e\nLDR             R1, [SP,#0x1C+var_10]                                  ; +0x48, 0x3c84a0\nLDR             R3, [R0]                                               ; +0x4a, 0x3c84a2\nSTR             R2, [SP,#0x1C+var_1C]                                  ; +0x4c, 0x3c84a4\nLDR             R2, [SP,#0x1C+var_C]                                   ; +0x4e, 0x3c84a6\nLDR             R4, [R3,#0x38]                                         ; +0x50, 0x3c84a8\nLDR             R3, [R6,#8]                                            ; +0x52, 0x3c84aa\nBLX             R4                                                     ; +0x54, 0x3c84ac\nLDR             R2, [SP,#0x1C+var_8]                                   ; +0x56, 0x3c84ae\nLDR             R3, [R5]                                               ; +0x58, 0x3c84b0\nCMP             R2, R3                                                 ; +0x5a, 0x3c84b2\nBEQ             loc_3C84BA                                             ; +0x5c, 0x3c84b4\nBLX             __stack_chk_fail                                       ; +0x5e, 0x3c84b6\nADD             SP, SP, #0x1C                                          ; +0x62, 0x3c84ba\nPOP             {R4-R7,PC}                                             ; +0x64, 0x3c84bc", "xrefs": [], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "idp_name": "arm", "bida_info": "8.3.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings"}