{"type": "func", "start": 4298704720, "end": 4298705479, "name": "BoomScrollLayer::ccTouchMoved", "pseudocode": "// \n// BoomScrollLayer::ccTouchMoved from 0x100390750 to 0x100390a47 (759 bytes)\n// \n// 2 xrefs:\n// > sub_100390A50 @ 0x100390a5c\n// > <???> @ 0x100b2fbf0\n// \n// This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:29:13 +0000\n// \n\nvoid __fastcall BoomScrollLayer::ccTouchMoved(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v6; // rax\n  __int64 v7; // rsi\n  void (__fastcall ***v8)(_QWORD, __int64); // rdi\n  float *v9; // rax\n  float *v10; // rax\n  __m128 v11; // xmm1\n  __m128 v12; // xmm0\n  int v13; // r14d\n  float *v14; // rax\n  float v15; // xmm0_4\n  __int64 *v16; // rdi\n  float v17; // xmm1_4\n  __int64 v18; // rax\n  __int64 v19; // rbx\n  __int64 v20; // [rsp-60h] [rbp-60h] BYREF\n  __m128 v21; // [rsp-58h] [rbp-58h]\n  float v22; // [rsp-40h] [rbp-40h]\n  __int64 v23; // [rsp-3Ch] [rbp-3Ch] BYREF\n  float v24; // [rsp-34h] [rbp-34h]\n\n  if ( *(_QWORD *)(a1 + 472) == a2 && !*(_BYTE *)(a1 + 628) )\n  {\n    cocos2d::CCTouch::getLocationInView((__int64)&v20, a2);\n    v6 = cocos2d::CCDirector::sharedDirector(&v20, a2);\n    cocos2d::CCDirector::convertToGL(&v23, v6, &v20);\n    v7 = (__int64)&v23;\n    sub_100278300(&v20, &v23);\n    if ( *(_DWORD *)(a1 + 460) == 1 )\n      goto LABEL_10;\n    if ( fabs(*(float *)&v20 - *(float *)(a1 + 428)) >= *(float *)(a1 + 556) )\n    {\n      v7 = 2;\n      cocos2d::CCNode::stopActionByTag(*(_QWORD *)(a1 + 504), 2);\n      *(_BYTE *)(a1 + 552) = 0;\n      *(_DWORD *)(a1 + 460) = 1;\n      *(_DWORD *)(a1 + 428) = v20;\n      if ( *(_BYTE *)(a1 + 568) == 1 )\n      {\n        v7 = a2;\n        BoomScrollLayer::cancelAndStoleTouch(a1, a2, a3);\n      }\n      v8 = *(void (__fastcall ****)(_QWORD, __int64))(a1 + 544);\n      if ( v8 )\n      {\n        v7 = a1;\n        (**v8)(v8, a1);\n      }\n    }\n    if ( *(_DWORD *)(a1 + 460) == 1 )\n    {\nLABEL_10:\n      v24 = (float)-*(_DWORD *)(a1 + 588);\n      v9 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);\n      v24 = (float)((float)((float)(*v9 - *(float *)(a1 + 592)) * v24) + *(float *)&v20) - *(float *)(a1 + 428);\n      sub_100278250((float *)&v23, v24, 0.0);\n      v21 = _mm_xor_ps(\n              (__m128)*(unsigned int *)(*(__int64 (__fastcall **)(_QWORD))(**(_QWORD **)(a1 + 504) + 192LL))(*(_QWORD *)(a1 + 504)),\n              (__m128)xmmword_100A035F0);\n      v10 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);\n      v11 = v21;\n      v11.f32[0] = v21.f32[0] / (float)(*v10 - *(float *)(a1 + 592));\n      v12 = _mm_round_ss((__m128)0LL, v11, 10);\n      v13 = ((float)(_mm_cvtepi32_ps(_mm_cvttps_epi32(v12)).f32[0] - v11.f32[0]) < 0.5) + (int)v12.f32[0] - 1;\n      if ( !*(_BYTE *)(a1 + 436) )\n      {\n        if ( v13 <= 0 )\n          v13 = 0;\n        if ( (int)(sub_1007FEF90(*(_QWORD *)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448)) - 1) <= v13 )\n          v13 = sub_1007FEF90(*(_QWORD *)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448)) - 1;\n      }\n      v21.f32[0] = (float)-v13;\n      v14 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 328LL))(a1);\n      v15 = (float)(*v14 - *(float *)(a1 + 592)) * v21.f32[0];\n      v16 = &v23;\n      v21.i32[0] = 0;\n      sub_100278250((float *)&v23, v15, 0.0);\n      v17 = v24 - *(float *)&v23;\n      v22 = v24 - *(float *)&v23;\n      if ( !v13 && v17 > 0.0\n        || (v16 = *(__int64 **)(a1 + 32 * (*(unsigned __int8 *)(a1 + 456) ^ 1u) + 448),\n            v13 == (unsigned int)sub_1007FEF90(v16) - 1)\n        && (v17 = v22, v22 < 0.0) )\n      {\n        v21.f32[0] = *(float *)(a1 + 564) * v17;\n        v18 = cocos2d::CCDirector::sharedDirector(v16, v7);\n        cocos2d::CCDirector::getWinSize(&v23, v18);\n        v21.f32[0] = v22 - (float)(v21.f32[0] / *(float *)&v23);\n      }\n      v19 = *(_QWORD *)(a1 + 504);\n      sub_100278250((float *)&v23, v24 - v21.f32[0], 0.0);\n      (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v19 + 184LL))(v19, &v23);\n    }\n  }\n}", "assembly": "; \n; BoomScrollLayer::ccTouchMoved from 0x100390750 to 0x100390a47 (759 bytes)\n; \n; 2 xrefs:\n; > sub_100390A50 @ 0x100390a5c\n; > <???> @ 0x100b2fbf0\n; \n; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True!\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 12:29:13 +0000\n; \ncmp     [rdi+1D8h], rsi                                                ; +0x0, 0x100390750\njz      short loc_10039075A                                            ; +0x7, 0x100390757\nretn                                                                   ; +0x9, 0x100390759\npush    rbp                                                            ; +0xa, 0x10039075a\nmov     rbp, rsp                                                       ; +0xb, 0x10039075b\npush    r15                                                            ; +0xe, 0x10039075e\npush    r14                                                            ; +0x10, 0x100390760\npush    r13                                                            ; +0x12, 0x100390762\npush    r12                                                            ; +0x14, 0x100390764\npush    rbx                                                            ; +0x16, 0x100390766\nsub     rsp, 38h                                                       ; +0x17, 0x100390767\nmov     rbx, rdi                                                       ; +0x1b, 0x10039076b\ncmp     byte ptr [rdi+274h], 0                                         ; +0x1e, 0x10039076e\njnz     loc_100390A38                                                  ; +0x25, 0x100390775\nmov     r14, rdx                                                       ; +0x2b, 0x10039077b\nlea     r12, [rbp-58h]                                                 ; +0x2e, 0x10039077e\nmov     rdi, r12                                                       ; +0x32, 0x100390782\nmov     r15, rsi                                                       ; +0x35, 0x100390785\ncall    cocos2d__CCTouch__getLocationInView                            ; +0x38, 0x100390788\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x3d, 0x10039078d\nlea     r13, [rbp-34h]                                                 ; +0x42, 0x100390792\nmov     rdi, r13                                                       ; +0x46, 0x100390796\nmov     rsi, rax                                                       ; +0x49, 0x100390799\nmov     rdx, r12                                                       ; +0x4c, 0x10039079c\ncall    cocos2d__CCDirector__convertToGL                               ; +0x4f, 0x10039079f\nmov     rdi, r12                                                       ; +0x54, 0x1003907a4\nmov     rsi, r13                                                       ; +0x57, 0x1003907a7\ncall    sub_100278300                                                  ; +0x5a, 0x1003907aa\ncmp     dword ptr [rbx+1CCh], 1                                        ; +0x5f, 0x1003907af\njz      loc_100390840                                                  ; +0x66, 0x1003907b6\nmovss   xmm0, dword ptr [rbp-58h]                                      ; +0x6c, 0x1003907bc\nsubss   xmm0, dword ptr [rbx+1ACh]                                     ; +0x71, 0x1003907c1\nandps   xmm0, cs:xmmword_100A038A0                                     ; +0x79, 0x1003907c9\nucomiss xmm0, dword ptr [rbx+22Ch]                                     ; +0x80, 0x1003907d0\njb      short loc_100390833                                            ; +0x87, 0x1003907d7\nmov     rdi, [rbx+1F8h]                                                ; +0x89, 0x1003907d9\nmov     esi, 2                                                         ; +0x90, 0x1003907e0\ncall    cocos2d__CCNode__stopActionByTag                               ; +0x95, 0x1003907e5\nmov     byte ptr [rbx+228h], 0                                         ; +0x9a, 0x1003907ea\nmov     dword ptr [rbx+1CCh], 1                                        ; +0xa1, 0x1003907f1\nmovss   xmm0, dword ptr [rbp-58h]                                      ; +0xab, 0x1003907fb\nmovss   dword ptr [rbx+1ACh], xmm0                                     ; +0xb0, 0x100390800\ncmp     byte ptr [rbx+238h], 1                                         ; +0xb8, 0x100390808\njnz     short loc_10039081F                                            ; +0xbf, 0x10039080f\nmov     rdi, rbx                                                       ; +0xc1, 0x100390811\nmov     rsi, r15                                                       ; +0xc4, 0x100390814\nmov     rdx, r14                                                       ; +0xc7, 0x100390817\ncall    BoomScrollLayer__cancelAndStoleTouch                           ; +0xca, 0x10039081a\nmov     rdi, [rbx+220h]                                                ; +0xcf, 0x10039081f\ntest    rdi, rdi                                                       ; +0xd6, 0x100390826\njz      short loc_100390833                                            ; +0xd9, 0x100390829\nmov     rax, [rdi]                                                     ; +0xdb, 0x10039082b\nmov     rsi, rbx                                                       ; +0xde, 0x10039082e\ncall    qword ptr [rax]                                                ; +0xe1, 0x100390831\ncmp     dword ptr [rbx+1CCh], 1                                        ; +0xe3, 0x100390833\njnz     loc_100390A38                                                  ; +0xea, 0x10039083a\nxor     r15d, r15d                                                     ; +0xf0, 0x100390840\nxor     eax, eax                                                       ; +0xf3, 0x100390843\nsub     eax, [rbx+24Ch]                                                ; +0xf5, 0x100390845\nxorps   xmm0, xmm0                                                     ; +0xfb, 0x10039084b\ncvtsi2ss xmm0, eax                                                     ; +0xfe, 0x10039084e\nmovss   dword ptr [rbp-2Ch], xmm0                                      ; +0x102, 0x100390852\nmov     rax, [rbx]                                                     ; +0x107, 0x100390857\nmov     rdi, rbx                                                       ; +0x10a, 0x10039085a\ncall    qword ptr [rax+148h]                                           ; +0x10d, 0x10039085d\nmovss   xmm0, dword ptr [rax]                                          ; +0x113, 0x100390863\nsubss   xmm0, dword ptr [rbx+250h]                                     ; +0x117, 0x100390867\nmulss   xmm0, dword ptr [rbp-2Ch]                                      ; +0x11f, 0x10039086f\naddss   xmm0, dword ptr [rbp-58h]                                      ; +0x124, 0x100390874\nsubss   xmm0, dword ptr [rbx+1ACh]                                     ; +0x129, 0x100390879\nlea     rdi, [rbp-34h]                                                 ; +0x131, 0x100390881\nxorps   xmm1, xmm1                                                     ; +0x135, 0x100390885\nmovss   dword ptr [rbp-2Ch], xmm0                                      ; +0x138, 0x100390888\ncall    sub_100278250                                                  ; +0x13d, 0x10039088d\nmov     rdi, [rbx+1F8h]                                                ; +0x142, 0x100390892\nmov     rax, [rdi]                                                     ; +0x149, 0x100390899\ncall    qword ptr [rax+0C0h]                                           ; +0x14c, 0x10039089c\nmovss   xmm0, dword ptr [rax]                                          ; +0x152, 0x1003908a2\nxorps   xmm0, cs:xmmword_100A035F0                                     ; +0x156, 0x1003908a6\nmovaps  xmmword ptr [rbp-50h], xmm0                                    ; +0x15d, 0x1003908ad\nmov     rax, [rbx]                                                     ; +0x161, 0x1003908b1\nmov     rdi, rbx                                                       ; +0x164, 0x1003908b4\ncall    qword ptr [rax+148h]                                           ; +0x167, 0x1003908b7\nmovss   xmm0, dword ptr [rax]                                          ; +0x16d, 0x1003908bd\nsubss   xmm0, dword ptr [rbx+250h]                                     ; +0x171, 0x1003908c1\nmovaps  xmm1, xmmword ptr [rbp-50h]                                    ; +0x179, 0x1003908c9\ndivss   xmm1, xmm0                                                     ; +0x17d, 0x1003908cd\nxorps   xmm0, xmm0                                                     ; +0x181, 0x1003908d1\nroundss xmm0, xmm1, 0Ah                                                ; +0x184, 0x1003908d4\ncvttss2si r14d, xmm0                                                   ; +0x18a, 0x1003908da\ncvttps2dq xmm0, xmm0                                                   ; +0x18f, 0x1003908df\ncvtdq2ps xmm0, xmm0                                                    ; +0x193, 0x1003908e3\nsubss   xmm0, xmm1                                                     ; +0x196, 0x1003908e6\nucomiss xmm0, cs:dword_100A03578                                       ; +0x19a, 0x1003908ea\nadc     r14d, 0FFFFFFFFh                                               ; +0x1a1, 0x1003908f1\ncmp     byte ptr [rbx+1B4h], 0                                         ; +0x1a5, 0x1003908f5\njnz     short loc_100390946                                            ; +0x1ac, 0x1003908fc\ntest    r14d, r14d                                                     ; +0x1ae, 0x1003908fe\ncmovle  r14d, r15d                                                     ; +0x1b1, 0x100390901\nmovzx   eax, byte ptr [rbx+1C8h]                                       ; +0x1b5, 0x100390905\nxor     eax, 1                                                         ; +0x1bc, 0x10039090c\nshl     eax, 5                                                         ; +0x1bf, 0x10039090f\nmov     rdi, [rbx+rax+1C0h]                                            ; +0x1c2, 0x100390912\ncall    sub_1007FEF90                                                  ; +0x1ca, 0x10039091a\ndec     eax                                                            ; +0x1cf, 0x10039091f\ncmp     eax, r14d                                                      ; +0x1d1, 0x100390921\njg      short loc_100390946                                            ; +0x1d4, 0x100390924\nmovzx   eax, byte ptr [rbx+1C8h]                                       ; +0x1d6, 0x100390926\nxor     eax, 1                                                         ; +0x1dd, 0x10039092d\nshl     eax, 5                                                         ; +0x1e0, 0x100390930\nmov     rdi, [rbx+rax+1C0h]                                            ; +0x1e3, 0x100390933\ncall    sub_1007FEF90                                                  ; +0x1eb, 0x10039093b\nmov     r14d, eax                                                      ; +0x1f0, 0x100390940\ndec     r14d                                                           ; +0x1f3, 0x100390943\nmov     eax, r14d                                                      ; +0x1f6, 0x100390946\nneg     eax                                                            ; +0x1f9, 0x100390949\nxorps   xmm0, xmm0                                                     ; +0x1fb, 0x10039094b\ncvtsi2ss xmm0, eax                                                     ; +0x1fe, 0x10039094e\nmovss   dword ptr [rbp-50h], xmm0                                      ; +0x202, 0x100390952\nmov     rax, [rbx]                                                     ; +0x207, 0x100390957\nmov     rdi, rbx                                                       ; +0x20a, 0x10039095a\ncall    qword ptr [rax+148h]                                           ; +0x20d, 0x10039095d\nmovss   xmm0, dword ptr [rax]                                          ; +0x213, 0x100390963\nsubss   xmm0, dword ptr [rbx+250h]                                     ; +0x217, 0x100390967\nmulss   xmm0, dword ptr [rbp-50h]                                      ; +0x21f, 0x10039096f\nlea     rdi, [rbp-34h]                                                 ; +0x224, 0x100390974\nxorps   xmm1, xmm1                                                     ; +0x228, 0x100390978\nmovss   dword ptr [rbp-50h], xmm1                                      ; +0x22b, 0x10039097b\ncall    sub_100278250                                                  ; +0x230, 0x100390980\nmovss   xmm1, dword ptr [rbp-2Ch]                                      ; +0x235, 0x100390985\nsubss   xmm1, dword ptr [rbp-34h]                                      ; +0x23a, 0x10039098a\ntest    r14d, r14d                                                     ; +0x23f, 0x10039098f\nmovss   dword ptr [rbp-38h], xmm1                                      ; +0x242, 0x100390992\njnz     short loc_1003909A1                                            ; +0x247, 0x100390997\nxorps   xmm0, xmm0                                                     ; +0x249, 0x100390999\nucomiss xmm1, xmm0                                                     ; +0x24c, 0x10039099c\nja      short loc_1003909CF                                            ; +0x24f, 0x10039099f\nmovzx   eax, byte ptr [rbx+1C8h]                                       ; +0x251, 0x1003909a1\nxor     eax, 1                                                         ; +0x258, 0x1003909a8\nshl     eax, 5                                                         ; +0x25b, 0x1003909ab\nmov     rdi, [rbx+rax+1C0h]                                            ; +0x25e, 0x1003909ae\ncall    sub_1007FEF90                                                  ; +0x266, 0x1003909b6\ndec     eax                                                            ; +0x26b, 0x1003909bb\ncmp     r14d, eax                                                      ; +0x26d, 0x1003909bd\njnz     short loc_100390A09                                            ; +0x270, 0x1003909c0\nxorps   xmm0, xmm0                                                     ; +0x272, 0x1003909c2\nmovss   xmm1, dword ptr [rbp-38h]                                      ; +0x275, 0x1003909c5\nucomiss xmm0, xmm1                                                     ; +0x27a, 0x1003909ca\njbe     short loc_100390A09                                            ; +0x27d, 0x1003909cd\nmovss   xmm0, dword ptr [rbx+234h]                                     ; +0x27f, 0x1003909cf\nmulss   xmm0, xmm1                                                     ; +0x287, 0x1003909d7\nmovss   dword ptr [rbp-50h], xmm0                                      ; +0x28b, 0x1003909db\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x290, 0x1003909e0\nlea     rdi, [rbp-34h]                                                 ; +0x295, 0x1003909e5\nmov     rsi, rax                                                       ; +0x299, 0x1003909e9\ncall    cocos2d__CCDirector__getWinSize                                ; +0x29c, 0x1003909ec\nmovss   xmm0, dword ptr [rbp-50h]                                      ; +0x2a1, 0x1003909f1\ndivss   xmm0, dword ptr [rbp-34h]                                      ; +0x2a6, 0x1003909f6\nmovss   xmm1, dword ptr [rbp-38h]                                      ; +0x2ab, 0x1003909fb\nsubss   xmm1, xmm0                                                     ; +0x2b0, 0x100390a00\nmovss   dword ptr [rbp-50h], xmm1                                      ; +0x2b4, 0x100390a04\nmov     rbx, [rbx+1F8h]                                                ; +0x2b9, 0x100390a09\nmovss   xmm0, dword ptr [rbp-2Ch]                                      ; +0x2c0, 0x100390a10\nsubss   xmm0, dword ptr [rbp-50h]                                      ; +0x2c5, 0x100390a15\nlea     r14, [rbp-34h]                                                 ; +0x2ca, 0x100390a1a\nxorps   xmm1, xmm1                                                     ; +0x2ce, 0x100390a1e\nmov     rdi, r14                                                       ; +0x2d1, 0x100390a21\ncall    sub_100278250                                                  ; +0x2d4, 0x100390a24\nmov     rax, [rbx]                                                     ; +0x2d9, 0x100390a29\nmov     rdi, rbx                                                       ; +0x2dc, 0x100390a2c\nmov     rsi, r14                                                       ; +0x2df, 0x100390a2f\ncall    qword ptr [rax+0B8h]                                           ; +0x2e2, 0x100390a32\nadd     rsp, 38h                                                       ; +0x2e8, 0x100390a38\npop     rbx                                                            ; +0x2ec, 0x100390a3c\npop     r12                                                            ; +0x2ed, 0x100390a3d\npop     r13                                                            ; +0x2ef, 0x100390a3f\npop     r14                                                            ; +0x2f1, 0x100390a41\npop     r15                                                            ; +0x2f3, 0x100390a43\npop     rbp                                                            ; +0x2f5, 0x100390a45\nretn                                                                   ; +0x2f6, 0x100390a46", "xrefs": ["sub_100390A50 @ 0x100390a5c", "<???> @ 0x100b2fbf0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}