{"type": "func", "start": 5369577072, "end": 5369577374, "name": "DialogLayer::handleDialogTap", "pseudocode": "// \n// DialogLayer::handleDialogTap from 0x1400d3e70 to 0x1400d3f9e (302 bytes)\n// \n// 5 xrefs:\n// > DialogLayer::ccTouchBegan @ 0x1400d40ad\n// > DialogLayer::keyDown @ 0x1400d43e4\n// > <???> @ 0x14066d72c\n// > <???> @ 0x14066d73c\n// > <???> @ 0x1406c8670\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; // xmm6_4\n  float v3; // xmm2_4\n  TextArea *m_textArea; // rax\n  TextArea *v5; // rbx\n  __int64 v6; // rdx\n  __int64 v7; // rdx\n  cocos2d::CCArray *m_dialogObjects; // rcx\n\n  m_animateTime = a1->m_animateTime;\n  v3 = sub_14003CF30() - m_animateTime;\n  if ( m_animateTime <= 0.0 || v3 >= 0.2 || a1->m_handleTap || v3 < 0.0 )\n  {\n    if ( a1->m_animating )\n    {\n      if ( !a1->m_skippable )\n      {\n        m_textArea = a1->m_textArea;\n        a1->m_animating = 0;\n        if ( m_textArea )\n        {\n          m_textArea->m_delegate = nullptr;\n          TextArea::stopAllCharacterActions(a1->m_textArea);\n          v5 = a1->m_textArea;\n          TextArea::stopAllCharacterActions(v5);\n          LOBYTE(v6) = -1;\n          v5->setOpacity(&v5->cocos2d::CCRGBAProtocol, v6);\n          v5->m_allShown = 1;\n        }\n        cocos2d::CCNode::stopAllActions(a1->m_navButtonSprite);\n        LOBYTE(v7) = -1;\n        a1->m_navButtonSprite->setOpacity(&a1->m_navButtonSprite->cocos2d::CCRGBAProtocol, v7);\n        DialogLayer::updateNavButtonFrame(a1);\n      }\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 0x1400d3e70 to 0x1400d3f9e (302 bytes)\n; \n; 5 xrefs:\n; > DialogLayer::ccTouchBegan @ 0x1400d40ad\n; > DialogLayer::keyDown @ 0x1400d43e4\n; > <???> @ 0x14066d72c\n; > <???> @ 0x14066d73c\n; > <???> @ 0x1406c8670\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    rdi                                                            ; +0x0, 0x1400d3e70\nsub     rsp, 30h                                                       ; +0x2, 0x1400d3e72\nmovaps  [rsp+38h+var_18], xmm6                                         ; +0x6, 0x1400d3e76\nmov     rdi, rcx                                                       ; +0xb, 0x1400d3e7b\nmovss   xmm6, dword ptr [rcx+228h]                                     ; +0xe, 0x1400d3e7e\ncall    sub_14003CF30                                                  ; +0x16, 0x1400d3e86\ncvtps2pd xmm1, xmm6                                                    ; +0x1b, 0x1400d3e8b\nxorps   xmm3, xmm3                                                     ; +0x1e, 0x1400d3e8e\nxorps   xmm2, xmm2                                                     ; +0x21, 0x1400d3e91\nsubsd   xmm0, xmm1                                                     ; +0x24, 0x1400d3e94\ncomiss  xmm6, xmm3                                                     ; +0x28, 0x1400d3e98\nmovaps  xmm6, [rsp+38h+var_18]                                         ; +0x2b, 0x1400d3e9b\ncvtsd2ss xmm2, xmm0                                                    ; +0x30, 0x1400d3ea0\njbe     short loc_1400D3EC5                                            ; +0x34, 0x1400d3ea4\nmovss   xmm0, cs:dword_140622A74                                       ; +0x36, 0x1400d3ea6\ncomiss  xmm0, xmm2                                                     ; +0x3e, 0x1400d3eae\njbe     short loc_1400D3EC5                                            ; +0x41, 0x1400d3eb1\ncmp     byte ptr [rdi+278h], 0                                         ; +0x43, 0x1400d3eb3\njnz     short loc_1400D3EC5                                            ; +0x4a, 0x1400d3eba\ncomiss  xmm2, xmm3                                                     ; +0x4c, 0x1400d3ebc\njnb     loc_1400D3F98                                                  ; +0x4f, 0x1400d3ebf\ncmp     byte ptr [rdi+268h], 0                                         ; +0x55, 0x1400d3ec5\njz      loc_1400D3F68                                                  ; +0x5c, 0x1400d3ecc\ncmp     byte ptr [rdi+269h], 0                                         ; +0x62, 0x1400d3ed2\njnz     loc_1400D3F98                                                  ; +0x69, 0x1400d3ed9\nmov     rax, [rdi+240h]                                                ; +0x6f, 0x1400d3edf\nmov     byte ptr [rdi+268h], 0                                         ; +0x76, 0x1400d3ee6\ntest    rax, rax                                                       ; +0x7d, 0x1400d3eed\njz      short loc_1400D3F38                                            ; +0x80, 0x1400d3ef0\nmov     qword ptr [rax+2C0h], 0                                        ; +0x82, 0x1400d3ef2\nmov     rcx, [rdi+240h]                                                ; +0x8d, 0x1400d3efd\nmov     [rsp+38h+arg_0], rbx                                           ; +0x94, 0x1400d3f04\ncall    TextArea__stopAllCharacterActions                              ; +0x99, 0x1400d3f09\nmov     rbx, [rdi+240h]                                                ; +0x9e, 0x1400d3f0e\nmov     rcx, rbx                                                       ; +0xa5, 0x1400d3f15\ncall    TextArea__stopAllCharacterActions                              ; +0xa8, 0x1400d3f18\nlea     rcx, [rbx+140h]                                                ; +0xad, 0x1400d3f1d\nmov     dl, 0FFh                                                       ; +0xb4, 0x1400d3f24\nmov     rax, [rcx]                                                     ; +0xb6, 0x1400d3f26\ncall    qword ptr [rax+28h]                                            ; +0xb9, 0x1400d3f29\nmov     byte ptr [rbx+2A0h], 1                                         ; +0xbc, 0x1400d3f2c\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xc3, 0x1400d3f33\nmov     rcx, [rdi+260h]                                                ; +0xc8, 0x1400d3f38\ncall    cs:?stopAllActions@CCNode@cocos2d@@QEAAXXZ; cocos2d::CCNode::stopAllActions(void) ; +0xcf, 0x1400d3f3f\nmov     rcx, [rdi+260h]                                                ; +0xd5, 0x1400d3f45\nmov     dl, 0FFh                                                       ; +0xdc, 0x1400d3f4c\nadd     rcx, 140h                                                      ; +0xde, 0x1400d3f4e\nmov     rax, [rcx]                                                     ; +0xe5, 0x1400d3f55\ncall    qword ptr [rax+28h]                                            ; +0xe8, 0x1400d3f58\nmov     rcx, rdi                                                       ; +0xeb, 0x1400d3f5b\nadd     rsp, 30h                                                       ; +0xee, 0x1400d3f5e\npop     rdi                                                            ; +0xf2, 0x1400d3f62\njmp     DialogLayer__updateNavButtonFrame                              ; +0xf3, 0x1400d3f63\nmov     rcx, [rdi+250h]                                                ; +0xf8, 0x1400d3f68\ntest    rcx, rcx                                                       ; +0xff, 0x1400d3f6f\njz      short loc_1400D3F8B                                            ; +0x102, 0x1400d3f72\ncall    cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x104, 0x1400d3f74\ntest    eax, eax                                                       ; +0x10a, 0x1400d3f7a\njz      short loc_1400D3F8B                                            ; +0x10c, 0x1400d3f7c\nmov     rcx, rdi                                                       ; +0x10e, 0x1400d3f7e\nadd     rsp, 30h                                                       ; +0x111, 0x1400d3f81\npop     rdi                                                            ; +0x115, 0x1400d3f85\njmp     DialogLayer__displayNextObject                                 ; +0x116, 0x1400d3f86\nmov     rcx, rdi                                                       ; +0x11b, 0x1400d3f8b\nadd     rsp, 30h                                                       ; +0x11e, 0x1400d3f8e\npop     rdi                                                            ; +0x122, 0x1400d3f92\njmp     DialogLayer__onClose                                           ; +0x123, 0x1400d3f93\nadd     rsp, 30h                                                       ; +0x128, 0x1400d3f98\npop     rdi                                                            ; +0x12c, 0x1400d3f9c\nretn                                                                   ; +0x12d, 0x1400d3f9d", "xrefs": ["DialogLayer::ccTouchBegan @ 0x1400d40ad", "DialogLayer::keyDown @ 0x1400d43e4", "<???> @ 0x14066d72c", "<???> @ 0x14066d73c", "<???> @ 0x1406c8670"], "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"}