{"type": "func", "start": 4298931968, "end": 4298932149, "name": "DialogLayer::finishCurrentAnimation", "pseudocode": "// \n// DialogLayer::finishCurrentAnimation from 0x1003c7f00 to 0x1003c7fb5 (181 bytes)\n// \n// 1 xrefs:\n// > DialogLayer::handleDialogTap @ 0x1003c7e56\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 __fastcall DialogLayer::finishCurrentAnimation(DialogLayer *a1)\n{\n  TextArea *m_textArea; // rdi\n  cocos2d::CCArray *m_dialogObjects; // rdi\n  const char *v4; // r14\n  cocos2d::CCSprite *m_navButtonSprite; // rbx\n  cocos2d::CCSpriteFrameCache *v6; // rax\n  cocos2d::CCSpriteFrame *v7; // rax\n\n  a1->m_animating = 0;\n  m_textArea = a1->m_textArea;\n  if ( m_textArea )\n  {\n    m_textArea->m_delegate = nullptr;\n    TextArea::stopAllCharacterActions(m_textArea);\n    TextArea::showAll(a1->m_textArea);\n  }\n  cocos2d::CCNode::stopAllActions(a1->m_navButtonSprite);\n  ((void (__fastcall *)(cocos2d::CCSprite *, __int64))a1->m_navButtonSprite->setOpacity)(a1->m_navButtonSprite, 255);\n  m_dialogObjects = a1->m_dialogObjects;\n  if ( m_dialogObjects )\n  {\n    v4 = \"GJ_chatBtn_01_001.png\";\n    if ( !(unsigned int)sub_100720070(m_dialogObjects) )\n      v4 = \"GJ_chatBtn_02_001.png\";\n  }\n  else\n  {\n    v4 = \"GJ_chatBtn_02_001.png\";\n  }\n  m_navButtonSprite = a1->m_navButtonSprite;\n  v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v7 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v4);\n  ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_navButtonSprite->setDisplayFrame)(\n    m_navButtonSprite,\n    v7);\n}", "assembly": "; \n; DialogLayer::finishCurrentAnimation from 0x1003c7f00 to 0x1003c7fb5 (181 bytes)\n; \n; 1 xrefs:\n; > DialogLayer::handleDialogTap @ 0x1003c7e56\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    rbp                                                            ; +0x0, 0x1003c7f00\nmov     rbp, rsp                                                       ; +0x1, 0x1003c7f01\npush    r14                                                            ; +0x4, 0x1003c7f04\npush    rbx                                                            ; +0x6, 0x1003c7f06\nmov     rbx, rdi                                                       ; +0x7, 0x1003c7f07\nmov     byte ptr [rdi+268h], 0                                         ; +0xa, 0x1003c7f0a\nmov     rdi, [rdi+240h]                                                ; +0x11, 0x1003c7f11\ntest    rdi, rdi                                                       ; +0x18, 0x1003c7f18\njz      short loc_1003C7F39                                            ; +0x1b, 0x1003c7f1b\nmov     qword ptr [rdi+2B0h], 0                                        ; +0x1d, 0x1003c7f1d\ncall    TextArea__stopAllCharacterActions                              ; +0x28, 0x1003c7f28\nmov     rdi, [rbx+240h]                                                ; +0x2d, 0x1003c7f2d\ncall    TextArea__showAll                                              ; +0x34, 0x1003c7f34\nmov     rdi, [rbx+260h]                                                ; +0x39, 0x1003c7f39\ncall    cocos2d__CCNode__stopAllActions                                ; +0x40, 0x1003c7f40\nmov     rdi, [rbx+260h]                                                ; +0x45, 0x1003c7f45\nmov     rax, [rdi]                                                     ; +0x4c, 0x1003c7f4c\nmov     esi, 0FFh                                                      ; +0x4f, 0x1003c7f4f\ncall    qword ptr [rax+380h]                                           ; +0x54, 0x1003c7f54\nmov     rdi, [rbx+250h]                                                ; +0x5a, 0x1003c7f5a\ntest    rdi, rdi                                                       ; +0x61, 0x1003c7f61\njz      short loc_1003C7F81                                            ; +0x64, 0x1003c7f64\ncall    sub_100720070                                                  ; +0x66, 0x1003c7f66\ntest    eax, eax                                                       ; +0x6b, 0x1003c7f6b\nlea     rax, aGjChatbtn02001; \"GJ_chatBtn_02_001.png\"                  ; +0x6d, 0x1003c7f6d\nlea     r14, aGjChatbtn01001; \"GJ_chatBtn_01_001.png\"                  ; +0x74, 0x1003c7f74\ncmovz   r14, rax                                                       ; +0x7b, 0x1003c7f7b\njmp     short loc_1003C7F88                                            ; +0x7f, 0x1003c7f7f\nlea     r14, aGjChatbtn02001; \"GJ_chatBtn_02_001.png\"                  ; +0x81, 0x1003c7f81\nmov     rbx, [rbx+260h]                                                ; +0x88, 0x1003c7f88\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x8f, 0x1003c7f8f\nmov     rdi, rax                                                       ; +0x94, 0x1003c7f94\nmov     rsi, r14                                                       ; +0x97, 0x1003c7f97\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x9a, 0x1003c7f9a\nmov     rcx, [rbx]                                                     ; +0x9f, 0x1003c7f9f\nmov     rcx, [rcx+478h]                                                ; +0xa2, 0x1003c7fa2\nmov     rdi, rbx                                                       ; +0xa9, 0x1003c7fa9\nmov     rsi, rax                                                       ; +0xac, 0x1003c7fac\npop     rbx                                                            ; +0xaf, 0x1003c7faf\npop     r14                                                            ; +0xb0, 0x1003c7fb0\npop     rbp                                                            ; +0xb2, 0x1003c7fb2\njmp     rcx                                                            ; +0xb3, 0x1003c7fb3", "xrefs": ["DialogLayer::handleDialogTap @ 0x1003c7e56"], "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"}