{"type": "func", "start": 6853304, "end": 6853548, "name": "BoomScrollLayer::ccTouchBegan", "pseudocode": "// \n// BoomScrollLayer::ccTouchBegan from 0x6892b8 to 0x6893ac (244 bytes)\n// \n// 3 xrefs:\n// > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x6893bc\n// > <???> @ 0xab460\n// > <???> @ 0x1412df0\n// \n// This function is hookable on this platform (idp: arm, 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:50:32 +0000\n// \n\n__int64 __fastcall BoomScrollLayer::ccTouchBegan(__int64 a1, cocos2d::CCTouch *this)\n{\n  unsigned int v4; // w20\n  cocos2d::CCDirector *LocationInView; // x0\n  cocos2d::CCDirector *v7; // x0\n  unsigned __int8 v8; // w0\n  __int64 v9; // x0\n  double v10; // d1\n  __int64 v11; // [xsp+40h] [xbp+40h] BYREF\n  _QWORD v12[2]; // [xsp+48h] [xbp+48h] BYREF\n\n  v4 = *(unsigned __int8 *)(a1 + 628);\n  if ( *(_BYTE *)(a1 + 628) )\n  {\n    return 0;\n  }\n  else\n  {\n    LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView(&v11, this);\n    v7 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(LocationInView);\n    cocos2d::CCDirector::convertToGL(v7, (const cocos2d::CCPoint *)&v11);\n    cocos2d::CCPoint::operator=(&v11, v12);\n    v8 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 512), (const cocos2d::CCPoint *)&v11);\n    if ( v8 && !*(_QWORD *)(a1 + 472) )\n    {\n      *(_QWORD *)(a1 + 472) = this;\n      v4 = v8;\n      clock_gettime(0, (struct timespec *)v12);\n      *(_DWORD *)(a1 + 460) = 0;\n      v9 = v12[1];\n      v10 = (double)v12[0];\n      *(_DWORD *)(a1 + 428) = v11;\n      *(double *)(a1 + 488) = v10 + (double)v9 / 1000000000.0;\n    }\n  }\n  return v4;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchBegan from 0x6892b8 to 0x6893ac (244 bytes)\n; \n; 3 xrefs:\n; > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x6893bc\n; > <???> @ 0xab460\n; > <???> @ 0x1412df0\n; \n; This function is hookable on this platform (idp: arm, 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:50:32 +0000\n; \nSTP             X29, X30, [SP,#var_60]!                                ; +0x0, 0x6892b8\nMOV             X29, SP                                                ; +0x4, 0x6892bc\nSTP             X19, X20, [SP,#0x60+var_50]                            ; +0x8, 0x6892c0\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x6892c4\nSTP             X21, X22, [SP,#0x60+var_40]                            ; +0x10, 0x6892c8\nMOV             X21, X0                                                ; +0x14, 0x6892cc\nLDR             X0, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x18, 0x6892d0\nSTP             X23, X24, [SP,#0x60+var_30]                            ; +0x1c, 0x6892d4\nMOV             X23, X1                                                ; +0x20, 0x6892d8\nLDR             X0, [X0]                                               ; +0x24, 0x6892dc\nLDRB            W20, [X21,#0x274]                                      ; +0x28, 0x6892e0\nSTR             X0, [X29,#0x60+var_8]                                  ; +0x2c, 0x6892e4\nCBZ             W20, loc_68931C                                        ; +0x30, 0x6892e8\nMOV             W20, #0                                                ; +0x34, 0x6892ec\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x38, 0x6892f0\nMOV             W0, W20                                                ; +0x3c, 0x6892f4\nLDR             X2, [X29,#0x60+var_8]                                  ; +0x40, 0x6892f8\nLDR             X1, [X19]                                              ; +0x44, 0x6892fc\nCMP             X2, X1                                                 ; +0x48, 0x689300\nB.NE            loc_6893A8                                             ; +0x4c, 0x689304\nLDP             X19, X20, [SP,#0x60+var_50]                            ; +0x50, 0x689308\nLDP             X21, X22, [SP,#0x60+var_40]                            ; +0x54, 0x68930c\nLDP             X23, X24, [SP,#0x60+var_30]                            ; +0x58, 0x689310\nLDP             X29, X30, [SP+0x60+var_60],#0x60                       ; +0x5c, 0x689314\nRET                                                                    ; +0x60, 0x689318\nADD             X22, X29, #0x60+var_20                                 ; +0x64, 0x68931c\nMOV             X0, X1; this                                           ; +0x68, 0x689320\nMOV             X8, X22                                                ; +0x6c, 0x689324\nADD             X24, X29, #0x60+var_18                                 ; +0x70, 0x689328\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x74, 0x68932c\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x78, 0x689330\nMOV             X8, X24                                                ; +0x7c, 0x689334\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x80, 0x689338\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x84, 0x68933c\nMOV             X1, X24                                                ; +0x88, 0x689340\nMOV             X0, X22                                                ; +0x8c, 0x689344\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x90, 0x689348\nADD             X0, X21, #0x200; this                                  ; +0x94, 0x68934c\nMOV             X1, X22; cocos2d::CCPoint *                            ; +0x98, 0x689350\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x9c, 0x689354\nUXTB            W2, W0                                                 ; +0xa0, 0x689358\nCBZ             W2, loc_6892F0                                         ; +0xa4, 0x68935c\nLDR             X0, [X21,#0x1D8]; clock_id                             ; +0xa8, 0x689360\nCBNZ            X0, loc_6892F0                                         ; +0xac, 0x689364\nMOV             X1, X24; tp                                            ; +0xb0, 0x689368\nSTR             X23, [X21,#0x1D8]                                      ; +0xb4, 0x68936c\nMOV             W20, W2                                                ; +0xb8, 0x689370\nBL              .clock_gettime                                         ; +0xbc, 0x689374\nSTR             WZR, [X21,#0x1CC]                                      ; +0xc0, 0x689378\nLDR             X0, [X24,#8]                                           ; +0xc4, 0x68937c\nLDR             D2, =0x41CDCD6500000000                                ; +0xc8, 0x689380\nLDR             X24, [X24]                                             ; +0xcc, 0x689384\nLDR             W1, [X22]                                              ; +0xd0, 0x689388\nSCVTF           D0, X0                                                 ; +0xd4, 0x68938c\nSCVTF           D1, X24                                                ; +0xd8, 0x689390\nSTR             W1, [X21,#0x1AC]                                       ; +0xdc, 0x689394\nFDIV            D0, D0, D2                                             ; +0xe0, 0x689398\nFADD            D0, D1, D0                                             ; +0xe4, 0x68939c\nSTR             D0, [X21,#0x1E8]                                       ; +0xe8, 0x6893a0\nB               loc_6892F0                                             ; +0xec, 0x6893a4\nBL              .__stack_chk_fail                                      ; +0xf0, 0x6893a8", "xrefs": ["`non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x6893bc", "<???> @ 0xab460", "<???> @ 0x1412df0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "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"}