{"type": "func", "start": 4295520624, "end": 4295520828, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0x100087170 to 0x10008723c (204 bytes)\n// \n// 3 xrefs:\n// > DialogLayer::ccTouchBegan @ 0x1000873a4\n// > sub_1000873B4 @ 0x1000873d8\n// > DialogLayer::keyDown @ 0x1000877b0\n// \n// This function is hookable on this platform!\n// \n// Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA\n// Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings\n// \n\nvoid __fastcall DialogLayer::handleDialogTap(DialogLayer *a1)\n{\n  float m_animateTime; // s0\n  float v3; // s0\n  cocos2d::CCArray *m_dialogObjects; // x0\n  timeb v5; // [xsp+0h] [xbp-20h] BYREF\n\n  ftime(&v5);\n  m_animateTime = a1->m_animateTime;\n  if ( m_animateTime <= 0.0\n    || (v3 = (double)(v5.millitm + 1000 * (unsigned __int64)(v5.time & 0xFFFFF)) / 1000.0 - m_animateTime, v3 >= 0.2)\n    || a1->m_handleTap\n    || v3 < 0.0 )\n  {\n    if ( a1->m_animating )\n    {\n      if ( !a1->m_skippable )\n        DialogLayer::finishCurrentAnimation(a1);\n    }\n    else\n    {\n      m_dialogObjects = a1->m_dialogObjects;\n      if ( m_dialogObjects && (unsigned int)sub_10024A36C(m_dialogObjects) )\n        DialogLayer::displayNextObject(a1);\n      else\n        DialogLayer::onClose(a1);\n    }\n  }\n}", "assembly": "; \n; DialogLayer::handleDialogTap from 0x100087170 to 0x10008723c (204 bytes)\n; \n; 3 xrefs:\n; > DialogLayer::ccTouchBegan @ 0x1000873a4\n; > sub_1000873B4 @ 0x1000873d8\n; > DialogLayer::keyDown @ 0x1000877b0\n; \n; This function is hookable on this platform!\n; \n; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA\n; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings\n; \n\nSUB             SP, SP, #0x30                                          ; +0x0, 0x100087170\nSTP             X20, X19, [SP,#0x20+var_10]                            ; +0x4, 0x100087174\nSTP             X29, X30, [SP,#0x20+var_s0]                            ; +0x8, 0x100087178\nADD             X29, SP, #0x20                                         ; +0xc, 0x10008717c\nMOV             X19, X0                                                ; +0x10, 0x100087180\nMOV             X0, SP; timeb *                                        ; +0x14, 0x100087184\nBL              _ftime                                                 ; +0x18, 0x100087188\nLDR             S0, [X19,#0x228]                                       ; +0x1c, 0x10008718c\nFCMP            S0, #0.0                                               ; +0x20, 0x100087190\nB.LE            loc_1000871E8                                          ; +0x24, 0x100087194\nLDRH            W8, [SP,#0x20+var_18]                                  ; +0x28, 0x100087198\nLDR             X9, [SP,#0x20+var_20]                                  ; +0x2c, 0x10008719c\nAND             X9, X9, #0xFFFFF                                       ; +0x30, 0x1000871a0\nMOV             W10, #0x3E8                                            ; +0x34, 0x1000871a4\nUMADDL          X8, W9, W10, X8                                        ; +0x38, 0x1000871a8\nUCVTF           D1, X8                                                 ; +0x3c, 0x1000871ac\nADRP            X8, #qword_1006356B0@PAGE                              ; +0x40, 0x1000871b0\nLDR             D2, [X8,#qword_1006356B0@PAGEOFF]                      ; +0x44, 0x1000871b4\nFDIV            D1, D1, D2                                             ; +0x48, 0x1000871b8\nFCVT            D0, S0                                                 ; +0x4c, 0x1000871bc\nFSUB            D0, D1, D0                                             ; +0x50, 0x1000871c0\nFCVT            S0, D0                                                 ; +0x54, 0x1000871c4\nADRP            X8, #dword_10063536C@PAGE                              ; +0x58, 0x1000871c8\nLDR             S1, [X8,#dword_10063536C@PAGEOFF]                      ; +0x5c, 0x1000871cc\nFCMP            S0, S1                                                 ; +0x60, 0x1000871d0\nB.PL            loc_1000871E8                                          ; +0x64, 0x1000871d4\nLDRB            W8, [X19,#0x278]                                       ; +0x68, 0x1000871d8\nTBNZ            W8, #0, loc_1000871E8                                  ; +0x6c, 0x1000871dc\nFCMP            S0, #0.0                                               ; +0x70, 0x1000871e0\nB.GE            loc_10008722C                                          ; +0x74, 0x1000871e4\nLDRB            W8, [X19,#0x268]                                       ; +0x78, 0x1000871e8\nCMP             W8, #1                                                 ; +0x7c, 0x1000871ec\nB.NE            loc_100087208                                          ; +0x80, 0x1000871f0\nLDRB            W8, [X19,#0x269]                                       ; +0x84, 0x1000871f4\nTBNZ            W8, #0, loc_10008722C                                  ; +0x88, 0x1000871f8\nMOV             X0, X19                                                ; +0x8c, 0x1000871fc\nBL              DialogLayer__finishCurrentAnimation                    ; +0x90, 0x100087200\nB               loc_10008722C                                          ; +0x94, 0x100087204\nLDR             X0, [X19,#0x250]                                       ; +0x98, 0x100087208\nCBZ             X0, loc_100087224                                      ; +0x9c, 0x10008720c\nBL              sub_10024A36C                                          ; +0xa0, 0x100087210\nCBZ             W0, loc_100087224                                      ; +0xa4, 0x100087214\nMOV             X0, X19                                                ; +0xa8, 0x100087218\nBL              DialogLayer__displayNextObject                         ; +0xac, 0x10008721c\nB               loc_10008722C                                          ; +0xb0, 0x100087220\nMOV             X0, X19                                                ; +0xb4, 0x100087224\nBL              DialogLayer__onClose                                   ; +0xb8, 0x100087228\nLDP             X29, X30, [SP,#0x20+var_s0]                            ; +0xbc, 0x10008722c\nLDP             X20, X19, [SP,#0x20+var_10]                            ; +0xc0, 0x100087230\nADD             SP, SP, #0x30 ; '0'                                    ; +0xc4, 0x100087234\nRET                                                                    ; +0xc8, 0x100087238", "xrefs": ["DialogLayer::ccTouchBegan @ 0x1000873a4", "sub_1000873B4 @ 0x1000873d8", "DialogLayer::keyDown @ 0x1000877b0"], "is_objc": false, "is_arm32": false, "is_arm64": false, "bida_info": "8.0.0 @ https://github.com/Stazzical/BromaIDA", "bindings_info": "commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings"}