; ; GJBaseGameLayer::sortSectionVector from 0x140226fa0 to 0x1402271b7 (535 bytes) ; ; 2 xrefs: ; > PlayLayer::resetLevel @ 0x1403b9a81 ; > @ 0x1406cd860 ; ; 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, 0x140226fa0 mov [rsp+arg_8], rbp ; +0x5, 0x140226fa5 mov [rsp+arg_10], rsi ; +0xa, 0x140226faa mov [rsp+arg_18], rdi ; +0xf, 0x140226faf push r12 ; +0x14, 0x140226fb4 push r14 ; +0x16, 0x140226fb6 push r15 ; +0x18, 0x140226fb8 sub rsp, 20h ; +0x1a, 0x140226fba mov rdx, [rcx+35B0h] ; +0x1e, 0x140226fbe xor r12d, r12d ; +0x25, 0x140226fc5 mov rax, [rcx+35B8h] ; +0x28, 0x140226fc8 mov rbp, rcx ; +0x2f, 0x140226fcf sub rax, rdx ; +0x32, 0x140226fd2 sar rax, 3 ; +0x35, 0x140226fd5 test rax, rax ; +0x39, 0x140226fd9 jz loc_1402270A8 ; +0x3c, 0x140226fdc xor r14d, r14d ; +0x42, 0x140226fe2 mov rcx, [r14+rdx] ; +0x45, 0x140226fe5 test rcx, rcx ; +0x49, 0x140226fe9 jz short loc_140226FFB ; +0x4c, 0x140226fec mov rax, [rcx+8] ; +0x4e, 0x140226fee sub rax, [rcx] ; +0x52, 0x140226ff2 sar rax, 3 ; +0x55, 0x140226ff5 jmp short loc_140227000 ; +0x59, 0x140226ff9 mov eax, 0FFFFFFFFh ; +0x5b, 0x140226ffb xor edi, edi ; +0x60, 0x140227000 movsxd r15, eax ; +0x62, 0x140227002 test eax, eax ; +0x65, 0x140227005 jle short loc_140227080 ; +0x67, 0x140227007 nop dword ptr [rax+00000000h] ; +0x69, 0x140227009 mov rax, [rbp+35B0h] ; +0x70, 0x140227010 mov rcx, [r14+rax] ; +0x77, 0x140227017 mov rax, [rcx] ; +0x7b, 0x14022701b mov rbx, [rax+rdi*8] ; +0x7e, 0x14022701e test rbx, rbx ; +0x82, 0x140227022 jz short loc_140227078 ; +0x85, 0x140227025 mov rax, [rbp+3658h] ; +0x87, 0x140227027 lea r9, sub_140205210 ; +0x8e, 0x14022702e mov rcx, [r14+rax] ; +0x95, 0x140227035 mov rax, [rcx] ; +0x99, 0x140227039 mov rcx, [rbx] ; +0x9c, 0x14022703c movsxd rsi, dword ptr [rax+rdi*4] ; +0x9f, 0x14022703f mov r8, rsi ; +0xa3, 0x140227043 lea rdx, [rcx+rsi*8] ; +0xa6, 0x140227046 call sub_140251360 ; +0xaa, 0x14022704a xor edx, edx ; +0xaf, 0x14022704f test esi, esi ; +0xb1, 0x140227051 jle short loc_140227078 ; +0xb3, 0x140227053 xor r8d, r8d ; +0xb5, 0x140227055 nop dword ptr [rax+rax+00000000h] ; +0xb8, 0x140227058 mov rax, [rbx] ; +0xc0, 0x140227060 lea r8, [r8+8] ; +0xc3, 0x140227063 mov rcx, [r8+rax-8] ; +0xc7, 0x140227067 mov [rcx+274h], edx ; +0xcc, 0x14022706c inc edx ; +0xd2, 0x140227072 cmp edx, esi ; +0xd4, 0x140227074 jl short loc_140227060 ; +0xd6, 0x140227076 inc rdi ; +0xd8, 0x140227078 cmp rdi, r15 ; +0xdb, 0x14022707b jl short loc_140227010 ; +0xde, 0x14022707e mov rdx, [rbp+35B0h] ; +0xe0, 0x140227080 inc r12d ; +0xe7, 0x140227087 mov rcx, [rbp+35B8h] ; +0xea, 0x14022708a add r14, 8 ; +0xf1, 0x140227091 sub rcx, rdx ; +0xf5, 0x140227095 movsxd rax, r12d ; +0xf8, 0x140227098 sar rcx, 3 ; +0xfb, 0x14022709b cmp rax, rcx ; +0xff, 0x14022709f jb loc_140226FE5 ; +0x102, 0x1402270a2 mov rdx, [rbp+35C8h] ; +0x108, 0x1402270a8 xor r12d, r12d ; +0x10f, 0x1402270af mov rax, [rbp+35D0h] ; +0x112, 0x1402270b2 sub rax, rdx ; +0x119, 0x1402270b9 sar rax, 3 ; +0x11c, 0x1402270bc test rax, rax ; +0x120, 0x1402270c0 jz loc_140227198 ; +0x123, 0x1402270c3 xor r14d, r14d ; +0x129, 0x1402270c9 nop dword ptr [rax+00h] ; +0x12c, 0x1402270cc mov rcx, [rdx+r14] ; +0x130, 0x1402270d0 test rcx, rcx ; +0x134, 0x1402270d4 jz short loc_1402270E6 ; +0x137, 0x1402270d7 mov rax, [rcx+8] ; +0x139, 0x1402270d9 sub rax, [rcx] ; +0x13d, 0x1402270dd sar rax, 3 ; +0x140, 0x1402270e0 jmp short loc_1402270EB ; +0x144, 0x1402270e4 mov eax, 0FFFFFFFFh ; +0x146, 0x1402270e6 xor edi, edi ; +0x14b, 0x1402270eb movsxd r15, eax ; +0x14d, 0x1402270ed test eax, eax ; +0x150, 0x1402270f0 jle short loc_140227170 ; +0x152, 0x1402270f2 nop dword ptr [rax+00h] ; +0x154, 0x1402270f4 nop dword ptr [rax+rax+00000000h] ; +0x158, 0x1402270f8 mov rax, [rbp+35C8h] ; +0x160, 0x140227100 mov rcx, [r14+rax] ; +0x167, 0x140227107 mov rax, [rcx] ; +0x16b, 0x14022710b mov rbx, [rax+rdi*8] ; +0x16e, 0x14022710e test rbx, rbx ; +0x172, 0x140227112 jz short loc_140227168 ; +0x175, 0x140227115 mov rax, [rbp+3670h] ; +0x177, 0x140227117 lea r9, sub_140205210 ; +0x17e, 0x14022711e mov rcx, [r14+rax] ; +0x185, 0x140227125 mov rax, [rcx] ; +0x189, 0x140227129 mov rcx, [rbx] ; +0x18c, 0x14022712c movsxd rsi, dword ptr [rax+rdi*4] ; +0x18f, 0x14022712f mov r8, rsi ; +0x193, 0x140227133 lea rdx, [rcx+rsi*8] ; +0x196, 0x140227136 call sub_140251E60 ; +0x19a, 0x14022713a xor eax, eax ; +0x19f, 0x14022713f test esi, esi ; +0x1a1, 0x140227141 jle short loc_140227168 ; +0x1a3, 0x140227143 xor r8d, r8d ; +0x1a5, 0x140227145 nop dword ptr [rax+rax+00000000h] ; +0x1a8, 0x140227148 mov rcx, [rbx] ; +0x1b0, 0x140227150 lea r8, [r8+8] ; +0x1b3, 0x140227153 mov rdx, [r8+rcx-8] ; +0x1b7, 0x140227157 mov [rdx+274h], eax ; +0x1bc, 0x14022715c inc eax ; +0x1c2, 0x140227162 cmp eax, esi ; +0x1c4, 0x140227164 jl short loc_140227150 ; +0x1c6, 0x140227166 inc rdi ; +0x1c8, 0x140227168 cmp rdi, r15 ; +0x1cb, 0x14022716b jl short loc_140227100 ; +0x1ce, 0x14022716e mov rdx, [rbp+35C8h] ; +0x1d0, 0x140227170 inc r12d ; +0x1d7, 0x140227177 mov rcx, [rbp+35D0h] ; +0x1da, 0x14022717a add r14, 8 ; +0x1e1, 0x140227181 sub rcx, rdx ; +0x1e5, 0x140227185 movsxd rax, r12d ; +0x1e8, 0x140227188 sar rcx, 3 ; +0x1eb, 0x14022718b cmp rax, rcx ; +0x1ef, 0x14022718f jb loc_1402270D0 ; +0x1f2, 0x140227192 mov rbx, [rsp+38h+arg_0] ; +0x1f8, 0x140227198 mov rbp, [rsp+38h+arg_8] ; +0x1fd, 0x14022719d mov rsi, [rsp+38h+arg_10] ; +0x202, 0x1402271a2 mov rdi, [rsp+38h+arg_18] ; +0x207, 0x1402271a7 add rsp, 20h ; +0x20c, 0x1402271ac pop r15 ; +0x210, 0x1402271b0 pop r14 ; +0x212, 0x1402271b2 pop r12 ; +0x214, 0x1402271b4 retn ; +0x216, 0x1402271b6