{"type": "func", "start": 3967284, "end": 3967546, "name": "CCScrollLayerExt::ccTouchMoved", "pseudocode": "// \n// CCScrollLayerExt::ccTouchMoved from 0x3c8934 to 0x3c8a3a (262 bytes)\n// \n// 2 xrefs:\n// > `non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x3c8a44\n// > TableView::ccTouchMoved @ 0x3caa78\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:36 +0000\n// \n\nint __fastcall CCScrollLayerExt::ccTouchMoved(int a1, int a2)\n{\n  cocos2d::CCDirector *LocationInView; // r0\n  const cocos2d::CCPoint *v5; // r0\n  int result; // r0\n  int v7; // r0\n  float v8; // s16\n  float v9; // r0\n  _BYTE v10[8]; // [sp+4h] [bp-10h] BYREF\n  _DWORD v11[2]; // [sp+Ch] [bp-8h] BYREF\n  int v12; // [sp+14h] [bp+0h] BYREF\n  float v13; // [sp+18h] [bp+4h]\n\n  *(_BYTE *)(a1 + 348) = 1;\n  LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v10);\n  v5 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView);\n  cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)&v12, v5);\n  result = cocos2d::CCPoint::operator=(v10, &v12);\n  if ( a2 == *(_DWORD *)(a1 + 320) )\n  {\n    cocos2d::CCPoint::operator-(v11, v10, a1 + 324);\n    if ( *(_BYTE *)(a1 + 372) )\n    {\n      v11[1] = 0;\n    }\n    else if ( *(_BYTE *)(a1 + 371) )\n    {\n      v11[0] = 0;\n    }\n    v7 = (*(int (__fastcall **)(_DWORD))(**(_DWORD **)(a1 + 364) + 96))(*(_DWORD *)(a1 + 364));\n    cocos2d::CCPoint::operator+(&v12, v7, v11);\n    v8 = CCScrollLayerExt::getMinY((CCScrollLayerExt *)a1) - *(float *)(a1 + 384);\n    v9 = COERCE_FLOAT(CCScrollLayerExt::getMaxY((CCScrollLayerExt *)a1));\n    if ( v13 >= v8 )\n    {\n      if ( v13 > (float)(v9 + *(float *)(a1 + 388)) )\n        v13 = v9 + *(float *)(a1 + 388);\n    }\n    else\n    {\n      v13 = v8;\n    }\n    (*(void (__fastcall **)(_DWORD, int *))(**(_DWORD **)(a1 + 364) + 92))(*(_DWORD *)(a1 + 364), &v12);\n    *(_BYTE *)(a1 + 349) = 1;\n    cocos2d::CCPoint::operator=(a1 + 324, v10);\n    result = *(_DWORD *)(a1 + 360);\n    if ( result )\n      return (*(int (__fastcall **)(int, int))(*(_DWORD *)result + 8))(result, a1);\n  }\n  return result;\n}", "assembly": "; \n; CCScrollLayerExt::ccTouchMoved from 0x3c8934 to 0x3c8a3a (262 bytes)\n; \n; 2 xrefs:\n; > `non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x3c8a44\n; > TableView::ccTouchMoved @ 0x3caa78\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:36 +0000\n; \nPUSH.W          {R4-R9,LR}                                             ; +0x0, 0x3c8934\nMOV             R4, R0                                                 ; +0x4, 0x3c8938\nVPUSH           {D8}                                                   ; +0x6, 0x3c893a\nMOV             R8, R1                                                 ; +0xa, 0x3c893e\nLDR             R5, =(__stack_chk_guard_ptr - 0x3C8946)                ; +0xc, 0x3c8940\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3c8942\nLDR             R5, [R5]; __stack_chk_guard                            ; +0x10, 0x3c8944\nSUB             SP, SP, #0x24                                          ; +0x12, 0x3c8946\nLDR             R3, [R5]                                               ; +0x14, 0x3c8948\nADD             R6, SP, #0x24+var_20                                   ; +0x16, 0x3c894a\nADD             R7, SP, #0x14                                          ; +0x18, 0x3c894c\nSTR             R3, [SP,#0x24+var_8]                                   ; +0x1a, 0x3c894e\nMOVS            R3, #1                                                 ; +0x1c, 0x3c8950\nSTRB.W          R3, [R0,#0x15C]                                        ; +0x1e, 0x3c8952\nMOV             R0, R6; this                                           ; +0x22, 0x3c8956\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x24, 0x3c8958\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x28, 0x3c895c\nMOV             R2, R6                                                 ; +0x2c, 0x3c8960\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x2e, 0x3c8962\nMOV             R0, R7; this                                           ; +0x30, 0x3c8964\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x32, 0x3c8966\nMOV             R0, R6                                                 ; +0x36, 0x3c896a\nMOV             R1, R7                                                 ; +0x38, 0x3c896c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x3a, 0x3c896e\nLDR.W           R3, [R4,#0x140]                                        ; +0x3e, 0x3c8972\nCMP             R8, R3                                                 ; +0x42, 0x3c8976\nBNE             loc_3C8A24                                             ; +0x44, 0x3c8978\nADD.W           R8, R4, #0x144                                         ; +0x46, 0x3c897a\nADD.W           R9, SP, #0x24+var_18                                   ; +0x4a, 0x3c897e\nMOV             R1, R6                                                 ; +0x4e, 0x3c8982\nMOV             R0, R9                                                 ; +0x50, 0x3c8984\nMOV             R2, R8                                                 ; +0x52, 0x3c8986\nBL              _ZNK7cocos2d7CCPointmiERKS0_; cocos2d::CCPoint::operator-(cocos2d::CCPoint const&) ; +0x54, 0x3c8988\nLDRB.W          R3, [R4,#0x174]                                        ; +0x58, 0x3c898c\nCBZ             R3, loc_3C8998                                         ; +0x5c, 0x3c8990\nMOVS            R3, #0                                                 ; +0x5e, 0x3c8992\nSTR             R3, [SP,#0x24+var_14]                                  ; +0x60, 0x3c8994\nB               loc_3C89A2                                             ; +0x62, 0x3c8996\nLDRB.W          R3, [R4,#0x173]                                        ; +0x64, 0x3c8998\nCBZ             R3, loc_3C89A2                                         ; +0x68, 0x3c899c\nMOVS            R3, #0                                                 ; +0x6a, 0x3c899e\nSTR             R3, [SP,#0x24+var_18]                                  ; +0x6c, 0x3c89a0\nLDR.W           R0, [R4,#0x16C]                                        ; +0x6e, 0x3c89a2\nLDR             R3, [R0]                                               ; +0x72, 0x3c89a6\nLDR             R3, [R3,#0x60]                                         ; +0x74, 0x3c89a8\nBLX             R3                                                     ; +0x76, 0x3c89aa\nMOV             R2, R9                                                 ; +0x78, 0x3c89ac\nMOV             R1, R0                                                 ; +0x7a, 0x3c89ae\nMOV             R0, R7                                                 ; +0x7c, 0x3c89b0\nBL              _ZNK7cocos2d7CCPointplERKS0_; cocos2d::CCPoint::operator+(cocos2d::CCPoint const&) ; +0x7e, 0x3c89b2\nMOV             R0, R4; this                                           ; +0x82, 0x3c89b6\nBL              _ZN16CCScrollLayerExt7getMinYEv; CCScrollLayerExt::getMinY(void) ; +0x84, 0x3c89b8\nVLDR            S16, [R4,#0x180]                                       ; +0x88, 0x3c89bc\nVMOV            S15, R0                                                ; +0x8c, 0x3c89c0\nMOV             R0, R4; this                                           ; +0x90, 0x3c89c4\nVSUB.F32        S16, S15, S16                                          ; +0x92, 0x3c89c6\nBL              _ZN16CCScrollLayerExt7getMaxYEv; CCScrollLayerExt::getMaxY(void) ; +0x96, 0x3c89ca\nVLDR            S14, [SP,#0x24+var_C]                                  ; +0x9a, 0x3c89ce\nVLDR            S13, [R4,#0x184]                                       ; +0x9e, 0x3c89d2\nVCMPE.F32       S14, S16                                               ; +0xa2, 0x3c89d6\nVMRS            APSR_nzcv, FPSCR                                       ; +0xa6, 0x3c89da\nVMOV            S15, R0                                                ; +0xaa, 0x3c89de\nBPL             loc_3C89EA                                             ; +0xae, 0x3c89e2\nVSTR            S16, [SP,#0x24+var_C]                                  ; +0xb0, 0x3c89e4\nB               loc_3C89FC                                             ; +0xb4, 0x3c89e8\nVADD.F32        S15, S15, S13                                          ; +0xb6, 0x3c89ea\nVCMPE.F32       S14, S15                                               ; +0xba, 0x3c89ee\nVMRS            APSR_nzcv, FPSCR                                       ; +0xbe, 0x3c89f2\nIT GT                                                                  ; +0xc2, 0x3c89f6\nVSTRGT          S15, [SP,#0x24+var_C]                                  ; +0xc4, 0x3c89f8\nLDR.W           R0, [R4,#0x16C]                                        ; +0xc8, 0x3c89fc\nMOV             R1, R7                                                 ; +0xcc, 0x3c8a00\nLDR             R3, [R0]                                               ; +0xce, 0x3c8a02\nLDR             R3, [R3,#0x5C]                                         ; +0xd0, 0x3c8a04\nBLX             R3                                                     ; +0xd2, 0x3c8a06\nMOVS            R3, #1                                                 ; +0xd4, 0x3c8a08\nMOV             R0, R8                                                 ; +0xd6, 0x3c8a0a\nSTRB.W          R3, [R4,#0x15D]                                        ; +0xd8, 0x3c8a0c\nMOV             R1, R6                                                 ; +0xdc, 0x3c8a10\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0xde, 0x3c8a12\nLDR.W           R0, [R4,#0x168]                                        ; +0xe2, 0x3c8a16\nCBZ             R0, loc_3C8A24                                         ; +0xe6, 0x3c8a1a\nLDR             R3, [R0]                                               ; +0xe8, 0x3c8a1c\nMOV             R1, R4                                                 ; +0xea, 0x3c8a1e\nLDR             R3, [R3,#8]                                            ; +0xec, 0x3c8a20\nBLX             R3                                                     ; +0xee, 0x3c8a22\nLDR             R2, [SP,#0x24+var_8]                                   ; +0xf0, 0x3c8a24\nLDR             R3, [R5]                                               ; +0xf2, 0x3c8a26\nCMP             R2, R3                                                 ; +0xf4, 0x3c8a28\nBEQ             loc_3C8A30                                             ; +0xf6, 0x3c8a2a\nBLX             __stack_chk_fail                                       ; +0xf8, 0x3c8a2c\nADD             SP, SP, #0x24 ; '$'                                    ; +0xfc, 0x3c8a30\nVPOP            {D8}                                                   ; +0xfe, 0x3c8a32\nPOP.W           {R4-R9,PC}                                             ; +0x102, 0x3c8a36", "xrefs": ["`non-virtual thunk to'CCScrollLayerExt::ccTouchMoved @ 0x3c8a44", "TableView::ccTouchMoved @ 0x3caa78"], "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"}