{"type": "func", "start": 4299970848, "end": 4299971172, "name": "GJUINode::touchTest", "pseudocode": "// \n// GJUINode::touchTest from 0x1004c5920 to 0x1004c5a64 (324 bytes)\n// \n// 2 xrefs:\n// > UIOptionsLayer::ccTouchBegan @ 0x1002a2c2d\n// > UILayer::processUINodeTouch @ 0x1004c56e0\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:31:07 +0000\n// \n\nunsigned __int64 __fastcall GJUINode::touchTest(__int64 a1, float *a2)\n{\n  bool v2; // cl\n  unsigned __int64 result; // rax\n  __int64 v4; // r14\n  unsigned __int64 v5; // [rsp+0h] [rbp-40h] BYREF\n  __int64 v6; // [rsp+8h] [rbp-38h] BYREF\n  unsigned __int64 v7[6]; // [rsp+10h] [rbp-30h] BYREF\n\n  v2 = sub_100278940((float *)(a1 + 336), a2);\n  result = 0;\n  if ( v2 )\n  {\n    result = 1;\n    if ( !*(_BYTE *)(a1 + 386) )\n    {\n      if ( *(_BYTE *)(a1 + 381) == 1 && (*(_BYTE *)(a1 + 382) || !*(_BYTE *)(a1 + 383)) )\n      {\n        sub_1002782D0(&v5, a2);\n        v4 = *(_QWORD *)(a1 + 320);\n        sub_100278250((float *)v7, 0.0, 40.0);\n        sub_100278350((double *)&v6, &v5, v7);\n        (*(void (__fastcall **)(__int64, __int64 *))(*(_QWORD *)v4 + 184LL))(v4, &v6);\n        (*(void (__fastcall **)(_QWORD, __int64))(**(_QWORD **)(a1 + 320) + 344LL))(*(_QWORD *)(a1 + 320), 1);\n        *(_BYTE *)(a1 + 383) = 1;\n        return 5;\n      }\n      else\n      {\n        sub_1002782D0(v7, a2);\n        if ( *(_BYTE *)(a1 + 381) )\n        {\n          sub_1002782D0(&v6, v7);\n          return GJUINode::activeRangeTouchTest(a1, &v6);\n        }\n        else\n        {\n          result = 5;\n          if ( *(float *)(a1 + 376) <= fabs(*(float *)v7) )\n            return ((LODWORD(v7[0]) | 0x300000000LL) - (unsigned __int64)COERCE_UNSIGNED_INT(0.0)) >> 32;\n        }\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; GJUINode::touchTest from 0x1004c5920 to 0x1004c5a64 (324 bytes)\n; \n; 2 xrefs:\n; > UIOptionsLayer::ccTouchBegan @ 0x1002a2c2d\n; > UILayer::processUINodeTouch @ 0x1004c56e0\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:31:07 +0000\n; \npush    rbp                                                            ; +0x0, 0x1004c5920\nmov     rbp, rsp                                                       ; +0x1, 0x1004c5921\npush    r15                                                            ; +0x4, 0x1004c5924\npush    r14                                                            ; +0x6, 0x1004c5926\npush    r13                                                            ; +0x8, 0x1004c5928\npush    r12                                                            ; +0xa, 0x1004c592a\npush    rbx                                                            ; +0xc, 0x1004c592c\nsub     rsp, 18h                                                       ; +0xd, 0x1004c592d\nmov     r14, rsi                                                       ; +0x11, 0x1004c5931\nmov     rbx, rdi                                                       ; +0x14, 0x1004c5934\nadd     rdi, 150h                                                      ; +0x17, 0x1004c5937\ncall    sub_100278940                                                  ; +0x1e, 0x1004c593e\nmov     ecx, eax                                                       ; +0x23, 0x1004c5943\nxor     eax, eax                                                       ; +0x25, 0x1004c5945\ntest    cl, cl                                                         ; +0x27, 0x1004c5947\njz      loc_1004C5A55                                                  ; +0x29, 0x1004c5949\nmov     eax, 1                                                         ; +0x2f, 0x1004c594f\ncmp     byte ptr [rbx+182h], 0                                         ; +0x34, 0x1004c5954\njnz     loc_1004C5A55                                                  ; +0x3b, 0x1004c595b\ncmp     byte ptr [rbx+17Dh], 1                                         ; +0x41, 0x1004c5961\njnz     short loc_1004C597C                                            ; +0x48, 0x1004c5968\ncmp     byte ptr [rbx+17Eh], 0                                         ; +0x4a, 0x1004c596a\njnz     short loc_1004C59B5                                            ; +0x51, 0x1004c5971\ncmp     byte ptr [rbx+17Fh], 0                                         ; +0x53, 0x1004c5973\njz      short loc_1004C59B5                                            ; +0x5a, 0x1004c597a\nlea     rdi, [rbp+var_30]                                              ; +0x5c, 0x1004c597c\nmov     rsi, r14                                                       ; +0x60, 0x1004c5980\ncall    sub_1002782D0                                                  ; +0x63, 0x1004c5983\ncmp     byte ptr [rbx+17Dh], 0                                         ; +0x68, 0x1004c5988\njz      loc_1004C5A26                                                  ; +0x6f, 0x1004c598f\nlea     r14, [rbp+var_38]                                              ; +0x75, 0x1004c5995\nlea     rsi, [rbp+var_30]                                              ; +0x79, 0x1004c5999\nmov     rdi, r14                                                       ; +0x7d, 0x1004c599d\ncall    sub_1002782D0                                                  ; +0x80, 0x1004c59a0\nmov     rdi, rbx                                                       ; +0x85, 0x1004c59a5\nmov     rsi, r14                                                       ; +0x88, 0x1004c59a8\ncall    GJUINode__activeRangeTouchTest                                 ; +0x8b, 0x1004c59ab\njmp     loc_1004C5A55                                                  ; +0x90, 0x1004c59b0\nlea     r15, [rbp+var_40]                                              ; +0x95, 0x1004c59b5\nmov     rdi, r15                                                       ; +0x99, 0x1004c59b9\nmov     rsi, r14                                                       ; +0x9c, 0x1004c59bc\ncall    sub_1002782D0                                                  ; +0x9f, 0x1004c59bf\nmov     r14, [rbx+140h]                                                ; +0xa4, 0x1004c59c4\nlea     r12, [rbp+var_30]                                              ; +0xab, 0x1004c59cb\nmovss   xmm1, cs:dword_100A035D0                                       ; +0xaf, 0x1004c59cf\nxorps   xmm0, xmm0                                                     ; +0xb7, 0x1004c59d7\nmov     rdi, r12                                                       ; +0xba, 0x1004c59da\ncall    sub_100278250                                                  ; +0xbd, 0x1004c59dd\nlea     r13, [rbp+var_38]                                              ; +0xc2, 0x1004c59e2\nmov     rdi, r13                                                       ; +0xc6, 0x1004c59e6\nmov     rsi, r15                                                       ; +0xc9, 0x1004c59e9\nmov     rdx, r12                                                       ; +0xcc, 0x1004c59ec\ncall    sub_100278350                                                  ; +0xcf, 0x1004c59ef\nmov     rax, [r14]                                                     ; +0xd4, 0x1004c59f4\nmov     rdi, r14                                                       ; +0xd7, 0x1004c59f7\nmov     rsi, r13                                                       ; +0xda, 0x1004c59fa\ncall    qword ptr [rax+0B8h]                                           ; +0xdd, 0x1004c59fd\nmov     rdi, [rbx+140h]                                                ; +0xe3, 0x1004c5a03\nmov     rax, [rdi]                                                     ; +0xea, 0x1004c5a0a\nmov     esi, 1                                                         ; +0xed, 0x1004c5a0d\ncall    qword ptr [rax+158h]                                           ; +0xf2, 0x1004c5a12\nmov     byte ptr [rbx+17Fh], 1                                         ; +0xf8, 0x1004c5a18\nmov     eax, 5                                                         ; +0xff, 0x1004c5a1f\njmp     short loc_1004C5A55                                            ; +0x104, 0x1004c5a24\nmovss   xmm0, dword ptr [rbp+var_30]                                   ; +0x106, 0x1004c5a26\nmovaps  xmm1, cs:xmmword_100A038A0                                     ; +0x10b, 0x1004c5a2b\nandps   xmm1, xmm0                                                     ; +0x112, 0x1004c5a32\nmovss   xmm2, dword ptr [rbx+178h]                                     ; +0x115, 0x1004c5a35\nmov     eax, 5                                                         ; +0x11d, 0x1004c5a3d\nucomiss xmm2, xmm1                                                     ; +0x122, 0x1004c5a42\nja      short loc_1004C5A55                                            ; +0x125, 0x1004c5a45\nxorps   xmm1, xmm1                                                     ; +0x127, 0x1004c5a47\nucomiss xmm0, xmm1                                                     ; +0x12a, 0x1004c5a4a\nmov     eax, 3                                                         ; +0x12d, 0x1004c5a4d\nsbb     eax, 0                                                         ; +0x132, 0x1004c5a52\nadd     rsp, 18h                                                       ; +0x135, 0x1004c5a55\npop     rbx                                                            ; +0x139, 0x1004c5a59\npop     r12                                                            ; +0x13a, 0x1004c5a5a\npop     r13                                                            ; +0x13c, 0x1004c5a5c\npop     r14                                                            ; +0x13e, 0x1004c5a5e\npop     r15                                                            ; +0x140, 0x1004c5a60\npop     rbp                                                            ; +0x142, 0x1004c5a62\nretn                                                                   ; +0x143, 0x1004c5a63", "xrefs": ["UIOptionsLayer::ccTouchBegan @ 0x1002a2c2d", "UILayer::processUINodeTouch @ 0x1004c56e0"], "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"}