{"type": "func", "start": 4298838704, "end": 4298839008, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0x1003b12b0 to 0x1003b13e0 (304 bytes)\n// \n// 4 xrefs:\n// > DialogLayer::ccTouchBegan @ 0x1003b16c9\n// > sub_1003B16E0 @ 0x1003b1700\n// > DialogLayer::keyDown @ 0x1003b1ba3\n// > sub_1003B1BB0 @ 0x1003b1bea\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:29:26 +0000\n// \n\nint __fastcall DialogLayer::handleDialogTap(double *a1)\n{\n  int result; // eax\n  double v3; // xmm0_8\n  float v4; // xmm0_4\n  __int64 v5; // rdi\n  void (__fastcall ***v6)(_QWORD, double *); // rdi\n  __int64 v7; // rax\n  timeb v8; // [rsp+8h] [rbp-18h] BYREF\n\n  result = ftime(&v8);\n  v3 = a1[69];\n  if ( v3 <= 0.0\n    || (result = v8.millitm, v4 = (double)v8.millitm / 1000.0 + (double)SLODWORD(v8.time) - v3, v4 >= 0.2)\n    || *((_BYTE *)a1 + 632)\n    || v4 < 0.0 )\n  {\n    if ( *((_BYTE *)a1 + 616) == 1 )\n    {\n      if ( !*((_BYTE *)a1 + 617) )\n        return DialogLayer::finishCurrentAnimation(a1);\n    }\n    else\n    {\n      v5 = *((_QWORD *)a1 + 74);\n      if ( v5 && (unsigned int)sub_1007FEF90(v5) )\n      {\n        return DialogLayer::displayNextObject((__int64)a1);\n      }\n      else\n      {\n        v6 = *((void (__fastcall ****)(_QWORD, double *))a1 + 78);\n        if ( v6 )\n          (**v6)(v6, a1);\n        a1[78] = 0.0;\n        v7 = *((_QWORD *)a1 + 72);\n        if ( v7 )\n          *(_QWORD *)(v7 + 696) = 0;\n        (*(void (__fastcall **)(double *, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0);\n        result = (*(__int64 (__fastcall **)(double *, _QWORD))(*(_QWORD *)a1 + 1088LL))(a1, 0);\n        if ( !*((_BYTE *)a1 + 640) )\n          return (*(__int64 (__fastcall **)(double *, __int64))(*(_QWORD *)a1 + 528LL))(a1, 1);\n      }\n    }\n  }\n  return result;\n}", "assembly": "; \n; DialogLayer::handleDialogTap from 0x1003b12b0 to 0x1003b13e0 (304 bytes)\n; \n; 4 xrefs:\n; > DialogLayer::ccTouchBegan @ 0x1003b16c9\n; > sub_1003B16E0 @ 0x1003b1700\n; > DialogLayer::keyDown @ 0x1003b1ba3\n; > sub_1003B1BB0 @ 0x1003b1bea\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:29:26 +0000\n; \npush    rbp                                                            ; +0x0, 0x1003b12b0\nmov     rbp, rsp                                                       ; +0x1, 0x1003b12b1\npush    rbx                                                            ; +0x4, 0x1003b12b4\nsub     rsp, 18h                                                       ; +0x5, 0x1003b12b5\nmov     rbx, rdi                                                       ; +0x9, 0x1003b12b9\nlea     rdi, [rbp+var_18]; timeb *                                     ; +0xc, 0x1003b12bc\ncall    _ftime                                                         ; +0x10, 0x1003b12c0\nmovsd   xmm0, qword ptr [rbx+228h]                                     ; +0x15, 0x1003b12c5\nxorpd   xmm1, xmm1                                                     ; +0x1d, 0x1003b12cd\nucomisd xmm0, xmm1                                                     ; +0x21, 0x1003b12d1\njbe     short loc_1003B1324                                            ; +0x25, 0x1003b12d5\nxorps   xmm1, xmm1                                                     ; +0x27, 0x1003b12d7\ncvtsi2sd xmm1, [rbp+var_18.time]                                       ; +0x2a, 0x1003b12da\nmovzx   eax, [rbp+var_18.millitm]                                      ; +0x30, 0x1003b12e0\ncvtsi2sd xmm2, eax                                                     ; +0x34, 0x1003b12e4\ndivsd   xmm2, cs:qword_100A03B70                                       ; +0x38, 0x1003b12e8\naddsd   xmm2, xmm1                                                     ; +0x40, 0x1003b12f0\nsubsd   xmm2, xmm0                                                     ; +0x44, 0x1003b12f4\nxorps   xmm0, xmm0                                                     ; +0x48, 0x1003b12f8\ncvtsd2ss xmm0, xmm2                                                    ; +0x4b, 0x1003b12fb\nmovss   xmm1, cs:dword_100A03850                                       ; +0x4f, 0x1003b12ff\nucomiss xmm1, xmm0                                                     ; +0x57, 0x1003b1307\njbe     short loc_1003B1324                                            ; +0x5a, 0x1003b130a\ncmp     byte ptr [rbx+278h], 0                                         ; +0x5c, 0x1003b130c\njnz     short loc_1003B1324                                            ; +0x63, 0x1003b1313\nxorps   xmm1, xmm1                                                     ; +0x65, 0x1003b1315\nucomiss xmm0, xmm1                                                     ; +0x68, 0x1003b1318\njb      short loc_1003B1324                                            ; +0x6b, 0x1003b131b\nadd     rsp, 18h                                                       ; +0x6d, 0x1003b131d\npop     rbx                                                            ; +0x71, 0x1003b1321\npop     rbp                                                            ; +0x72, 0x1003b1322\nretn                                                                   ; +0x73, 0x1003b1323\ncmp     byte ptr [rbx+268h], 1                                         ; +0x74, 0x1003b1324\njnz     short loc_1003B1345                                            ; +0x7b, 0x1003b132b\ncmp     byte ptr [rbx+269h], 0                                         ; +0x7d, 0x1003b132d\njnz     short loc_1003B131D                                            ; +0x84, 0x1003b1334\nmov     rdi, rbx                                                       ; +0x86, 0x1003b1336\ncall    DialogLayer__finishCurrentAnimation                            ; +0x89, 0x1003b1339\nadd     rsp, 18h                                                       ; +0x8e, 0x1003b133e\npop     rbx                                                            ; +0x92, 0x1003b1342\npop     rbp                                                            ; +0x93, 0x1003b1343\nretn                                                                   ; +0x94, 0x1003b1344\nmov     rdi, [rbx+250h]                                                ; +0x95, 0x1003b1345\ntest    rdi, rdi                                                       ; +0x9c, 0x1003b134c\njz      short loc_1003B1369                                            ; +0x9f, 0x1003b134f\ncall    sub_1007FEF90                                                  ; +0xa1, 0x1003b1351\ntest    eax, eax                                                       ; +0xa6, 0x1003b1356\njz      short loc_1003B1369                                            ; +0xa8, 0x1003b1358\nmov     rdi, rbx                                                       ; +0xaa, 0x1003b135a\ncall    DialogLayer__displayNextObject                                 ; +0xad, 0x1003b135d\nadd     rsp, 18h                                                       ; +0xb2, 0x1003b1362\npop     rbx                                                            ; +0xb6, 0x1003b1366\npop     rbp                                                            ; +0xb7, 0x1003b1367\nretn                                                                   ; +0xb8, 0x1003b1368\nmov     rdi, [rbx+270h]                                                ; +0xb9, 0x1003b1369\ntest    rdi, rdi                                                       ; +0xc0, 0x1003b1370\njz      short loc_1003B137D                                            ; +0xc3, 0x1003b1373\nmov     rax, [rdi]                                                     ; +0xc5, 0x1003b1375\nmov     rsi, rbx                                                       ; +0xc8, 0x1003b1378\ncall    qword ptr [rax]                                                ; +0xcb, 0x1003b137b\nmov     qword ptr [rbx+270h], 0                                        ; +0xcd, 0x1003b137d\nmov     rax, [rbx+240h]                                                ; +0xd8, 0x1003b1388\ntest    rax, rax                                                       ; +0xdf, 0x1003b138f\njz      short loc_1003B139F                                            ; +0xe2, 0x1003b1392\nmov     qword ptr [rax+2B8h], 0                                        ; +0xe4, 0x1003b1394\nmov     rax, [rbx]                                                     ; +0xef, 0x1003b139f\nmov     rdi, rbx                                                       ; +0xf2, 0x1003b13a2\nxor     esi, esi                                                       ; +0xf5, 0x1003b13a5\ncall    qword ptr [rax+430h]                                           ; +0xf7, 0x1003b13a7\nmov     rax, [rbx]                                                     ; +0xfd, 0x1003b13ad\nmov     rdi, rbx                                                       ; +0x100, 0x1003b13b0\nxor     esi, esi                                                       ; +0x103, 0x1003b13b3\ncall    qword ptr [rax+440h]                                           ; +0x105, 0x1003b13b5\ncmp     byte ptr [rbx+280h], 0                                         ; +0x10b, 0x1003b13bb\njnz     loc_1003B131D                                                  ; +0x112, 0x1003b13c2\nmov     rax, [rbx]                                                     ; +0x118, 0x1003b13c8\nmov     rdi, rbx                                                       ; +0x11b, 0x1003b13cb\nmov     esi, 1                                                         ; +0x11e, 0x1003b13ce\ncall    qword ptr [rax+210h]                                           ; +0x123, 0x1003b13d3\nadd     rsp, 18h                                                       ; +0x129, 0x1003b13d9\npop     rbx                                                            ; +0x12d, 0x1003b13dd\npop     rbp                                                            ; +0x12e, 0x1003b13de\nretn                                                                   ; +0x12f, 0x1003b13df", "xrefs": ["DialogLayer::ccTouchBegan @ 0x1003b16c9", "sub_1003B16E0 @ 0x1003b1700", "DialogLayer::keyDown @ 0x1003b1ba3", "sub_1003B1BB0 @ 0x1003b1bea"], "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"}