{"type": "func", "start": 5072408, "end": 5072578, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0x4d6618 to 0x4d66c2 (170 bytes)\n// \n// 2 xrefs:\n// > DialogLayer::ccTouchBegan @ 0x4d66e8\n// > DialogLayer::keyDown @ 0x4d671e\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; // s14\n  float v3; // s14\n  cocos2d::CCArray *m_dialogObjects; // r0\n  int v5; // [sp+4h] [bp-10h] BYREF\n  int v6; // [sp+8h] [bp-Ch]\n\n  clock_gettime(0, (struct timespec *)&v5);\n  m_animateTime = a1->m_animateTime;\n  if ( m_animateTime <= 0.0\n    || (v3 = (double)v5 + (double)v6 / 1000000000.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 && cocos2d::CCArray::count(m_dialogObjects) )\n        DialogLayer::displayNextObject(a1);\n      else\n        DialogLayer::onClose(a1);\n    }\n  }\n}", "assembly": "; \n; DialogLayer::handleDialogTap from 0x4d6618 to 0x4d66c2 (170 bytes)\n; \n; 2 xrefs:\n; > DialogLayer::ccTouchBegan @ 0x4d66e8\n; > DialogLayer::keyDown @ 0x4d671e\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\nPUSH            {R4,R5,LR}                                             ; +0x0, 0x4d6618\nSUB             SP, SP, #0x14                                          ; +0x2, 0x4d661a\nLDR             R5, =(__stack_chk_guard_ptr - 0x4D6628)                ; +0x4, 0x4d661c\nMOV             R4, R0                                                 ; +0x6, 0x4d661e\nADD             R1, SP, #0x14+var_10; tp                               ; +0x8, 0x4d6620\nMOVS            R0, #0; clock_id                                       ; +0xa, 0x4d6622\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x4d6624\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x4d6626\nLDR             R3, [R5]                                               ; +0x10, 0x4d6628\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x4d662a\nBLX             clock_gettime                                          ; +0x14, 0x4d662c\nVLDR            S14, [R4,#0x1BC]                                       ; +0x18, 0x4d6630\nVLDR            S10, [SP,#0x14+var_10]                                 ; +0x1c, 0x4d6634\nVCMPE.F32       S14, #0.0                                              ; +0x20, 0x4d6638\nVLDR            S12, [SP,#0x14+var_C]                                  ; +0x24, 0x4d663c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x28, 0x4d6640\nBLE             loc_4D6684                                             ; +0x2c, 0x4d6644\nVCVT.F64.S32    D6, S12                                                ; +0x2e, 0x4d6646\nVLDR            D4, =1.0e9                                             ; +0x32, 0x4d664a\nVDIV.F64        D6, D6, D4                                             ; +0x36, 0x4d664e\nVCVT.F64.S32    D5, S10                                                ; +0x3a, 0x4d6652\nVADD.F64        D6, D5, D6                                             ; +0x3e, 0x4d6656\nVCVT.F64.F32    D7, S14                                                ; +0x42, 0x4d665a\nVSUB.F64        D7, D6, D7                                             ; +0x46, 0x4d665e\nVCVT.F32.F64    S14, D7                                                ; +0x4a, 0x4d6662\nVLDR            S15, =0.2                                              ; +0x4e, 0x4d6666\nVCMPE.F32       S14, S15                                               ; +0x52, 0x4d666a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x56, 0x4d666e\nBPL             loc_4D6684                                             ; +0x5a, 0x4d6672\nLDRB.W          R3, [R4,#0x1E4]                                        ; +0x5c, 0x4d6674\nCBNZ            R3, loc_4D6684                                         ; +0x60, 0x4d6678\nVCMPE.F32       S14, #0.0                                              ; +0x62, 0x4d667a\nVMRS            APSR_nzcv, FPSCR                                       ; +0x66, 0x4d667e\nBGE             loc_4D66B2                                             ; +0x6a, 0x4d6682\nLDRB.W          R3, [R4,#0x1DC]                                        ; +0x6c, 0x4d6684\nCBZ             R3, loc_4D6698                                         ; +0x70, 0x4d6688\nLDRB.W          R3, [R4,#0x1DD]                                        ; +0x72, 0x4d668a\nCBNZ            R3, loc_4D66B2                                         ; +0x76, 0x4d668e\nMOV             R0, R4; this                                           ; +0x78, 0x4d6690\nBL              _ZN11DialogLayer22finishCurrentAnimationEv; DialogLayer::finishCurrentAnimation(void) ; +0x7a, 0x4d6692\nB               loc_4D66B2                                             ; +0x7e, 0x4d6696\nLDR.W           R0, [R4,#0x1D0]; this                                  ; +0x80, 0x4d6698\nCBZ             R0, loc_4D66A4                                         ; +0x84, 0x4d669c\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x86, 0x4d669e\nCBNZ            R0, loc_4D66AC                                         ; +0x8a, 0x4d66a2\nMOV             R0, R4; this                                           ; +0x8c, 0x4d66a4\nBL              _ZN11DialogLayer7onCloseEv; DialogLayer::onClose(void) ; +0x8e, 0x4d66a6\nB               loc_4D66B2                                             ; +0x92, 0x4d66aa\nMOV             R0, R4; this                                           ; +0x94, 0x4d66ac\nBL              _ZN11DialogLayer17displayNextObjectEv; DialogLayer::displayNextObject(void) ; +0x96, 0x4d66ae\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x9a, 0x4d66b2\nLDR             R3, [R5]                                               ; +0x9c, 0x4d66b4\nCMP             R2, R3                                                 ; +0x9e, 0x4d66b6\nBEQ             loc_4D66BE                                             ; +0xa0, 0x4d66b8\nBLX             __stack_chk_fail                                       ; +0xa2, 0x4d66ba\nADD             SP, SP, #0x14                                          ; +0xa6, 0x4d66be\nPOP             {R4,R5,PC}                                             ; +0xa8, 0x4d66c0", "xrefs": ["DialogLayer::ccTouchBegan @ 0x4d66e8", "DialogLayer::keyDown @ 0x4d671e"], "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"}