{"type": "func", "start": 3050300, "end": 3050448, "name": "CCScrollLayerExt::scrollLayer", "pseudocode": "// \n// CCScrollLayerExt::scrollLayer from 0x2e8b3c to 0x2e8bd0 (148 bytes)\n// \n// 1 xrefs:\n// > TableView::scrollWheel @ 0x2e8dec\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::scrollLayer(CCScrollLayerExt *a1, float a2)\n{\n  const cocos2d::CCPoint *v4; // r8\n  float MinY; // s16\n  float MaxY; // r0\n  _BYTE v7[4]; // [sp+4h] [bp-8h] BYREF\n  float v8; // [sp+8h] [bp-4h]\n  cocos2d::CCPoint v9; // [sp+Ch] [bp+0h] BYREF\n\n  v4 = a1->m_contentLayer->getPosition(a1->m_contentLayer);\n  cocos2d::CCPoint::CCPoint(&v9, 0.0, a2);\n  cocos2d::CCPoint::operator+(v7, v4, &v9);\n  MinY = CCScrollLayerExt::getMinY(a1);\n  MaxY = CCScrollLayerExt::getMaxY(a1);\n  if ( v8 >= MinY )\n  {\n    if ( v8 > MaxY )\n      v8 = MaxY;\n  }\n  else\n  {\n    v8 = MinY;\n  }\n  a1->m_contentLayer->setPosition(a1->m_contentLayer, (const cocos2d::CCPoint *)v7);\n}", "assembly": "; \n; CCScrollLayerExt::scrollLayer from 0x2e8b3c to 0x2e8bd0 (148 bytes)\n; \n; 1 xrefs:\n; > TableView::scrollWheel @ 0x2e8dec\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.W          {R4-R8,LR}                                             ; +0x0, 0x2e8b3c\nMOV             R5, R0                                                 ; +0x4, 0x2e8b40\nLDR             R4, =(__stack_chk_guard_ptr - 0x2E8B4E)                ; +0x6, 0x2e8b42\nMOV             R6, R1                                                 ; +0x8, 0x2e8b44\nVPUSH           {D8}                                                   ; +0xa, 0x2e8b46\nADD             R4, PC; __stack_chk_guard_ptr                          ; +0xe, 0x2e8b4a\nLDR             R4, [R4]; __stack_chk_guard                            ; +0x10, 0x2e8b4c\nLDR.W           R0, [R0,#0x168]                                        ; +0x12, 0x2e8b4e\nLDR             R3, [R4]                                               ; +0x16, 0x2e8b52\nSUB             SP, SP, #0x18                                          ; +0x18, 0x2e8b54\nADD             R7, SP, #0xC                                           ; +0x1a, 0x2e8b56\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1c, 0x2e8b58\nLDR             R3, [R0]                                               ; +0x1e, 0x2e8b5a\nLDR             R3, [R3,#0x60]                                         ; +0x20, 0x2e8b5c\nBLX             R3                                                     ; +0x22, 0x2e8b5e\nMOV             R2, R6; float                                          ; +0x24, 0x2e8b60\nADD             R6, SP, #0x18+var_14                                   ; +0x26, 0x2e8b62\nMOVS            R1, #0; float                                          ; +0x28, 0x2e8b64\nMOV             R8, R0                                                 ; +0x2a, 0x2e8b66\nMOV             R0, R7; this                                           ; +0x2c, 0x2e8b68\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x2e, 0x2e8b6a\nMOV             R1, R8                                                 ; +0x32, 0x2e8b6e\nMOV             R2, R7                                                 ; +0x34, 0x2e8b70\nMOV             R0, R6                                                 ; +0x36, 0x2e8b72\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x38, 0x2e8b74\nMOV             R0, R5; this                                           ; +0x3c, 0x2e8b78\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0x3e, 0x2e8b7a\nVMOV            S16, R0                                                ; +0x42, 0x2e8b7e\nMOV             R0, R5; this                                           ; +0x46, 0x2e8b82\nBL              _ZN16CCScrollLayerExt7getMaxYEv; CCScrollLayerExt::getMaxY(void) ; +0x48, 0x2e8b84\nVLDR            S14, [SP,#0x18+var_10]                                 ; +0x4c, 0x2e8b88\nVCMPE.F32       S14, S16                                               ; +0x50, 0x2e8b8c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x54, 0x2e8b90\nVMOV            S15, R0                                                ; +0x58, 0x2e8b94\nBPL             loc_2E8BA0                                             ; +0x5c, 0x2e8b98\nVSTR            S16, [SP,#0x18+var_10]                                 ; +0x5e, 0x2e8b9a\nB               loc_2E8BAE                                             ; +0x62, 0x2e8b9e\nVCMPE.F32       S14, S15                                               ; +0x64, 0x2e8ba0\nVMRS            APSR_nzcv, FPSCR                                       ; +0x68, 0x2e8ba4\nIT GT                                                                  ; +0x6c, 0x2e8ba8\nVSTRGT          S15, [SP,#0x18+var_10]                                 ; +0x6e, 0x2e8baa\nLDR.W           R0, [R5,#0x168]                                        ; +0x72, 0x2e8bae\nMOV             R1, R6                                                 ; +0x76, 0x2e8bb2\nLDR             R3, [R0]                                               ; +0x78, 0x2e8bb4\nLDR             R3, [R3,#0x5C]                                         ; +0x7a, 0x2e8bb6\nBLX             R3                                                     ; +0x7c, 0x2e8bb8\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x7e, 0x2e8bba\nLDR             R3, [R4]                                               ; +0x80, 0x2e8bbc\nCMP             R2, R3                                                 ; +0x82, 0x2e8bbe\nBEQ             loc_2E8BC6                                             ; +0x84, 0x2e8bc0\nBLX             __stack_chk_fail                                       ; +0x86, 0x2e8bc2\nADD             SP, SP, #0x18                                          ; +0x8a, 0x2e8bc6\nVPOP            {D8}                                                   ; +0x8c, 0x2e8bc8\nPOP.W           {R4-R8,PC}                                             ; +0x90, 0x2e8bcc", "xrefs": ["TableView::scrollWheel @ 0x2e8dec"], "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"}