{"type": "func", "start": 5368964960, "end": 5368965141, "name": "BoomScrollLayer::ccTouchBegan", "pseudocode": "// \n// BoomScrollLayer::ccTouchBegan from 0x14003e760 to 0x14003e815 (181 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x14052b690\n// > <???> @ 0x1406c40c8\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 BoomScrollLayer::ccTouchBegan(BoomScrollLayer *a1, cocos2d::CCTouch *a2, cocos2d::CCEvent *a3)\n{\n  cocos2d::CCDirector *v5; // rax\n  struct cocos2d::CCPoint v6; // rax\n  double v7; // xmm0_8\n  struct cocos2d::CCPoint v9; // [rsp+30h] [rbp+8h] BYREF\n  struct cocos2d::CCPoint v10; // [rsp+48h] [rbp+20h] BYREF\n\n  if ( LOBYTE(a1->m_eScriptType) )\n    return 0;\n  cocos2d::CCTouch::getLocationInView(a2);\n  v5 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector();\n  v6 = cocos2d::CCDirector::convertToGL(v5, &v10);\n  ((void (__fastcall *)(_QWORD, _QWORD))cocos2d::CCPoint::operator=)(&v9, v6);\n  if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)&a1->m_sInverse.ty, &v9) || *(_QWORD *)&a1->m_sTransform.b )\n    return 0;\n  *(_QWORD *)&a1->m_sTransform.b = a2;\n  v7 = sub_14003CF30();\n  a1->m_obAnchorPoint.x = v9.x;\n  *(double *)&a1->m_sTransform.ty = v7;\n  a1->m_sAdditionalTransform.tx = 0.0;\n  return 1;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchBegan from 0x14003e760 to 0x14003e815 (181 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x14052b690\n; > <???> @ 0x1406c40c8\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\nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14003e760\npush    rdi                                                            ; +0x5, 0x14003e765\nsub     rsp, 20h                                                       ; +0x6, 0x14003e766\ncmp     byte ptr [rcx+12Ch], 0                                         ; +0xa, 0x14003e76a\nmov     rdi, rdx                                                       ; +0x11, 0x14003e771\nmov     rbx, rcx                                                       ; +0x14, 0x14003e774\njnz     loc_14003E808                                                  ; +0x17, 0x14003e777\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x1d, 0x14003e77d\nmov     rcx, rdi                                                       ; +0x22, 0x14003e782\ncall    cs:?getLocationInView@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocationInView(void) ; +0x25, 0x14003e785\ncall    cs:?sharedDirector@CCDirector@cocos2d@@SAPEAV12@XZ; cocos2d::CCDirector::sharedDirector(void) ; +0x2b, 0x14003e78b\nmov     rcx, rax                                                       ; +0x31, 0x14003e791\nlea     r8, [rsp+28h+arg_0]                                            ; +0x34, 0x14003e794\nlea     rdx, [rsp+28h+arg_18]                                          ; +0x39, 0x14003e799\ncall    cs:?convertToGL@CCDirector@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const &) ; +0x3e, 0x14003e79e\nmov     rdx, rax                                                       ; +0x44, 0x14003e7a4\nlea     rcx, [rsp+28h+arg_0]                                           ; +0x47, 0x14003e7a7\ncall    cs:??4CCPoint@cocos2d@@QEAAAEAV01@AEBV01@@Z; cocos2d::CCPoint::operator=(cocos2d::CCPoint const &) ; +0x4c, 0x14003e7ac\nlea     rcx, [rbx+0B8h]                                                ; +0x52, 0x14003e7b2\nlea     rdx, [rsp+28h+arg_0]                                           ; +0x59, 0x14003e7b9\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x5e, 0x14003e7be\ntest    al, al                                                         ; +0x64, 0x14003e7c4\njz      short loc_14003E808                                            ; +0x66, 0x14003e7c6\ncmp     qword ptr [rbx+90h], 0                                         ; +0x68, 0x14003e7c8\njnz     short loc_14003E808                                            ; +0x70, 0x14003e7d0\nmov     [rbx+90h], rdi                                                 ; +0x72, 0x14003e7d2\ncall    sub_14003CF30                                                  ; +0x79, 0x14003e7d9\nmovss   xmm1, dword ptr [rsp+28h+arg_0]                                ; +0x7e, 0x14003e7de\nmov     al, 1                                                          ; +0x84, 0x14003e7e4\nmovss   dword ptr [rbx+64h], xmm1                                      ; +0x86, 0x14003e7e6\nmovsd   qword ptr [rbx+0A0h], xmm0                                     ; +0x8b, 0x14003e7eb\nmov     dword ptr [rbx+84h], 0                                         ; +0x93, 0x14003e7f3\nmov     rbx, [rsp+28h+arg_8]                                           ; +0x9d, 0x14003e7fd\nadd     rsp, 20h                                                       ; +0xa2, 0x14003e802\npop     rdi                                                            ; +0xa6, 0x14003e806\nretn                                                                   ; +0xa7, 0x14003e807\nmov     rbx, [rsp+28h+arg_8]                                           ; +0xa8, 0x14003e808\nxor     al, al                                                         ; +0xad, 0x14003e80d\nadd     rsp, 20h                                                       ; +0xaf, 0x14003e80f\npop     rdi                                                            ; +0xb3, 0x14003e813\nretn                                                                   ; +0xb4, 0x14003e814", "xrefs": ["<???> @ 0x14052b690", "<???> @ 0x1406c40c8"], "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"}