{"type": "func", "start": 4295558624, "end": 4295558820, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0x1000905e0 to 0x1000906a4 (196 bytes)\n// \n// 3 xrefs:\n// > DialogLayer::ccTouchBegan @ 0x10009080c\n// > sub_10009081C @ 0x100090840\n// > DialogLayer::keyDown @ 0x100090c10\n// \n// This function is hookable on this platform (idp: arm, 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 10:58:23 +0000\n// \n\n__int64 __fastcall DialogLayer::handleDialogTap(__int64 a1)\n{\n  __int64 result; // x0\n  unsigned __int64 v3; // d2\n  double v4; // d0\n  float v5; // s0\n  __int64 v6; // x0\n  timeb v7; // [xsp+0h] [xbp-20h] BYREF\n\n  result = ftime(&v7);\n  v4 = *(double *)(a1 + 552);\n  if ( v4 <= 0.0\n    || (LOWORD(v3) = v7.millitm, v5 = (double)v3 / 1000.0 + (double)v7.time - v4, v5 >= 0.2)\n    || (*(_BYTE *)(a1 + 632) & 1) != 0\n    || v5 < 0.0 )\n  {\n    if ( *(_BYTE *)(a1 + 616) == 1 )\n    {\n      if ( (*(_BYTE *)(a1 + 617) & 1) == 0 )\n        return DialogLayer::finishCurrentAnimation(a1);\n    }\n    else\n    {\n      v6 = *(_QWORD *)(a1 + 592);\n      if ( v6 && (unsigned int)sub_1002E757C(v6) )\n        return DialogLayer::displayNextObject(a1);\n      else\n        return DialogLayer::onClose(a1);\n    }\n  }\n  return result;\n}", "assembly": "; \n; DialogLayer::handleDialogTap from 0x1000905e0 to 0x1000906a4 (196 bytes)\n; \n; 3 xrefs:\n; > DialogLayer::ccTouchBegan @ 0x10009080c\n; > sub_10009081C @ 0x100090840\n; > DialogLayer::keyDown @ 0x100090c10\n; \n; This function is hookable on this platform (idp: arm, 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 10:58:23 +0000\n; \nSUB             SP, SP, #0x30                                          ; +0x0, 0x1000905e0\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x1000905e4\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x1000905e8\nADD             X29, SP, #0x20                                         ; +0xc, 0x1000905ec\nMOV             X19, X0                                                ; +0x10, 0x1000905f0\nMOV             X0, SP; timeb *                                        ; +0x14, 0x1000905f4\nBL              _ftime                                                 ; +0x18, 0x1000905f8\nLDR             D0, [X19,#0x228]                                       ; +0x1c, 0x1000905fc\nFCMP            D0, #0.0                                               ; +0x20, 0x100090600\nB.LE            loc_100090650                                          ; +0x24, 0x100090604\nLDR             D1, [SP,#0x20+var_20]                                  ; +0x28, 0x100090608\nSCVTF           D1, D1                                                 ; +0x2c, 0x10009060c\nLDR             H2, [SP,#0x20+var_18]                                  ; +0x30, 0x100090610\nUCVTF           D2, D2                                                 ; +0x34, 0x100090614\nADRP            X8, #qword_10075C748@PAGE                              ; +0x38, 0x100090618\nLDR             D3, [X8,#qword_10075C748@PAGEOFF]                      ; +0x3c, 0x10009061c\nFDIV            D2, D2, D3                                             ; +0x40, 0x100090620\nFADD            D1, D2, D1                                             ; +0x44, 0x100090624\nFSUB            D0, D1, D0                                             ; +0x48, 0x100090628\nFCVT            S0, D0                                                 ; +0x4c, 0x10009062c\nADRP            X8, #dword_10075BD0C@PAGE                              ; +0x50, 0x100090630\nLDR             S1, [X8,#dword_10075BD0C@PAGEOFF]                      ; +0x54, 0x100090634\nFCMP            S0, S1                                                 ; +0x58, 0x100090638\nB.PL            loc_100090650                                          ; +0x5c, 0x10009063c\nLDRB            W8, [X19,#0x278]                                       ; +0x60, 0x100090640\nTBNZ            W8, #0, loc_100090650                                  ; +0x64, 0x100090644\nFCMP            S0, #0.0                                               ; +0x68, 0x100090648\nB.GE            loc_100090694                                          ; +0x6c, 0x10009064c\nLDRB            W8, [X19,#0x268]                                       ; +0x70, 0x100090650\nCMP             W8, #1                                                 ; +0x74, 0x100090654\nB.NE            loc_100090670                                          ; +0x78, 0x100090658\nLDRB            W8, [X19,#0x269]                                       ; +0x7c, 0x10009065c\nTBNZ            W8, #0, loc_100090694                                  ; +0x80, 0x100090660\nMOV             X0, X19                                                ; +0x84, 0x100090664\nBL              DialogLayer__finishCurrentAnimation                    ; +0x88, 0x100090668\nB               loc_100090694                                          ; +0x8c, 0x10009066c\nLDR             X0, [X19,#0x250]                                       ; +0x90, 0x100090670\nCBZ             X0, loc_10009068C                                      ; +0x94, 0x100090674\nBL              sub_1002E757C                                          ; +0x98, 0x100090678\nCBZ             W0, loc_10009068C                                      ; +0x9c, 0x10009067c\nMOV             X0, X19                                                ; +0xa0, 0x100090680\nBL              DialogLayer__displayNextObject                         ; +0xa4, 0x100090684\nB               loc_100090694                                          ; +0xa8, 0x100090688\nMOV             X0, X19                                                ; +0xac, 0x10009068c\nBL              DialogLayer__onClose                                   ; +0xb0, 0x100090690\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xb4, 0x100090694\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xb8, 0x100090698\nADD             SP, SP, #0x30 ; '0'                                    ; +0xbc, 0x10009069c\nRET                                                                    ; +0xc0, 0x1000906a0", "xrefs": ["DialogLayer::ccTouchBegan @ 0x10009080c", "sub_10009081C @ 0x100090840", "DialogLayer::keyDown @ 0x100090c10"], "is_objc": false, "is_32_bit": false, "is_64_bit": true, "idp_name": "arm", "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"}