{"type": "func", "start": 3050452, "end": 3050640, "name": "CCScrollLayerExt::visit", "pseudocode": "// \n// CCScrollLayerExt::visit from 0x2e8bd4 to 0x2e8c90 (188 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::visit(CCScrollLayerExt *a1)\n{\n  float x; // r8\n  float y; // r7\n  float width; // s16\n  float v5; // s15\n  float height; // s17\n  float v7; // r0\n  cocos2d::CCRect v8; // [sp+Ch] [bp-24h] BYREF\n  cocos2d::CCRect v9; // [sp+1Ch] [bp-14h] BYREF\n  cocos2d::CCRect v10; // 0:r1.12,12:^0.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    v5 = COERCE_FLOAT(((int (__fastcall *)(CCScrollLayerExt *))a1->getScaleX)(a1));\n    height = a1->getContentSize(a1)->height;\n    v7 = a1->getScaleY(a1);\n    cocos2d::CCRect::CCRect(&v8, x, y, width * v5, height * v7);\n    cocos2d::CCRect::CCRect(&v9, &v8);\n    LODWORD(v10.origin.x) = &v9;\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 0x2e8bd4 to 0x2e8c90 (188 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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2E8BDE)                ; +0x0, 0x2e8bd4\nPUSH.W          {R4-R8,LR}                                             ; +0x2, 0x2e8bd6\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2e8bda\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2e8bdc\nVPUSH           {D8}                                                   ; +0xa, 0x2e8bde\nMOV             R4, R0                                                 ; +0xe, 0x2e8be2\nLDR             R2, [R3]                                               ; +0x10, 0x2e8be4\nMOV             R6, R3                                                 ; +0x12, 0x2e8be6\nSUB             SP, SP, #0x30; float                                   ; +0x14, 0x2e8be8\nSTR             R2, [SP,#0x30+var_4]                                   ; +0x16, 0x2e8bea\nLDRB.W          R2, [R0,#0x16C]                                        ; +0x18, 0x2e8bec\nCMP             R2, #0                                                 ; +0x1c, 0x2e8bf0\nBEQ             loc_2E8C6A                                             ; +0x1e, 0x2e8bf2\nLDR             R3, [R0]                                               ; +0x20, 0x2e8bf4\nADD             R5, SP, #0x30+var_24                                   ; +0x22, 0x2e8bf6\nLDR             R3, [R3,#0x60]                                         ; +0x24, 0x2e8bf8\nBLX             R3                                                     ; +0x26, 0x2e8bfa\nLDR             R3, [R4]                                               ; +0x28, 0x2e8bfc\nLDR             R3, [R3,#0x60]                                         ; +0x2a, 0x2e8bfe\nLDR.W           R8, [R0]                                               ; +0x2c, 0x2e8c00\nMOV             R0, R4                                                 ; +0x30, 0x2e8c04\nBLX             R3                                                     ; +0x32, 0x2e8c06\nLDR             R3, [R4]                                               ; +0x34, 0x2e8c08\nLDR.W           R3, [R3,#0x9C]                                         ; +0x36, 0x2e8c0a\nLDR             R7, [R0,#4]                                            ; +0x3a, 0x2e8c0e\nMOV             R0, R4                                                 ; +0x3c, 0x2e8c10\nBLX             R3                                                     ; +0x3e, 0x2e8c12\nLDR             R3, [R4]                                               ; +0x40, 0x2e8c14\nLDR             R3, [R3,#0x44]                                         ; +0x42, 0x2e8c16\nVLDR            S16, [R0]                                              ; +0x44, 0x2e8c18\nMOV             R0, R4                                                 ; +0x48, 0x2e8c1c\nBLX             R3                                                     ; +0x4a, 0x2e8c1e\nLDR             R3, [R4]                                               ; +0x4c, 0x2e8c20\nLDR.W           R3, [R3,#0x9C]                                         ; +0x4e, 0x2e8c22\nVMOV            S15, R0                                                ; +0x52, 0x2e8c26\nMOV             R0, R4                                                 ; +0x56, 0x2e8c2a\nVMUL.F32        S16, S16, S15                                          ; +0x58, 0x2e8c2c\nBLX             R3                                                     ; +0x5c, 0x2e8c30\nLDR             R3, [R4]                                               ; +0x5e, 0x2e8c32\nLDR             R3, [R3,#0x4C]                                         ; +0x60, 0x2e8c34\nVLDR            S17, [R0,#4]                                           ; +0x62, 0x2e8c36\nMOV             R0, R4                                                 ; +0x66, 0x2e8c3a\nBLX             R3                                                     ; +0x68, 0x2e8c3c\nMOV             R2, R7; float                                          ; +0x6a, 0x2e8c3e\nADD             R7, SP, #0x30+var_14                                   ; +0x6c, 0x2e8c40\nMOV             R1, R8; float                                          ; +0x6e, 0x2e8c42\nVMOV            R3, S16; float                                         ; +0x70, 0x2e8c44\nVMOV            S15, R0                                                ; +0x74, 0x2e8c48\nMOV             R0, R5; this                                           ; +0x78, 0x2e8c4c\nVMUL.F32        S17, S17, S15                                          ; +0x7a, 0x2e8c4e\nVSTR            S17, [SP,#0x30+var_30]                                 ; +0x7e, 0x2e8c52\nBL              _ZN7cocos2d6CCRectC1Effff; cocos2d::CCRect::CCRect(float,float,float,float) ; +0x82, 0x2e8c56\nMOV             R1, R5; cocos2d::CCRect *                              ; +0x86, 0x2e8c5a\nMOV             R0, R7; this                                           ; +0x88, 0x2e8c5c\nBL              _ZN7cocos2d6CCRectC1ERKS0_; cocos2d::CCRect::CCRect(cocos2d::CCRect const&) ; +0x8a, 0x2e8c5e\nMOV             R0, R4                                                 ; +0x8e, 0x2e8c62\nMOV             R1, R7                                                 ; +0x90, 0x2e8c64\nBL              _ZN11GameToolbox24preVisitWithClippingRectEPN7cocos2d6CCNodeENS0_6CCRectE; GameToolbox::preVisitWithClippingRect(cocos2d::CCNode *,cocos2d::CCRect) ; +0x92, 0x2e8c66\nMOV             R0, R4; this                                           ; +0x96, 0x2e8c6a\nBL              _ZN7cocos2d6CCNode5visitEv; cocos2d::CCNode::visit(void) ; +0x98, 0x2e8c6c\nLDRB.W          R3, [R4,#0x16C]                                        ; +0x9c, 0x2e8c70\nCBZ             R3, loc_2E8C7A                                         ; +0xa0, 0x2e8c74\nBL              _ZN11GameToolbox13postClipVisitEv; GameToolbox::postClipVisit(void) ; +0xa2, 0x2e8c76\nLDR             R2, [SP,#0x30+var_4]                                   ; +0xa6, 0x2e8c7a\nLDR             R3, [R6]                                               ; +0xa8, 0x2e8c7c\nCMP             R2, R3                                                 ; +0xaa, 0x2e8c7e\nBEQ             loc_2E8C86                                             ; +0xac, 0x2e8c80\nBLX             __stack_chk_fail                                       ; +0xae, 0x2e8c82\nADD             SP, SP, #0x30 ; '0'                                    ; +0xb2, 0x2e8c86\nVPOP            {D8}                                                   ; +0xb4, 0x2e8c88\nPOP.W           {R4-R8,PC}                                             ; +0xb8, 0x2e8c8c", "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"}