{"type": "func", "start": 5371989872, "end": 5371990068, "name": "LevelSettingsLayer::updateGameplayModeButtons", "pseudocode": "// \n// LevelSettingsLayer::updateGameplayModeButtons from 0x140320f70 to 0x140321034 (196 bytes)\n// \n// 3 xrefs:\n// > LevelSettingsLayer::init @ 0x14031fb40\n// > LevelSettingsLayer::onGameplayMode @ 0x140320f5d\n// > <???> @ 0x1406d4be0\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 LevelSettingsLayer::updateGameplayModeButtons(LevelSettingsLayer *a1)\n{\n  ButtonSprite *v2; // rdi\n  ButtonSprite *v3; // rbp\n  bool m_platformerMode; // si\n  const char *v5; // rbx\n  const char *v6; // rdx\n  _BOOL8 v7; // rdx\n\n  v2 = (ButtonSprite *)a1->m_classicButton->getNormalImage(a1->m_classicButton);\n  v3 = (ButtonSprite *)a1->m_platformerButton->getNormalImage(a1->m_platformerButton);\n  m_platformerMode = a1->m_settingsObject->m_platformerMode;\n  a1->m_classicButton->setEnabled(a1->m_classicButton, m_platformerMode);\n  v5 = \"GJ_button_01.png\";\n  v6 = \"GJ_button_01.png\";\n  if ( m_platformerMode )\n    v6 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v2, v6);\n  LOBYTE(v7) = !m_platformerMode;\n  a1->m_platformerButton->setEnabled(a1->m_platformerButton, v7);\n  if ( !m_platformerMode )\n    v5 = \"GJ_button_04.png\";\n  ButtonSprite::updateBGImage(v3, v5);\n}", "assembly": "; \n; LevelSettingsLayer::updateGameplayModeButtons from 0x140320f70 to 0x140321034 (196 bytes)\n; \n; 3 xrefs:\n; > LevelSettingsLayer::init @ 0x14031fb40\n; > LevelSettingsLayer::onGameplayMode @ 0x140320f5d\n; > <???> @ 0x1406d4be0\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\nmov     [rsp+arg_0], rbx                                               ; +0x0, 0x140320f70\nmov     [rsp+arg_8], rbp                                               ; +0x5, 0x140320f75\nmov     [rsp+arg_10], rsi                                              ; +0xa, 0x140320f7a\npush    rdi                                                            ; +0xf, 0x140320f7f\npush    r14                                                            ; +0x10, 0x140320f80\npush    r15                                                            ; +0x12, 0x140320f82\nsub     rsp, 20h                                                       ; +0x14, 0x140320f84\nmov     r14, rcx                                                       ; +0x18, 0x140320f88\nmov     rcx, [rcx+358h]                                                ; +0x1b, 0x140320f8b\nmov     rax, [rcx]                                                     ; +0x22, 0x140320f92\ncall    qword ptr [rax+3A8h]                                           ; +0x25, 0x140320f95\nmov     rcx, [r14+360h]                                                ; +0x2b, 0x140320f9b\nmov     rdi, rax                                                       ; +0x32, 0x140320fa2\nmov     rdx, [rcx]                                                     ; +0x35, 0x140320fa5\ncall    qword ptr [rdx+3A8h]                                           ; +0x38, 0x140320fa8\nmov     rdx, [r14+318h]                                                ; +0x3e, 0x140320fae\nmov     rbp, rax                                                       ; +0x45, 0x140320fb5\nmov     rcx, [r14+358h]                                                ; +0x48, 0x140320fb8\nmovzx   esi, byte ptr [rdx+155h]                                       ; +0x4f, 0x140320fbf\nmov     r8, [rcx]                                                      ; +0x56, 0x140320fc6\nmovzx   edx, sil                                                       ; +0x59, 0x140320fc9\ncall    qword ptr [r8+398h]                                            ; +0x5d, 0x140320fcd\nlea     rbx, aGjButton01Png; \"GJ_button_01.png\"                        ; +0x64, 0x140320fd4\ntest    sil, sil                                                       ; +0x6b, 0x140320fdb\nmov     rdx, rbx                                                       ; +0x6e, 0x140320fde\nlea     r15, aGjButton04Png; \"GJ_button_04.png\"                        ; +0x71, 0x140320fe1\ncmovnz  rdx, r15                                                       ; +0x78, 0x140320fe8\nmov     rcx, rdi                                                       ; +0x7c, 0x140320fec\ncall    ButtonSprite__updateBGImage                                    ; +0x7f, 0x140320fef\nmov     rcx, [r14+360h]                                                ; +0x84, 0x140320ff4\ntest    sil, sil                                                       ; +0x8b, 0x140320ffb\nsetz    dl                                                             ; +0x8e, 0x140320ffe\nmov     rax, [rcx]                                                     ; +0x91, 0x140321001\ncall    qword ptr [rax+398h]                                           ; +0x94, 0x140321004\ntest    sil, sil                                                       ; +0x9a, 0x14032100a\nmov     rcx, rbp                                                       ; +0x9d, 0x14032100d\ncmovz   rbx, r15                                                       ; +0xa0, 0x140321010\nmov     rdx, rbx                                                       ; +0xa4, 0x140321014\nmov     rbx, [rsp+38h+arg_0]                                           ; +0xa7, 0x140321017\nmov     rbp, [rsp+38h+arg_8]                                           ; +0xac, 0x14032101c\nmov     rsi, [rsp+38h+arg_10]                                          ; +0xb1, 0x140321021\nadd     rsp, 20h                                                       ; +0xb6, 0x140321026\npop     r15                                                            ; +0xba, 0x14032102a\npop     r14                                                            ; +0xbc, 0x14032102c\npop     rdi                                                            ; +0xbe, 0x14032102e\njmp     ButtonSprite__updateBGImage                                    ; +0xbf, 0x14032102f", "xrefs": ["LevelSettingsLayer::init @ 0x14031fb40", "LevelSettingsLayer::onGameplayMode @ 0x140320f5d", "<???> @ 0x1406d4be0"], "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"}