{"type": "func", "start": 10948176, "end": 10948404, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0xa70e50 to 0xa70f34 (228 bytes)\n// \n// 3 xrefs:\n// > DialogLayer::ccTouchBegan @ 0xa70f70\n// > DialogLayer::keyDown @ 0xa70fc0\n// > <???> @ 0x53a28\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 13:00:23 +0000\n// \n\n__int64 __fastcall DialogLayer::handleDialogTap(DialogLayer *this)\n{\n  double v2; // d2\n  float v3; // s0\n  cocos2d::CCArray *v5; // x0\n  __int64 v6; // [xsp+28h] [xbp+28h] BYREF\n  __int64 v7; // [xsp+30h] [xbp+30h]\n\n  clock_gettime(0, (struct timespec *)&v6);\n  v2 = *((double *)this + 69);\n  v3 = (double)v6 + (double)v7 / 1000000000.0 - v2;\n  if ( v3 >= 0.2 || v2 <= 0.0 || *((unsigned __int8 *)this + 632) >= (unsigned int)(v3 >= 0.0) )\n  {\n    if ( *((_BYTE *)this + 616) )\n    {\n      if ( !*((_BYTE *)this + 617) )\n        DialogLayer::finishCurrentAnimation(this);\n    }\n    else\n    {\n      v5 = *((cocos2d::CCArray **)this + 74);\n      if ( v5 && (unsigned int)cocos2d::CCArray::count(v5) )\n        DialogLayer::displayNextObject((cocos2d::CCArray **)this);\n      else\n        DialogLayer::onClose(this);\n    }\n  }\n  return _stack_chk_guard;\n}", "assembly": "; \n; DialogLayer::handleDialogTap from 0xa70e50 to 0xa70f34 (228 bytes)\n; \n; 3 xrefs:\n; > DialogLayer::ccTouchBegan @ 0xa70f70\n; > DialogLayer::keyDown @ 0xa70fc0\n; > <???> @ 0x53a28\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 13:00:23 +0000\n; \nSTP             X29, X30, [SP,#var_40]!                                ; +0x0, 0xa70e50\nMOV             X29, SP                                                ; +0x4, 0xa70e54\nSTP             X19, X20, [SP,#0x40+var_30]                            ; +0x8, 0xa70e58\nADRP            X19, #__stack_chk_guard_ptr@PAGE                       ; +0xc, 0xa70e5c\nMOV             X20, X0                                                ; +0x10, 0xa70e60\nADD             X1, X29, #0x40+var_18; tp                              ; +0x14, 0xa70e64\nMOV             W0, #0; clock_id                                       ; +0x18, 0xa70e68\nLDR             X2, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x1c, 0xa70e6c\nLDR             X2, [X2]                                               ; +0x20, 0xa70e70\nSTR             X2, [X29,#0x40+var_8]                                  ; +0x24, 0xa70e74\nBL              .clock_gettime                                         ; +0x28, 0xa70e78\nLDR             X1, [X29,#0x40+var_10]                                 ; +0x2c, 0xa70e7c\nLDR             D3, =0x41CDCD6500000000                                ; +0x30, 0xa70e80\nLDR             X0, [X29,#0x40+var_18]                                 ; +0x34, 0xa70e84\nLDR             D2, [X20,#0x228]                                       ; +0x38, 0xa70e88\nSCVTF           D0, X1                                                 ; +0x3c, 0xa70e8c\nSCVTF           D1, X0                                                 ; +0x40, 0xa70e90\nFDIV            D0, D0, D3                                             ; +0x44, 0xa70e94\nFADD            D0, D1, D0                                             ; +0x48, 0xa70e98\nLDR             S1, =0x3E4CCCCD                                        ; +0x4c, 0xa70e9c\nFSUB            D0, D0, D2                                             ; +0x50, 0xa70ea0\nFCVT            S0, D0                                                 ; +0x54, 0xa70ea4\nFCMPE           S0, S1                                                 ; +0x58, 0xa70ea8\nB.PL            loc_A70EEC                                             ; +0x5c, 0xa70eac\nFCMPE           D2, #0.0                                               ; +0x60, 0xa70eb0\nB.LE            loc_A70EEC                                             ; +0x64, 0xa70eb4\nFCMPE           S0, #0.0                                               ; +0x68, 0xa70eb8\nLDRB            W1, [X20,#0x278]                                       ; +0x6c, 0xa70ebc\nCSET            W0, GE                                                 ; +0x70, 0xa70ec0\nCMP             W1, W0                                                 ; +0x74, 0xa70ec4\nB.CS            loc_A70EEC                                             ; +0x78, 0xa70ec8\nLDR             X19, [X19,#__stack_chk_guard_ptr@PAGEOFF]; __stack_chk_guard ; +0x7c, 0xa70ecc\nLDR             X1, [X29,#0x40+var_8]                                  ; +0x80, 0xa70ed0\nLDR             X0, [X19]                                              ; +0x84, 0xa70ed4\nCMP             X1, X0                                                 ; +0x88, 0xa70ed8\nB.NE            loc_A70F30                                             ; +0x8c, 0xa70edc\nLDP             X19, X20, [SP,#0x40+var_30]                            ; +0x90, 0xa70ee0\nLDP             X29, X30, [SP+0x40+var_40],#0x40                       ; +0x94, 0xa70ee4\nRET                                                                    ; +0x98, 0xa70ee8\nLDRB            W0, [X20,#0x268]                                       ; +0x9c, 0xa70eec\nCBNZ            W0, loc_A70F10                                         ; +0xa0, 0xa70ef0\nLDR             X0, [X20,#0x250]; this                                 ; +0xa4, 0xa70ef4\nCBZ             X0, loc_A70F24                                         ; +0xa8, 0xa70ef8\nBL              _ZNK7cocos2d7CCArray5countEv; cocos2d::CCArray::count(void) ; +0xac, 0xa70efc\nCBZ             W0, loc_A70F24                                         ; +0xb0, 0xa70f00\nMOV             X0, X20; this                                          ; +0xb4, 0xa70f04\nBL              _ZN11DialogLayer17displayNextObjectEv; DialogLayer::displayNextObject(void) ; +0xb8, 0xa70f08\nB               loc_A70ECC                                             ; +0xbc, 0xa70f0c\nLDRB            W0, [X20,#0x269]                                       ; +0xc0, 0xa70f10\nCBNZ            W0, loc_A70ECC                                         ; +0xc4, 0xa70f14\nMOV             X0, X20; this                                          ; +0xc8, 0xa70f18\nBL              _ZN11DialogLayer22finishCurrentAnimationEv; DialogLayer::finishCurrentAnimation(void) ; +0xcc, 0xa70f1c\nB               loc_A70ECC                                             ; +0xd0, 0xa70f20\nMOV             X0, X20; this                                          ; +0xd4, 0xa70f24\nBL              _ZN11DialogLayer7onCloseEv; DialogLayer::onClose(void) ; +0xd8, 0xa70f28\nB               loc_A70ECC                                             ; +0xdc, 0xa70f2c\nBL              .__stack_chk_fail                                      ; +0xe0, 0xa70f30", "xrefs": ["DialogLayer::ccTouchBegan @ 0xa70f70", "DialogLayer::keyDown @ 0xa70fc0", "<???> @ 0x53a28"], "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"}