; ; EditorUI::toggleEnableRotate from 0x10000bf60 to 0x10000c08c (300 bytes) ; ; 3 xrefs: ; > EditorUI::init @ 0x10000b5ed ; > EditorUI::keyDown @ 0x100050d7d ; > EditorUI::init @ 0x100009bbf ; ; This function is hookable on this platform! ; ; Using BromaIDA 8.0.0 @ https:;github.com/Stazzical/BromaIDA ; Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https:;github.com/geode-sdk/bindings ; push rbp ; +0x0, 0x10000bf60 mov rbp, rsp ; +0x1, 0x10000bf61 push r15 ; +0x4, 0x10000bf64 push r14 ; +0x6, 0x10000bf66 push rbx ; +0x8, 0x10000bf68 push rax ; +0x9, 0x10000bf69 mov rbx, rdi ; +0xa, 0x10000bf6a call GameManager__sharedState ; +0xd, 0x10000bf6d lea r14, a0007; "0007" ; +0x12, 0x10000bf72 mov rdi, rax ; +0x19, 0x10000bf79 mov rsi, r14 ; +0x1c, 0x10000bf7c call GameManager__getGameVariable ; +0x1f, 0x10000bf7f mov r15d, eax ; +0x24, 0x10000bf84 xor r15b, 1 ; +0x27, 0x10000bf87 call GameManager__sharedState ; +0x2b, 0x10000bf8b movzx r15d, r15b ; +0x30, 0x10000bf90 mov rdi, rax ; +0x34, 0x10000bf94 mov rsi, r14 ; +0x37, 0x10000bf97 mov edx, r15d ; +0x3a, 0x10000bf9a call GameManager__setGameVariable ; +0x3d, 0x10000bf9d mov rdi, [rbx+378h] ; +0x42, 0x10000bfa2 mov rax, [rdi] ; +0x49, 0x10000bfa9 call qword ptr [rax+420h] ; +0x4c, 0x10000bfac test r15b, r15b ; +0x52, 0x10000bfb2 jnz loc_10000C060 ; +0x55, 0x10000bfb5 lea rsi, aGjButton01Png; "GJ_button_01.png" ; +0x5b, 0x10000bfbb mov rdi, rax ; +0x62, 0x10000bfc2 call ButtonSprite__updateBGImage ; +0x65, 0x10000bfc5 mov dword ptr [rbx+288h], 0FFFFFFFFh ; +0x6a, 0x10000bfca mov rdi, [rbx+2A0h] ; +0x74, 0x10000bfd4 mov rax, [rdi] ; +0x7b, 0x10000bfdb call qword ptr [rax+150h] ; +0x7e, 0x10000bfde test al, al ; +0x84, 0x10000bfe4 jz loc_10000C081 ; +0x86, 0x10000bfe6 mov rdi, [rbx+2A0h] ; +0x8c, 0x10000bfec mov rax, [rdi] ; +0x93, 0x10000bff3 xor esi, esi ; +0x96, 0x10000bff6 call qword ptr [rax+148h] ; +0x98, 0x10000bff8 mov r14, [rbx+2A0h] ; +0x9e, 0x10000bffe cmp dword ptr [r14+1B8h], 0FFFFFFFFh ; +0xa5, 0x10000c005 jz short loc_10000C081 ; +0xad, 0x10000c00d mov dword ptr [r14+1B8h], 0FFFFFFFFh ; +0xaf, 0x10000c00f mov rbx, [r14+1A8h] ; +0xba, 0x10000c01a call cocos2d__CCSpriteFrameCache__sharedSpriteFrameCache ; +0xc1, 0x10000c021 lea rsi, aGjRotationcont; "GJ_rotationControlBtn01_001.png" ; +0xc6, 0x10000c026 mov rdi, rax ; +0xcd, 0x10000c02d call cocos2d__CCSpriteFrameCache__spriteFrameByName ; +0xd0, 0x10000c030 mov rcx, [rbx] ; +0xd5, 0x10000c035 mov rdi, rbx ; +0xd8, 0x10000c038 mov rsi, rax ; +0xdb, 0x10000c03b call qword ptr [rcx+478h] ; +0xde, 0x10000c03e mov rdi, [r14+1C0h] ; +0xe4, 0x10000c044 test rdi, rdi ; +0xeb, 0x10000c04b jz short loc_10000C081 ; +0xee, 0x10000c04e mov rax, [rdi] ; +0xf0, 0x10000c050 add rsp, 8 ; +0xf3, 0x10000c053 pop rbx ; +0xf7, 0x10000c057 pop r14 ; +0xf8, 0x10000c058 pop r15 ; +0xfa, 0x10000c05a pop rbp ; +0xfc, 0x10000c05c jmp qword ptr [rax+10h] ; +0xfd, 0x10000c05d lea rsi, aGjButton02Png; "GJ_button_02.png" ; +0x100, 0x10000c060 mov rdi, rax ; +0x107, 0x10000c067 call ButtonSprite__updateBGImage ; +0x10a, 0x10000c06a mov rdi, rbx ; +0x10f, 0x10000c06f add rsp, 8 ; +0x112, 0x10000c072 pop rbx ; +0x116, 0x10000c076 pop r14 ; +0x117, 0x10000c077 pop r15 ; +0x119, 0x10000c079 pop rbp ; +0x11b, 0x10000c07b jmp EditorUI__toggleSpecialEditButtons ; +0x11c, 0x10000c07c add rsp, 8 ; +0x121, 0x10000c081 pop rbx ; +0x125, 0x10000c085 pop r14 ; +0x126, 0x10000c086 pop r15 ; +0x128, 0x10000c088 pop rbp ; +0x12a, 0x10000c08a retn ; +0x12b, 0x10000c08b