{"type": "func", "start": 3021904, "end": 3022072, "name": "BoomScrollLayer::ccTouchBegan", "pseudocode": "// \n// BoomScrollLayer::ccTouchBegan from 0x2e1c50 to 0x2e1cf8 (168 bytes)\n// \n// 1 xrefs:\n// > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x2e1d0c\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  char v3; // r9\n  cocos2d::CCDirector *v6; // r0\n  int v7; // r5\n  float x; // s15\n  float v9; // r3\n  cocos2d::CCPoint v11; // [sp+4h] [bp-14h] BYREF\n  cocos2d::CCPoint v12; // [sp+Ch] [bp-Ch] BYREF\n\n  v3 = *((_BYTE *)&a1->m_clippingRect + 16);\n  if ( v3 )\n  {\n    LOBYTE(v7) = 0;\n  }\n  else\n  {\n    cocos2d::CCTouch::getLocationInView(&v11, a2);\n    v6 = cocos2d::CCDirector::sharedDirector();\n    cocos2d::CCDirector::convertToGL(&v12, v6, &v11);\n    cocos2d::CCPoint::operator=(&v11, &v12);\n    v7 = cocos2d::CCRect::containsPoint(&a1->m_rect, &v11);\n    if ( v7 )\n    {\n      if ( a1->m_touch )\n      {\n        LOBYTE(v7) = v3;\n      }\n      else\n      {\n        a1->m_touch = a2;\n        clock_gettime(0, (struct timespec *)&v12);\n        x = v12.x;\n        v9 = v11.x;\n        a1->m_touchType = 0;\n        a1->m_touchX = v9;\n        a1->m_touchTime = (double)SLODWORD(x) + (double)SLODWORD(v12.y) / 1000000000.0;\n      }\n    }\n  }\n  return v7;\n}", "assembly": "; \n; BoomScrollLayer::ccTouchBegan from 0x2e1c50 to 0x2e1cf8 (168 bytes)\n; \n; 1 xrefs:\n; > `non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x2e1d0c\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\nLDR             R3, =(__stack_chk_guard_ptr - 0x2E1C5A)                ; +0x0, 0x2e1c50\nPUSH.W          {R4-R10,LR}                                            ; +0x2, 0x2e1c52\nADD             R3, PC; __stack_chk_guard_ptr                          ; +0x6, 0x2e1c56\nLDR             R3, [R3]; __stack_chk_guard                            ; +0x8, 0x2e1c58\nSUB             SP, SP, #0x18                                          ; +0xa, 0x2e1c5a\nLDRB.W          R9, [R0,#0x1EC]                                        ; +0xc, 0x2e1c5c\nLDR             R2, [R3]                                               ; +0x10, 0x2e1c60\nMOV             R4, R0                                                 ; +0x12, 0x2e1c62\nMOV             R10, R1                                                ; +0x14, 0x2e1c64\nMOV             R6, R3                                                 ; +0x16, 0x2e1c66\nSTR             R2, [SP,#0x18+var_4]                                   ; +0x18, 0x2e1c68\nCMP.W           R9, #0                                                 ; +0x1a, 0x2e1c6a\nBNE             loc_2E1CE2                                             ; +0x1e, 0x2e1c6e\nADD             R5, SP, #0x18+var_14                                   ; +0x20, 0x2e1c70\nADD.W           R8, SP, #0x18+var_C                                    ; +0x22, 0x2e1c72\nMOV             R0, R5; this                                           ; +0x26, 0x2e1c76\nBL              _ZNK7cocos2d7CCTouch17getLocationInViewEv; cocos2d::CCTouch::getLocationInView(void) ; +0x28, 0x2e1c78\nBL              _ZN7cocos2d10CCDirector14sharedDirectorEv; cocos2d::CCDirector::sharedDirector(void) ; +0x2c, 0x2e1c7c\nMOV             R2, R5                                                 ; +0x30, 0x2e1c80\nMOV             R1, R0; cocos2d::CCPoint *                             ; +0x32, 0x2e1c82\nMOV             R0, R8; this                                           ; +0x34, 0x2e1c84\nBL              _ZN7cocos2d10CCDirector11convertToGLERKNS_7CCPointE; cocos2d::CCDirector::convertToGL(cocos2d::CCPoint const&) ; +0x36, 0x2e1c86\nMOV             R0, R5                                                 ; +0x3a, 0x2e1c8a\nMOV             R1, R8                                                 ; +0x3c, 0x2e1c8c\nBL              _ZN7cocos2d7CCPointaSERKS0_; cocos2d::CCPoint::operator=(cocos2d::CCPoint const&) ; +0x3e, 0x2e1c8e\nMOV             R1, R5; cocos2d::CCPoint *                             ; +0x42, 0x2e1c92\nADD.W           R0, R4, #0x184; this                                   ; +0x44, 0x2e1c94\nBL              _ZNK7cocos2d6CCRect13containsPointERKNS_7CCPointE; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const&) ; +0x48, 0x2e1c98\nMOV             R5, R0                                                 ; +0x4c, 0x2e1c9c\nCBZ             R0, loc_2E1CE4                                         ; +0x4e, 0x2e1c9e\nLDR.W           R7, [R4,#0x164]                                        ; +0x50, 0x2e1ca0\nCBNZ            R7, loc_2E1CDE                                         ; +0x54, 0x2e1ca4\nSTR.W           R10, [R4,#0x164]                                       ; +0x56, 0x2e1ca6\nMOV             R0, R7; clock_id                                       ; +0x5a, 0x2e1caa\nMOV             R1, R8; tp                                             ; +0x5c, 0x2e1cac\nBLX             clock_gettime                                          ; +0x5e, 0x2e1cae\nVLDR            S15, [SP,#0x18+var_C]                                  ; +0x62, 0x2e1cb2\nLDR             R3, [SP,#0x18+var_14]                                  ; +0x66, 0x2e1cb6\nSTR.W           R7, [R4,#0x15C]                                        ; +0x68, 0x2e1cb8\nVLDR            D5, =1.0e9                                             ; +0x6c, 0x2e1cbc\nSTR.W           R3, [R4,#0x144]                                        ; +0x70, 0x2e1cc0\nVCVT.F64.S32    D6, S15                                                ; +0x74, 0x2e1cc4\nVLDR            S15, [SP,#0x18+var_8]                                  ; +0x78, 0x2e1cc8\nVCVT.F64.S32    D7, S15                                                ; +0x7c, 0x2e1ccc\nVDIV.F64        D7, D7, D5                                             ; +0x80, 0x2e1cd0\nVADD.F64        D7, D6, D7                                             ; +0x84, 0x2e1cd4\nVSTR            D7, [R4,#0x170]                                        ; +0x88, 0x2e1cd8\nB               loc_2E1CE4                                             ; +0x8c, 0x2e1cdc\nMOV             R5, R9                                                 ; +0x8e, 0x2e1cde\nB               loc_2E1CE4                                             ; +0x90, 0x2e1ce0\nMOVS            R5, #0                                                 ; +0x92, 0x2e1ce2\nLDR             R2, [SP,#0x18+var_4]                                   ; +0x94, 0x2e1ce4\nMOV             R0, R5                                                 ; +0x96, 0x2e1ce6\nLDR             R3, [R6]                                               ; +0x98, 0x2e1ce8\nCMP             R2, R3                                                 ; +0x9a, 0x2e1cea\nBEQ             loc_2E1CF2                                             ; +0x9c, 0x2e1cec\nBLX             __stack_chk_fail                                       ; +0x9e, 0x2e1cee\nADD             SP, SP, #0x18                                          ; +0xa2, 0x2e1cf2\nPOP.W           {R4-R10,PC}                                            ; +0xa4, 0x2e1cf4", "xrefs": ["`non-virtual thunk to'BoomScrollLayer::ccTouchBegan @ 0x2e1d0c"], "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"}