{"type": "func", "start": 4298118964, "end": 4298119216, "name": "CCScrollLayerExt::visit", "pseudocode": "// \n// CCScrollLayerExt::visit from 0x100301734 to 0x100301830 (252 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1007eb2c8\n// > <???> @ 0x1007eb8f8\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 __fastcall CCScrollLayerExt::visit(CCScrollLayerExt *a1)\n{\n  float v2; // s8\n  float v3; // s9\n  float v4; // s10\n  float v5; // s10\n  float v6; // s11\n  float v7; // s0\n  double v8; // d0\n  float v9; // s1\n  float v10; // s2\n  float v11; // s3\n  __int64 v12; // [xsp+0h] [xbp-50h] BYREF\n  float v13[4]; // [xsp+10h] [xbp-40h] BYREF\n  cocos2d::CCRect v14; // 0:kr00_16.16\n\n  if ( a1->m_cutContent )\n  {\n    v2 = *(float *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getPosition)(a1);\n    v3 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getPosition)(a1) + 4);\n    v4 = *(float *)((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1);\n    v5 = v4 * ((float (__fastcall *)(CCScrollLayerExt *))a1->getScaleX)(a1);\n    v6 = *(float *)(((__int64 (__fastcall *)(CCScrollLayerExt *))a1->getContentSize)(a1) + 4);\n    v7 = ((float (__fastcall *)(CCScrollLayerExt *))a1->getScaleY)(a1);\n    sub_100022990(v13, v2, v3, v5, v6 * v7);\n    v8 = sub_100022B98(&v12, (__int64)v13);\n    v14.origin.x = *(float *)&v8;\n    v14.origin.y = v9;\n    v14.size.width = v10;\n    v14.size.height = v11;\n    GameToolbox::preVisitWithClippingRect(a1, v14);\n  }\n  cocos2d::CCNode::visit(a1);\n  if ( a1->m_cutContent )\n    GameToolbox::postClipVisit();\n}", "assembly": "; \n; CCScrollLayerExt::visit from 0x100301734 to 0x100301830 (252 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1007eb2c8\n; > <???> @ 0x1007eb8f8\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, #0x60                                          ; +0x0, 0x100301734\nSTP             D11, D10, [SP,#0x50+var_30]                            ; +0x4, 0x100301738\nSTP             D9, D8, [SP,#0x50+var_20]                              ; +0x8, 0x10030173c\nSTP             X20, X19, [SP,#0x50+var_10]                            ; +0xc, 0x100301740\nSTP             X29, X30, [SP,#0x50+var_s0]                            ; +0x10, 0x100301744\nADD             X29, SP, #0x50                                         ; +0x14, 0x100301748\nMOV             X19, X0                                                ; +0x18, 0x10030174c\nLDRB            W8, [X0,#0x1E8]                                        ; +0x1c, 0x100301750\nCMP             W8, #1                                                 ; +0x20, 0x100301754\nB.NE            loc_100301800                                          ; +0x24, 0x100301758\nLDR             X8, [X19]                                              ; +0x28, 0x10030175c\nLDR             X8, [X8,#0xC0]                                         ; +0x2c, 0x100301760\nMOV             X0, X19                                                ; +0x30, 0x100301764\nBLR             X8                                                     ; +0x34, 0x100301768\nLDR             S8, [X0]                                               ; +0x38, 0x10030176c\nLDR             X8, [X19]                                              ; +0x3c, 0x100301770\nLDR             X8, [X8,#0xC0]                                         ; +0x40, 0x100301774\nMOV             X0, X19                                                ; +0x44, 0x100301778\nBLR             X8                                                     ; +0x48, 0x10030177c\nLDR             S9, [X0,#4]                                            ; +0x4c, 0x100301780\nLDR             X8, [X19]                                              ; +0x50, 0x100301784\nLDR             X8, [X8,#0x138]                                        ; +0x54, 0x100301788\nMOV             X0, X19                                                ; +0x58, 0x10030178c\nBLR             X8                                                     ; +0x5c, 0x100301790\nLDR             S10, [X0]                                              ; +0x60, 0x100301794\nLDR             X8, [X19]                                              ; +0x64, 0x100301798\nLDR             X8, [X8,#0x88]                                         ; +0x68, 0x10030179c\nMOV             X0, X19                                                ; +0x6c, 0x1003017a0\nBLR             X8                                                     ; +0x70, 0x1003017a4\nFMUL            S10, S10, S0                                           ; +0x74, 0x1003017a8\nLDR             X8, [X19]                                              ; +0x78, 0x1003017ac\nLDR             X8, [X8,#0x138]                                        ; +0x7c, 0x1003017b0\nMOV             X0, X19                                                ; +0x80, 0x1003017b4\nBLR             X8                                                     ; +0x84, 0x1003017b8\nLDR             S11, [X0,#4]                                           ; +0x88, 0x1003017bc\nLDR             X8, [X19]                                              ; +0x8c, 0x1003017c0\nLDR             X8, [X8,#0x98]                                         ; +0x90, 0x1003017c4\nMOV             X0, X19                                                ; +0x94, 0x1003017c8\nBLR             X8                                                     ; +0x98, 0x1003017cc\nFMUL            S3, S11, S0                                            ; +0x9c, 0x1003017d0\nADD             X0, SP, #0x50+var_40                                   ; +0xa0, 0x1003017d4\nFMOV            S0, S8                                                 ; +0xa4, 0x1003017d8\nFMOV            S1, S9                                                 ; +0xa8, 0x1003017dc\nFMOV            S2, S10                                                ; +0xac, 0x1003017e0\nBL              sub_100022990                                          ; +0xb0, 0x1003017e4\nMOV             X0, SP                                                 ; +0xb4, 0x1003017e8\nADD             X1, SP, #0x50+var_40                                   ; +0xb8, 0x1003017ec\nBL              sub_100022B98                                          ; +0xbc, 0x1003017f0\nMOV             X1, SP                                                 ; +0xc0, 0x1003017f4\nMOV             X0, X19                                                ; +0xc4, 0x1003017f8\nBL              GameToolbox__preVisitWithClippingRect                  ; +0xc8, 0x1003017fc\nMOV             X0, X19                                                ; +0xcc, 0x100301800\nBL              cocos2d__CCNode__visit                                 ; +0xd0, 0x100301804\nLDRB            W8, [X19,#0x1E8]                                       ; +0xd4, 0x100301808\nCMP             W8, #1                                                 ; +0xd8, 0x10030180c\nB.NE            loc_100301818                                          ; +0xdc, 0x100301810\nBL              GameToolbox__postClipVisit                             ; +0xe0, 0x100301814\nLDP             X29, X30, [SP,#0x50+var_s0]                            ; +0xe4, 0x100301818\nLDP             X20, X19, [SP,#0x50+var_10]                            ; +0xe8, 0x10030181c\nLDP             D9, D8, [SP,#0x50+var_20]                              ; +0xec, 0x100301820\nLDP             D11, D10, [SP,#0x50+var_30]                            ; +0xf0, 0x100301824\nADD             SP, SP, #0x60 ; '`'                                    ; +0xf4, 0x100301828\nRET                                                                    ; +0xf8, 0x10030182c", "xrefs": ["<???> @ 0x1007eb2c8", "<???> @ 0x1007eb8f8"], "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"}