; ; EditorUI::toggleMode from 0x1401afd40 to 0x1401afe3b (251 bytes) ; ; 13 xrefs: ; > EditorUI::init @ 0x1401ab201 ; > EditorUI::onPlaytest @ 0x1401b47ec ; > EditorUI::handleEditorAction @ 0x1401c249c ; > EditorUI::handleEditorAction @ 0x1401c24ba ; > EditorUI::handleEditorAction @ 0x1401c24d8 ; > EditorUI::handleEditorAction @ 0x1401c24f6 ; > EditorUI::init @ 0x1401aa0e4 ; > EditorUI::init @ 0x1401aa1a1 ; > EditorUI::init @ 0x1401aa256 ; > EditorUI::init @ 0x1401aa30b ; > @ 0x1408a139c ; > @ 0x1408a13ac ; > @ 0x140919e5c ; ; This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! ; ; Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA ; Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings ; Generated at Fri, 27 Nov 2026 11:27:55 +0000 ; mov [rsp+arg_10], rbx ; +0x0, 0x1401afd40 push rdi ; +0x5, 0x1401afd45 sub rsp, 20h ; +0x6, 0x1401afd46 mov rax, [rdx] ; +0xa, 0x1401afd4a mov rdi, rcx ; +0xd, 0x1401afd4d mov rcx, rdx ; +0x10, 0x1401afd50 call qword ptr [rax+38h] ; +0x13, 0x1401afd53 mov ebx, eax ; +0x16, 0x1401afd56 cmp [rdi+5E4h], eax ; +0x18, 0x1401afd58 jz loc_1401AFE30 ; +0x1e, 0x1401afd5e mov [rsp+28h+arg_0], rbp ; +0x24, 0x1401afd64 mov rcx, rdi ; +0x29, 0x1401afd69 mov [rsp+28h+arg_8], rsi ; +0x2c, 0x1401afd6c mov [rdi+5E4h], eax ; +0x31, 0x1401afd71 call EditorUI__resetUI ; +0x37, 0x1401afd77 mov ebp, 0A9h ; +0x3c, 0x1401afd7c mov esi, ebp ; +0x41, 0x1401afd81 sub ebx, 1 ; +0x43, 0x1401afd83 jz short loc_1401AFDAC ; +0x46, 0x1401afd86 sub ebx, 1 ; +0x48, 0x1401afd88 jz short loc_1401AFDA5 ; +0x4b, 0x1401afd8b sub ebx, 1 ; +0x4d, 0x1401afd8d jz short loc_1401AFD9E ; +0x50, 0x1401afd90 cmp ebx, 1 ; +0x52, 0x1401afd92 jnz short loc_1401AFDB1 ; +0x55, 0x1401afd95 mov esi, 0ADh ; +0x57, 0x1401afd97 jmp short loc_1401AFDB1 ; +0x5c, 0x1401afd9c mov esi, 0ABh ; +0x5e, 0x1401afd9e jmp short loc_1401AFDB1 ; +0x63, 0x1401afda3 mov esi, 0AAh ; +0x65, 0x1401afda5 jmp short loc_1401AFDB1 ; +0x6a, 0x1401afdaa mov esi, 0ACh ; +0x6c, 0x1401afdac call EditorSFXManager__sharedState ; +0x71, 0x1401afdb1 mov edx, esi ; +0x76, 0x1401afdb6 mov rcx, rax ; +0x78, 0x1401afdb8 mov rbx, rax ; +0x7b, 0x1401afdbb call EditorSFXManager__hasSoundsForAction ; +0x7e, 0x1401afdbe test al, al ; +0x83, 0x1401afdc3 mov rcx, rbx ; +0x85, 0x1401afdc5 cmovnz ebp, esi ; +0x88, 0x1401afdc8 mov edx, ebp ; +0x8b, 0x1401afdcb call EditorSFXManager__playAction ; +0x8d, 0x1401afdcd mov eax, [rdi+5E4h] ; +0x92, 0x1401afdd2 mov rsi, [rsp+28h+arg_8] ; +0x98, 0x1401afdd8 mov rbp, [rsp+28h+arg_0] ; +0x9d, 0x1401afddd cmp eax, 1 ; +0xa2, 0x1401afde2 jnz short loc_1401AFDF0 ; +0xa5, 0x1401afde5 mov rcx, [rdi+3C8h] ; +0xa7, 0x1401afde7 jmp short loc_1401AFE18 ; +0xae, 0x1401afdee cmp eax, 2 ; +0xb0, 0x1401afdf0 jnz short loc_1401AFDFE ; +0xb3, 0x1401afdf3 mov rcx, [rdi+3D0h] ; +0xb5, 0x1401afdf5 jmp short loc_1401AFE18 ; +0xbc, 0x1401afdfc cmp eax, 3 ; +0xbe, 0x1401afdfe jnz short loc_1401AFE0C ; +0xc1, 0x1401afe01 mov rcx, [rdi+3D8h] ; +0xc3, 0x1401afe03 jmp short loc_1401AFE18 ; +0xca, 0x1401afe0a cmp eax, 4 ; +0xcc, 0x1401afe0c jnz short loc_1401AFE30 ; +0xcf, 0x1401afe0f mov rcx, [rdi+3E0h] ; +0xd1, 0x1401afe11 mov rax, [rcx] ; +0xd8, 0x1401afe18 call qword ptr [rax+3B8h] ; +0xdb, 0x1401afe1b mov rcx, rax ; +0xe1, 0x1401afe21 lea rdx, aGjButton02Png; "GJ_button_02.png" ; +0xe4, 0x1401afe24 call ButtonSprite__updateBGImage ; +0xeb, 0x1401afe2b mov rbx, [rsp+28h+arg_10] ; +0xf0, 0x1401afe30 add rsp, 20h ; +0xf5, 0x1401afe35 pop rdi ; +0xf9, 0x1401afe39 retn ; +0xfa, 0x1401afe3a