{"type": "func", "start": 9532336, "end": 9532568, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0x9173b0 to 0x917498 (232 bytes)\n// \n// 3 xrefs:\n// > DialogLayer::ccTouchBegan @ 0x9174d0\n// > DialogLayer::keyDown @ 0x917520\n// > <???> @ 0x39708\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 DialogLayer::handleDialogTap(DialogLayer *a1)\n{\n  float m_animateTime; // s2\n  float v3; // s0\n  cocos2d::CCArray *m_dialogObjects; // x0\n  __int64 v5; // [xsp+28h] [xbp+28h] BYREF\n  __int64 v6; // [xsp+30h] [xbp+30h]\n\n  clock_gettime(0, (struct timespec *)&v5);\n  m_animateTime = a1->m_animateTime;\n  v3 = (double)v5 + (double)v6 / 1000000000.0 - m_animateTime;\n  if ( v3 >= 0.2 || m_animateTime <= 0.0 || a1->m_handleTap >= (unsigned int)(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)cocos2d::CCArray::count(m_dialogObjects) )\n        DialogLayer::displayNextObject(a1);\n      else\n        DialogLayer::onClose(a1);\n    }\n  }\n}", "assembly": "; \n; DialogLayer::handleDialogTap from 0x9173b0 to 0x917498 (232 bytes)\n; \n; 3 xrefs:\n; > DialogLayer::ccTouchBegan @ 0x9174d0\n; > DialogLayer::keyDown @ 0x917520\n; > <???> @ 0x39708\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\nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0x9173b0\nMOV             X29, SP                                                ; +0x4, 0x9173b4\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0x9173b8\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0x9173bc\nMOV             X20, X0                                                ; +0x10, 0x9173c0\nADD             X1, X29, #0x40+var_18; tp                              ; +0x14, 0x9173c4\nMOV             W0, #0; clock_id                                       ; +0x18, 0x9173c8\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0x9173cc\nLDR             X2, [X2]                                               ; +0x20, 0x9173d0\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x24, 0x9173d4\nBL              .clock_gettime                                         ; +0x28, 0x9173d8\nLDR             X1, [X29,#0x40+var_10]                                 ; +0x2c, 0x9173dc\nLDR             D4, =0x41CDCD6500000000                                ; +0x30, 0x9173e0\nLDR             X0, [X29,#0x40+var_18]                                 ; +0x34, 0x9173e4\nLDR             S2, [X20,#0x228]                                       ; +0x38, 0x9173e8\nSCVTF           D0, X1                                                 ; +0x3c, 0x9173ec\nSCVTF           D1, X0                                                 ; +0x40, 0x9173f0\nFCVT            D3, S2                                                 ; +0x44, 0x9173f4\nFDIV            D0, D0, D4                                             ; +0x48, 0x9173f8\nFADD            D0, D1, D0                                             ; +0x4c, 0x9173fc\nLDR             S1, =0x3E4CCCCD                                        ; +0x50, 0x917400\nFSUB            D0, D0, D3                                             ; +0x54, 0x917404\nFCVT            S0, D0                                                 ; +0x58, 0x917408\nFCMPE           S0, S1                                                 ; +0x5c, 0x91740c\nB.PL            loc_917450                                             ; +0x60, 0x917410\nFCMPE           S2, #0.0                                               ; +0x64, 0x917414\nB.LE            loc_917450                                             ; +0x68, 0x917418\nFCMPE           S0, #0.0                                               ; +0x6c, 0x91741c\nLDRB            W1, [X20,#0x278]                                       ; +0x70, 0x917420\nCSET            W0, GE                                                 ; +0x74, 0x917424\nCMP             W1, W0                                                 ; +0x78, 0x917428\nB.CS            loc_917450                                             ; +0x7c, 0x91742c\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x80, 0x917430\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x84, 0x917434\nLDR             X0, [X19]                                              ; +0x88, 0x917438\nCMP             X1, X0                                                 ; +0x8c, 0x91743c\nB.NE            loc_917494                                             ; +0x90, 0x917440\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x94, 0x917444\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x98, 0x917448\nRET                                                                    ; +0x9c, 0x91744c\nLDRB            W0, [X20,#0x268]                                       ; +0xa0, 0x917450\nCBNZ            W0, loc_917474                                         ; +0xa4, 0x917454\nLDR             X0, [X20,#0x250]; this                                 ; +0xa8, 0x917458\nCBZ             X0, loc_917488                                         ; +0xac, 0x91745c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xb0, 0x917460\nCBZ             W0, loc_917488                                         ; +0xb4, 0x917464\nMOV             X0, X20; this                                          ; +0xb8, 0x917468\nBL              _ZN11DialogLayer17displayNextObjectEv; DialogLayer::displayNextObject(void) ; +0xbc, 0x91746c\nB               loc_917430                                             ; +0xc0, 0x917470\nLDRB            W0, [X20,#0x269]                                       ; +0xc4, 0x917474\nCBNZ            W0, loc_917430                                         ; +0xc8, 0x917478\nMOV             X0, X20; this                                          ; +0xcc, 0x91747c\nBL              _ZN11DialogLayer22finishCurrentAnimationEv; DialogLayer::finishCurrentAnimation(void) ; +0xd0, 0x917480\nB               loc_917430                                             ; +0xd4, 0x917484\nMOV             X0, X20; this                                          ; +0xd8, 0x917488\nBL              _ZN11DialogLayer7onCloseEv; DialogLayer::onClose(void) ; +0xdc, 0x91748c\nB               loc_917430                                             ; +0xe0, 0x917490\nBL              .__stack_chk_fail                                      ; +0xe4, 0x917494", "xrefs": ["DialogLayer::ccTouchBegan @ 0x9174d0", "DialogLayer::keyDown @ 0x917520", "<???> @ 0x39708"], "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"}