{"type": "func", "start": 5370150736, "end": 5370151014, "name": "CustomSFXRowMenu::ccTouchBegan", "pseudocode": "// \n// CustomSFXRowMenu::ccTouchBegan from 0x14015ff50 to 0x140160066 (278 bytes)\n// \n// 2 xrefs:\n// > <???> @ 0x140742540\n// > <???> @ 0x140917cc0\n// \n// This function is hookable on this platform (idp: pc, 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 11:27:24 +0000\n// \n\nbool __fastcall CustomSFXRowMenu::ccTouchBegan(\n        cocos2d::CCMenu *a1,\n        struct cocos2d::CCTouch *a2,\n        struct cocos2d::CCEvent *a3)\n{\n  __int64 v6; // rbx\n  __int64 v7; // rdi\n  bool result; // al\n  __int64 Location; // rax\n  float *v10; // rbx\n  __int64 v11; // rax\n  _BYTE v12[56]; // [rsp+30h] [rbp-38h] BYREF\n  char v13; // [rsp+70h] [rbp+8h] BYREF\n  char v14; // [rsp+88h] [rbp+20h] BYREF\n\n  v6 = (*(__int64 (__fastcall **)(__int64))(*((_QWORD *)a1 - 40) + 504LL))((__int64)a1 - 320);\n  if ( !v6 )\n    return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);\n  while ( 1 )\n  {\n    v7 = _RTDynamicCast(v6, 0, &cocos2d::CCNode `RTTI Type Descriptor', &CCScrollLayerExt `RTTI Type Descriptor', 0);\n    if ( v7 )\n      break;\n    v6 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 504LL))(v6);\n    if ( !v6 )\n      return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);\n  }\n  Location = cocos2d::CCTouch::getLocation(a2, &v14);\n  cocos2d::CCNode::convertToNodeSpace(v7, &v13, Location);\n  v10 = (float *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 320LL))(v7);\n  v11 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v7 + 320LL))(v7);\n  cocos2d::CCRect::CCRect((cocos2d::CCRect *)v12, 0.0, 0.0, *v10, *(float *)(v11 + 4));\n  result = cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v12, (const struct cocos2d::CCPoint *)&v13);\n  if ( result )\n    return cocos2d::CCMenu::ccTouchBegan(a1, a2, a3);\n  return result;\n}", "assembly": "; \n; CustomSFXRowMenu::ccTouchBegan from 0x14015ff50 to 0x140160066 (278 bytes)\n; \n; 2 xrefs:\n; > <???> @ 0x140742540\n; > <???> @ 0x140917cc0\n; \n; This function is hookable on this platform (idp: pc, 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 11:27:24 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x14015ff50\npush    rbp                                                            ; +0x5, 0x14015ff55\npush    rsi                                                            ; +0x6, 0x14015ff56\npush    rdi                                                            ; +0x7, 0x14015ff57\npush    r14                                                            ; +0x8, 0x14015ff58\npush    r15                                                            ; +0xa, 0x14015ff5a\nsub     rsp, 40h                                                       ; +0xc, 0x14015ff5c\nmov     rsi, rcx                                                       ; +0x10, 0x14015ff60\nmov     r14, r8                                                        ; +0x13, 0x14015ff63\nadd     rcx, 0FFFFFFFFFFFFFEC0h                                        ; +0x16, 0x14015ff66\nmov     rbp, rdx                                                       ; +0x1d, 0x14015ff6d\nmov     rax, [rcx]                                                     ; +0x20, 0x14015ff70\ncall    qword ptr [rax+1F8h]                                           ; +0x23, 0x14015ff73\nmov     rbx, rax                                                       ; +0x29, 0x14015ff79\ntest    rax, rax                                                       ; +0x2c, 0x14015ff7c\njz      short loc_14015FFBD                                            ; +0x2f, 0x14015ff7f\nxor     r15d, r15d                                                     ; +0x31, 0x14015ff81\nlea     r9, ??_R0?AVCCScrollLayerExt@@@8; CCScrollLayerExt `RTTI Type Descriptor' ; +0x34, 0x14015ff84\nmov     [rsp+68h+var_48], r15d                                         ; +0x3b, 0x14015ff8b\nlea     r8, ??_R0?AVCCNode@cocos2d@@@8; cocos2d::CCNode `RTTI Type Descriptor' ; +0x40, 0x14015ff90\nxor     edx, edx                                                       ; +0x47, 0x14015ff97\nmov     rcx, rbx                                                       ; +0x49, 0x14015ff99\ncall    __RTDynamicCast                                                ; +0x4c, 0x14015ff9c\nmov     rdi, rax                                                       ; +0x51, 0x14015ffa1\ntest    rax, rax                                                       ; +0x54, 0x14015ffa4\njnz     short loc_14015FFDD                                            ; +0x57, 0x14015ffa7\nmov     rax, [rbx]                                                     ; +0x59, 0x14015ffa9\nmov     rcx, rbx                                                       ; +0x5c, 0x14015ffac\ncall    qword ptr [rax+1F8h]                                           ; +0x5f, 0x14015ffaf\nmov     rbx, rax                                                       ; +0x65, 0x14015ffb5\ntest    rax, rax                                                       ; +0x68, 0x14015ffb8\njnz     short loc_14015FF84                                            ; +0x6b, 0x14015ffbb\nmov     r8, r14                                                        ; +0x6d, 0x14015ffbd\nmov     rdx, rbp                                                       ; +0x70, 0x14015ffc0\nmov     rcx, rsi                                                       ; +0x73, 0x14015ffc3\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x76, 0x14015ffc6\nadd     rsp, 40h                                                       ; +0x7b, 0x14015ffcb\npop     r15                                                            ; +0x7f, 0x14015ffcf\npop     r14                                                            ; +0x81, 0x14015ffd1\npop     rdi                                                            ; +0x83, 0x14015ffd3\npop     rsi                                                            ; +0x84, 0x14015ffd4\npop     rbp                                                            ; +0x85, 0x14015ffd5\njmp     cs:?ccTouchBegan@CCMenu@cocos2d@@UEAA_NPEAVCCTouch@2@PEAVCCEvent@2@@Z; cocos2d::CCMenu::ccTouchBegan(cocos2d::CCTouch *,cocos2d::CCEvent *) ; +0x86, 0x14015ffd6\nlea     rdx, [rsp+68h+arg_18]                                          ; +0x8d, 0x14015ffdd\nmov     rcx, rbp                                                       ; +0x95, 0x14015ffe5\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0x98, 0x14015ffe8\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x9e, 0x14015ffee\nmov     rcx, rdi                                                       ; +0xa3, 0x14015fff3\nmov     r8, rax                                                        ; +0xa6, 0x14015fff6\ncall    cs:?convertToNodeSpace@CCNode@cocos2d@@QEAA?AVCCPoint@2@AEBV32@@Z; cocos2d::CCNode::convertToNodeSpace(cocos2d::CCPoint const &) ; +0xa9, 0x14015fff9\nmov     rax, [rdi]                                                     ; +0xaf, 0x14015ffff\nmov     rcx, rdi                                                       ; +0xb2, 0x140160002\ncall    qword ptr [rax+140h]                                           ; +0xb5, 0x140160005\nmov     rcx, [rdi]                                                     ; +0xbb, 0x14016000b\nmov     rbx, rax                                                       ; +0xbe, 0x14016000e\nmov     rdx, [rcx+140h]                                                ; +0xc1, 0x140160011\nmov     rcx, rdi                                                       ; +0xc8, 0x140160018\ncall    rdx                                                            ; +0xcb, 0x14016001b\nmovss   xmm3, dword ptr [rbx]                                          ; +0xcd, 0x14016001d\nlea     rcx, [rsp+68h+var_38]                                          ; +0xd1, 0x140160021\nxorps   xmm2, xmm2                                                     ; +0xd6, 0x140160026\nxorps   xmm1, xmm1                                                     ; +0xd9, 0x140160029\nmovss   xmm0, dword ptr [rax+4]                                        ; +0xdc, 0x14016002c\nmovss   [rsp+68h+var_48], xmm0                                         ; +0xe1, 0x140160031\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xe7, 0x140160037\nlea     rdx, [rsp+68h+arg_0]                                           ; +0xed, 0x14016003d\nlea     rcx, [rsp+68h+var_38]                                          ; +0xf2, 0x140160042\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xf7, 0x140160047\ntest    al, al                                                         ; +0xfd, 0x14016004d\njnz     loc_14015FFBD                                                  ; +0xff, 0x14016004f\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x105, 0x140160055\nadd     rsp, 40h                                                       ; +0x10a, 0x14016005a\npop     r15                                                            ; +0x10e, 0x14016005e\npop     r14                                                            ; +0x110, 0x140160060\npop     rdi                                                            ; +0x112, 0x140160062\npop     rsi                                                            ; +0x113, 0x140160063\npop     rbp                                                            ; +0x114, 0x140160064\nretn                                                                   ; +0x115, 0x140160065", "xrefs": ["<???> @ 0x140742540", "<???> @ 0x140917cc0"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "pc", "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"}