{"type": "func", "start": 3940608, "end": 3941008, "name": "BoomScrollLayer::ccTouchMoved", "pseudocode": "// \n// BoomScrollLayer::ccTouchMoved from 0x3c2100 to 0x3c2290 (400 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x3c229c\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:31 +0000\n// \n\nint __fastcall BoomScrollLayer::ccTouchMoved(int result, cocos2d::CCObject *a2, int a3)\n{\n  int v4; // r4\n  cocos2d::CCObject *v5; // r8\n  cocos2d::CCDirector *LocationInView; // r0\n  const cocos2d::CCPoint *v7; // r0\n  float v8; // r3\n  float v9; // s16\n  float *v10; // r0\n  float v11; // s17\n  int v12; // r7\n  cocos2d::CCDirector *v13; // r0\n  float v14; // s16\n  float v15; // s16\n  int v16; // r4\n  int (__fastcall *v17)(int, float *); // r7\n  float v18; // s18\n  float v19[2]; // [sp+4h] [bp-14h] BYREF\n  float v20[2]; // [sp+Ch] [bp-Ch] BYREF\n\n  v4 = result;\n  v5 = *(cocos2d::CCObject **)(result + 360);\n  if ( v5 == a2 && !*(_BYTE *)(result + 492) )\n  {\n    LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v19);\n    v7 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView);\n    cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v20, v7);\n    result = cocos2d::CCPoint::operator=(v19, v20);\n    if ( *(_DWORD *)(v4 + 352) != 1 && fabsf(v19[0] - *(float *)(v4 + 328)) >= *(float *)(v4 + 428) )\n    {\n      cocos2d::CCNode::stopActionByTag(*(cocos2d::CCNode **)(v4 + 384), 2);\n      *(_DWORD *)(v4 + 352) = 1;\n      v8 = v19[0];\n      *(_BYTE *)(v4 + 424) = 0;\n      *(float *)(v4 + 328) = v8;\n      if ( *(_BYTE *)(v4 + 440) )\n        BoomScrollLayer::cancelAndStoleTouch((BoomScrollLayer *)v4, v5, a3);\n      result = *(_DWORD *)(v4 + 420);\n      if ( result )\n        result = (**(int (__fastcall ***)(int, int))result)(result, v4);\n    }\n    if ( *(_DWORD *)(v4 + 352) == 1 )\n    {\n      v9 = (float)-*(_DWORD *)(v4 + 460);\n      v10 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v4 + 164))(v4);\n      v11 = (float)(v19[0] + (float)(v9 * (float)(*v10 - *(float *)(v4 + 464)))) - *(float *)(v4 + 328);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v11, 0.0);\n      v12 = BoomScrollLayer::pageNumberForPosition(v4);\n      v13 = BoomScrollLayer::positionForPageWithNumber((BoomScrollLayer *)v20, (float *)v4, v12);\n      v14 = v11 - v20[0];\n      if ( !v12 && v14 > 0.0\n        || (v13 = (cocos2d::CCDirector *)(BoomScrollLayer::getTotalPages((cocos2d::CCArray **)v4) - 1),\n            (cocos2d::CCDirector *)v12 == v13)\n        && v14 < 0.0 )\n      {\n        v18 = *(float *)(v4 + 436);\n        cocos2d::CCDirector::sharedDirector(v13);\n        cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v20);\n        v15 = v14 - (float)((float)(v14 * v18) / v20[0]);\n      }\n      else\n      {\n        v15 = 0.0;\n      }\n      v16 = *(_DWORD *)(v4 + 384);\n      v17 = *(int (__fastcall **)(int, float *))(*(_DWORD *)v16 + 92);\n      cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v20, v11 - v15, 0.0);\n      return v17(v16, v20);\n    }\n  }\n  return result;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchMoved from 0x3c2100 to 0x3c2290 (400 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x3c229c\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:31 +0000\n; \nPUSH.W          {R4-R10,LR}                                            ; +0x0, 0x3c2100\nMOV             R10, R2                                                ; +0x4, 0x3c2104\nVPUSH           {D8-D9}                                                ; +0x6, 0x3c2106\nMOV             R4, R0                                                 ; +0xa, 0x3c210a\nLDR             R2, =(__stack_chk_guard_ptr - 0x3C2112)                ; +0xc, 0x3c210c\nADD             R2, PC; __stack_chk_guard_ptr                          ; +0xe, 0x3c210e\nLDR             R2, [R2]; __stack_chk_guard                            ; +0x10, 0x3c2110\nLDR.W           R8, [R0,#0x168]                                        ; +0x12, 0x3c2112\nSUB             SP, SP, #0x18                                          ; +0x16, 0x3c2116\nLDR             R3, [R2]                                               ; +0x18, 0x3c2118\nMOV             R6, R2                                                 ; +0x1a, 0x3c211a\nCMP             R8, R1                                                 ; +0x1c, 0x3c211c\nSTR             R3, [SP,#0x18+var_4]                                   ; +0x1e, 0x3c211e\nBNE.W           loc_3C227A                                             ; +0x20, 0x3c2120\nLDRB.W          R9, [R0,#0x1EC]                                        ; +0x24, 0x3c2124\nCMP.W           R9, #0                                                 ; +0x28, 0x3c2128\nBNE.W           loc_3C227A                                             ; +0x2c, 0x3c212c\nADD             R7, SP, #0x18+var_14                                   ; +0x30, 0x3c2130\nADD             R5, SP, #0x18+var_C                                    ; +0x32, 0x3c2132\nMOV             R0, R7; this                                           ; +0x34, 0x3c2134\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x36, 0x3c2136\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x3a, 0x3c213a\nMOV             R2, R7                                                 ; +0x3e, 0x3c213e\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x40, 0x3c2140\nMOV             R0, R5; this                                           ; +0x42, 0x3c2142\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x44, 0x3c2144\nMOV             R0, R7                                                 ; +0x48, 0x3c2148\nMOV             R1, R5                                                 ; +0x4a, 0x3c214a\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x4c, 0x3c214c\nLDR.W           R3, [R4,#0x160]                                        ; +0x50, 0x3c2150\nCMP             R3, #1                                                 ; +0x54, 0x3c2154\nBEQ             loc_3C21AE                                             ; +0x56, 0x3c2156\nVLDR            S14, [R4,#0x148]                                       ; +0x58, 0x3c2158\nVLDR            S15, [SP,#0x18+var_14]                                 ; +0x5c, 0x3c215c\nVSUB.F32        S15, S15, S14                                          ; +0x60, 0x3c2160\nVLDR            S14, [R4,#0x1AC]                                       ; +0x64, 0x3c2164\nVABS.F32        S15, S15                                               ; +0x68, 0x3c2168\nVCMPE.F32       S15, S14                                               ; +0x6c, 0x3c216c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x70, 0x3c2170\nBLT             loc_3C21AE                                             ; +0x74, 0x3c2174\nLDR.W           R0, [R4,#0x180]; this                                  ; +0x76, 0x3c2176\nMOVS            R1, #2; int                                            ; +0x7a, 0x3c217a\nBL              _ZN7cocos2d6CCNode15stopActionByTagEi; cocos2d::CCNode::stopActionByTag(int) ; +0x7c, 0x3c217c\nMOVS            R3, #1                                                 ; +0x80, 0x3c2180\nSTR.W           R3, [R4,#0x160]                                        ; +0x82, 0x3c2182\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x86, 0x3c2186\nSTRB.W          R9, [R4,#0x1A8]                                        ; +0x88, 0x3c2188\nSTR.W           R3, [R4,#0x148]                                        ; +0x8c, 0x3c218c\nLDRB.W          R3, [R4,#0x1B8]                                        ; +0x90, 0x3c2190\nCBZ             R3, loc_3C21A0                                         ; +0x94, 0x3c2194\nMOV             R0, R4                                                 ; +0x96, 0x3c2196\nMOV             R1, R8                                                 ; +0x98, 0x3c2198\nMOV             R2, R10                                                ; +0x9a, 0x3c219a\nBL              _ZN15BoomScrollLayer19cancelAndStoleTouchEPN7cocos2d7CCTouchEPNS0_7CCEventE; BoomScrollLayer::cancelAndStoleTouch(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x9c, 0x3c219c\nLDR.W           R0, [R4,#0x1A4]                                        ; +0xa0, 0x3c21a0\nCBZ             R0, loc_3C21AE                                         ; +0xa4, 0x3c21a4\nLDR             R3, [R0]                                               ; +0xa6, 0x3c21a6\nMOV             R1, R4                                                 ; +0xa8, 0x3c21a8\nLDR             R3, [R3]                                               ; +0xaa, 0x3c21aa\nBLX             R3                                                     ; +0xac, 0x3c21ac\nLDR.W           R3, [R4,#0x160]                                        ; +0xae, 0x3c21ae\nCMP             R3, #1                                                 ; +0xb2, 0x3c21b2\nBNE             loc_3C227A                                             ; +0xb4, 0x3c21b4\nLDR.W           R3, [R4,#0x1CC]                                        ; +0xb6, 0x3c21b6\nMOV             R0, R4                                                 ; +0xba, 0x3c21ba\nNEGS            R3, R3                                                 ; +0xbc, 0x3c21bc\nVMOV            S15, R3                                                ; +0xbe, 0x3c21be\nLDR             R3, [R4]                                               ; +0xc2, 0x3c21c2\nVCVT.F32.S32    S16, S15                                               ; +0xc4, 0x3c21c4\nLDR.W           R3, [R3,#0xA4]                                         ; +0xc8, 0x3c21c8\nBLX             R3                                                     ; +0xcc, 0x3c21cc\nVLDR            S14, [R4,#0x1D0]                                       ; +0xce, 0x3c21ce\nMOVS            R2, #0; float                                          ; +0xd2, 0x3c21d2\nVLDR            S17, [SP,#0x18+var_14]                                 ; +0xd4, 0x3c21d4\nVLDR            S15, [R0]                                              ; +0xd8, 0x3c21d8\nMOV             R0, R5; this                                           ; +0xdc, 0x3c21dc\nVSUB.F32        S15, S15, S14                                          ; +0xde, 0x3c21de\nVMLA.F32        S17, S16, S15                                          ; +0xe2, 0x3c21e2\nVLDR            S15, [R4,#0x148]                                       ; +0xe6, 0x3c21e6\nVSUB.F32        S17, S17, S15                                          ; +0xea, 0x3c21ea\nVMOV            R1, S17; float                                         ; +0xee, 0x3c21ee\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0xf2, 0x3c21f2\nMOV             R1, R5                                                 ; +0xf6, 0x3c21f6\nMOV             R0, R4                                                 ; +0xf8, 0x3c21f8\nBL              _ZN15BoomScrollLayer21pageNumberForPositionEN7cocos2d7CCPointE; BoomScrollLayer::pageNumberForPosition(cocos2d::CCPoint) ; +0xfa, 0x3c21fa\nMOV             R1, R4; int                                            ; +0xfe, 0x3c21fe\nMOV             R7, R0                                                 ; +0x100, 0x3c2200\nMOV             R0, R5; this                                           ; +0x102, 0x3c2202\nMOV             R2, R7                                                 ; +0x104, 0x3c2204\nBL              _ZN15BoomScrollLayer25positionForPageWithNumberEi; BoomScrollLayer::positionForPageWithNumber(int) ; +0x106, 0x3c2206\nVLDR            S16, [SP,#0x18+var_C]                                  ; +0x10a, 0x3c220a\nVSUB.F32        S16, S17, S16                                          ; +0x10e, 0x3c220e\nCBNZ            R7, loc_3C221E                                         ; +0x112, 0x3c2212\nVCMPE.F32       S16, #0.0                                              ; +0x114, 0x3c2214\nVMRS            APSR_nzcv, FPSCR                                       ; +0x118, 0x3c2218\nBGT             loc_3C2258                                             ; +0x11c, 0x3c221c\nMOV             R0, R4; this                                           ; +0x11e, 0x3c221e\nBL              _ZN15BoomScrollLayer13getTotalPagesEv; BoomScrollLayer::getTotalPages(void) ; +0x120, 0x3c2220\nSUBS            R0, #1                                                 ; +0x124, 0x3c2224\nCMP             R7, R0                                                 ; +0x126, 0x3c2226\nBNE             loc_3C2234                                             ; +0x128, 0x3c2228\nVCMPE.F32       S16, #0.0                                              ; +0x12a, 0x3c222a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x12e, 0x3c222e\nBMI             loc_3C2258                                             ; +0x132, 0x3c2232\nVLDR            S16, =0.0                                              ; +0x134, 0x3c2234\nLDR.W           R4, [R4,#0x180]                                        ; +0x138, 0x3c2238\nMOV             R0, R5; this                                           ; +0x13c, 0x3c223c\nMOVS            R2, #0; float                                          ; +0x13e, 0x3c223e\nVSUB.F32        S15, S17, S16                                          ; +0x140, 0x3c2240\nLDR             R3, [R4]                                               ; +0x144, 0x3c2244\nLDR             R7, [R3,#0x5C]                                         ; +0x146, 0x3c2246\nVMOV            R1, S15; float                                         ; +0x148, 0x3c2248\nBL              _ZN7cocos2d7CCPointC1Eff; cocos2d::CCPoint::CCPoint(float,float) ; +0x14c, 0x3c224c\nMOV             R0, R4                                                 ; +0x150, 0x3c2250\nMOV             R1, R5                                                 ; +0x152, 0x3c2252\nBLX             R7                                                     ; +0x154, 0x3c2254\nB               loc_3C227A                                             ; +0x156, 0x3c2256\nVLDR            S18, [R4,#0x1B4]                                       ; +0x158, 0x3c2258\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x15c, 0x3c225c\nVMUL.F32        S18, S16, S18                                          ; +0x160, 0x3c2260\nMOV             R1, R0                                                 ; +0x164, 0x3c2264\nMOV             R0, R5; this                                           ; +0x166, 0x3c2266\nBL              _ZN7cocos2d10CCDirector10getWinSizeEv; cocos2d::CCDirector::getWinSize(void) ; +0x168, 0x3c2268\nVLDR            S15, [SP,#0x18+var_C]                                  ; +0x16c, 0x3c226c\nVDIV.F32        S18, S18, S15                                          ; +0x170, 0x3c2270\nVSUB.F32        S16, S16, S18                                          ; +0x174, 0x3c2274\nB               loc_3C2238                                             ; +0x178, 0x3c2278\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x17a, 0x3c227a\nLDR             R3, [R6]                                               ; +0x17c, 0x3c227c\nCMP             R2, R3                                                 ; +0x17e, 0x3c227e\nBEQ             loc_3C2286                                             ; +0x180, 0x3c2280\nBLX             __stack_chk_fail                                       ; +0x182, 0x3c2282\nADD             SP, SP, #0x18                                          ; +0x186, 0x3c2286\nVPOP            {D8-D9}                                                ; +0x188, 0x3c2288\nPOP.W           {R4-R10,PC}                                            ; +0x18c, 0x3c228c", "xrefs": ["`non-virtual thunk to'BoomScrollLayer::ccTouchMoved @ 0x3c229c"], "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"}