{"type": "func", "start": 4298930144, "end": 4298930310, "name": "DialogLayer::displayNextObject", "pseudocode": "// \n// DialogLayer::displayNextObject from 0x1003c77e0 to 0x1003c7886 (166 bytes)\n// \n// 2 xrefs:\n// > DialogLayer::init @ 0x1003c7727\n// > DialogLayer::handleDialogTap @ 0x1003c7e7a\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::displayNextObject(DialogLayer *a1)\n{\n  DialogObject *v2; // rax\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  if ( (unsigned int)sub_100720070(a1->m_dialogObjects) )\n  {\n    v2 = (DialogObject *)sub_1007200C0(a1->m_dialogObjects, 0);\n    DialogLayer::displayDialogObject(a1, v2);\n    sub_100720230(a1->m_dialogObjects, 0, 1);\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  }\n}", "assembly": "; \n; DialogLayer::displayNextObject from 0x1003c77e0 to 0x1003c7886 (166 bytes)\n; \n; 2 xrefs:\n; > DialogLayer::init @ 0x1003c7727\n; > DialogLayer::handleDialogTap @ 0x1003c7e7a\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, 0x1003c77e0\nmov     rbp, rsp                                                       ; +0x1, 0x1003c77e1\npush    r14                                                            ; +0x4, 0x1003c77e4\npush    rbx                                                            ; +0x6, 0x1003c77e6\nmov     rbx, rdi                                                       ; +0x7, 0x1003c77e7\nmov     rdi, [rdi+250h]                                                ; +0xa, 0x1003c77ea\ncall    sub_100720070                                                  ; +0x11, 0x1003c77f1\ntest    eax, eax                                                       ; +0x16, 0x1003c77f6\njz      short loc_1003C784D                                            ; +0x18, 0x1003c77f8\nmov     rdi, [rbx+250h]                                                ; +0x1a, 0x1003c77fa\nxor     esi, esi                                                       ; +0x21, 0x1003c7801\ncall    sub_1007200C0                                                  ; +0x23, 0x1003c7803\nmov     rdi, rbx                                                       ; +0x28, 0x1003c7808\nmov     rsi, rax                                                       ; +0x2b, 0x1003c780b\ncall    DialogLayer__displayDialogObject                               ; +0x2e, 0x1003c780e\nmov     rdi, [rbx+250h]                                                ; +0x33, 0x1003c7813\nxor     esi, esi                                                       ; +0x3a, 0x1003c781a\nmov     edx, 1                                                         ; +0x3c, 0x1003c781c\ncall    sub_100720230                                                  ; +0x41, 0x1003c7821\nmov     rdi, [rbx+250h]                                                ; +0x46, 0x1003c7826\ntest    rdi, rdi                                                       ; +0x4d, 0x1003c782d\njz      short loc_1003C7852                                            ; +0x50, 0x1003c7830\ncall    sub_100720070                                                  ; +0x52, 0x1003c7832\ntest    eax, eax                                                       ; +0x57, 0x1003c7837\nlea     rax, aGjChatbtn02001; \"GJ_chatBtn_02_001.png\"                  ; +0x59, 0x1003c7839\nlea     r14, aGjChatbtn01001; \"GJ_chatBtn_01_001.png\"                  ; +0x60, 0x1003c7840\ncmovz   r14, rax                                                       ; +0x67, 0x1003c7847\njmp     short loc_1003C7859                                            ; +0x6b, 0x1003c784b\npop     rbx                                                            ; +0x6d, 0x1003c784d\npop     r14                                                            ; +0x6e, 0x1003c784e\npop     rbp                                                            ; +0x70, 0x1003c7850\nretn                                                                   ; +0x71, 0x1003c7851\nlea     r14, aGjChatbtn02001; \"GJ_chatBtn_02_001.png\"                  ; +0x72, 0x1003c7852\nmov     rbx, [rbx+260h]                                                ; +0x79, 0x1003c7859\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x80, 0x1003c7860\nmov     rdi, rax                                                       ; +0x85, 0x1003c7865\nmov     rsi, r14                                                       ; +0x88, 0x1003c7868\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x8b, 0x1003c786b\nmov     rcx, [rbx]                                                     ; +0x90, 0x1003c7870\nmov     rcx, [rcx+478h]                                                ; +0x93, 0x1003c7873\nmov     rdi, rbx                                                       ; +0x9a, 0x1003c787a\nmov     rsi, rax                                                       ; +0x9d, 0x1003c787d\npop     rbx                                                            ; +0xa0, 0x1003c7880\npop     r14                                                            ; +0xa1, 0x1003c7881\npop     rbp                                                            ; +0xa3, 0x1003c7883\njmp     rcx                                                            ; +0xa4, 0x1003c7884", "xrefs": ["DialogLayer::init @ 0x1003c7727", "DialogLayer::handleDialogTap @ 0x1003c7e7a"], "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"}