{"type": "func", "start": 6330872, "end": 6331038, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0x6099f8 to 0x609a9e (166 bytes)\n// \n// 2 xrefs:\n// > DialogLayer::ccTouchBegan @ 0x609ac0\n// > DialogLayer::keyDown @ 0x609af6\n// \n// This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:47 +0000\n// \n\nint __fastcall DialogLayer::handleDialogTap(DialogLayer *this)\n{\n  int result; // r0\n  double v3; // d5\n  float v4; // s14\n  cocos2d::CCArray *v5; // r0\n  int v6; // [sp+4h] [bp-10h] BYREF\n  int v7; // [sp+8h] [bp-Ch]\n\n  result = clock_gettime(0, (struct timespec *)&v6);\n  v3 = *((double *)this + 56);\n  if ( v3 <= 0.0 || (v4 = (double)v6 + (double)v7 / 1000000000.0 - v3, v4 >= 0.2) || *((_BYTE *)this + 492) || v4 < 0.0 )\n  {\n    if ( *((_BYTE *)this + 484) )\n    {\n      if ( !*((_BYTE *)this + 485) )\n        return DialogLayer::finishCurrentAnimation(this);\n    }\n    else\n    {\n      v5 = *((cocos2d::CCArray **)this + 118);\n      if ( v5 && cocos2d::CCArray::count(v5) )\n        return DialogLayer::displayNextObject((cocos2d::CCArray **)this);\n      else\n        return DialogLayer::onClose(this);\n    }\n  }\n  return result;\n}", "assembly": "; \n; DialogLayer::handleDialogTap from 0x6099f8 to 0x609a9e (166 bytes)\n; \n; 2 xrefs:\n; > DialogLayer::ccTouchBegan @ 0x609ac0\n; > DialogLayer::keyDown @ 0x609af6\n; \n; This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False!\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 11:54:47 +0000\n; \nPUSH            {R4,R5,LR}                                             ; +0x0, 0x6099f8\nSUB             SP, SP, #0x14                                          ; +0x2, 0x6099fa\nLDR             R5, =(__stack_chk_guard_ptr - 0x609A08)                ; +0x4, 0x6099fc\nMOV             R4, R0                                                 ; +0x6, 0x6099fe\nADD             R1, SP, #0x14+var_10; tp                               ; +0x8, 0x609a00\nMOVS            R0, #0; clock_id                                       ; +0xa, 0x609a02\nADD             R5, PC; __stack_chk_guard_ptr                          ; +0xc, 0x609a04\nLDR             R5, [R5]; __stack_chk_guard                            ; +0xe, 0x609a06\nLDR             R3, [R5]                                               ; +0x10, 0x609a08\nSTR             R3, [SP,#0x14+var_8]                                   ; +0x12, 0x609a0a\nBLX             clock_gettime                                          ; +0x14, 0x609a0c\nVLDR            D5, [R4,#0x1C0]                                        ; +0x18, 0x609a10\nVLDR            S12, [SP,#0x14+var_10]                                 ; +0x1c, 0x609a14\nVCMPE.F64       D5, #0.0                                               ; +0x20, 0x609a18\nVLDR            S14, [SP,#0x14+var_C]                                  ; +0x24, 0x609a1c\nVMRS            APSR_nzcv, FPSCR                                       ; +0x28, 0x609a20\nBLE             loc_609A60                                             ; +0x2c, 0x609a24\nVCVT.F64.S32    D7, S14                                                ; +0x2e, 0x609a26\nVLDR            D4, =1.0e9                                             ; +0x32, 0x609a2a\nVDIV.F64        D7, D7, D4                                             ; +0x36, 0x609a2e\nVCVT.F64.S32    D6, S12                                                ; +0x3a, 0x609a32\nVADD.F64        D7, D6, D7                                             ; +0x3e, 0x609a36\nVSUB.F64        D7, D7, D5                                             ; +0x42, 0x609a3a\nVCVT.F32.F64    S14, D7                                                ; +0x46, 0x609a3e\nVLDR            S15, =0.2                                              ; +0x4a, 0x609a42\nVCMPE.F32       S14, S15                                               ; +0x4e, 0x609a46\nVMRS            APSR_nzcv, FPSCR                                       ; +0x52, 0x609a4a\nBPL             loc_609A60                                             ; +0x56, 0x609a4e\nLDRB.W          R3, [R4,#0x1EC]                                        ; +0x58, 0x609a50\nCBNZ            R3, loc_609A60                                         ; +0x5c, 0x609a54\nVCMPE.F32       S14, #0.0                                              ; +0x5e, 0x609a56\nVMRS            APSR_nzcv, FPSCR                                       ; +0x62, 0x609a5a\nBGE             loc_609A8E                                             ; +0x66, 0x609a5e\nLDRB.W          R3, [R4,#0x1E4]                                        ; +0x68, 0x609a60\nCBZ             R3, loc_609A74                                         ; +0x6c, 0x609a64\nLDRB.W          R3, [R4,#0x1E5]                                        ; +0x6e, 0x609a66\nCBNZ            R3, loc_609A8E                                         ; +0x72, 0x609a6a\nMOV             R0, R4; this                                           ; +0x74, 0x609a6c\nBL              _ZN11DialogLayer22finishCurrentAnimationEv; DialogLayer::finishCurrentAnimation(void) ; +0x76, 0x609a6e\nB               loc_609A8E                                             ; +0x7a, 0x609a72\nLDR.W           R0, [R4,#0x1D8]; this                                  ; +0x7c, 0x609a74\nCBZ             R0, loc_609A80                                         ; +0x80, 0x609a78\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0x82, 0x609a7a\nCBNZ            R0, loc_609A88                                         ; +0x86, 0x609a7e\nMOV             R0, R4; this                                           ; +0x88, 0x609a80\nBL              _ZN11DialogLayer7onCloseEv; DialogLayer::onClose(void) ; +0x8a, 0x609a82\nB               loc_609A8E                                             ; +0x8e, 0x609a86\nMOV             R0, R4; this                                           ; +0x90, 0x609a88\nBL              _ZN11DialogLayer17displayNextObjectEv; DialogLayer::displayNextObject(void) ; +0x92, 0x609a8a\nLDR             R2, [SP,#0x14+var_8]                                   ; +0x96, 0x609a8e\nLDR             R3, [R5]                                               ; +0x98, 0x609a90\nCMP             R2, R3                                                 ; +0x9a, 0x609a92\nBEQ             loc_609A9A                                             ; +0x9c, 0x609a94\nBLX             __stack_chk_fail                                       ; +0x9e, 0x609a96\nADD             SP, SP, #0x14                                          ; +0xa2, 0x609a9a\nPOP             {R4,R5,PC}                                             ; +0xa4, 0x609a9c", "xrefs": ["DialogLayer::ccTouchBegan @ 0x609ac0", "DialogLayer::keyDown @ 0x609af6"], "is_objc": false, "is_32_bit": true, "is_64_bit": false, "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"}