{"type": "func", "start": 5369906064, "end": 5369906463, "name": "EmotePickerPopup::ccTouchBegan", "pseudocode": "// \n// EmotePickerPopup::ccTouchBegan from 0x140124390 to 0x14012451f (399 bytes)\n// \n// 4 xrefs:\n// > <???> @ 0x140733340\n// > <???> @ 0x14089806c\n// > <???> @ 0x14089807c\n// > <???> @ 0x140916898\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:26:57 +0000\n// \n\nchar __fastcall EmotePickerPopup::ccTouchBegan(__int64 a1, __int64 a2, __int64 a3)\n{\n  float *v3; // rbx\n  float v7; // xmm4_4\n  const struct cocos2d::CCPoint *Location; // rax\n  __int64 v9; // rax\n  _BYTE v11[16]; // [rsp+30h] [rbp-38h] BYREF\n  char v12; // [rsp+70h] [rbp+8h] BYREF\n  char v13; // [rsp+88h] [rbp+20h] BYREF\n\n  v3 = (float *)(a1 - 320);\n  if ( !(*(unsigned __int8 (__fastcall **)(__int64))(*(_QWORD *)(a1 - 320) + 344LL))(a1 - 320) )\n    goto LABEL_4;\n  EditorWindowPopup::syncWindowCenter(v3);\n  if ( *(_DWORD *)(a1 + 740) != -1 )\n  {\n    v7 = v3[262];\n    cocos2d::CCRect::CCRect(\n      (cocos2d::CCRect *)v11,\n      (float)(v3[263] - (float)((float)(v7 * v3[260]) * 0.5)) - 6.0,\n      (float)(v3[264] - (float)((float)(v7 * v3[261]) * 0.5)) - 6.0,\n      (float)(v7 * v3[260]) + 12.0,\n      (float)(v7 * v3[261]) + 12.0);\n    Location = (const struct cocos2d::CCPoint *)cocos2d::CCTouch::getLocation(a2, &v13);\n    if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)v11, Location) )\n      goto LABEL_4;\n    return 1;\n  }\n  if ( (unsigned __int8)EditorWindowPopup::beginTouch(v3, a2, a3) )\n  {\n    *(_DWORD *)(a1 + 740) = *(_DWORD *)(a2 + 56);\n    return 1;\n  }\nLABEL_4:\n  cocos2d::CCTouch::getLocation(a2, &v12);\n  if ( !*(_QWORD *)(a1 + 832)\n    || (cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v13, (const struct cocos2d::CCPoint *)&v12),\n        !CCTextInputNode::containsTouchPoint(*(_QWORD *)(a1 + 832), v9)) )\n  {\n    if ( !cocos2d::CCRect::containsPoint((cocos2d::CCRect *)(a1 + 856), (const struct cocos2d::CCPoint *)&v12) )\n      (*(void (__fastcall **)(float *, _QWORD))(*(_QWORD *)v3 + 1104LL))(v3, 0);\n  }\n  return 0;\n}", "assembly": "; \n; EmotePickerPopup::ccTouchBegan from 0x140124390 to 0x14012451f (399 bytes)\n; \n; 4 xrefs:\n; > <???> @ 0x140733340\n; > <???> @ 0x14089806c\n; > <???> @ 0x14089807c\n; > <???> @ 0x140916898\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:26:57 +0000\n; \nmov     [rsp+arg_8], rbx                                               ; +0x0, 0x140124390\npush    rbp                                                            ; +0x5, 0x140124395\npush    rsi                                                            ; +0x6, 0x140124396\npush    rdi                                                            ; +0x7, 0x140124397\nsub     rsp, 50h                                                       ; +0x8, 0x140124398\nlea     rbx, [rcx-140h]                                                ; +0xc, 0x14012439c\nmov     rdi, rcx                                                       ; +0x13, 0x1401243a3\nmov     rax, [rbx]                                                     ; +0x16, 0x1401243a6\nmov     rcx, rbx                                                       ; +0x19, 0x1401243a9\nmov     rbp, r8                                                        ; +0x1c, 0x1401243ac\nmov     rsi, rdx                                                       ; +0x1f, 0x1401243af\ncall    qword ptr [rax+158h]                                           ; +0x22, 0x1401243b2\ntest    al, al                                                         ; +0x28, 0x1401243b8\njz      loc_140124480                                                  ; +0x2a, 0x1401243ba\nmov     rcx, rbx                                                       ; +0x30, 0x1401243c0\ncall    EditorWindowPopup__syncWindowCenter                            ; +0x33, 0x1401243c3\ncmp     dword ptr [rdi+2E4h], 0FFFFFFFFh                               ; +0x38, 0x1401243c8\njz      loc_1401244F1                                                  ; +0x3f, 0x1401243cf\nmovss   xmm4, dword ptr [rbx+418h]                                     ; +0x45, 0x1401243d5\nlea     rcx, [rsp+68h+var_38]                                          ; +0x4d, 0x1401243dd\nmovss   xmm2, dword ptr [rbx+420h]                                     ; +0x52, 0x1401243e2\nmovss   xmm1, dword ptr [rbx+41Ch]                                     ; +0x5a, 0x1401243ea\nmovaps  [rsp+68h+var_28], xmm6                                         ; +0x62, 0x1401243f2\nmovaps  xmm6, xmm4                                                     ; +0x67, 0x1401243f7\nmulss   xmm6, dword ptr [rbx+410h]                                     ; +0x6a, 0x1401243fa\nmulss   xmm4, dword ptr [rbx+414h]                                     ; +0x72, 0x140124402\nmovaps  xmm3, xmm6                                                     ; +0x7a, 0x14012440a\nmulss   xmm6, cs:dword_140834F20                                       ; +0x7d, 0x14012440d\naddss   xmm3, cs:dword_140835508                                       ; +0x85, 0x140124415\nmovaps  xmm5, xmm4                                                     ; +0x8d, 0x14012441d\nmulss   xmm4, cs:dword_140834F20                                       ; +0x90, 0x140124420\naddss   xmm5, cs:dword_140835508                                       ; +0x98, 0x140124428\nsubss   xmm1, xmm6                                                     ; +0xa0, 0x140124430\nsubss   xmm2, xmm4                                                     ; +0xa4, 0x140124434\nmovss   [rsp+68h+var_48], xmm5                                         ; +0xa8, 0x140124438\nsubss   xmm1, cs:flt_140835490                                         ; +0xae, 0x14012443e\nsubss   xmm2, cs:flt_140835490                                         ; +0xb6, 0x140124446\ncall    cs:??0CCRect@cocos2d@@QEAA@MMMM@Z; cocos2d::CCRect::CCRect(float,float,float,float) ; +0xbe, 0x14012444e\nlea     rdx, [rsp+68h+arg_18]                                          ; +0xc4, 0x140124454\nmov     rcx, rsi                                                       ; +0xcc, 0x14012445c\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0xcf, 0x14012445f\nmov     rdx, rax                                                       ; +0xd5, 0x140124465\nlea     rcx, [rsp+68h+var_38]                                          ; +0xd8, 0x140124468\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0xdd, 0x14012446d\nmovaps  xmm6, [rsp+68h+var_28]                                         ; +0xe3, 0x140124473\ntest    al, al                                                         ; +0xe8, 0x140124478\njnz     loc_140124510                                                  ; +0xea, 0x14012447a\nlea     rdx, [rsp+68h+arg_0]                                           ; +0xf0, 0x140124480\nmov     rcx, rsi                                                       ; +0xf5, 0x140124485\ncall    cs:?getLocation@CCTouch@cocos2d@@QEBA?AVCCPoint@2@XZ; cocos2d::CCTouch::getLocation(void) ; +0xf8, 0x140124488\ncmp     qword ptr [rdi+340h], 0                                        ; +0xfe, 0x14012448e\njz      short loc_1401244BE                                            ; +0x106, 0x140124496\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x108, 0x140124498\nlea     rcx, [rsp+68h+arg_18]                                          ; +0x10d, 0x14012449d\ncall    cs:??0CCPoint@cocos2d@@QEAA@AEBV01@@Z; cocos2d::CCPoint::CCPoint(cocos2d::CCPoint const &) ; +0x115, 0x1401244a5\nmov     rcx, [rdi+340h]                                                ; +0x11b, 0x1401244ab\nmov     rdx, rax                                                       ; +0x122, 0x1401244b2\ncall    CCTextInputNode__containsTouchPoint                            ; +0x125, 0x1401244b5\ntest    al, al                                                         ; +0x12a, 0x1401244ba\njnz     short loc_1401244E2                                            ; +0x12c, 0x1401244bc\nlea     rcx, [rdi+358h]                                                ; +0x12e, 0x1401244be\nlea     rdx, [rsp+68h+arg_0]                                           ; +0x135, 0x1401244c5\ncall    cs:?containsPoint@CCRect@cocos2d@@QEBA_NAEBVCCPoint@2@@Z; cocos2d::CCRect::containsPoint(cocos2d::CCPoint const &) ; +0x13a, 0x1401244ca\ntest    al, al                                                         ; +0x140, 0x1401244d0\njnz     short loc_1401244E2                                            ; +0x142, 0x1401244d2\nmov     rax, [rbx]                                                     ; +0x144, 0x1401244d4\nxor     edx, edx                                                       ; +0x147, 0x1401244d7\nmov     rcx, rbx                                                       ; +0x149, 0x1401244d9\ncall    qword ptr [rax+450h]                                           ; +0x14c, 0x1401244dc\nxor     al, al                                                         ; +0x152, 0x1401244e2\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x154, 0x1401244e4\nadd     rsp, 50h                                                       ; +0x159, 0x1401244e9\npop     rdi                                                            ; +0x15d, 0x1401244ed\npop     rsi                                                            ; +0x15e, 0x1401244ee\npop     rbp                                                            ; +0x15f, 0x1401244ef\nretn                                                                   ; +0x160, 0x1401244f0\nmov     r8, rbp                                                        ; +0x161, 0x1401244f1\nmov     rdx, rsi                                                       ; +0x164, 0x1401244f4\nmov     rcx, rbx                                                       ; +0x167, 0x1401244f7\ncall    EditorWindowPopup__beginTouch                                  ; +0x16a, 0x1401244fa\ntest    al, al                                                         ; +0x16f, 0x1401244ff\njz      loc_140124480                                                  ; +0x171, 0x140124501\nmov     eax, [rsi+38h]                                                 ; +0x177, 0x140124507\nmov     [rdi+2E4h], eax                                                ; +0x17a, 0x14012450a\nmov     rbx, [rsp+68h+arg_8]                                           ; +0x180, 0x140124510\nmov     al, 1                                                          ; +0x185, 0x140124515\nadd     rsp, 50h                                                       ; +0x187, 0x140124517\npop     rdi                                                            ; +0x18b, 0x14012451b\npop     rsi                                                            ; +0x18c, 0x14012451c\npop     rbp                                                            ; +0x18d, 0x14012451d\nretn                                                                   ; +0x18e, 0x14012451e", "xrefs": ["<???> @ 0x140733340", "<???> @ 0x14089806c", "<???> @ 0x14089807c", "<???> @ 0x140916898"], "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"}