{"type": "func", "start": 4298931328, "end": 4298931429, "name": "DialogLayer::updateNavButtonFrame", "pseudocode": "// \n// DialogLayer::updateNavButtonFrame from 0x1003c7c80 to 0x1003c7ce5 (101 bytes)\n// \n// 0 xrefs:\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::updateNavButtonFrame(DialogLayer *a1)\n{\n  cocos2d::CCArray *m_dialogObjects; // rdi\n  const char *v3; // r14\n  cocos2d::CCSprite *m_navButtonSprite; // rbx\n  cocos2d::CCSpriteFrameCache *v5; // rax\n  cocos2d::CCSpriteFrame *v6; // rax\n\n  m_dialogObjects = a1->m_dialogObjects;\n  if ( m_dialogObjects )\n  {\n    v3 = \"GJ_chatBtn_01_001.png\";\n    if ( !(unsigned int)sub_100720070(m_dialogObjects) )\n      v3 = \"GJ_chatBtn_02_001.png\";\n  }\n  else\n  {\n    v3 = \"GJ_chatBtn_02_001.png\";\n  }\n  m_navButtonSprite = a1->m_navButtonSprite;\n  v5 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  v6 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v5, v3);\n  ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_navButtonSprite->setDisplayFrame)(\n    m_navButtonSprite,\n    v6);\n}", "assembly": "; \n; DialogLayer::updateNavButtonFrame from 0x1003c7c80 to 0x1003c7ce5 (101 bytes)\n; \n; 0 xrefs:\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, 0x1003c7c80\nmov     rbp, rsp                                                       ; +0x1, 0x1003c7c81\npush    r14                                                            ; +0x4, 0x1003c7c84\npush    rbx                                                            ; +0x6, 0x1003c7c86\nmov     rbx, rdi                                                       ; +0x7, 0x1003c7c87\nmov     rdi, [rdi+250h]                                                ; +0xa, 0x1003c7c8a\ntest    rdi, rdi                                                       ; +0x11, 0x1003c7c91\njz      short loc_1003C7CB1                                            ; +0x14, 0x1003c7c94\ncall    sub_100720070                                                  ; +0x16, 0x1003c7c96\ntest    eax, eax                                                       ; +0x1b, 0x1003c7c9b\nlea     rax, aGjChatbtn02001; \"GJ_chatBtn_02_001.png\"                  ; +0x1d, 0x1003c7c9d\nlea     r14, aGjChatbtn01001; \"GJ_chatBtn_01_001.png\"                  ; +0x24, 0x1003c7ca4\ncmovz   r14, rax                                                       ; +0x2b, 0x1003c7cab\njmp     short loc_1003C7CB8                                            ; +0x2f, 0x1003c7caf\nlea     r14, aGjChatbtn02001; \"GJ_chatBtn_02_001.png\"                  ; +0x31, 0x1003c7cb1\nmov     rbx, [rbx+260h]                                                ; +0x38, 0x1003c7cb8\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x3f, 0x1003c7cbf\nmov     rdi, rax                                                       ; +0x44, 0x1003c7cc4\nmov     rsi, r14                                                       ; +0x47, 0x1003c7cc7\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x4a, 0x1003c7cca\nmov     rcx, [rbx]                                                     ; +0x4f, 0x1003c7ccf\nmov     rcx, [rcx+478h]                                                ; +0x52, 0x1003c7cd2\nmov     rdi, rbx                                                       ; +0x59, 0x1003c7cd9\nmov     rsi, rax                                                       ; +0x5c, 0x1003c7cdc\npop     rbx                                                            ; +0x5f, 0x1003c7cdf\npop     r14                                                            ; +0x60, 0x1003c7ce0\npop     rbp                                                            ; +0x62, 0x1003c7ce2\njmp     rcx                                                            ; +0x63, 0x1003c7ce3", "xrefs": [], "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"}