{"type": "func", "start": 4302000464, "end": 4302000716, "name": "CustomSFXRowMenu::ccTouchBegan", "pseudocode": "// \n// CustomSFXRowMenu::ccTouchBegan from 0x1006b5150 to 0x1006b524c (252 bytes)\n// \n// 2 xrefs:\n// > sub_1006B5250 @ 0x1006b525c\n// > <???> @ 0x100b8a160\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 12:35:26 +0000\n// \n\n__int64 __fastcall CustomSFXRowMenu::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)\n{\n  __int64 v3; // rax\n  const void *v4; // r12\n  void *v5; // rax\n  __int64 v6; // r14\n  __int64 v7; // rax\n  double v9; // [rsp+8h] [rbp-58h] BYREF\n  unsigned int v10[4]; // [rsp+10h] [rbp-50h] BYREF\n  __int64 v11; // [rsp+20h] [rbp-40h]\n  __int64 v12; // [rsp+28h] [rbp-38h]\n  unsigned int v13; // [rsp+34h] [rbp-2Ch]\n\n  v11 = a3;\n  v12 = a2;\n  v3 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)a1 + 512LL))(a1);\n  if ( !v3 )\n    return cocos2d::CCMenu::ccTouchBegan(a1);\n  v4 = (const void *)v3;\n  while ( 1 )\n  {\n    v5 = __dynamic_cast(\n           v4,\n           (const struct __class_type_info *)&`typeinfo for'cocos2d::CCNode,\n           (const struct __class_type_info *)&`typeinfo for'CCScrollLayerExt,\n           0);\n    if ( v5 )\n      break;\n    v4 = (const void *)(*(__int64 (__fastcall **)(const void *))(*(_QWORD *)v4 + 512LL))(v4);\n    if ( !v4 )\n      return cocos2d::CCMenu::ccTouchBegan(a1);\n  }\n  v6 = (__int64)v5;\n  cocos2d::CCTouch::getLocation((__int64)v10, v12);\n  cocos2d::CCNode::convertToNodeSpace(&v9, v6, v10);\n  v13 = *(_DWORD *)(*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6);\n  v7 = (*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v6 + 328LL))(v6);\n  sub_100278270((__int64)v10, 0.0, 0.0, (__m128)v13, (__m128)*(unsigned int *)(v7 + 4));\n  if ( !sub_100278940((float *)v10, (float *)&v9) )\n    return 0;\n  else\n    return cocos2d::CCMenu::ccTouchBegan(a1);\n}", "assembly": "; \n; CustomSFXRowMenu::ccTouchBegan from 0x1006b5150 to 0x1006b524c (252 bytes)\n; \n; 2 xrefs:\n; > sub_1006B5250 @ 0x1006b525c\n; > <???> @ 0x100b8a160\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 12:35:26 +0000\n; \npush    rbp                                                            ; +0x0, 0x1006b5150\nmov     rbp, rsp                                                       ; +0x1, 0x1006b5151\npush    r15                                                            ; +0x4, 0x1006b5154\npush    r14                                                            ; +0x6, 0x1006b5156\npush    r13                                                            ; +0x8, 0x1006b5158\npush    r12                                                            ; +0xa, 0x1006b515a\npush    rbx                                                            ; +0xc, 0x1006b515c\nsub     rsp, 38h                                                       ; +0xd, 0x1006b515d\nmov     [rbp+var_40], rdx                                              ; +0x11, 0x1006b5161\nmov     [rbp+var_38], rsi                                              ; +0x15, 0x1006b5165\nmov     r15, rdi                                                       ; +0x19, 0x1006b5169\nmov     rax, [rdi]                                                     ; +0x1c, 0x1006b516c\ncall    qword ptr [rax+200h]                                           ; +0x1f, 0x1006b516f\ntest    rax, rax                                                       ; +0x25, 0x1006b5175\njz      loc_1006B5229                                                  ; +0x28, 0x1006b5178\nmov     r12, rax                                                       ; +0x2e, 0x1006b517e\nlea     r13, _ZTIN7cocos2d6CCNodeE; `typeinfo for'cocos2d::CCNode      ; +0x31, 0x1006b5181\nlea     rbx, _ZTI16CCScrollLayerExt; `typeinfo for'CCScrollLayerExt    ; +0x38, 0x1006b5188\nnop                                                                    ; +0x3f, 0x1006b518f\nmov     rdi, r12; lpsrc                                                ; +0x40, 0x1006b5190\nmov     rsi, r13; lpstype                                              ; +0x43, 0x1006b5193\nmov     rdx, rbx; lpdtype                                              ; +0x46, 0x1006b5196\nxor     ecx, ecx; s2d                                                  ; +0x49, 0x1006b5199\ncall    ___dynamic_cast                                                ; +0x4b, 0x1006b519b\ntest    rax, rax                                                       ; +0x50, 0x1006b51a0\njnz     short loc_1006B51BC                                            ; +0x53, 0x1006b51a3\nmov     rax, [r12]                                                     ; +0x55, 0x1006b51a5\nmov     rdi, r12                                                       ; +0x59, 0x1006b51a9\ncall    qword ptr [rax+200h]                                           ; +0x5c, 0x1006b51ac\nmov     r12, rax                                                       ; +0x62, 0x1006b51b2\ntest    rax, rax                                                       ; +0x65, 0x1006b51b5\njnz     short loc_1006B5190                                            ; +0x68, 0x1006b51b8\njmp     short loc_1006B5229                                            ; +0x6a, 0x1006b51ba\nmov     r14, rax                                                       ; +0x6c, 0x1006b51bc\nlea     rbx, [rbp+var_50]                                              ; +0x6f, 0x1006b51bf\nmov     rdi, rbx                                                       ; +0x73, 0x1006b51c3\nmov     rsi, [rbp+var_38]                                              ; +0x76, 0x1006b51c6\ncall    cocos2d__CCTouch__getLocation                                  ; +0x7a, 0x1006b51ca\nlea     r12, [rbp+var_58]                                              ; +0x7f, 0x1006b51cf\nmov     rdi, r12                                                       ; +0x83, 0x1006b51d3\nmov     rsi, r14                                                       ; +0x86, 0x1006b51d6\nmov     rdx, rbx                                                       ; +0x89, 0x1006b51d9\ncall    cocos2d__CCNode__convertToNodeSpace                            ; +0x8c, 0x1006b51dc\nmov     rax, [r14]                                                     ; +0x91, 0x1006b51e1\nmov     rdi, r14                                                       ; +0x94, 0x1006b51e4\ncall    qword ptr [rax+148h]                                           ; +0x97, 0x1006b51e7\nmovss   xmm0, dword ptr [rax]                                          ; +0x9d, 0x1006b51ed\nmovss   [rbp+var_2C], xmm0                                             ; +0xa1, 0x1006b51f1\nmov     rax, [r14]                                                     ; +0xa6, 0x1006b51f6\nmov     rdi, r14                                                       ; +0xa9, 0x1006b51f9\ncall    qword ptr [rax+148h]                                           ; +0xac, 0x1006b51fc\nmovss   xmm3, dword ptr [rax+4]                                        ; +0xb2, 0x1006b5202\nxorps   xmm0, xmm0                                                     ; +0xb7, 0x1006b5207\nxorps   xmm1, xmm1                                                     ; +0xba, 0x1006b520a\nmov     rdi, rbx                                                       ; +0xbd, 0x1006b520d\nmovss   xmm2, [rbp+var_2C]                                             ; +0xc0, 0x1006b5210\ncall    sub_100278270                                                  ; +0xc5, 0x1006b5215\nmov     rdi, rbx                                                       ; +0xca, 0x1006b521a\nmov     rsi, r12                                                       ; +0xcd, 0x1006b521d\ncall    sub_100278940                                                  ; +0xd0, 0x1006b5220\ntest    al, al                                                         ; +0xd5, 0x1006b5225\njz      short loc_1006B5248                                            ; +0xd7, 0x1006b5227\nmov     rdi, r15                                                       ; +0xd9, 0x1006b5229\nmov     rsi, [rbp+var_38]                                              ; +0xdc, 0x1006b522c\nmov     rdx, [rbp+var_40]                                              ; +0xe0, 0x1006b5230\ncall    cocos2d__CCMenu__ccTouchBegan                                  ; +0xe4, 0x1006b5234\nadd     rsp, 38h                                                       ; +0xe9, 0x1006b5239\npop     rbx                                                            ; +0xed, 0x1006b523d\npop     r12                                                            ; +0xee, 0x1006b523e\npop     r13                                                            ; +0xf0, 0x1006b5240\npop     r14                                                            ; +0xf2, 0x1006b5242\npop     r15                                                            ; +0xf4, 0x1006b5244\npop     rbp                                                            ; +0xf6, 0x1006b5246\nretn                                                                   ; +0xf7, 0x1006b5247\nxor     eax, eax                                                       ; +0xf8, 0x1006b5248\njmp     short loc_1006B5239                                            ; +0xfa, 0x1006b524a", "xrefs": ["sub_1006B5250 @ 0x1006b525c", "<???> @ 0x100b8a160"], "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"}