{"type": "func", "start": 4299993936, "end": 4299994119, "name": "GJUINode::updateButtonFrames", "pseudocode": "// \n// GJUINode::updateButtonFrames from 0x1004cb350 to 0x1004cb407 (183 bytes)\n// \n// 1 xrefs:\n// > UIOptionsLayer::valueDidChange @ 0x1002b4965\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 GJUINode::updateButtonFrames(GJUINode *a1)\n{\n  cocos2d::CCSprite *m_firstSprite; // r14\n  cocos2d::CCSpriteFrameCache *v2; // rax\n  const char *v3; // rsi\n  cocos2d::CCSpriteFrame *v4; // rax\n  cocos2d::CCSprite *m_secondSprite; // r14\n  cocos2d::CCSpriteFrameCache *v6; // rax\n  const char *v7; // rsi\n  cocos2d::CCSpriteFrame *v8; // rax\n\n  m_firstSprite = a1->m_firstSprite;\n  v2 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n  if ( a1->m_modeB )\n  {\n    v3 = \"PBtn_Arrow_001.png\";\n  }\n  else if ( a1->m_oneButton )\n  {\n    v3 = \"PBtn_Jump_001.png\";\n  }\n  else\n  {\n    v3 = \"PBtn_Move_001.png\";\n    if ( a1->m_split )\n      v3 = \"PBtn_Jump_001.png\";\n  }\n  v4 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v2, v3);\n  ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_firstSprite->setDisplayFrame)(\n    m_firstSprite,\n    v4);\n  m_secondSprite = a1->m_secondSprite;\n  if ( m_secondSprite )\n  {\n    v6 = cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache();\n    v7 = \"PBtn_Move_001.png\";\n    if ( a1->m_split )\n      v7 = \"PBtn_Jump_001.png\";\n    v8 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v6, v7);\n    ((void (__fastcall *)(cocos2d::CCSprite *, cocos2d::CCSpriteFrame *))m_secondSprite->setDisplayFrame)(\n      m_secondSprite,\n      v8);\n  }\n}", "assembly": "; \n; GJUINode::updateButtonFrames from 0x1004cb350 to 0x1004cb407 (183 bytes)\n; \n; 1 xrefs:\n; > UIOptionsLayer::valueDidChange @ 0x1002b4965\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, 0x1004cb350\nmov     rbp, rsp                                                       ; +0x1, 0x1004cb351\npush    r14                                                            ; +0x4, 0x1004cb354\npush    rbx                                                            ; +0x6, 0x1004cb356\nmov     rbx, rdi                                                       ; +0x7, 0x1004cb357\nmov     r14, [rdi+140h]                                                ; +0xa, 0x1004cb35a\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x11, 0x1004cb361\ncmp     byte ptr [rbx+17Dh], 0                                         ; +0x16, 0x1004cb366\njz      short loc_1004CB378                                            ; +0x1d, 0x1004cb36d\nlea     rsi, aPbtnArrow001Pn; \"PBtn_Arrow_001.png\"                     ; +0x1f, 0x1004cb36f\njmp     short loc_1004CB3A3                                            ; +0x26, 0x1004cb376\ncmp     byte ptr [rbx+182h], 0                                         ; +0x28, 0x1004cb378\njz      short loc_1004CB38A                                            ; +0x2f, 0x1004cb37f\nlea     rsi, aPbtnJump001Png; \"PBtn_Jump_001.png\"                      ; +0x31, 0x1004cb381\njmp     short loc_1004CB3A3                                            ; +0x38, 0x1004cb388\nlea     rcx, aPbtnJump001Png; \"PBtn_Jump_001.png\"                      ; +0x3a, 0x1004cb38a\nlea     rsi, aPbtnMove001Png; \"PBtn_Move_001.png\"                      ; +0x41, 0x1004cb391\ncmp     byte ptr [rbx+183h], 0                                         ; +0x48, 0x1004cb398\ncmovnz  rsi, rcx                                                       ; +0x4f, 0x1004cb39f\nmov     rdi, rax                                                       ; +0x53, 0x1004cb3a3\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x56, 0x1004cb3a6\nmov     rcx, [r14]                                                     ; +0x5b, 0x1004cb3ab\nmov     rdi, r14                                                       ; +0x5e, 0x1004cb3ae\nmov     rsi, rax                                                       ; +0x61, 0x1004cb3b1\ncall    qword ptr [rcx+478h]                                           ; +0x64, 0x1004cb3b4\nmov     r14, [rbx+148h]                                                ; +0x6a, 0x1004cb3ba\ntest    r14, r14                                                       ; +0x71, 0x1004cb3c1\njz      short loc_1004CB402                                            ; +0x74, 0x1004cb3c4\ncall    cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache            ; +0x76, 0x1004cb3c6\nlea     rcx, aPbtnJump001Png; \"PBtn_Jump_001.png\"                      ; +0x7b, 0x1004cb3cb\nlea     rsi, aPbtnMove001Png; \"PBtn_Move_001.png\"                      ; +0x82, 0x1004cb3d2\ncmp     byte ptr [rbx+183h], 0                                         ; +0x89, 0x1004cb3d9\ncmovnz  rsi, rcx                                                       ; +0x90, 0x1004cb3e0\nmov     rdi, rax                                                       ; +0x94, 0x1004cb3e4\ncall    cocos2d__CCSpriteFrameCache__spriteFrameByName                 ; +0x97, 0x1004cb3e7\nmov     rcx, [r14]                                                     ; +0x9c, 0x1004cb3ec\nmov     rcx, [rcx+478h]                                                ; +0x9f, 0x1004cb3ef\nmov     rdi, r14                                                       ; +0xa6, 0x1004cb3f6\nmov     rsi, rax                                                       ; +0xa9, 0x1004cb3f9\npop     rbx                                                            ; +0xac, 0x1004cb3fc\npop     r14                                                            ; +0xad, 0x1004cb3fd\npop     rbp                                                            ; +0xaf, 0x1004cb3ff\njmp     rcx                                                            ; +0xb0, 0x1004cb400\npop     rbx                                                            ; +0xb2, 0x1004cb402\npop     r14                                                            ; +0xb3, 0x1004cb403\npop     rbp                                                            ; +0xb5, 0x1004cb405\nretn                                                                   ; +0xb6, 0x1004cb406", "xrefs": ["UIOptionsLayer::valueDidChange @ 0x1002b4965"], "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"}