{"type": "func", "start": 5368979632, "end": 5368979873, "name": "BoomScrollLayer::ccTouchBegan", "pseudocode": "// \n// BoomScrollLayer::ccTouchBegan from 0x1400420b0 to 0x1400421a1 (241 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x1407061b0\n// > <???> @ 0x14090f5c0\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 11:25:29 +0000\n// \n\nchar __fastcall BoomScrollLayer::ccTouchBegan(__int64 a1, __int64 a2)\n{\n  __int64 v4; // rax\n  __int64 v5; // rax\n  unsigned int millitm; // eax\n  double time_low; // xmm0_8\n  __m128i v8; // xmm1\n  int v10; // [rsp+20h] [rbp-28h] BYREF\n  struct __timeb64 Time; // [rsp+28h] [rbp-20h] BYREF\n\n  if ( *(_BYTE *)(a1 + 308) )\n    return 0;\n  cocos2d::CCTouch::getLocationInView(a2, &v10);\n  v4 = cocos2d::CCDirector::sharedDirector();\n  v5 = cocos2d::CCDirector::convertToGL(v4, &Time, &v10);\n  cocos2d::CCPoint::operator=(&v10, v5);\n  if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 192), (const struct cocos2d::CCPoint *)&v10)\n    || *(_QWORD *)(a1 + 152) )\n  {\n    return 0;\n  }\n  *(_QWORD *)(a1 + 152) = a2;\n  ftime64(&Time);\n  millitm = Time.millitm;\n  time_low = (double)SLODWORD(Time.time);\n  *(_DWORD *)(a1 + 140) = 0;\n  v8 = _mm_cvtsi32_si128(millitm);\n  *(_DWORD *)(a1 + 108) = v10;\n  *(double *)(a1 + 168) = _mm_cvtepi32_pd(v8).m128d_f64[0] / 1000.0 + time_low;\n  return 1;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchBegan from 0x1400420b0 to 0x1400421a1 (241 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x1407061b0\n; > <???> @ 0x14090f5c0\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 11:25:29 +0000\n; \nmov     [rsp+arg_10], rbx                                              ; +0x0, 0x1400420b0\npush    rdi                                                            ; +0x5, 0x1400420b5\nsub     rsp, 40h                                                       ; +0x6, 0x1400420b6\nmov     rax, cs:__security_cookie                                      ; +0xa, 0x1400420ba\nxor     rax, rsp                                                       ; +0x11, 0x1400420c1\nmov     [rsp+48h+var_10], rax                                          ; +0x14, 0x1400420c4\ncmp     byte ptr [rcx+134h], 0                                         ; +0x19, 0x1400420c9\nmov     rdi, rdx                                                       ; +0x20, 0x1400420d0\nmov     rbx, rcx                                                       ; +0x23, 0x1400420d3\njnz     loc_140042187                                                  ; +0x26, 0x1400420d6\nlea     rdx, [rsp+48h+var_28]                                          ; +0x2c, 0x1400420dc\nmov     rcx, rdi                                                       ; +0x31, 0x1400420e1\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x34, 0x1400420e4\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x3a, 0x1400420ea\nmov     rcx, rax                                                       ; +0x40, 0x1400420f0\nlea     r8, [rsp+48h+var_28]                                           ; +0x43, 0x1400420f3\nlea     rdx, [rsp+48h+Time]                                            ; +0x48, 0x1400420f8\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x4d, 0x1400420fd\nmov     rdx, rax                                                       ; +0x53, 0x140042103\nlea     rcx, [rsp+48h+var_28]                                          ; +0x56, 0x140042106\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x5b, 0x14004210b\nlea     rcx, [rbx+0C0h]                                                ; +0x61, 0x140042111\nlea     rdx, [rsp+48h+var_28]                                          ; +0x68, 0x140042118\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x6d, 0x14004211d\ntest    al, al                                                         ; +0x73, 0x140042123\njz      short loc_140042187                                            ; +0x75, 0x140042125\ncmp     qword ptr [rbx+98h], 0                                         ; +0x77, 0x140042127\njnz     short loc_140042187                                            ; +0x7f, 0x14004212f\nlea     rcx, [rsp+48h+Time]; Time                                      ; +0x81, 0x140042131\nmov     [rbx+98h], rdi                                                 ; +0x86, 0x140042136\ncall    cs:_ftime64                                                    ; +0x8d, 0x14004213d\nmovzx   eax, [rsp+48h+Time.millitm]                                    ; +0x93, 0x140042143\nxorps   xmm0, xmm0                                                     ; +0x98, 0x140042148\ncvtsi2sd xmm0, [rsp+48h+Time.time]                                     ; +0x9b, 0x14004214b\nmov     dword ptr [rbx+8Ch], 0                                         ; +0xa2, 0x140042152\nmovd    xmm1, eax                                                      ; +0xac, 0x14004215c\nmov     al, 1                                                          ; +0xb0, 0x140042160\ncvtdq2pd xmm1, xmm1                                                    ; +0xb2, 0x140042162\ndivsd   xmm1, cs:qword_140835460                                       ; +0xb6, 0x140042166\naddsd   xmm1, xmm0                                                     ; +0xbe, 0x14004216e\nmovss   xmm0, [rsp+48h+var_28]                                         ; +0xc2, 0x140042172\nmovss   dword ptr [rbx+6Ch], xmm0                                      ; +0xc8, 0x140042178\nmovsd   qword ptr [rbx+0A8h], xmm1                                     ; +0xcd, 0x14004217d\njmp     short loc_140042189                                            ; +0xd5, 0x140042185\nxor     al, al                                                         ; +0xd7, 0x140042187\nmov     rcx, [rsp+48h+var_10]                                          ; +0xd9, 0x140042189\nxor     rcx, rsp; StackCookie                                          ; +0xde, 0x14004218e\ncall    __security_check_cookie                                        ; +0xe1, 0x140042191\nmov     rbx, [rsp+48h+arg_10]                                          ; +0xe6, 0x140042196\nadd     rsp, 40h                                                       ; +0xeb, 0x14004219b\npop     rdi                                                            ; +0xef, 0x14004219f\nretn                                                                   ; +0xf0, 0x1400421a0", "xrefs": ["<???> @ 0x1407061b0", "<???> @ 0x14090f5c0"], "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"}