{"type": "func", "start": 4298796656, "end": 4298796867, "name": "BoomScrollLayer::ccTouchBegan", "pseudocode": "// \n// BoomScrollLayer::ccTouchBegan from 0x1003a6e70 to 0x1003a6f43 (211 bytes)\n// \n// 2 xrefs:\n// > sub_1003A6F50 @ 0x1003a6f5c\n// > <???> @ 0x100927530\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\nbool __fastcall BoomScrollLayer::ccTouchBegan(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  double v3; // xmm1_8\n  cocos2d::CCDirector *v5; // rax\n  double v6; // xmm0_8\n  __int64 v7; // [rsp-40h] [rbp-40h] BYREF\n  timeb v8[3]; // [rsp-38h] [rbp-38h] BYREF\n\n  if ( *((_BYTE *)&a1->m_clippingRect + 16) )\n    return 0;\n  cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)&v7);\n  v5 = cocos2d::CCDirector::sharedDirector();\n  cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v8, (const cocos2d::CCPoint *)v5);\n  v6 = sub_10028CC90(&v7, (double *)&v8[0].time);\n  if ( !sub_10028D2D0((float *)&a1->m_rect.origin, v6, v3, (float *)&v7) || a1->m_touch )\n    return 0;\n  a1->m_touch = a2;\n  ftime(v8);\n  a1->m_touchTime = (double)(v8[0].millitm + 1000 * (v8[0].time & 0xFFFFF)) / 1000.0;\n  LODWORD(a1->m_touchX) = v7;\n  a1->m_touchType = 0;\n  return 1;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchBegan from 0x1003a6e70 to 0x1003a6f43 (211 bytes)\n; \n; 2 xrefs:\n; > sub_1003A6F50 @ 0x1003a6f5c\n; > <???> @ 0x100927530\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\ncmp     byte ptr [rdi+26Ch], 0                                         ; +0x0, 0x1003a6e70\njz      short loc_1003A6E7C                                            ; +0x7, 0x1003a6e77\nxor     eax, eax                                                       ; +0x9, 0x1003a6e79\nretn                                                                   ; +0xb, 0x1003a6e7b\npush    rbp                                                            ; +0xc, 0x1003a6e7c\nmov     rbp, rsp                                                       ; +0xd, 0x1003a6e7d\npush    r15                                                            ; +0x10, 0x1003a6e80\npush    r14                                                            ; +0x12, 0x1003a6e82\npush    r12                                                            ; +0x14, 0x1003a6e84\npush    rbx                                                            ; +0x16, 0x1003a6e86\nsub     rsp, 20h                                                       ; +0x17, 0x1003a6e87\nmov     rbx, rdi                                                       ; +0x1b, 0x1003a6e8b\nlea     r14, [rbp-38h]                                                 ; +0x1e, 0x1003a6e8e\nmov     rdi, r14                                                       ; +0x22, 0x1003a6e92\nmov     r12, rsi                                                       ; +0x25, 0x1003a6e95\ncall    cocos2d__CCTouch__getLocationInView                            ; +0x28, 0x1003a6e98\ncall    cocos2d__CCDirector__sharedDirector                            ; +0x2d, 0x1003a6e9d\nlea     r15, [rbp-30h]                                                 ; +0x32, 0x1003a6ea2\nmov     rdi, r15                                                       ; +0x36, 0x1003a6ea6\nmov     rsi, rax                                                       ; +0x39, 0x1003a6ea9\nmov     rdx, r14                                                       ; +0x3c, 0x1003a6eac\ncall    cocos2d__CCDirector__convertToGL                               ; +0x3f, 0x1003a6eaf\nmov     rdi, r14                                                       ; +0x44, 0x1003a6eb4\nmov     rsi, r15                                                       ; +0x47, 0x1003a6eb7\ncall    sub_10028CC90                                                  ; +0x4a, 0x1003a6eba\nlea     rdi, [rbx+1F8h]                                                ; +0x4f, 0x1003a6ebf\nmov     rsi, r14                                                       ; +0x56, 0x1003a6ec6\ncall    sub_10028D2D0                                                  ; +0x59, 0x1003a6ec9\ntest    al, al                                                         ; +0x5e, 0x1003a6ece\njz      short loc_1003A6EDC                                            ; +0x60, 0x1003a6ed0\ncmp     qword ptr [rbx+1D0h], 0                                        ; +0x62, 0x1003a6ed2\njz      short loc_1003A6EEB                                            ; +0x6a, 0x1003a6eda\nxor     eax, eax                                                       ; +0x6c, 0x1003a6edc\nadd     rsp, 20h                                                       ; +0x6e, 0x1003a6ede\npop     rbx                                                            ; +0x72, 0x1003a6ee2\npop     r12                                                            ; +0x73, 0x1003a6ee3\npop     r14                                                            ; +0x75, 0x1003a6ee5\npop     r15                                                            ; +0x77, 0x1003a6ee7\npop     rbp                                                            ; +0x79, 0x1003a6ee9\nretn                                                                   ; +0x7a, 0x1003a6eea\nmov     [rbx+1D0h], r12                                                ; +0x7b, 0x1003a6eeb\nlea     rdi, [rbp-30h]; timeb *                                        ; +0x82, 0x1003a6ef2\ncall    _ftime                                                         ; +0x86, 0x1003a6ef6\nmovzx   eax, word ptr [rbp-28h]                                        ; +0x8b, 0x1003a6efb\nmov     rcx, [rbp-30h]                                                 ; +0x8f, 0x1003a6eff\nand     ecx, 0FFFFFh                                                   ; +0x93, 0x1003a6f03\nimul    rcx, 3E8h                                                      ; +0x99, 0x1003a6f09\nadd     rcx, rax                                                       ; +0xa0, 0x1003a6f10\ncvtsi2sd xmm0, rcx                                                     ; +0xa3, 0x1003a6f13\ndivsd   xmm0, cs:qword_100815208                                       ; +0xa8, 0x1003a6f18\nmovsd   qword ptr [rbx+1E0h], xmm0                                     ; +0xb0, 0x1003a6f20\nmovss   xmm0, dword ptr [rbp-38h]                                      ; +0xb8, 0x1003a6f28\nmovss   dword ptr [rbx+1A4h], xmm0                                     ; +0xbd, 0x1003a6f2d\nmov     dword ptr [rbx+1C4h], 0                                        ; +0xc5, 0x1003a6f35\nmov     al, 1                                                          ; +0xcf, 0x1003a6f3f\njmp     short loc_1003A6EDE                                            ; +0xd1, 0x1003a6f41", "xrefs": ["sub_1003A6F50 @ 0x1003a6f5c", "<???> @ 0x100927530"], "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"}