; ; EditorSFXActionConfigLayer::onToggleMode from 0x1401848c0 to 0x14018494c (140 bytes) ; ; 2 xrefs: ; > EditorSFXActionConfigLayer::init @ 0x140183b29 ; > @ 0x140918d10 ; ; 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:38 +0000 ; mov [rsp+arg_0], rbx ; +0x0, 0x1401848c0 mov [rsp+arg_8], rsi ; +0x5, 0x1401848c5 push rdi ; +0xa, 0x1401848ca sub rsp, 20h ; +0xb, 0x1401848cb mov ebx, [rcx+3F0h] ; +0xf, 0x1401848cf mov rsi, rcx ; +0x15, 0x1401848d5 call EditorSFXManager__sharedState ; +0x18, 0x1401848d8 mov edx, ebx ; +0x1d, 0x1401848dd mov rcx, rax ; +0x1f, 0x1401848df call EditorSFXManager__findBinding ; +0x22, 0x1401848e2 test rax, rax ; +0x27, 0x1401848e7 jz short loc_1401848F1 ; +0x2a, 0x1401848ea mov edi, [rax+8] ; +0x2c, 0x1401848ec jmp short loc_1401848F6 ; +0x2f, 0x1401848ef mov edi, 1 ; +0x31, 0x1401848f1 mov ebx, [rsi+3F0h] ; +0x36, 0x1401848f6 call EditorSFXManager__sharedState ; +0x3c, 0x1401848fc mov edx, ebx ; +0x41, 0x140184901 mov rcx, rax ; +0x43, 0x140184903 call EditorSFXManager__getOrCreateBinding ; +0x46, 0x140184906 xor edx, edx ; +0x4b, 0x14018490b mov ecx, edx ; +0x4d, 0x14018490d test edi, edi ; +0x4f, 0x14018490f setz cl ; +0x51, 0x140184911 mov [rax+0Ch], edx ; +0x54, 0x140184914 mov [rax+8], ecx ; +0x57, 0x140184917 mov rcx, [rax+30h] ; +0x5a, 0x14018491a cmp rcx, [rax+38h] ; +0x5e, 0x14018491e jz short loc_140184928 ; +0x62, 0x140184922 mov [rax+38h], rcx ; +0x64, 0x140184924 mov rcx, rsi ; +0x68, 0x140184928 mov [rax+48h], edx ; +0x6b, 0x14018492b mov dword ptr [rax+4Ch], 0FFFFFFFFh ; +0x6e, 0x14018492e mov [rax+50h], edx ; +0x75, 0x140184935 mov rbx, [rsp+28h+arg_0] ; +0x78, 0x140184938 mov rsi, [rsp+28h+arg_8] ; +0x7d, 0x14018493d add rsp, 20h ; +0x82, 0x140184942 pop rdi ; +0x86, 0x140184946 jmp EditorSFXActionConfigLayer__refreshModeButtons ; +0x87, 0x140184947