{"type": "func", "start": 3936992, "end": 3937160, "name": "BoomScrollLayer::ccTouchBegan", "pseudocode": "// \n// BoomScrollLayer::ccTouchBegan from 0x3c12e0 to 0x3c1388 (168 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x3c139c\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:31 +0000\n// \n\nint __fastcall BoomScrollLayer::ccTouchBegan(int a1, int a2)\n{\n  int v2; // r9\n  cocos2d::CCDirector *LocationInView; // r0\n  const cocos2d::CCPoint *v6; // r0\n  int v7; // r5\n  int v8; // s15\n  int v9; // r3\n  _DWORD v11[2]; // [sp+4h] [bp-14h] BYREF\n  float v12[2]; // [sp+Ch] [bp-Ch] BYREF\n\n  v2 = *(unsigned __int8 *)(a1 + 492);\n  if ( *(_BYTE *)(a1 + 492) )\n    return 0;\n  LocationInView = (cocos2d::CCDirector *)cocos2d::CCTouch::getLocationInView((cocos2d::CCTouch *)v11);\n  v6 = (const cocos2d::CCPoint *)cocos2d::CCDirector::sharedDirector(LocationInView);\n  cocos2d::CCDirector::convertToGL((cocos2d::CCDirector *)v12, v6);\n  cocos2d::CCPoint::operator=(v11, v12);\n  v7 = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 388), (const cocos2d::CCPoint *)v11);\n  if ( v7 )\n  {\n    if ( *(_DWORD *)(a1 + 360) )\n    {\n      return v2;\n    }\n    else\n    {\n      *(_DWORD *)(a1 + 360) = a2;\n      clock_gettime(0, (struct timespec *)v12);\n      v8 = LODWORD(v12[0]);\n      v9 = v11[0];\n      *(_DWORD *)(a1 + 352) = 0;\n      *(_DWORD *)(a1 + 328) = v9;\n      *(double *)(a1 + 368) = (double)v8 + (double)SLODWORD(v12[1]) / 1000000000.0;\n    }\n  }\n  return v7;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchBegan from 0x3c12e0 to 0x3c1388 (168 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x3c139c\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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:46:31 +0000\n; \nLDR             R3, =(__stack_chk_guard_ptr - 0x3C12EA)                ; +0x0, 0x3c12e0\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x3c12e2\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x3c12e6\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x3c12e8\nSUB             SP, SP, #0x18                                          ; +0xa, 0x3c12ea\nLDRB.W          R9, [R0,#0x1EC]                                        ; +0xc, 0x3c12ec\nLDR             R2, [R3]                                               ; +0x10, 0x3c12f0\nMOV             R4, R0                                                 ; +0x12, 0x3c12f2\nMOV             R10, R1                                                ; +0x14, 0x3c12f4\nMOV             R6, R3                                                 ; +0x16, 0x3c12f6\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x18, 0x3c12f8\nCMP.W           R9, #0                                                 ; +0x1a, 0x3c12fa\nBNE             loc_3C1372                                             ; +0x1e, 0x3c12fe\nADD             R5, SP, #0x18+var_14                                   ; +0x20, 0x3c1300\nADD.W           R8, SP, #0x18+var_C                                    ; +0x22, 0x3c1302\nMOV             R0, R5; this                                           ; +0x26, 0x3c1306\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x28, 0x3c1308\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x3c130c\nMOV             R2, R5                                                 ; +0x30, 0x3c1310\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x32, 0x3c1312\nMOV             R0, R8; this                                           ; +0x34, 0x3c1314\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x36, 0x3c1316\nMOV             R0, R5                                                 ; +0x3a, 0x3c131a\nMOV             R1, R8                                                 ; +0x3c, 0x3c131c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x3e, 0x3c131e\nMOV             R1, R5; cocos2d::CCPoint *                             ; +0x42, 0x3c1322\nADD.W           R0, R4, #0x184; this                                   ; +0x44, 0x3c1324\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x48, 0x3c1328\nMOV             R5, R0                                                 ; +0x4c, 0x3c132c\nCBZ             R0, loc_3C1374                                         ; +0x4e, 0x3c132e\nLDR.W           R7, [R4,#0x168]                                        ; +0x50, 0x3c1330\nCBNZ            R7, loc_3C136E                                         ; +0x54, 0x3c1334\nSTR.W           R10, [R4,#0x168]                                       ; +0x56, 0x3c1336\nMOV             R0, R7; clock_id                                       ; +0x5a, 0x3c133a\nMOV             R1, R8; tp                                             ; +0x5c, 0x3c133c\nBLX             clock_gettime                                          ; +0x5e, 0x3c133e\nVLDR            S15, [SP,#0x18+var_C]                                  ; +0x62, 0x3c1342\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x66, 0x3c1346\nSTR.W           R7, [R4,#0x160]                                        ; +0x68, 0x3c1348\nVLDR            D5, =1.0e9                                             ; +0x6c, 0x3c134c\nSTR.W           R3, [R4,#0x148]                                        ; +0x70, 0x3c1350\nVCVT.F64.S32    D6, S15                                                ; +0x74, 0x3c1354\nVLDR            S15, [SP,#0x18+var_8]                                  ; +0x78, 0x3c1358\nVCVT.F64.S32    D7, S15                                                ; +0x7c, 0x3c135c\nVDIV.F64        D7, D7, D5                                             ; +0x80, 0x3c1360\nVADD.F64        D7, D6, D7                                             ; +0x84, 0x3c1364\nVSTR            D7, [R4,#0x170]                                        ; +0x88, 0x3c1368\nB               loc_3C1374                                             ; +0x8c, 0x3c136c\nMOV             R5, R9                                                 ; +0x8e, 0x3c136e\nB               loc_3C1374                                             ; +0x90, 0x3c1370\nMOVS            R5, #0                                                 ; +0x92, 0x3c1372\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x94, 0x3c1374\nMOV             R0, R5                                                 ; +0x96, 0x3c1376\nLDR             R3, [R6]                                               ; +0x98, 0x3c1378\nCMP             R2, R3                                                 ; +0x9a, 0x3c137a\nBEQ             loc_3C1382                                             ; +0x9c, 0x3c137c\nBLX             __stack_chk_fail                                       ; +0x9e, 0x3c137e\nADD             SP, SP, #0x18                                          ; +0xa2, 0x3c1382\nPOP.W           {R4-R10,PC}                                            ; +0xa4, 0x3c1384", "xrefs": ["`non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x3c139c"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}