; ; GameManager::reorderKey from 0x140183ac0 to 0x140183bb3 (243 bytes) ; ; 3 xrefs: ; > EditorUI::orderUpCustomItem @ 0x1400e46ba ; > EditorUI::orderDownCustomItem @ 0x1400e474a ; > @ 0x1406cb5e0 ; ; 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 ; mov [rsp+arg_0], rbx ; +0x0, 0x140183ac0 mov [rsp+arg_8], rbp ; +0x5, 0x140183ac5 mov [rsp+arg_10], rsi ; +0xa, 0x140183aca push rdi ; +0xf, 0x140183acf push r14 ; +0x10, 0x140183ad0 push r15 ; +0x12, 0x140183ad2 sub rsp, 20h ; +0x14, 0x140183ad4 mov r15, rcx ; +0x18, 0x140183ad8 movzx r14d, r8b ; +0x1b, 0x140183adb mov rcx, [rcx+1A8h] ; +0x1f, 0x140183adf mov ebp, edx ; +0x26, 0x140183ae6 call cs:?allKeys@CCDictionary@cocos2d@@QEAAPEAVCCArray@2@XZ; cocos2d::CCDictionary::allKeys(void) ; +0x28, 0x140183ae8 mov rcx, rax ; +0x2e, 0x140183aee mov rdi, rax ; +0x31, 0x140183af1 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x34, 0x140183af4 test eax, eax ; +0x3a, 0x140183afa jz short loc_140183B1B ; +0x3c, 0x140183afc mov rcx, [rdi+38h] ; +0x3e, 0x140183afe lea r9, sub_14017B290; CompareFunction ; +0x42, 0x140183b02 mov r8d, 8; SizeOfElements ; +0x49, 0x140183b09 mov edx, [rcx]; NumOfElements ; +0x4f, 0x140183b0f mov rcx, [rcx+10h]; Base ; +0x51, 0x140183b11 call cs:qsort ; +0x55, 0x140183b15 xor esi, esi ; +0x5b, 0x140183b1b mov rcx, rdi ; +0x5d, 0x140183b1d mov ebx, esi ; +0x60, 0x140183b20 call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x62, 0x140183b22 test eax, eax ; +0x68, 0x140183b28 jz short loc_140183B59 ; +0x6a, 0x140183b2a nop dword ptr [rax+00h] ; +0x6c, 0x140183b2c mov edx, ebx ; +0x70, 0x140183b30 mov rcx, rdi ; +0x72, 0x140183b32 call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0x75, 0x140183b35 mov rcx, rax ; +0x7b, 0x140183b3b call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0x7e, 0x140183b3e cmp eax, ebp ; +0x84, 0x140183b44 jz short loc_140183B74 ; +0x86, 0x140183b46 mov rcx, rdi ; +0x88, 0x140183b48 mov esi, eax ; +0x8b, 0x140183b4b inc ebx ; +0x8d, 0x140183b4d call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0x8f, 0x140183b4f cmp ebx, eax ; +0x95, 0x140183b55 jb short loc_140183B30 ; +0x97, 0x140183b57 mov eax, ebp ; +0x99, 0x140183b59 mov rbx, [rsp+38h+arg_0] ; +0x9b, 0x140183b5b mov rbp, [rsp+38h+arg_8] ; +0xa0, 0x140183b60 mov rsi, [rsp+38h+arg_10] ; +0xa5, 0x140183b65 add rsp, 20h ; +0xaa, 0x140183b6a pop r15 ; +0xae, 0x140183b6e pop r14 ; +0xb0, 0x140183b70 pop rdi ; +0xb2, 0x140183b72 retn ; +0xb3, 0x140183b73 test r14b, r14b ; +0xb4, 0x140183b74 jnz short loc_140183B9E ; +0xb7, 0x140183b77 mov rcx, rdi ; +0xb9, 0x140183b79 inc ebx ; +0xbc, 0x140183b7c call cs:?count@CCArray@cocos2d@@QEBAIXZ; cocos2d::CCArray::count(void) ; +0xbe, 0x140183b7e cmp ebx, eax ; +0xc4, 0x140183b84 jnb short loc_140183B59 ; +0xc6, 0x140183b86 mov edx, ebx ; +0xc8, 0x140183b88 mov rcx, rdi ; +0xca, 0x140183b8a call cs:?stringAtIndex@CCArray@cocos2d@@QEAAPEAVCCString@2@I@Z; cocos2d::CCArray::stringAtIndex(uint) ; +0xcd, 0x140183b8d mov rcx, rax ; +0xd3, 0x140183b93 call cs:?intValue@CCString@cocos2d@@QEBAHXZ; cocos2d::CCString::intValue(void) ; +0xd6, 0x140183b96 mov esi, eax ; +0xdc, 0x140183b9c test esi, esi ; +0xde, 0x140183b9e jz short loc_140183B59 ; +0xe0, 0x140183ba0 mov r8d, esi ; +0xe2, 0x140183ba2 mov edx, ebp ; +0xe5, 0x140183ba5 mov rcx, r15 ; +0xe7, 0x140183ba7 call GameManager__switchCustomObjects ; +0xea, 0x140183baa mov eax, esi ; +0xef, 0x140183baf jmp short loc_140183B5B ; +0xf1, 0x140183bb1