{"type": "func", "start": 5743340, "end": 5743644, "name": "CCScrollLayerExt::visit", "pseudocode": "// \n// CCScrollLayerExt::visit from 0x57a2ec to 0x57a41c (304 bytes)\n// \n// 3 xrefs:\n// > <???> @ 0xa6a10\n// > <???> @ 0x113a730\n// > <???> @ 0x113adb0\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::visit(CCScrollLayerExt *a1)\n{\n  float x; // s10\n  float width; // s9\n  float height; // s8\n  float v5; // s0\n  float y; // [xsp+50h] [xbp+50h]\n  float v7; // [xsp+60h] [xbp+60h]\n  cocos2d::CCRect v8; // [xsp+88h] [xbp+88h] BYREF\n  cocos2d::CCRect v9; // [xsp+98h] [xbp+98h] BYREF\n  cocos2d::CCRect v10; // 0:s0.4,4:s1.4,8:s2.4,12:s3.4\n\n  if ( a1->m_cutContent )\n  {\n    x = a1->getPosition(a1)->x;\n    y = a1->getPosition(a1)->y;\n    width = a1->getContentSize(a1)->width;\n    v7 = width * a1->getScaleX(a1);\n    height = a1->getContentSize(a1)->height;\n    v5 = a1->getScaleY(a1);\n    cocos2d::CCRect::CCRect(&v8, x, y, v7, height * v5);\n    cocos2d::CCRect::CCRect(&v9, &v8);\n    GameToolbox::preVisitWithClippingRect(a1, v10);\n  }\n  cocos2d::CCNode::visit(a1);\n  if ( a1->m_cutContent )\n    GameToolbox::postClipVisit();\n}", "assembly": "; \n; CCScrollLayerExt::visit from 0x57a2ec to 0x57a41c (304 bytes)\n; \n; 3 xrefs:\n; > <???> @ 0xa6a10\n; > <???> @ 0x113a730\n; > <???> @ 0x113adb0\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_B0]!                                ; +0x0, 0x57a2ec\nMOV             X29, SP                                                ; +0x4, 0x57a2f0\nSTP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x8, 0x57a2f4\nSTP             D8, D9, [SP,#0xB0+var_80]                              ; +0xc, 0x57a2f8\nADRP            X20, #__stack_chk_guard_ptr@PAGE                       ; +0x10, 0x57a2fc\nLDRB            W1, [X0,#0x1E8]                                        ; +0x14, 0x57a300\nSTP             X21, X22, [SP,#0xB0+var_90]                            ; +0x18, 0x57a304\nSTR             D10, [SP,#0xB0+var_70]                                 ; +0x1c, 0x57a308\nMOV             X19, X0                                                ; +0x20, 0x57a30c\nLDR             X2, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x24, 0x57a310\nLDR             X2, [X2]                                               ; +0x28, 0x57a314\nSTR             X2, [X29,#0xB0+var_8]                                  ; +0x2c, 0x57a318\nCBNZ            W1, loc_57A360                                         ; +0x30, 0x57a31c\nMOV             X0, X19; this                                          ; +0x34, 0x57a320\nBL              _ZN7cocos2d6CCNode5visitEv; cocos2d::CCNode::visit(void) ; +0x38, 0x57a324\nLDRB            W0, [X19,#0x1E8]; this                                 ; +0x3c, 0x57a328\nCBZ             W0, loc_57A334                                         ; +0x40, 0x57a32c\nBL              _ZN11GameToolbox13postClipVisitEv; GameToolbox::postClipVisit(void) ; +0x44, 0x57a330\nLDR             X20, [X20,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x48, 0x57a334\nLDR             X1, [X29,#0xB0+var_8]                                  ; +0x4c, 0x57a338\nLDR             X0, [X20]                                              ; +0x50, 0x57a33c\nCMP             X1, X0                                                 ; +0x54, 0x57a340\nB.NE            loc_57A418                                             ; +0x58, 0x57a344\nLDP             X19, X20, [SP,#0xB0+var_A0]                            ; +0x5c, 0x57a348\nLDP             D8, D9, [SP,#0xB0+var_80]                              ; +0x60, 0x57a34c\nLDP             X21, X22, [SP,#0xB0+var_90]                            ; +0x64, 0x57a350\nLDR             D10, [SP,#0xB0+var_70]                                 ; +0x68, 0x57a354\nLDP             X29, X30, [SP+0xB0+var_B0],#0xB0                       ; +0x6c, 0x57a358\nRET                                                                    ; +0x70, 0x57a35c\nLDR             X1, [X0]                                               ; +0x74, 0x57a360\nADD             X22, X29, #0xB0+var_28                                 ; +0x78, 0x57a364\nADD             X21, X29, #0xB0+var_18                                 ; +0x7c, 0x57a368\nLDR             X1, [X1,#0xC0]                                         ; +0x80, 0x57a36c\nBLR             X1                                                     ; +0x84, 0x57a370\nLDR             X1, [X19]                                              ; +0x88, 0x57a374\nLDR             S10, [X0]                                              ; +0x8c, 0x57a378\nMOV             X0, X19                                                ; +0x90, 0x57a37c\nLDR             X1, [X1,#0xC0]                                         ; +0x94, 0x57a380\nBLR             X1                                                     ; +0x98, 0x57a384\nLDR             X1, [X19]                                              ; +0x9c, 0x57a388\nLDR             S1, [X0,#4]                                            ; +0xa0, 0x57a38c\nMOV             X0, X19                                                ; +0xa4, 0x57a390\nLDR             X1, [X1,#0x138]                                        ; +0xa8, 0x57a394\nSTR             Q1, [X29,#0xB0+var_60]                                 ; +0xac, 0x57a398\nBLR             X1                                                     ; +0xb0, 0x57a39c\nLDR             X1, [X19]                                              ; +0xb4, 0x57a3a0\nLDR             S9, [X0]                                               ; +0xb8, 0x57a3a4\nMOV             X0, X19                                                ; +0xbc, 0x57a3a8\nLDR             X1, [X1,#0x88]                                         ; +0xc0, 0x57a3ac\nBLR             X1                                                     ; +0xc4, 0x57a3b0\nLDR             X1, [X19]                                              ; +0xc8, 0x57a3b4\nMOV             X0, X19                                                ; +0xcc, 0x57a3b8\nFMUL            S2, S9, S0                                             ; +0xd0, 0x57a3bc\nLDR             X1, [X1,#0x138]                                        ; +0xd4, 0x57a3c0\nSTR             Q2, [X29,#0xB0+var_50]                                 ; +0xd8, 0x57a3c4\nBLR             X1                                                     ; +0xdc, 0x57a3c8\nLDR             X1, [X19]                                              ; +0xe0, 0x57a3cc\nLDR             S8, [X0,#4]                                            ; +0xe4, 0x57a3d0\nMOV             X0, X19                                                ; +0xe8, 0x57a3d4\nLDR             X1, [X1,#0x98]                                         ; +0xec, 0x57a3d8\nBLR             X1                                                     ; +0xf0, 0x57a3dc\nSTR             X22, [X29,#0xB0+var_38]                                ; +0xf4, 0x57a3e0\nLDR             Q1, [X29,#0xB0+var_60]; float                          ; +0xf8, 0x57a3e4\nMOV             X0, X22; this                                          ; +0xfc, 0x57a3e8\nLDR             Q2, [X29,#0xB0+var_50]; float                          ; +0x100, 0x57a3ec\nFMUL            S3, S8, S0; float                                      ; +0x104, 0x57a3f0\nFMOV            S0, S10; float                                         ; +0x108, 0x57a3f4\nBL              _ZN7cocos2d6CCRectC2Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x10c, 0x57a3f8\nLDR             X1, [X29,#0xB0+var_38]; cocos2d::CCRect *              ; +0x110, 0x57a3fc\nMOV             X0, X21; this                                          ; +0x114, 0x57a400\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x118, 0x57a404\nMOV             X0, X19                                                ; +0x11c, 0x57a408\nMOV             X1, X21                                                ; +0x120, 0x57a40c\nBL              _ZN11GameToolbox24preVisitWithClippingRectEPN7cocos2d6CCNodeENS0_6CCRectE; GameToolbox::preVisitWithClippingRect(cocos2d::CCNode *,cocos2d::CCRect) ; +0x124, 0x57a410\nB               loc_57A320                                             ; +0x128, 0x57a414\nBL              .__stack_chk_fail                                      ; +0x12c, 0x57a418", "xrefs": ["<???> @ 0xa6a10", "<???> @ 0x113a730", "<???> @ 0x113adb0"], "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"}