Skip to content

Instantly share code, notes, and snippets.

@sthalik
Last active August 22, 2026 12:14
Show Gist options
  • Select an option

  • Save sthalik/7579eba7d44184cb25359aef30c38855 to your computer and use it in GitHub Desktop.

Select an option

Save sthalik/7579eba7d44184cb25359aef30c38855 to your computer and use it in GitHub Desktop.
000000014014a780 <floormat::SpriteBatch::sort_vertex_buffer(bool)>:
; floormat::SpriteBatch::sort_vertex_buffer(bool)():
; D:/dev/floormat/src/spritebatch.cpp:208
14014a780: push r15
14014a782: push r14
14014a784: push r13
14014a786: push r12
14014a788: push rsi
14014a789: push rdi
14014a78a: push rbp
14014a78b: push rbx
14014a78c: sub rsp, 0x68
; D:/dev/floormat/src/spritebatch.cpp:210
14014a790: cmp byte ptr [rcx + 0x290], 0x1
14014a797: je 0x14014b51b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd9b>
14014a79d: mov rsi, rcx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014a7a0: mov rcx, qword ptr [rcx + 0x110]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
14014a7a7: mov rax, rsi
14014a7aa: mov ebp, edx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014a7ac: lea r12, [rip - 0x2993] # 0x140147e20 <Corrade::Containers::ArrayMallocAllocator<unsigned int>::deleter(unsigned int*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
14014a7b3: sub rax, rcx
14014a7b6: add rax, 0x28c
14014a7bc: sar rax, 0x2
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014a7c0: cmp qword ptr [rsi + 0x120], r12
14014a7c7: je 0x14014a895 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x115>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:661
14014a7cd: mov rcx, qword ptr [rsi + 0x118]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
14014a7d4: cmp rax, rcx
14014a7d7: jb 0x14014a8aa <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x12a>
; D:/dev/floormat/src/spritebatch.cpp:212
14014a7dd: lea r13, [rsi + 0x110]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2182
14014a7e4: mov rcx, r13
14014a7e7: call 0x140149e50 <unsigned int* Corrade::Containers::Implementation::arrayGrowBy<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2187
14014a7ec: mov ecx, dword ptr [rsi + 0x28c]
14014a7f2: mov dword ptr [rax], ecx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:669
14014a7f4: cmp qword ptr [rsi + 0xb8], 0x0
; D:/dev/floormat/src/spritebatch.cpp:225
14014a7fc: jne 0x14014b53b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xdbb>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:669
14014a802: cmp qword ptr [rsi + 0x148], 0x0
; D:/dev/floormat/src/spritebatch.cpp:226
14014a80a: jne 0x14014b55b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xddb>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:669
14014a810: cmp qword ptr [rsi + 0x8], 0x0
; D:/dev/floormat/src/spritebatch.cpp:227
14014a815: jne 0x14014b57b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xdfb>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:669
14014a81b: cmp qword ptr [rsi + 0x20], 0x0
; D:/dev/floormat/src/spritebatch.cpp:228
14014a820: jne 0x14014b59b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xe1b>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:669
14014a826: cmp qword ptr [rsi + 0x38], 0x0
; D:/dev/floormat/src/spritebatch.cpp:229
14014a82b: jne 0x14014b5bb <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xe3b>
14014a831: mov rax, qword ptr [rsi + 0xe8]
14014a838: lea rbx, [rsi + 0xb0]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014a83f: lea rdi, [rip - 0x3a76] # 0x140146dd0 <Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>::deleter(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>
14014a846: mov qword ptr [rsp + 0x50], rax
14014a84b: mov eax, eax
14014a84d: mov qword ptr [rsp + 0x38], rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014a852: cmp qword ptr [rsi + 0xc0], rdi
14014a859: je 0x14014a8af <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x12f>
14014a85b: xor eax, eax
; D:/dev/floormat/src/spritebatch.cpp:202
14014a85d: cmp rax, qword ptr [rsp + 0x38]
14014a862: jae 0x14014a8d4 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x154>
; D:/dev/floormat/src/spritebatch.cpp:203
14014a864: vcvtusi2ss xmm0, xmm5, dword ptr [rsp + 0x50]
14014a86c: mov rcx, rbx
14014a86f: vmulss xmm0, xmm0, dword ptr [rip + 0x106d49] # 0x1402515c0 <_load_config_used__end+0x3488>
14014a877: vcvttss2usi edx, xmm0
14014a87d: call 0x140146cc0 <unsigned long long Corrade::Containers::arrayReserve<std::__2::array<floormat::Quads::vertex, 4ull>, Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>>(Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>&, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
14014a882: mov r14, qword ptr [rsi + 0xb8]
14014a889: cmp r14, qword ptr [rsp + 0x38]
14014a88e: jne 0x14014a8e2 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x162>
14014a890: jmp 0x14014a9e9 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x269>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014a895: mov rcx, qword ptr [rcx - 0x8]
14014a899: add rcx, -0x8
14014a89d: shr rcx, 0x2
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
14014a8a1: cmp rax, rcx
14014a8a4: jae 0x14014a7dd <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5d>
14014a8aa: call 0x140149c80 <unsigned int& Corrade::Containers::arrayAppend<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, std::__2::common_type<unsigned int>::type const&)::'lambda'()::operator()() const>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014a8af: mov rax, qword ptr [rbx]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014a8b2: mov rdx, qword ptr [rax - 0x8]
14014a8b6: movabs rax, 0x2492492492492493
14014a8c0: add rdx, -0x8
14014a8c4: shr rdx, 0x4
14014a8c8: mulx rax, rax, rax
; D:/dev/floormat/src/spritebatch.cpp:202
14014a8cd: cmp rax, qword ptr [rsp + 0x38]
14014a8d2: jb 0x14014a864 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xe4>
14014a8d4: xor r14d, r14d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
14014a8d7: cmp r14, qword ptr [rsp + 0x38]
14014a8dc: je 0x14014a9e9 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x269>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2027
14014a8e2: cmp qword ptr [rsi + 0xc0], rdi
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2035
14014a8e9: je 0x14014a97b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x1fb>
14014a8ef: mov r12, qword ptr [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:256
14014a8f4: imul r15, r12, 0x70
14014a8f8: or r15, 0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:257
14014a8fc: mov rcx, r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:256
14014a8ff: mov qword ptr [rsp + 0x28], r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:257
14014a904: call 0x14024d8c0 <malloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:258
14014a909: test rax, rax
14014a90c: je 0x14014b4b8 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd38>
14014a912: mov rbx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:260
14014a915: mov qword ptr [rax], r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014a918: lea rax, [rsi + 0xb0]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:261
14014a91f: add rbx, 0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014a923: cmp r14, r12
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014a926: mov r15, qword ptr [rax]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014a929: mov rax, r12
14014a92c: cmovb rax, r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
14014a930: test rax, rax
14014a933: je 0x14014a944 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x1c4>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
14014a935: imul r8, rax, 0x70
14014a939: mov rcx, rbx
14014a93c: mov rdx, r15
14014a93f: call 0x14024d8f0 <memcpy>
14014a944: mov rax, qword ptr [rsp + 0x38]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:44
14014a949: mov qword ptr [rsi + 0xb0], rbx
14014a950: lea r12, [rip - 0x2b37] # 0x140147e20 <Corrade::Containers::ArrayMallocAllocator<unsigned int>::deleter(unsigned int*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014a957: mov qword ptr [rsi + 0xb8], rax
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:43
14014a95e: mov rax, qword ptr [rsi + 0xc0]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:44
14014a965: mov qword ptr [rsi + 0xc0], rdi
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
14014a96c: test rax, rax
14014a96f: je 0x14014a9dc <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x25c>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:55
14014a971: mov rcx, r15
14014a974: mov rdx, r14
14014a977: call rax
14014a979: jmp 0x14014a9e9 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x269>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
14014a97b: mov rcx, qword ptr [rbx]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014a97e: movabs rax, 0x2492492492492493
14014a988: mov rdx, qword ptr [rcx - 0x8]
14014a98c: add rdx, -0x8
14014a990: shr rdx, 0x4
14014a994: mulx rax, rax, rax
14014a999: mov rdi, qword ptr [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
14014a99e: cmp rax, rdi
14014a9a1: jae 0x14014a9d3 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x253>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1965
14014a9a3: imul rbx, rdi, 0x70
14014a9a7: add rcx, -0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1965
14014a9ab: or rbx, 0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1966
14014a9af: mov rdx, rbx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1965
14014a9b2: mov qword ptr [rsp + 0x28], rbx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1966
14014a9b7: call 0x14024d920 <realloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1967
14014a9bc: test rax, rax
14014a9bf: je 0x14014b4d4 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd54>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1969
14014a9c5: mov qword ptr [rax], rbx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1970
14014a9c8: add rax, 0x8
14014a9cc: mov qword ptr [rsi + 0xb0], rax
14014a9d3: mov qword ptr [rsi + 0xb8], rdi
14014a9da: jmp 0x14014a9e9 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x269>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:60
14014a9dc: test r15, r15
14014a9df: je 0x14014a9e9 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x269>
14014a9e1: mov rcx, r15
14014a9e4: call 0x14024d870 <free>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:661
14014a9e9: mov rbx, qword ptr [rsi + 0x118]
14014a9f0: lea r14, [rsi + 0xe0]
14014a9f7: lea r15, [rsi + 0x128]
; D:/dev/floormat/src/spritebatch.cpp:232
14014a9fe: lea edi, [rbx - 0x1]
14014aa01: cmp edi, 0x2
14014aa04: setae al
; D:/dev/floormat/src/spritebatch.cpp:233
14014aa07: test bpl, al
14014aa0a: je 0x14014ab1e <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x39e>
14014aa10: lea rcx, [rsi + 0x140]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014aa17: cmp qword ptr [rsi + 0x150], r12
14014aa1e: je 0x14014abc4 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x444>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:661
14014aa24: mov rax, qword ptr [rsi + 0x148]
14014aa2b: mov qword ptr [rsp + 0x58], r15
14014aa30: mov qword ptr [rsp + 0x60], rcx
; D:/dev/floormat/src/spritebatch.cpp:202
14014aa35: cmp rax, qword ptr [rsp + 0x38]
14014aa3a: jae 0x14014aa65 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x2e5>
; D:/dev/floormat/src/spritebatch.cpp:203
14014aa3c: vcvtusi2ss xmm0, xmm5, dword ptr [rsp + 0x50]
14014aa44: lea rcx, [rsi + 0x140]
14014aa4b: vmulss xmm0, xmm0, dword ptr [rip + 0x106b6d] # 0x1402515c0 <_load_config_used__end+0x3488>
14014aa53: vcvttss2usi edx, xmm0
14014aa59: call 0x140147a80 <unsigned long long Corrade::Containers::arrayReserve<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, unsigned long long)>
14014aa5e: lea rcx, [rsi + 0x140]
14014aa65: mov rdx, qword ptr [rsp + 0x38]
; D:/dev/floormat/src/spritebatch.cpp:204
14014aa6a: call 0x140148f20 <void Corrade::Containers::arrayResize<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, Corrade::NoInitT, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014aa6f: mov r15, qword ptr [rsi + 0x10]
14014aa73: lea rax, [rip - 0x220a] # 0x140148870 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::deleter(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>
14014aa7a: mov edx, edi
14014aa7c: mov qword ptr [rsp + 0x30], rdx
14014aa81: cmp r15, rax
14014aa84: je 0x14014abed <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x46d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1988
14014aa8a: mov r14, qword ptr [rsi + 0x8]
; D:/dev/floormat/src/spritebatch.cpp:202
14014aa8e: cmp r14, rdx
14014aa91: jae 0x14014ac5b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4db>
; D:/dev/floormat/src/spritebatch.cpp:203
14014aa97: vcvtusi2ss xmm0, xmm5, edi
14014aa9d: vmulss xmm0, xmm0, dword ptr [rip + 0x106b1b] # 0x1402515c0 <_load_config_used__end+0x3488>
14014aaa5: vcvttss2usi eax, xmm0
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1999
14014aaab: cmp r14, rax
14014aaae: jae 0x14014ac57 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4d7>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:256
14014aab4: lea rbp, [8*rax + 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:257
14014aabc: mov rcx, rbp
14014aabf: call 0x14024d8c0 <malloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:258
14014aac4: test rax, rax
14014aac7: je 0x14014b4e6 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd66>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:260
14014aacd: mov qword ptr [rax], rbp
14014aad0: mov r12, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:261
14014aad3: add r12, 0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2007
14014aad7: mov rbp, qword ptr [rsi]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
14014aada: test r14, r14
14014aadd: je 0x14014aaf2 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x372>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
14014aadf: lea r8, [8*r14]
14014aae7: mov rcx, r12
14014aaea: mov rdx, rbp
14014aaed: call 0x14024d8f0 <memcpy>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014aaf2: lea rax, [rip - 0x2289] # 0x140148870 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::deleter(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>
14014aaf9: mov qword ptr [rsi], r12
14014aafc: mov qword ptr [rsi + 0x10], rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
14014ab00: test r15, r15
14014ab03: je 0x14014ac43 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4c3>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:55
14014ab09: mov rcx, rbp
14014ab0c: mov rdx, r14
14014ab0f: call r15
14014ab12: lea r12, [rip - 0x2cf9] # 0x140147e20 <Corrade::Containers::ArrayMallocAllocator<unsigned int>::deleter(unsigned int*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:55
14014ab19: jmp 0x14014ac57 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4d7>
; D:/dev/floormat/src/spritebatch.cpp:237
14014ab1e: cmp dword ptr [rsp + 0x50], 0x0
14014ab23: lea rdx, [rsi + 0xb0]
14014ab2a: je 0x14014b3f7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc77>
14014ab30: imul rax, qword ptr [rsp + 0x38], 0x70
14014ab36: xor ecx, ecx
14014ab38: xor r11d, r11d
14014ab3b: nop dword ptr [rax + rax]
14014ab40: mov dword ptr [rsp + 0x28], r11d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014ab45: cmp qword ptr [rsi + 0x130], r11
14014ab4c: jbe 0x14014b476 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcf6>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014ab52: mov r8, qword ptr [rsi + 0x128]
; D:/dev/floormat/src/spritebatch.cpp:238
14014ab59: mov r8d, dword ptr [r8 + 4*r11]
14014ab5d: mov dword ptr [rsp + 0x28], r8d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014ab62: cmp qword ptr [rsi + 0xe8], r8
14014ab69: jbe 0x14014b486 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd06>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014ab6f: mov r9, qword ptr [rsi + 0xe0]
14014ab76: mov dword ptr [rsp + 0x28], r11d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014ab7b: cmp qword ptr [rsi + 0xb8], r11
14014ab82: jbe 0x14014b469 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xce9>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014ab88: imul r8, r8, 0x70
14014ab8c: mov r10, qword ptr [rdx]
; D:/dev/floormat/src/spritebatch.cpp:237
14014ab8f: inc r11
; D:/dev/floormat/src/spritebatch.cpp:238
14014ab92: vmovups zmm0, zmmword ptr [r9 + r8]
14014ab99: vmovups zmm1, zmmword ptr [r9 + r8 + 0x30]
14014aba4: vmovups zmmword ptr [r10 + rcx + 0x30], zmm1
14014abaf: vmovups zmmword ptr [r10 + rcx], zmm0
; D:/dev/floormat/src/spritebatch.cpp:237
14014abb6: add rcx, 0x70
14014abba: cmp rax, rcx
14014abbd: jne 0x14014ab40 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x3c0>
14014abbf: jmp 0x14014b3f7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc77>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014abc4: mov rax, qword ptr [rcx]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014abc7: mov rax, qword ptr [rax - 0x8]
14014abcb: add rax, -0x8
14014abcf: shr rax, 0x2
14014abd3: mov qword ptr [rsp + 0x58], r15
14014abd8: mov qword ptr [rsp + 0x60], rcx
; D:/dev/floormat/src/spritebatch.cpp:202
14014abdd: cmp rax, qword ptr [rsp + 0x38]
14014abe2: jb 0x14014aa3c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x2bc>
14014abe8: jmp 0x14014aa65 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x2e5>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1987
14014abed: mov rcx, qword ptr [rsi]
14014abf0: mov rax, qword ptr [rcx - 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014abf4: add rax, -0x8
14014abf8: shr rax, 0x3
; D:/dev/floormat/src/spritebatch.cpp:202
14014abfc: cmp rax, rdx
14014abff: jae 0x14014ac57 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4d7>
; D:/dev/floormat/src/spritebatch.cpp:203
14014ac01: vcvtusi2ss xmm0, xmm5, edi
14014ac07: vmulss xmm0, xmm0, dword ptr [rip + 0x1069b1] # 0x1402515c0 <_load_config_used__end+0x3488>
14014ac0f: vcvttss2usi edx, xmm0
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1999
14014ac15: cmp rax, rdx
14014ac18: jae 0x14014ac57 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4d7>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1965
14014ac1a: lea r14, [8*rdx + 0x8]
14014ac22: add rcx, -0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1966
14014ac26: mov rdx, r14
14014ac29: call 0x14024d920 <realloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1967
14014ac2e: test rax, rax
14014ac31: je 0x14014b4de <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd5e>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1969
14014ac37: mov qword ptr [rax], r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1970
14014ac3a: add rax, 0x8
14014ac3e: mov qword ptr [rsi], rax
14014ac41: jmp 0x14014ac57 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4d7>
14014ac43: lea r12, [rip - 0x2e2a] # 0x140147e20 <Corrade::Containers::ArrayMallocAllocator<unsigned int>::deleter(unsigned int*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:60
14014ac4a: test rbp, rbp
14014ac4d: je 0x14014ac57 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4d7>
14014ac4f: mov rcx, rbp
14014ac52: call 0x14024d870 <free>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
14014ac57: mov r14, qword ptr [rsi + 0x8]
14014ac5b: cmp r14, qword ptr [rsp + 0x30]
14014ac60: je 0x14014ad54 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5d4>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2027
14014ac66: mov rcx, qword ptr [rsi + 0x10]
14014ac6a: lea rax, [rip - 0x2401] # 0x140148870 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::deleter(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>
14014ac71: cmp rcx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2035
14014ac74: je 0x14014acfa <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x57a>
14014ac7a: mov rax, qword ptr [rsp + 0x30]
14014ac7f: mov qword ptr [rsp + 0x40], rcx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:256
14014ac84: lea r15, [8*rax + 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:257
14014ac8c: mov rcx, r15
14014ac8f: call 0x14024d8c0 <malloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:258
14014ac94: test rax, rax
14014ac97: je 0x14014b4c2 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd42>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:260
14014ac9d: mov qword ptr [rax], r15
14014aca0: mov rbp, qword ptr [rsp + 0x30]
14014aca5: mov r12, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:261
14014aca8: add r12, 0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2037
14014acac: mov r15, qword ptr [rsi]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
14014acaf: test r14, r14
14014acb2: je 0x14014accd <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x54d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014acb4: cmp r14, rbp
14014acb7: mov r8, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
14014acba: mov rcx, r12
14014acbd: mov rdx, r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014acc0: cmovb r8, r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
14014acc4: shl r8, 0x3
14014acc8: call 0x14024d8f0 <memcpy>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014accd: lea rax, [rip - 0x2464] # 0x140148870 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::deleter(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>
14014acd4: mov qword ptr [rsi], r12
14014acd7: mov qword ptr [rsi + 0x8], rbp
14014acdb: mov qword ptr [rsi + 0x10], rax
14014acdf: mov rax, qword ptr [rsp + 0x40]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
14014ace4: test rax, rax
14014ace7: je 0x14014ad40 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5c0>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:55
14014ace9: mov rcx, r15
14014acec: mov rdx, r14
14014acef: call rax
14014acf1: lea r12, [rip - 0x2ed8] # 0x140147e20 <Corrade::Containers::ArrayMallocAllocator<unsigned int>::deleter(unsigned int*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:55
14014acf8: jmp 0x14014ad54 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5d4>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
14014acfa: mov rcx, qword ptr [rsi]
14014acfd: mov r15, qword ptr [rsp + 0x30]
14014ad02: mov rax, qword ptr [rcx - 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014ad06: add rax, -0x8
14014ad0a: shr rax, 0x3
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
14014ad0e: cmp rax, r15
14014ad11: jae 0x14014ad3a <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5ba>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1965
14014ad13: lea r14, [8*r15 + 0x8]
14014ad1b: add rcx, -0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1966
14014ad1f: mov rdx, r14
14014ad22: call 0x14024d920 <realloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1967
14014ad27: test rax, rax
14014ad2a: je 0x14014b4de <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd5e>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1969
14014ad30: mov qword ptr [rax], r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1970
14014ad33: add rax, 0x8
14014ad37: mov qword ptr [rsi], rax
14014ad3a: mov qword ptr [rsi + 0x8], r15
14014ad3e: jmp 0x14014ad54 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5d4>
14014ad40: lea r12, [rip - 0x2f27] # 0x140147e20 <Corrade::Containers::ArrayMallocAllocator<unsigned int>::deleter(unsigned int*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:60
14014ad47: test r15, r15
14014ad4a: je 0x14014ad54 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5d4>
14014ad4c: mov rcx, r15
14014ad4f: call 0x14024d870 <free>
14014ad54: lea rcx, [rsi + 0x18]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014ad58: cmp qword ptr [rsi + 0x28], r12
14014ad5c: je 0x14014ae7f <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x6ff>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:661
14014ad62: mov rax, qword ptr [rsi + 0x20]
14014ad66: mov qword ptr [rsp + 0x40], rcx
; D:/dev/floormat/src/spritebatch.cpp:202
14014ad6b: cmp rax, qword ptr [rsp + 0x30]
14014ad70: jae 0x14014ad93 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x613>
; D:/dev/floormat/src/spritebatch.cpp:203
14014ad72: vcvtusi2ss xmm0, xmm5, edi
14014ad78: vmulss xmm0, xmm0, dword ptr [rip + 0x106840] # 0x1402515c0 <_load_config_used__end+0x3488>
14014ad80: lea rcx, [rsi + 0x18]
14014ad84: vcvttss2usi edx, xmm0
14014ad8a: call 0x140147a80 <unsigned long long Corrade::Containers::arrayReserve<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, unsigned long long)>
14014ad8f: lea rcx, [rsi + 0x18]
14014ad93: mov rdx, qword ptr [rsp + 0x30]
14014ad98: lea r15, [rsi + 0x30]
; D:/dev/floormat/src/spritebatch.cpp:204
14014ad9c: call 0x140148f20 <void Corrade::Containers::arrayResize<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, Corrade::NoInitT, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
14014ada1: lea r12, [rip - 0x3ab8] # 0x1401472f0 <Corrade::Containers::ArrayMallocAllocator<float>::deleter(float*, unsigned long long)>
14014ada8: cmp qword ptr [rsi + 0x40], r12
14014adac: je 0x14014aea3 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x723>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:661
14014adb2: mov rax, qword ptr [rsi + 0x38]
; D:/dev/floormat/src/spritebatch.cpp:202
14014adb6: cmp rax, qword ptr [rsp + 0x30]
14014adbb: jae 0x14014add9 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x659>
; D:/dev/floormat/src/spritebatch.cpp:203
14014adbd: vcvtusi2ss xmm0, xmm5, edi
14014adc3: vmulss xmm0, xmm0, dword ptr [rip + 0x1067f5] # 0x1402515c0 <_load_config_used__end+0x3488>
14014adcb: mov rcx, r15
14014adce: vcvttss2usi edx, xmm0
14014add4: call 0x1401471e0 <unsigned long long Corrade::Containers::arrayReserve<float, Corrade::Containers::ArrayMallocAllocator<float>>(Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>&, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
14014add9: mov r14, qword ptr [rsi + 0x38]
14014addd: cmp r14, qword ptr [rsp + 0x30]
14014ade2: je 0x14014af1b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x79b>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2027
14014ade8: cmp qword ptr [rsi + 0x40], r12
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2035
14014adec: je 0x14014aec2 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x742>
14014adf2: mov rax, qword ptr [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:256
14014adf7: lea rbp, [4*rax + 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:257
14014adff: mov rcx, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:256
14014ae02: mov qword ptr [rsp + 0x28], rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:257
14014ae07: call 0x14024d8c0 <malloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:258
14014ae0c: test rax, rax
14014ae0f: je 0x14014b4ca <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd4a>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:260
14014ae15: mov qword ptr [rax], rbp
14014ae18: mov r12, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:261
14014ae1b: add r12, 0x8
14014ae1f: mov rbp, r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014ae22: mov r9, qword ptr [r15]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
14014ae25: test r14, r14
14014ae28: mov r14, qword ptr [rsp + 0x30]
14014ae2d: je 0x14014ae52 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x6d2>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014ae2f: cmp rbp, r14
14014ae32: mov r8, r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
14014ae35: mov rcx, r12
14014ae38: mov rdx, r9
14014ae3b: mov qword ptr [rsp + 0x48], r9
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014ae40: cmovb r8, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
14014ae44: shl r8, 0x2
14014ae48: call 0x14024d8f0 <memcpy>
14014ae4d: mov r9, qword ptr [rsp + 0x48]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014ae52: mov qword ptr [rsi + 0x30], r12
14014ae56: mov qword ptr [rsi + 0x38], r14
14014ae5a: lea rcx, [rip - 0x3b71] # 0x1401472f0 <Corrade::Containers::ArrayMallocAllocator<float>::deleter(float*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
14014ae61: mov rax, qword ptr [rsi + 0x40]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014ae65: mov qword ptr [rsi + 0x40], rcx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
14014ae69: test rax, rax
14014ae6c: je 0x14014af0e <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x78e>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:55
14014ae72: mov rcx, r9
14014ae75: mov rdx, rbp
14014ae78: call rax
14014ae7a: jmp 0x14014af1b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x79b>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014ae7f: mov rax, qword ptr [rcx]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014ae82: mov rax, qword ptr [rax - 0x8]
14014ae86: add rax, -0x8
14014ae8a: shr rax, 0x2
14014ae8e: mov qword ptr [rsp + 0x40], rcx
; D:/dev/floormat/src/spritebatch.cpp:202
14014ae93: cmp rax, qword ptr [rsp + 0x30]
14014ae98: jb 0x14014ad72 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5f2>
14014ae9e: jmp 0x14014ad93 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x613>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:644
14014aea3: mov rax, qword ptr [r15]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014aea6: mov rax, qword ptr [rax - 0x8]
14014aeaa: add rax, -0x8
14014aeae: shr rax, 0x2
; D:/dev/floormat/src/spritebatch.cpp:202
14014aeb2: cmp rax, qword ptr [rsp + 0x30]
14014aeb7: jb 0x14014adbd <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x63d>
14014aebd: jmp 0x14014add9 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x659>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
14014aec2: mov rcx, qword ptr [r15]
14014aec5: mov r14, qword ptr [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014aeca: mov rax, qword ptr [rcx - 0x8]
14014aece: add rax, -0x8
14014aed2: shr rax, 0x2
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
14014aed6: cmp rax, r14
14014aed9: jae 0x14014af08 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x788>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1965
14014aedb: lea r12, [4*r14 + 0x8]
14014aee3: add rcx, -0x8
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1966
14014aee7: mov rdx, r12
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1965
14014aeea: mov qword ptr [rsp + 0x28], r12
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1966
14014aeef: call 0x14024d920 <realloc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1967
14014aef4: test rax, rax
14014aef7: je 0x14014b4ee <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd6e>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1969
14014aefd: mov qword ptr [rax], r12
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1970
14014af00: add rax, 0x8
14014af04: mov qword ptr [rsi + 0x30], rax
14014af08: mov qword ptr [rsi + 0x38], r14
14014af0c: jmp 0x14014af1b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x79b>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:60
14014af0e: test r9, r9
14014af11: je 0x14014af1b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x79b>
14014af13: mov rcx, r9
14014af16: call 0x14024d870 <free>
14014af1b: mov r11, qword ptr [rsi + 0x118]
14014af22: lea rax, [rsi + 0xf8]
14014af29: xor ecx, ecx
14014af2b: mov qword ptr [rsp + 0x48], rax
14014af30: mov dword ptr [rsp + 0x28], ecx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014af34: cmp r11, rcx
14014af37: je 0x14014b42d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcad>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014af3d: mov rax, qword ptr [r13]
; D:/dev/floormat/src/spritebatch.cpp:252
14014af41: lea r12, [rcx + 0x1]
14014af45: mov r8d, dword ptr [rax + 4*rcx]
14014af49: mov dword ptr [rsp + 0x28], r12d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014af4e: cmp r11, r12
14014af51: jbe 0x14014b42d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcad>
14014af57: cmp qword ptr [rsi + 0x8], rcx
14014af5b: jbe 0x14014b44c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xccc>
; D:/dev/floormat/src/spritebatch.cpp:252
14014af61: mov r9d, dword ptr [rax + 4*rcx + 0x4]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014af66: mov r10, qword ptr [rsi]
; D:/dev/floormat/src/spritebatch.cpp:252
14014af69: mov dword ptr [r10 + 8*rcx], r8d
14014af6d: mov dword ptr [r10 + 8*rcx + 0x4], r9d
; D:/dev/floormat/src/spritebatch.cpp:253
14014af72: mov r9d, dword ptr [rax + 4*rcx]
14014af76: mov dword ptr [rsp + 0x28], r9d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014af7b: mov rax, qword ptr [rsi + 0x130]
14014af82: cmp rax, r9
14014af85: jbe 0x14014b43a <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcba>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014af8b: mov r8, qword ptr [rsi + 0x128]
; D:/dev/floormat/src/spritebatch.cpp:253
14014af92: mov r14d, dword ptr [r8 + 4*r9]
14014af96: mov dword ptr [rsp + 0x28], r14d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014af9b: mov rdx, qword ptr [rsi + 0x100]
14014afa2: cmp rdx, r14
14014afa5: jbe 0x14014b457 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcd7>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014afab: mov r10, qword ptr [rsi + 0xf8]
; D:/dev/floormat/src/spritebatch.cpp:253
14014afb2: vmovss xmm0, dword ptr [r10 + 4*r14]
14014afb8: mov dword ptr [rsp + 0x28], ecx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014afbc: cmp qword ptr [rsi + 0x38], rcx
14014afc0: jbe 0x14014b41d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc9d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014afc6: mov r14, qword ptr [r15]
; D:/dev/floormat/src/spritebatch.cpp:253
14014afc9: vmovss dword ptr [r14 + 4*rcx], xmm0
14014afcf: mov rcx, r12
; D:/dev/floormat/src/spritebatch.cpp:250
14014afd2: cmp qword ptr [rsp + 0x30], r12
14014afd7: jne 0x14014af30 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x7b0>
14014afdd: mov r9, qword ptr [rsp + 0x30]
14014afe2: mov r11, qword ptr [rsi + 0x20]
; D:/dev/floormat/src/spritebatch.cpp:260
14014afe6: lea r12, [r9 - 0x1]
14014afea: cmp r11, r12
14014afed: cmovb r12, r11
14014aff1: cmp r12, 0x1f
14014aff5: ja 0x14014affe <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x87e>
14014aff7: xor ecx, ecx
14014aff9: jmp 0x14014b0a0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x920>
14014affe: vmovdqa64 zmm1, zmmword ptr [rip + 0x1065f8] # 0x140251600 <_load_config_used__end+0x34c8>
14014b008: vpbroadcastq zmm2, qword ptr [rip + 0x10662e] # 0x140251640 <_load_config_used__end+0x3508>
; D:/dev/floormat/src/spritebatch.cpp:260
14014b012: lea rcx, [r12 + 0x1]
14014b017: mov r14d, 0x20
14014b01d: lea r9, [rsi + 0x18]
14014b021: vpbroadcastd ymm0, edi
14014b027: mov r13d, ecx
14014b02a: and r13d, 0x1f
14014b02e: cmovne r14, r13
14014b032: mov r13, qword ptr [r9]
14014b035: sub rcx, r14
; D:/dev/floormat/src/spritebatch.cpp:260
14014b038: sub r12, r14
14014b03b: mov r14, -0x1
14014b042: nop word ptr cs:[rax + rax]
; D:/dev/floormat/src/spritebatch.cpp:261
14014b050: kxnorb k1, k0, k0
14014b054: add r14, 0x20
14014b058: vpscatterqd dword ptr [r13 + 4*zmm1] {k1}, ymm0
14014b060: kxnorb k1, k0, k0
14014b064: vpscatterqd dword ptr [r13 + 4*zmm1 + 0x20] {k1}, ymm0
14014b06c: kxnorb k1, k0, k0
14014b070: vpscatterqd dword ptr [r13 + 4*zmm1 + 0x40] {k1}, ymm0
14014b078: kxnorb k1, k0, k0
14014b07c: vpscatterqd dword ptr [r13 + 4*zmm1 + 0x60] {k1}, ymm0
14014b084: vpaddq zmm1, zmm1, zmm2
; D:/dev/floormat/src/spritebatch.cpp:260
14014b08a: cmp r12, r14
14014b08d: jne 0x14014b050 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x8d0>
14014b08f: mov r9, qword ptr [rsp + 0x30]
14014b094: nop word ptr cs:[rax + rax]
14014b0a0: mov dword ptr [rsp + 0x28], ecx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b0a4: cmp r11, rcx
14014b0a7: je 0x14014b40b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc8b>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b0ad: lea r14, [rsi + 0x18]
14014b0b1: mov r12, qword ptr [r14]
; D:/dev/floormat/src/spritebatch.cpp:261
14014b0b4: mov dword ptr [r12 + 4*rcx], edi
; D:/dev/floormat/src/spritebatch.cpp:260
14014b0b8: inc rcx
14014b0bb: cmp r9, rcx
14014b0be: jne 0x14014b0a0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x920>
14014b0c0: vmovss xmm0, dword ptr [rip + 0x106580] # 0x140251648 <_load_config_used__end+0x3510>
; D:/dev/floormat/src/spritebatch.cpp:262
14014b0c8: add ebx, -0x2
14014b0cb: jmp 0x14014b0e3 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x963>
14014b0cd: nop dword ptr [rax]
14014b0d0: mov r9, qword ptr [rsp + 0x30]
; D:/dev/floormat/src/spritebatch.cpp:262
14014b0d5: sub rbx, 0x1
; D:/dev/floormat/src/spritebatch.cpp:275
14014b0d9: mov dword ptr [r12], ecx
; D:/dev/floormat/src/spritebatch.cpp:262
14014b0dd: jb 0x14014b172 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x9f2>
; D:/dev/floormat/src/spritebatch.cpp:257
14014b0e3: cmp rbx, r9
14014b0e6: jae 0x14014b110 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x990>
14014b0e8: mov dword ptr [rsp + 0x28], ebx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b0ec: cmp qword ptr [rsi + 0x38], rbx
14014b0f0: jbe 0x14014b41d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc9d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b0f6: mov rcx, qword ptr [r15]
; D:/dev/floormat/src/spritebatch.cpp:257
14014b0f9: vmovss xmm1, dword ptr [rcx + 4*rbx]
14014b0fe: mov ecx, ebx
14014b100: jmp 0x14014b116 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x996>
14014b102: nop word ptr cs:[rax + rax]
14014b110: mov ecx, ebx
14014b112: vmovaps xmm1, xmm0
; D:/dev/floormat/src/spritebatch.cpp:266
14014b116: lea r13d, [rcx + rdi]
14014b11a: nop word ptr [rax + rax]
; D:/dev/floormat/src/spritebatch.cpp:266
14014b120: shr r13d
14014b123: je 0x14014b0d0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x950>
14014b125: mov dword ptr [rsp + 0x28], r13d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b12a: mov r13d, r13d
14014b12d: cmp r11, r13
14014b130: jbe 0x14014b40b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc8b>
; D:/dev/floormat/src/spritebatch.cpp:268
14014b136: mov r14d, dword ptr [r12 + 4*r13]
14014b13a: vmovaps xmm2, xmm0
; D:/dev/floormat/src/spritebatch.cpp:257
14014b13e: cmp r14d, edi
14014b141: jae 0x14014b15c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x9dc>
14014b143: mov dword ptr [rsp + 0x28], r14d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b148: cmp qword ptr [rsi + 0x38], r14
14014b14c: jbe 0x14014b41d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc9d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b152: mov rbp, qword ptr [r15]
; D:/dev/floormat/src/spritebatch.cpp:257
14014b155: vmovss xmm2, dword ptr [rbp + 4*r14]
; D:/dev/floormat/src/spritebatch.cpp:269
14014b15c: vucomiss xmm1, xmm2
14014b160: jbe 0x14014b120 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x9a0>
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:44
14014b162: mov ebp, dword ptr [r12 + 4*r13]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:45
14014b166: mov dword ptr [r12 + 4*r13], ecx
14014b16a: vmovaps xmm1, xmm2
14014b16e: mov ecx, ebp
14014b170: jmp 0x14014b120 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x9a0>
; D:/dev/floormat/src/spritebatch.cpp:283
14014b172: cmp dword ptr [rsp + 0x50], 0x0
14014b177: je 0x14014b3bd <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc3d>
14014b17d: vmovss xmm0, dword ptr [rip + 0x1064c3] # 0x140251648 <_load_config_used__end+0x3510>
14014b185: vmovd xmm1, dword ptr [rip + 0x1064bf] # 0x14025164c <_load_config_used__end+0x3514>
14014b18d: xor ebx, ebx
14014b18f: vmovaps xmm3, xmm0
14014b193: jmp 0x14014b1c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xa45>
14014b195: nop word ptr cs:[rax + rax]
; D:/dev/floormat/src/spritebatch.cpp:312
14014b1a0: cmp ebp, ecx
14014b1a2: vmovaps xmm3, xmm0
; D:/dev/floormat/src/spritebatch.cpp:309
14014b1a6: mov dword ptr [r12], ebp
; D:/dev/floormat/src/spritebatch.cpp:312
14014b1aa: sete cl
14014b1ad: kmovd k1, ecx
14014b1b1: vmovss xmm3 {k1}, xmm3, xmm4
; D:/dev/floormat/src/spritebatch.cpp:283
14014b1b7: inc rbx
14014b1ba: cmp rbx, qword ptr [rsp + 0x38]
14014b1bf: je 0x14014b310 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xb90>
; D:/dev/floormat/src/spritebatch.cpp:285
14014b1c5: mov ecx, dword ptr [r12]
; D:/dev/floormat/src/spritebatch.cpp:286
14014b1c9: cmp ecx, edi
14014b1cb: jae 0x14014b4f8 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd78>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b1d1: cmp qword ptr [rsi + 0x8], rcx
14014b1d5: jbe 0x14014b44c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xccc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b1db: mov r13, qword ptr [rsi]
; D:/dev/floormat/src/spritebatch.cpp:286
14014b1de: mov r14d, dword ptr [r13 + 8*rcx]
14014b1e3: cmp r14d, dword ptr [r13 + 8*rcx + 0x4]
14014b1e8: jae 0x14014b4f8 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd78>
14014b1ee: mov dword ptr [rsp + 0x28], r14d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b1f3: cmp rax, r14
14014b1f6: jbe 0x14014b43a <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcba>
; D:/dev/floormat/src/spritebatch.cpp:287
14014b1fc: mov ebp, dword ptr [r8 + 4*r14]
14014b200: mov dword ptr [rsp + 0x28], ebx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b204: cmp qword ptr [rsi + 0x148], rbx
14014b20b: jbe 0x14014b496 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd16>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b211: mov r14, qword ptr [rsi + 0x140]
14014b218: vmovdqa xmm2, xmm1
; D:/dev/floormat/src/spritebatch.cpp:287
14014b21c: mov dword ptr [r14 + 4*rbx], ebp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b220: mov r14, qword ptr [rsi]
; D:/dev/floormat/src/spritebatch.cpp:288
14014b223: mov ebp, dword ptr [r14 + 8*rcx]
14014b227: inc ebp
14014b229: mov dword ptr [r14 + 8*rcx], ebp
; D:/dev/floormat/src/spritebatch.cpp:289
14014b22d: cmp ebp, dword ptr [r14 + 8*rcx + 0x4]
14014b232: jae 0x14014b25c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xadc>
14014b234: mov dword ptr [rsp + 0x28], ebp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b238: mov r14d, ebp
14014b23b: cmp rax, r14
14014b23e: jbe 0x14014b43a <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcba>
; D:/dev/floormat/src/spritebatch.cpp:289
14014b244: mov r14d, dword ptr [r8 + 4*r14]
14014b248: mov dword ptr [rsp + 0x28], r14d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b24d: cmp rdx, r14
14014b250: jbe 0x14014b457 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcd7>
; D:/dev/floormat/src/spritebatch.cpp:289
14014b256: vmovd xmm2, dword ptr [r10 + 4*r14]
14014b25c: mov dword ptr [rsp + 0x28], ecx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b260: cmp qword ptr [rsi + 0x38], rcx
14014b264: jbe 0x14014b41d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc9d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b26a: mov r14, qword ptr [r15]
; D:/dev/floormat/src/spritebatch.cpp:292
14014b26d: vucomiss xmm2, xmm3
; D:/dev/floormat/src/spritebatch.cpp:289
14014b271: vmovss dword ptr [r14 + 4*rcx], xmm2
; D:/dev/floormat/src/spritebatch.cpp:292
14014b277: jbe 0x14014b1b7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xa37>
14014b27d: mov dword ptr [rsp + 0x28], ecx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b281: cmp qword ptr [rsi + 0x38], rcx
14014b285: jbe 0x14014b41d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc9d>
; D:/dev/floormat/src/spritebatch.cpp:298
14014b28b: lea r13d, [rcx + rdi]
14014b28f: mov ebp, ecx
14014b291: vmovaps xmm4, xmm1
; D:/dev/floormat/src/spritebatch.cpp:298
14014b295: shr r13d
14014b298: je 0x14014b1a0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xa20>
14014b29e: vmovaps xmm4, xmm1
14014b2a2: mov ebp, ecx
14014b2a4: jmp 0x14014b2c8 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xb48>
14014b2a6: nop word ptr cs:[rax + rax]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:44
14014b2b0: mov r9d, dword ptr [r12 + 4*r13]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:45
14014b2b4: mov dword ptr [r12 + 4*r13], ebp
14014b2b8: vmovaps xmm2, xmm3
14014b2bc: mov ebp, r9d
; D:/dev/floormat/src/spritebatch.cpp:298
14014b2bf: shr r13d
14014b2c2: je 0x14014b1a0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xa20>
14014b2c8: mov dword ptr [rsp + 0x28], r13d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b2cd: mov r13d, r13d
14014b2d0: cmp r11, r13
14014b2d3: jbe 0x14014b40b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc8b>
; D:/dev/floormat/src/spritebatch.cpp:300
14014b2d9: mov r14d, dword ptr [r12 + 4*r13]
14014b2dd: vmovaps xmm3, xmm0
; D:/dev/floormat/src/spritebatch.cpp:257
14014b2e1: cmp r14d, edi
14014b2e4: jae 0x14014b2fe <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xb7e>
14014b2e6: mov dword ptr [rsp + 0x28], r14d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b2eb: cmp qword ptr [rsi + 0x38], r14
14014b2ef: jbe 0x14014b41d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc9d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b2f5: mov r9, qword ptr [r15]
; D:/dev/floormat/src/spritebatch.cpp:257
14014b2f8: vmovss xmm3, dword ptr [r9 + 4*r14]
; D:/dev/floormat/src/spritebatch.cpp:301
14014b2fe: vucomiss xmm2, xmm3
14014b302: ja 0x14014b2b0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xb30>
; D:/dev/floormat/src/spritebatch.cpp:306
14014b304: vucomiss xmm3, xmm4
14014b308: jae 0x14014b2bf <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xb3f>
14014b30a: vmovaps xmm4, xmm3
14014b30e: jmp 0x14014b2bf <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xb3f>
; D:/dev/floormat/src/spritebatch.cpp:316
14014b310: imul rax, qword ptr [rsp + 0x38], 0x70
14014b316: lea rdx, [rsi + 0xb0]
14014b31d: lea rdi, [rsi + 0xe0]
14014b324: xor ecx, ecx
14014b326: xor r11d, r11d
14014b329: nop dword ptr [rax]
14014b330: mov dword ptr [rsp + 0x28], r11d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b335: cmp qword ptr [rsi + 0x148], r11
14014b33c: jbe 0x14014b496 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd16>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b342: mov r8, qword ptr [rsi + 0x140]
; D:/dev/floormat/src/spritebatch.cpp:317
14014b349: mov r8d, dword ptr [r8 + 4*r11]
14014b34d: mov dword ptr [rsp + 0x28], r8d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b352: cmp qword ptr [rsi + 0xe8], r8
14014b359: jbe 0x14014b4a8 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd28>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b35f: mov r9, qword ptr [rsi + 0xe0]
14014b366: mov dword ptr [rsp + 0x28], r11d
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b36b: cmp qword ptr [rsi + 0xb8], r11
14014b372: jbe 0x14014b469 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xce9>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014b378: imul r8, r8, 0x70
14014b37c: mov r10, qword ptr [rdx]
; D:/dev/floormat/src/spritebatch.cpp:316
14014b37f: inc r11
; D:/dev/floormat/src/spritebatch.cpp:317
14014b382: vmovups zmm0, zmmword ptr [r9 + r8]
14014b389: vmovups zmm1, zmmword ptr [r9 + r8 + 0x30]
14014b394: vmovups zmmword ptr [r10 + rcx + 0x30], zmm1
14014b39f: vmovups zmmword ptr [r10 + rcx], zmm0
; D:/dev/floormat/src/spritebatch.cpp:316
14014b3a6: add rcx, 0x70
14014b3aa: cmp rax, rcx
14014b3ad: jne 0x14014b330 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xbb0>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1131
14014b3af: mov r8, qword ptr [rsi + 0x128]
14014b3b6: mov rax, qword ptr [rsi + 0x130]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014b3bd: mov rdx, qword ptr [rsi + 0x140]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1131
14014b3c4: mov rcx, qword ptr [rsi + 0x138]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014b3cb: mov qword ptr [rsi + 0x128], rdx
14014b3d2: vmovups xmm0, xmmword ptr [rsi + 0x148]
14014b3da: vmovups xmmword ptr [rsi + 0x130], xmm0
14014b3e2: mov qword ptr [rsi + 0x140], r8
14014b3e9: mov qword ptr [rsi + 0x148], rax
14014b3f0: mov qword ptr [rsi + 0x150], rcx
; D:/dev/floormat/src/spritebatch.cpp:330
14014b3f7: add rsp, 0x68
14014b3fb: pop rbx
14014b3fc: pop rbp
14014b3fd: pop rdi
14014b3fe: pop rsi
14014b3ff: pop r12
14014b401: pop r13
14014b403: pop r14
14014b405: pop r15
14014b407: vzeroupper
14014b40a: ret
14014b40b: mov rdx, qword ptr [rsp + 0x40]
14014b410: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b415: vzeroupper
14014b418: call 0x14014b600 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b41d: lea rcx, [rsp + 0x28]
14014b422: mov rdx, r15
14014b425: vzeroupper
14014b428: call 0x140149fa0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b42d: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b432: mov rdx, r13
14014b435: call 0x14014b600 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b43a: mov rdx, qword ptr [rsp + 0x58]
14014b43f: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b444: vzeroupper
14014b447: call 0x14014b600 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b44c: mov rdx, rsi
14014b44f: vzeroupper
14014b452: call 0x14014be60 <floormat::(anonymous namespace)::merge_state::run const& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b457: mov rdx, qword ptr [rsp + 0x48]
14014b45c: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b461: vzeroupper
14014b464: call 0x140149fa0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b469: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b46e: vzeroupper
14014b471: call 0x14014b830 <std::__2::array<floormat::Quads::vertex, 4ull> const& Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b476: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b47b: mov rdx, r15
14014b47e: vzeroupper
14014b481: call 0x14014b600 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b486: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b48b: mov rdx, r14
14014b48e: vzeroupper
14014b491: call 0x14014b830 <std::__2::array<floormat::Quads::vertex, 4ull> const& Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b496: mov rdx, qword ptr [rsp + 0x60]
14014b49b: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b4a0: vzeroupper
14014b4a3: call 0x14014b600 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b4a8: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
14014b4ad: mov rdx, rdi
14014b4b0: vzeroupper
14014b4b3: call 0x14014b830 <std::__2::array<floormat::Quads::vertex, 4ull> const& Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const::'lambda'()::operator()() const>
14014b4b8: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:258
14014b4bd: call 0x140146de0 <Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>::allocate(unsigned long long)::'lambda'()::operator()() const>
14014b4c2: mov rcx, r15
14014b4c5: call 0x14014ba60 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::allocate(unsigned long long)::'lambda'()::operator()() const>
14014b4ca: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:258
14014b4cf: call 0x140147300 <Corrade::Containers::ArrayMallocAllocator<float>::allocate(unsigned long long)::'lambda'()::operator()() const>
14014b4d4: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1967
14014b4d9: call 0x140146fe0 <Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>::reallocate(std::__2::array<floormat::Quads::vertex, 4ull>*&, unsigned long long, unsigned long long)::'lambda'()::operator()() const>
14014b4de: mov rcx, r14
14014b4e1: call 0x14014bc60 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::reallocate(floormat::(anonymous namespace)::merge_state::run*&, unsigned long long, unsigned long long)::'lambda'()::operator()() const>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:258
14014b4e6: mov rcx, rbp
14014b4e9: call 0x14014ba60 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::allocate(unsigned long long)::'lambda'()::operator()() const>
14014b4ee: lea rcx, [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1967
14014b4f3: call 0x140147500 <Corrade::Containers::ArrayMallocAllocator<float>::reallocate(float*&, unsigned long long, unsigned long long)::'lambda'()::operator()() const>
; D:/dev/floormat/src/spritebatch.cpp:286
14014b4f8: lea rcx, [rip + 0x124cc6] # 0x1402701c5 <.str.12.3132>
14014b4ff: lea rdx, [rip + 0x124af3] # 0x14026fff9 <.str.1.3106>
14014b506: lea r9, [rip + 0x124c3e] # 0x14027014b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
14014b50d: mov r8d, 0x11e
14014b513: vzeroupper
14014b516: call 0x1400f0e50 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:210
14014b51b: lea rcx, [rip + 0x124ac8] # 0x14026ffea <.str.3105>
14014b522: lea rdx, [rip + 0x124ad0] # 0x14026fff9 <.str.1.3106>
14014b529: lea r9, [rip + 0x124c1b] # 0x14027014b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
14014b530: mov r8d, 0xd2
14014b536: call 0x1400f0e50 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:225
14014b53b: lea rcx, [rip + 0x124c3e] # 0x140270180 <.str.7.3127>
14014b542: lea rdx, [rip + 0x124ab0] # 0x14026fff9 <.str.1.3106>
14014b549: lea r9, [rip + 0x124bfb] # 0x14027014b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
14014b550: mov r8d, 0xe1
14014b556: call 0x1400f0e50 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:226
14014b55b: lea rcx, [rip + 0x124c2a] # 0x14027018c <.str.8.3128>
14014b562: lea rdx, [rip + 0x124a90] # 0x14026fff9 <.str.1.3106>
14014b569: lea r9, [rip + 0x124bdb] # 0x14027014b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
14014b570: mov r8d, 0xe2
14014b576: call 0x1400f0e50 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:227
14014b57b: lea rcx, [rip + 0x124c16] # 0x140270198 <.str.9.3129>
14014b582: lea rdx, [rip + 0x124a70] # 0x14026fff9 <.str.1.3106>
14014b589: lea r9, [rip + 0x124bbb] # 0x14027014b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
14014b590: mov r8d, 0xe3
14014b596: call 0x1400f0e50 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:228
14014b59b: lea rcx, [rip + 0x124c05] # 0x1402701a7 <.str.10.3130>
14014b5a2: lea rdx, [rip + 0x124a50] # 0x14026fff9 <.str.1.3106>
14014b5a9: lea r9, [rip + 0x124b9b] # 0x14027014b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
14014b5b0: mov r8d, 0xe4
14014b5b6: call 0x1400f0e50 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:229
14014b5bb: lea rcx, [rip + 0x124bf4] # 0x1402701b6 <.str.11.3131>
14014b5c2: lea rdx, [rip + 0x124a30] # 0x14026fff9 <.str.1.3106>
14014b5c9: lea r9, [rip + 0x124b7b] # 0x14027014b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
14014b5d0: mov r8d, 0xe5
14014b5d6: call 0x1400f0e50 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:559
14014b5db: mov rcx, rax
14014b5de: call 0x1400017a0 <__clang_call_terminate>
14014b5e3: mov rcx, rax
14014b5e6: call 0x1400017a0 <__clang_call_terminate>
14014b5eb: mov rcx, rax
14014b5ee: call 0x1400017a0 <__clang_call_terminate>
14014b5f3: mov rcx, rax
14014b5f6: call 0x1400017a0 <__clang_call_terminate>
14014b5fb: int3
14014b5fc: int3
14014b5fd: int3
14014b5fe: int3
14014b5ff: int3
0000000140141f60 <floormat::SpriteBatch::sort_vertex_buffer(bool)>:
; floormat::SpriteBatch::sort_vertex_buffer(bool)():
; D:/dev/floormat/src/spritebatch.cpp:208
140141f60: push r15
140141f62: push r14
140141f64: push r13
140141f66: push r12
140141f68: push rsi
140141f69: push rdi
140141f6a: push rbp
140141f6b: push rbx
140141f6c: sub rsp, 0xd8
140141f73: vmovaps xmmword ptr [rsp + 0xc0], xmm9
140141f7c: vmovaps xmmword ptr [rsp + 0xb0], xmm8
140141f85: vmovaps xmmword ptr [rsp + 0xa0], xmm7
140141f8e: vmovaps xmmword ptr [rsp + 0x90], xmm6
; D:/dev/floormat/src/spritebatch.cpp:210
140141f97: cmp byte ptr [rcx + 0x290], 0x1
140141f9e: je 0x140142c30 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcd0>
140141fa4: mov rsi, rcx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:643
140141fa7: mov rcx, qword ptr [rcx + 0x110]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
140141fae: mov rax, rsi
140141fb1: mov edi, edx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
140141fb3: lea rbx, [rip - 0x257a] # 0x14013fa40 <Corrade::Containers::ArrayMallocAllocator<unsigned int>::deleter(unsigned int*, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
140141fba: sub rax, rcx
140141fbd: add rax, 0x28c
140141fc3: sar rax, 0x2
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
140141fc7: cmp qword ptr [rsi + 0x120], rbx
140141fce: je 0x140142098 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x138>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:660
140141fd4: mov rcx, qword ptr [rsi + 0x118]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
140141fdb: cmp rax, rcx
140141fde: jb 0x1401420ad <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x14d>
; D:/dev/floormat/src/spritebatch.cpp:212
140141fe4: lea r13, [rsi + 0x110]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2182
140141feb: mov rcx, r13
140141fee: call 0x1401418e0 <unsigned int* Corrade::Containers::Implementation::arrayGrowBy<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2187
140141ff3: mov ecx, dword ptr [rsi + 0x28c]
140141ff9: mov dword ptr [rax], ecx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:668
140141ffb: cmp qword ptr [rsi + 0xb8], 0x0
; D:/dev/floormat/src/spritebatch.cpp:225
140142003: jne 0x140142c50 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcf0>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:668
140142009: cmp qword ptr [rsi + 0x148], 0x0
; D:/dev/floormat/src/spritebatch.cpp:226
140142011: jne 0x140142c70 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd10>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:668
140142017: cmp qword ptr [rsi + 0x8], 0x0
; D:/dev/floormat/src/spritebatch.cpp:227
14014201c: jne 0x140142c90 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd30>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:668
140142022: cmp qword ptr [rsi + 0x20], 0x0
; D:/dev/floormat/src/spritebatch.cpp:228
140142027: jne 0x140142cb0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd50>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:668
14014202d: cmp qword ptr [rsi + 0x38], 0x0
; D:/dev/floormat/src/spritebatch.cpp:229
140142032: jne 0x140142cd0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xd70>
140142038: mov rax, qword ptr [rsi + 0xe8]
14014203f: lea r12, [rsi + 0xb0]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
140142046: lea r14, [rip - 0x30dd] # 0x14013ef70 <Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>::deleter(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>
14014204d: mov qword ptr [rsp + 0x60], rax
140142052: mov r15d, eax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
140142055: cmp qword ptr [rsi + 0xc0], r14
14014205c: je 0x1401420d8 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x178>
14014205e: xor eax, eax
; D:/dev/floormat/src/spritebatch.cpp:202
140142060: cmp rax, r15
140142063: jae 0x140142100 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x1a0>
; D:/dev/floormat/src/spritebatch.cpp:203
140142069: vcvtusi2ss xmm0, xmm5, dword ptr [rsp + 0x60]
140142071: mov rcx, r12
140142074: vmulss xmm0, xmm0, dword ptr [rip + 0xf3ae8] # 0x140235b64 <_load_config_used__end+0x2a2c>
14014207c: vcvttss2usi edx, xmm0
140142082: call 0x14013eea0 <unsigned long long Corrade::Containers::arrayReserve<std::__2::array<floormat::Quads::vertex, 4ull>, Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>>(Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>&, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
140142087: mov rax, qword ptr [rsi + 0xb8]
14014208e: cmp rax, r15
140142091: jne 0x14014210b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x1ab>
140142093: jmp 0x1401421d0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x270>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
140142098: mov rcx, qword ptr [rcx - 0x8]
14014209c: add rcx, -0x8
1401420a0: shr rcx, 0x2
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
1401420a4: cmp rax, rcx
1401420a7: jae 0x140141fe4 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x84>
1401420ad: lea rsi, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2180
1401420b2: lea rdx, [rip + 0x158f4f] # 0x14029b008 <std::__2::cerr>
1401420b9: xor r8d, r8d
1401420bc: mov rcx, rsi
1401420bf: call 0x1401e7600 <Corrade::Utility::Error::Error(std::__2::basic_ostream<char, std::__2::char_traits<char>>*, Corrade::Containers::EnumSet<Corrade::Utility::Debug::Flag, (unsigned char)255>)>
1401420c4: lea rdx, [rip + 0x128766] # 0x14026a831 <.str.139.6390>
1401420cb: mov rcx, rsi
1401420ce: call 0x1401e7700 <Corrade::Utility::Debug::operator<<(char const*)>
1401420d3: jmp 0x140142c01 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xca1>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:643
1401420d8: mov rax, qword ptr [r12]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
1401420dc: mov rdx, qword ptr [rax - 0x8]
1401420e0: movabs rax, 0x2492492492492493
1401420ea: add rdx, -0x8
1401420ee: shr rdx, 0x4
1401420f2: mulx rax, rax, rax
; D:/dev/floormat/src/spritebatch.cpp:202
1401420f7: cmp rax, r15
1401420fa: jb 0x140142069 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x109>
140142100: xor eax, eax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
140142102: cmp rax, r15
140142105: je 0x1401421d0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x270>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2027
14014210b: cmp qword ptr [rsi + 0xc0], r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2035
140142112: je 0x140142188 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x228>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2036
140142114: mov rcx, r15
140142117: mov rbp, rbx
14014211a: call 0x14013ef80 <Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>::allocate(unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014211f: mov rdx, qword ptr [rsi + 0xb8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2036
140142126: mov rbx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:643
140142129: mov rax, qword ptr [rsi + 0xb0]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
140142130: mov rcx, r15
140142133: cmp rdx, r15
140142136: cmovb rcx, rdx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
14014213a: test rcx, rcx
14014213d: je 0x14014215c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x1fc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
14014213f: imul r8, rcx, 0x70
140142143: mov rcx, rbx
140142146: mov rdx, rax
140142149: call 0x140232870 <memcpy>
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:43
14014214e: mov rax, qword ptr [rsi + 0xb0]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
140142155: mov rdx, qword ptr [rsi + 0xb8]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:44
14014215c: mov qword ptr [rsi + 0xb0], rbx
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
140142163: mov qword ptr [rsi + 0xb8], r15
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:43
14014216a: mov r8, qword ptr [rsi + 0xc0]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:44
140142171: mov qword ptr [rsi + 0xc0], r14
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:53
140142178: test r8, r8
14014217b: je 0x1401421c0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x260>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
14014217d: mov rcx, rax
140142180: call r8
140142183: mov rbx, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
140142186: jmp 0x1401421d0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x270>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
140142188: mov rax, qword ptr [r12]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014218c: mov rdx, qword ptr [rax - 0x8]
140142190: movabs rax, 0x2492492492492493
14014219a: add rdx, -0x8
14014219e: shr rdx, 0x4
1401421a2: mulx rax, rax, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
1401421a7: cmp rax, r15
1401421aa: jae 0x1401421b7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x257>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2056
1401421ac: mov rcx, r12
1401421af: mov rdx, r15
1401421b2: call 0x14013f020 <Corrade::Containers::ArrayMallocAllocator<std::__2::array<floormat::Quads::vertex, 4ull>>::reallocate(std::__2::array<floormat::Quads::vertex, 4ull>*&, unsigned long long, unsigned long long)>
1401421b7: mov qword ptr [rsi + 0xb8], r15
1401421be: jmp 0x1401421d0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x270>
1401421c0: mov rbx, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:59
1401421c3: test rax, rax
1401421c6: je 0x1401421d0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x270>
1401421c8: mov rcx, rax
1401421cb: call 0x1402327f0 <free>
1401421d0: mov rcx, rsi
1401421d3: mov rsi, r13
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:660
1401421d6: mov r13d, dword ptr [rcx + 0x118]
1401421dd: lea rax, [rcx + 0xe0]
1401421e4: lea rbp, [rcx + 0x128]
1401421eb: mov qword ptr [rsp + 0x78], rax
; D:/dev/floormat/src/spritebatch.cpp:232
1401421f0: lea r14d, [r13 - 0x1]
1401421f4: cmp r14d, 0x2
1401421f8: setae al
; D:/dev/floormat/src/spritebatch.cpp:233
1401421fb: test dil, al
1401421fe: je 0x1401422d4 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x374>
140142204: lea rdi, [rcx + 0x140]
14014220b: mov qword ptr [rsp + 0x28], rcx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
140142210: cmp qword ptr [rcx + 0x150], rbx
140142217: je 0x14014233f <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x3df>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:660
14014221d: mov rax, qword ptr [rcx + 0x148]
; D:/dev/floormat/src/spritebatch.cpp:202
140142224: cmp rax, r15
140142227: jae 0x140142247 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x2e7>
; D:/dev/floormat/src/spritebatch.cpp:203
140142229: vcvtusi2ss xmm0, xmm5, dword ptr [rsp + 0x60]
140142231: mov rcx, rdi
140142234: vmulss xmm0, xmm0, dword ptr [rip + 0xf3928] # 0x140235b64 <_load_config_used__end+0x2a2c>
14014223c: vcvttss2usi edx, xmm0
140142242: call 0x14013f700 <unsigned long long Corrade::Containers::arrayReserve<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, unsigned long long)>
; D:/dev/floormat/src/spritebatch.cpp:204
140142247: mov rcx, rdi
14014224a: mov rdx, r15
14014224d: call 0x140140320 <void Corrade::Containers::arrayResize<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, Corrade::NoInitT, unsigned long long)>
140142252: mov rax, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
140142257: lea r15, [rip - 0x227e] # 0x14013ffe0 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::deleter(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>
14014225e: mov edi, r14d
140142261: cmp qword ptr [rax + 0x10], r15
140142265: je 0x14014235c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x3fc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1988
14014226b: mov rax, qword ptr [rax + 0x8]
; D:/dev/floormat/src/spritebatch.cpp:202
14014226f: cmp rax, rdi
140142272: jae 0x1401423c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x465>
; D:/dev/floormat/src/spritebatch.cpp:203
140142278: vcvtusi2ss xmm0, xmm5, r14d
14014227e: vmulss xmm0, xmm0, dword ptr [rip + 0xf38de] # 0x140235b64 <_load_config_used__end+0x2a2c>
140142286: vcvttss2usi ecx, xmm0
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1999
14014228c: cmp rax, rcx
14014228f: jae 0x1401423c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x465>
140142295: mov rbp, rbx
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2006
140142298: call 0x140142eb0 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::allocate(unsigned long long)>
14014229d: mov r12, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2006
1401422a2: mov rbx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2007
1401422a5: mov rax, qword ptr [r12]
1401422a9: mov r8, qword ptr [r12 + 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
1401422ae: test r8, r8
1401422b1: je 0x140142395 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x435>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
1401422b7: shl r8, 0x3
1401422bb: mov rcx, rbx
1401422be: mov rdx, rax
1401422c1: call 0x140232870 <memcpy>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
1401422c6: mov rax, qword ptr [r12]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2008
1401422ca: mov rdx, qword ptr [r12 + 0x8]
1401422cf: jmp 0x140142397 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x437>
1401422d4: mov rbx, qword ptr [rsp + 0x60]
1401422d9: mov r14, qword ptr [rsp + 0x78]
; D:/dev/floormat/src/spritebatch.cpp:237
1401422de: test ebx, ebx
1401422e0: je 0x1401429d7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xa77>
1401422e6: xor esi, esi
1401422e8: nop dword ptr [rax + rax]
; D:/dev/floormat/src/spritebatch.cpp:238
1401422f0: mov rcx, rbp
1401422f3: mov edx, esi
1401422f5: vzeroupper
1401422f8: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
1401422fd: mov edx, dword ptr [rax]
1401422ff: mov rcx, r14
140142302: call 0x140142df0 <std::__2::array<floormat::Quads::vertex, 4ull> const& Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
140142307: mov rdi, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
14014230a: mov rcx, r12
14014230d: mov edx, esi
14014230f: call 0x140142df0 <std::__2::array<floormat::Quads::vertex, 4ull> const& Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:238
140142314: vmovups zmm0, zmmword ptr [rdi]
14014231a: vmovups zmm1, zmmword ptr [rdi + 0x30]
; D:/dev/floormat/src/spritebatch.cpp:237
140142324: inc esi
; D:/dev/floormat/src/spritebatch.cpp:238
140142326: vmovups zmmword ptr [rax], zmm0
14014232c: vmovups zmmword ptr [rax + 0x30], zmm1
; D:/dev/floormat/src/spritebatch.cpp:237
140142336: cmp ebx, esi
140142338: jne 0x1401422f0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x390>
14014233a: jmp 0x1401429d7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xa77>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:643
14014233f: mov rax, qword ptr [rdi]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
140142342: mov rax, qword ptr [rax - 0x8]
140142346: add rax, -0x8
14014234a: shr rax, 0x2
; D:/dev/floormat/src/spritebatch.cpp:202
14014234e: cmp rax, r15
140142351: jb 0x140142229 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x2c9>
140142357: jmp 0x140142247 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x2e7>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1987
14014235c: mov rax, qword ptr [rax]
14014235f: mov rax, qword ptr [rax - 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
140142363: add rax, -0x8
140142367: shr rax, 0x3
; D:/dev/floormat/src/spritebatch.cpp:202
14014236b: cmp rax, rdi
14014236e: jae 0x1401423c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x465>
; D:/dev/floormat/src/spritebatch.cpp:203
140142370: vcvtusi2ss xmm0, xmm5, r14d
140142376: vmulss xmm0, xmm0, dword ptr [rip + 0xf37e6] # 0x140235b64 <_load_config_used__end+0x2a2c>
14014237e: vcvttss2usi edx, xmm0
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1999
140142384: cmp rax, rdx
140142387: jae 0x1401423c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x465>
140142389: mov rcx, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2009
14014238e: call 0x140142f50 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::reallocate(floormat::(anonymous namespace)::merge_state::run*&, unsigned long long, unsigned long long)>
140142393: jmp 0x1401423c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x465>
140142395: xor edx, edx
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
140142397: mov qword ptr [r12], rbx
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
14014239b: mov r8, qword ptr [r12 + 0x10]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
1401423a0: mov qword ptr [r12 + 0x10], r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:53
1401423a5: test r8, r8
1401423a8: je 0x1401423b5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x455>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
1401423aa: mov rcx, rax
1401423ad: call r8
1401423b0: mov rbx, rbp
1401423b3: jmp 0x1401423c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x465>
1401423b5: mov rbx, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:59
1401423b8: test rax, rax
1401423bb: je 0x1401423c5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x465>
1401423bd: mov rcx, rax
1401423c0: call 0x1402327f0 <free>
1401423c5: mov r12, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
1401423ca: cmp qword ptr [r12 + 0x8], rdi
1401423cf: je 0x14014247f <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x51f>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2027
1401423d5: cmp qword ptr [r12 + 0x10], r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2035
1401423da: je 0x140142419 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4b9>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2036
1401423dc: mov rcx, rdi
1401423df: mov rbp, rbx
1401423e2: call 0x140142eb0 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::allocate(unsigned long long)>
1401423e7: mov rbx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2037
1401423ea: mov rax, qword ptr [r12]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
1401423ee: mov r8, qword ptr [r12 + 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
1401423f3: test r8, r8
1401423f6: je 0x140142440 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4e0>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
1401423f8: cmp r8, rdi
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
1401423fb: mov rcx, rbx
1401423fe: mov rdx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
140142401: cmovae r8, rdi
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
140142405: shl r8, 0x3
140142409: call 0x140232870 <memcpy>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
14014240e: mov rax, qword ptr [r12]
140142412: mov rdx, qword ptr [r12 + 0x8]
140142417: jmp 0x140142442 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4e2>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
140142419: mov rax, qword ptr [r12]
14014241d: mov rax, qword ptr [rax - 0x8]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
140142421: add rax, -0x8
140142425: shr rax, 0x3
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
140142429: cmp rax, rdi
14014242c: jae 0x140142439 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x4d9>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2056
14014242e: mov rcx, r12
140142431: mov rdx, rdi
140142434: call 0x140142f50 <Corrade::Containers::ArrayMallocAllocator<floormat::(anonymous namespace)::merge_state::run>::reallocate(floormat::(anonymous namespace)::merge_state::run*&, unsigned long long, unsigned long long)>
140142439: mov qword ptr [r12 + 0x8], rdi
14014243e: jmp 0x14014247f <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x51f>
140142440: xor edx, edx
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
140142442: mov qword ptr [r12], rbx
140142446: mov qword ptr [r12 + 0x8], rdi
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
14014244b: mov r8, qword ptr [r12 + 0x10]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
140142450: mov qword ptr [r12 + 0x10], r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:53
140142455: test r8, r8
140142458: je 0x14014246a <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x50a>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
14014245a: mov rcx, rax
14014245d: call r8
140142460: mov r12, qword ptr [rsp + 0x28]
140142465: mov rbx, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
140142468: jmp 0x14014247f <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x51f>
14014246a: mov r12, qword ptr [rsp + 0x28]
14014246f: mov rbx, rbp
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:59
140142472: test rax, rax
140142475: je 0x14014247f <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x51f>
140142477: mov rcx, rax
14014247a: call 0x1402327f0 <free>
14014247f: lea rbp, [r12 + 0x18]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
140142484: cmp qword ptr [r12 + 0x28], rbx
140142489: je 0x140142555 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5f5>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:660
14014248f: mov rax, qword ptr [r12 + 0x20]
; D:/dev/floormat/src/spritebatch.cpp:202
140142494: cmp rax, rdi
140142497: jae 0x1401424b5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x555>
; D:/dev/floormat/src/spritebatch.cpp:203
140142499: vcvtusi2ss xmm0, xmm5, r14d
14014249f: vmulss xmm0, xmm0, dword ptr [rip + 0xf36bd] # 0x140235b64 <_load_config_used__end+0x2a2c>
1401424a7: mov rcx, rbp
1401424aa: vcvttss2usi edx, xmm0
1401424b0: call 0x14013f700 <unsigned long long Corrade::Containers::arrayReserve<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, unsigned long long)>
1401424b5: mov rbx, qword ptr [rsp + 0x28]
; D:/dev/floormat/src/spritebatch.cpp:204
1401424ba: mov rcx, rbp
1401424bd: mov rdx, rdi
1401424c0: lea r12, [rbx + 0x30]
1401424c4: call 0x140140320 <void Corrade::Containers::arrayResize<unsigned int, Corrade::Containers::ArrayMallocAllocator<unsigned int>>(Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>&, Corrade::NoInitT, unsigned long long)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1986
1401424c9: lea r15, [rip - 0x3350] # 0x14013f180 <Corrade::Containers::ArrayMallocAllocator<float>::deleter(float*, unsigned long long)>
1401424d0: cmp qword ptr [rbx + 0x40], r15
1401424d4: je 0x140142573 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x613>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:660
1401424da: mov rax, qword ptr [rbx + 0x38]
1401424de: mov qword ptr [rsp + 0x70], r13
; D:/dev/floormat/src/spritebatch.cpp:202
1401424e3: cmp rax, rdi
1401424e6: jae 0x140142504 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5a4>
; D:/dev/floormat/src/spritebatch.cpp:203
1401424e8: vcvtusi2ss xmm0, xmm5, r14d
1401424ee: vmulss xmm0, xmm0, dword ptr [rip + 0xf366e] # 0x140235b64 <_load_config_used__end+0x2a2c>
1401424f6: mov rcx, r12
1401424f9: vcvttss2usi edx, xmm0
1401424ff: call 0x14013f0d0 <unsigned long long Corrade::Containers::arrayReserve<float, Corrade::Containers::ArrayMallocAllocator<float>>(Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>&, unsigned long long)>
140142504: mov r13, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2030
140142509: cmp qword ptr [r13 + 0x38], rdi
14014250d: je 0x1401425f7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x697>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2027
140142513: cmp qword ptr [r13 + 0x40], r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2035
140142517: je 0x140142596 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x636>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2036
140142519: mov rcx, rdi
14014251c: call 0x14013f190 <Corrade::Containers::ArrayMallocAllocator<float>::allocate(unsigned long long)>
140142521: mov rbx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:643
140142524: mov rax, qword ptr [r13 + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
140142528: mov r8, qword ptr [r13 + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1836
14014252c: test r8, r8
14014252f: je 0x1401425c1 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x661>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
140142535: cmp r8, rdi
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
140142538: mov rcx, rbx
14014253b: mov rdx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2041
14014253e: cmovae r8, rdi
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:1837
140142542: shl r8, 0x2
140142546: call 0x140232870 <memcpy>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
14014254b: mov rax, qword ptr [r13 + 0x30]
14014254f: mov rdx, qword ptr [r13 + 0x38]
140142553: jmp 0x1401425c3 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x663>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:643
140142555: mov rax, qword ptr [rbp]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
140142559: mov rax, qword ptr [rax - 0x8]
14014255d: add rax, -0x8
140142561: shr rax, 0x2
; D:/dev/floormat/src/spritebatch.cpp:202
140142565: cmp rax, rdi
140142568: jb 0x140142499 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x539>
14014256e: jmp 0x1401424b5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x555>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:643
140142573: mov rax, qword ptr [r12]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
140142577: mov rax, qword ptr [rax - 0x8]
14014257b: add rax, -0x8
14014257f: shr rax, 0x2
140142583: mov qword ptr [rsp + 0x70], r13
; D:/dev/floormat/src/spritebatch.cpp:202
140142588: cmp rax, rdi
14014258b: jb 0x1401424e8 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x588>
140142591: jmp 0x140142504 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x5a4>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
140142596: mov rax, qword ptr [r12]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:301
14014259a: mov rax, qword ptr [rax - 0x8]
14014259e: add rax, -0x8
1401425a2: shr rax, 0x2
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2055
1401425a6: cmp rax, rdi
1401425a9: jae 0x1401425b6 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x656>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/GrowableArray.h:2056
1401425ab: mov rcx, r12
1401425ae: mov rdx, rdi
1401425b1: call 0x14013f230 <Corrade::Containers::ArrayMallocAllocator<float>::reallocate(float*&, unsigned long long, unsigned long long)>
1401425b6: mov r13, qword ptr [rsp + 0x28]
1401425bb: mov qword ptr [r13 + 0x38], rdi
1401425bf: jmp 0x1401425f7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x697>
1401425c1: xor edx, edx
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
1401425c3: mov qword ptr [r13 + 0x30], rbx
1401425c7: mov qword ptr [r13 + 0x38], rdi
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:122
1401425cb: mov r8, qword ptr [r13 + 0x40]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
1401425cf: mov qword ptr [r13 + 0x40], r15
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:53
1401425d3: test r8, r8
1401425d6: je 0x1401425e5 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x685>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
1401425d8: mov rcx, rax
1401425db: call r8
1401425de: mov r13, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:54
1401425e3: jmp 0x1401425f7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x697>
1401425e5: mov r13, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:59
1401425ea: test rax, rax
1401425ed: je 0x1401425f7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x697>
1401425ef: mov rcx, rax
1401425f2: call 0x1402327f0 <free>
1401425f7: lea r15, [r13 + 0xf8]
1401425fe: lea rax, [r13 + 0x128]
140142605: xor ebx, ebx
140142607: mov qword ptr [rsp + 0x68], r12
14014260c: mov qword ptr [rsp + 0x88], rax
140142614: mov qword ptr [rsp + 0x80], r15
14014261c: nop dword ptr [rax]
; D:/dev/floormat/src/spritebatch.cpp:252
140142620: mov rcx, rsi
140142623: mov edx, ebx
140142625: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
14014262a: mov r12d, dword ptr [rax]
14014262d: lea edi, [rbx + 0x1]
140142630: mov rcx, rsi
140142633: mov edx, edi
140142635: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
14014263a: mov r15d, dword ptr [rax]
14014263d: mov rcx, r13
140142640: mov edx, ebx
140142642: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
140142647: mov dword ptr [rax], r12d
14014264a: mov r12, qword ptr [rsp + 0x68]
14014264f: mov dword ptr [rax + 0x4], r15d
140142653: lea r15, [r13 + 0xf8]
; D:/dev/floormat/src/spritebatch.cpp:253
14014265a: mov rcx, rsi
14014265d: mov edx, ebx
14014265f: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
140142664: mov edx, dword ptr [rax]
140142666: mov rcx, qword ptr [rsp + 0x88]
14014266e: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
140142673: mov edx, dword ptr [rax]
140142675: mov rcx, r15
140142678: call 0x1401419e0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
14014267d: vmovss xmm6, dword ptr [rax]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
140142681: mov rcx, r12
140142684: mov edx, ebx
140142686: call 0x1401419e0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:253
14014268b: vmovss dword ptr [rax], xmm6
14014268f: mov ebx, edi
; D:/dev/floormat/src/spritebatch.cpp:250
140142691: cmp edi, r14d
140142694: jne 0x140142620 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x6c0>
140142696: xor edi, edi
140142698: nop dword ptr [rax + rax]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
1401426a0: mov rcx, rbp
1401426a3: mov edx, edi
1401426a5: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:260
1401426aa: inc edi
; D:/dev/floormat/src/spritebatch.cpp:261
1401426ac: mov dword ptr [rax], r14d
; D:/dev/floormat/src/spritebatch.cpp:260
1401426af: cmp r14d, edi
1401426b2: jne 0x1401426a0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x740>
1401426b4: vmovss xmm6, dword ptr [rip + 0xf34ac] # 0x140235b68 <_load_config_used__end+0x2a30>
1401426bc: mov r13, qword ptr [rsp + 0x70]
1401426c1: mov r15, qword ptr [rsp + 0x60]
1401426c6: mov rsi, qword ptr [rsp + 0x28]
; D:/dev/floormat/src/spritebatch.cpp:262
1401426cb: add r13d, -0x2
1401426cf: jmp 0x1401426f0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x790>
1401426d1: nop word ptr cs:[rax + rax]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
1401426e0: mov rcx, rbp
1401426e3: call 0x1401430c0 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<int, 0>(int) const>
; D:/dev/floormat/src/spritebatch.cpp:262
1401426e8: sub r13d, 0x1
; D:/dev/floormat/src/spritebatch.cpp:275
1401426ec: mov dword ptr [rax], edi
; D:/dev/floormat/src/spritebatch.cpp:262
1401426ee: jb 0x14014276f <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x80f>
1401426f0: vmovaps xmm0, xmm6
; D:/dev/floormat/src/spritebatch.cpp:257
1401426f4: cmp r13d, r14d
1401426f7: jae 0x140142708 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x7a8>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
1401426f9: mov rcx, r12
1401426fc: mov edx, r13d
1401426ff: call 0x1401419e0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:257
140142704: vmovss xmm0, dword ptr [rax]
; D:/dev/floormat/src/spritebatch.cpp:266
140142708: lea ebx, [r13 + r14]
14014270d: mov edi, r13d
; D:/dev/floormat/src/spritebatch.cpp:266
140142710: shr ebx
140142712: je 0x1401426e0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x780>
140142714: mov rax, qword ptr [rsi + 0x20]
140142718: mov ecx, r13d
14014271b: jmp 0x14014272d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x7cd>
14014271d: nop dword ptr [rax]
140142720: vmovaps xmm0, xmm1
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:45
140142724: mov dword ptr [rdx + 4*rbx], ecx
; D:/dev/floormat/src/spritebatch.cpp:266
140142727: shr ebx
140142729: mov ecx, edi
; D:/dev/floormat/src/spritebatch.cpp:266
14014272b: je 0x1401426e0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x780>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
14014272d: mov ebx, ebx
14014272f: cmp rax, rbx
140142732: jbe 0x140142a12 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xab2>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
140142738: mov rdx, qword ptr [rbp]
14014273c: vmovaps xmm1, xmm6
; D:/dev/floormat/src/spritebatch.cpp:268
140142740: mov edi, dword ptr [rdx + 4*rbx]
; D:/dev/floormat/src/spritebatch.cpp:257
140142743: cmp edi, r14d
140142746: jae 0x14014275c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x7fc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
140142748: cmp qword ptr [rsi + 0x38], rdi
14014274c: jbe 0x140142a8d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xb2d>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
140142752: mov r8, qword ptr [r12]
; D:/dev/floormat/src/spritebatch.cpp:257
140142756: vmovss xmm1, dword ptr [r8 + 4*rdi]
; D:/dev/floormat/src/spritebatch.cpp:269
14014275c: vucomiss xmm0, xmm1
140142760: ja 0x140142720 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x7c0>
140142762: mov edi, ecx
; D:/dev/floormat/src/spritebatch.cpp:266
140142764: shr ebx
140142766: mov ecx, edi
140142768: jne 0x14014272d <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x7cd>
14014276a: jmp 0x1401426e0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x780>
14014276f: lea r13, [rsi + 0xe0]
; D:/dev/floormat/src/spritebatch.cpp:283
140142776: test r15d, r15d
140142779: je 0x14014299b <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xa3b>
14014277f: vmovss xmm6, dword ptr [rip + 0xf33e1] # 0x140235b68 <_load_config_used__end+0x2a30>
140142787: vmovss xmm7, dword ptr [rip + 0xf33dd] # 0x140235b6c <_load_config_used__end+0x2a34>
14014278f: xor r12d, r12d
140142792: vmovaps xmm8, xmm6
140142796: jmp 0x1401427d2 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x872>
140142798: nop dword ptr [rax + rax]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
1401427a0: mov rcx, rbp
1401427a3: call 0x1401430c0 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<int, 0>(int) const>
; D:/dev/floormat/src/spritebatch.cpp:312
1401427a8: cmp r13d, edi
; D:/dev/floormat/src/spritebatch.cpp:309
1401427ab: mov dword ptr [rax], r13d
; D:/dev/floormat/src/spritebatch.cpp:312
1401427ae: vmovaps xmm8, xmm6
1401427b2: lea r13, [rsi + 0xe0]
1401427b9: sete al
1401427bc: kmovd k1, eax
1401427c0: vmovss xmm8 {k1}, xmm8, xmm9
; D:/dev/floormat/src/spritebatch.cpp:283
1401427c6: inc r12d
1401427c9: cmp r12d, r15d
1401427cc: je 0x14014293c <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x9dc>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
1401427d2: mov rcx, rbp
1401427d5: call 0x1401430c0 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<int, 0>(int) const>
; D:/dev/floormat/src/spritebatch.cpp:285
1401427da: mov edi, dword ptr [rax]
; D:/dev/floormat/src/spritebatch.cpp:286
1401427dc: cmp edi, r14d
1401427df: jae 0x140142c10 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcb0>
1401427e5: mov rcx, rsi
1401427e8: mov edx, edi
1401427ea: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
1401427ef: mov ebx, dword ptr [rax]
1401427f1: mov rcx, rsi
1401427f4: mov edx, edi
1401427f6: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
1401427fb: cmp ebx, dword ptr [rax + 0x4]
1401427fe: jae 0x140142c10 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xcb0>
; D:/dev/floormat/src/spritebatch.cpp:287
140142804: mov rcx, rsi
140142807: mov edx, edi
140142809: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
14014280e: mov edx, dword ptr [rax]
140142810: lea rcx, [rsi + 0x128]
140142817: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
14014281c: mov ebx, dword ptr [rax]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
14014281e: lea rcx, [rsi + 0x140]
140142825: mov edx, r12d
140142828: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:287
14014282d: mov dword ptr [rax], ebx
; D:/dev/floormat/src/spritebatch.cpp:288
14014282f: mov rcx, rsi
140142832: mov edx, edi
140142834: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
140142839: inc dword ptr [rax]
; D:/dev/floormat/src/spritebatch.cpp:289
14014283b: mov rcx, rsi
14014283e: mov edx, edi
140142840: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
140142845: mov ebx, dword ptr [rax]
140142847: mov rcx, rsi
14014284a: mov edx, edi
14014284c: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
140142851: vmovaps xmm9, xmm7
; D:/dev/floormat/src/spritebatch.cpp:289
140142855: cmp ebx, dword ptr [rax + 0x4]
140142858: jae 0x140142885 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x925>
14014285a: mov rcx, rsi
14014285d: mov edx, edi
14014285f: call 0x140143000 <floormat::(anonymous namespace)::merge_state::run& Corrade::Containers::Array<floormat::(anonymous namespace)::merge_state::run, void (*)(floormat::(anonymous namespace)::merge_state::run*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int)>
140142864: mov edx, dword ptr [rax]
140142866: lea rcx, [rsi + 0x128]
14014286d: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
140142872: mov edx, dword ptr [rax]
140142874: mov rcx, qword ptr [rsp + 0x80]
14014287c: call 0x1401419e0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
140142881: vmovss xmm9, dword ptr [rax]
140142885: mov rbx, qword ptr [rsp + 0x68]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
14014288a: mov edx, edi
14014288c: mov rcx, rbx
14014288f: call 0x1401419e0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:289
140142894: vmovss dword ptr [rax], xmm9
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
140142898: mov rcx, rbx
14014289b: mov edx, edi
14014289d: call 0x1401419e0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:292
1401428a2: vucomiss xmm8, dword ptr [rax]
1401428a6: jae 0x1401427c6 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x866>
1401428ac: mov rcx, qword ptr [rsp + 0x68]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
1401428b1: mov edx, edi
1401428b3: call 0x1401419e0 <float const& Corrade::Containers::Array<float, void (*)(float*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:298
1401428b8: lea ebx, [rdi + r14]
1401428bc: mov r13d, edi
1401428bf: vmovaps xmm9, xmm7
; D:/dev/floormat/src/spritebatch.cpp:298
1401428c3: shr ebx
1401428c5: je 0x1401427a0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x840>
; D:/dev/floormat/src/spritebatch.cpp:297
1401428cb: vmovss xmm0, dword ptr [rax]
1401428cf: mov rax, qword ptr [rsi + 0x20]
1401428d3: vmovaps xmm9, xmm7
1401428d7: mov ecx, edi
1401428d9: jmp 0x1401428f2 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x992>
1401428db: nop dword ptr [rax + rax]
; D:/dev/llvm-23.1.0-rc3/x86_64-w64-mingw32/include/c++/v1/__utility/swap.h:45
1401428e0: mov dword ptr [rdx + 4*rbx], ecx
1401428e3: vmovaps xmm0, xmm1
; D:/dev/floormat/src/spritebatch.cpp:298
1401428e7: shr ebx
1401428e9: mov ecx, r13d
; D:/dev/floormat/src/spritebatch.cpp:298
1401428ec: je 0x1401427a0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x840>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
1401428f2: mov ebx, ebx
1401428f4: cmp rax, rbx
1401428f7: jbe 0x140142b08 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xba8>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
1401428fd: mov rdx, qword ptr [rbp]
140142901: vmovaps xmm1, xmm6
; D:/dev/floormat/src/spritebatch.cpp:300
140142905: mov r13d, dword ptr [rdx + 4*rbx]
; D:/dev/floormat/src/spritebatch.cpp:257
140142909: cmp r13d, r14d
14014290c: jae 0x140142926 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x9c6>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
14014290e: cmp qword ptr [rsi + 0x38], r13
140142912: jbe 0x140142b85 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xc25>
140142918: mov r8, qword ptr [rsp + 0x68]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1170
14014291d: mov r8, qword ptr [r8]
; D:/dev/floormat/src/spritebatch.cpp:257
140142920: vmovss xmm1, dword ptr [r8 + 4*r13]
; D:/dev/floormat/src/spritebatch.cpp:301
140142926: vucomiss xmm0, xmm1
14014292a: ja 0x1401428e0 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x980>
; D:/dev/floormat/src/spritebatch.cpp:306
14014292c: vucomiss xmm1, xmm9
140142931: mov r13d, ecx
140142934: jae 0x1401428e7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x987>
140142936: vmovaps xmm9, xmm1
14014293a: jmp 0x1401428e7 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x987>
14014293c: lea r14, [rsi + 0xb0]
140142943: lea r12, [rsi + 0x140]
14014294a: xor edi, edi
14014294c: nop dword ptr [rax]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
140142950: mov rcx, r12
140142953: mov edx, edi
140142955: vzeroupper
140142958: call 0x140142d30 <unsigned int const& Corrade::Containers::Array<unsigned int, void (*)(unsigned int*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:317
14014295d: mov edx, dword ptr [rax]
14014295f: mov rcx, r13
140142962: call 0x140142df0 <std::__2::array<floormat::Quads::vertex, 4ull> const& Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
140142967: mov rbx, rax
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1186
14014296a: mov rcx, r14
14014296d: mov edx, edi
14014296f: call 0x140142df0 <std::__2::array<floormat::Quads::vertex, 4ull> const& Corrade::Containers::Array<std::__2::array<floormat::Quads::vertex, 4ull>, void (*)(std::__2::array<floormat::Quads::vertex, 4ull>*, unsigned long long)>::operator[]<unsigned int, 0>(unsigned int) const>
; D:/dev/floormat/src/spritebatch.cpp:317
140142974: vmovups zmm0, zmmword ptr [rbx]
14014297a: vmovups zmm1, zmmword ptr [rbx + 0x30]
; D:/dev/floormat/src/spritebatch.cpp:316
140142984: inc edi
; D:/dev/floormat/src/spritebatch.cpp:317
140142986: vmovups zmmword ptr [rax], zmm0
14014298c: vmovups zmmword ptr [rax + 0x30], zmm1
; D:/dev/floormat/src/spritebatch.cpp:316
140142996: cmp r15d, edi
140142999: jne 0x140142950 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0x9f0>
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
14014299b: mov rcx, qword ptr [rsi + 0x140]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1130
1401429a2: vmovups xmm0, xmmword ptr [rsi + 0x128]
1401429aa: mov rax, qword ptr [rsi + 0x138]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Move.h:123
1401429b1: mov qword ptr [rsi + 0x128], rcx
1401429b8: vmovups xmm1, xmmword ptr [rsi + 0x148]
1401429c0: vmovups xmmword ptr [rsi + 0x130], xmm1
1401429c8: vmovups xmmword ptr [rsi + 0x140], xmm0
1401429d0: mov qword ptr [rsi + 0x150], rax
1401429d7: vmovaps xmm6, xmmword ptr [rsp + 0x90]
1401429e0: vmovaps xmm7, xmmword ptr [rsp + 0xa0]
1401429e9: vmovaps xmm8, xmmword ptr [rsp + 0xb0]
1401429f2: vmovaps xmm9, xmmword ptr [rsp + 0xc0]
; D:/dev/floormat/src/spritebatch.cpp:330
1401429fb: add rsp, 0xd8
140142a02: pop rbx
140142a03: pop rbp
140142a04: pop rdi
140142a05: pop rsi
140142a06: pop r12
140142a08: pop r13
140142a0a: pop r14
140142a0c: pop r15
140142a0e: vzeroupper
140142a11: ret
140142a12: lea rdi, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
140142a17: lea rdx, [rip + 0x1585ea] # 0x14029b008 <std::__2::cerr>
140142a1e: xor r8d, r8d
140142a21: mov rcx, rdi
140142a24: call 0x1401e7600 <Corrade::Utility::Error::Error(std::__2::basic_ostream<char, std::__2::char_traits<char>>*, Corrade::Containers::EnumSet<Corrade::Utility::Debug::Flag, (unsigned char)255>)>
140142a29: lea rax, [rip + 0x127dd1] # 0x14026a801 <.str.137.6424>
140142a30: mov qword ptr [rsp + 0x30], rax
140142a35: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142a3a: mov rcx, rdi
140142a3d: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
140142a42: lea rcx, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142a47: mov edx, ebx
140142a49: call 0x1401e9150 <Corrade::Utility::Debug::operator<<(unsigned int)>
140142a4e: lea rax, [rip + 0x127c11] # 0x14026a666 <.str.115.6425>
140142a55: mov qword ptr [rsp + 0x30], rax
140142a5a: lea rcx, [rsp + 0x38]
140142a5f: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142a64: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142a69: mov rdx, qword ptr [rsi + 0x20]
140142a6d: lea rcx, [rsp + 0x38]
140142a72: call 0x1401e81c0 <Corrade::Utility::Debug::operator<<(unsigned long long)>
140142a77: lea rdx, [rip + 0x127daa] # 0x14026a828 <.str.138.6426>
140142a7e: lea rcx, [rsp + 0x38]
140142a83: call 0x1401e7700 <Corrade::Utility::Debug::operator<<(char const*)>
140142a88: jmp 0x140142c01 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xca1>
140142a8d: lea rbx, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
140142a92: lea rdx, [rip + 0x15856f] # 0x14029b008 <std::__2::cerr>
140142a99: xor r8d, r8d
140142a9c: mov rcx, rbx
140142a9f: call 0x1401e7600 <Corrade::Utility::Error::Error(std::__2::basic_ostream<char, std::__2::char_traits<char>>*, Corrade::Containers::EnumSet<Corrade::Utility::Debug::Flag, (unsigned char)255>)>
140142aa4: lea rax, [rip + 0x127d56] # 0x14026a801 <.str.137.6424>
140142aab: mov qword ptr [rsp + 0x30], rax
140142ab0: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142ab5: mov rcx, rbx
140142ab8: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
140142abd: lea rcx, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142ac2: mov edx, edi
140142ac4: call 0x1401e9150 <Corrade::Utility::Debug::operator<<(unsigned int)>
140142ac9: lea rax, [rip + 0x127b96] # 0x14026a666 <.str.115.6425>
140142ad0: mov qword ptr [rsp + 0x30], rax
140142ad5: lea rcx, [rsp + 0x38]
140142ada: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142adf: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142ae4: mov rdx, qword ptr [rsi + 0x38]
140142ae8: lea rcx, [rsp + 0x38]
140142aed: call 0x1401e81c0 <Corrade::Utility::Debug::operator<<(unsigned long long)>
140142af2: lea rdx, [rip + 0x127d2f] # 0x14026a828 <.str.138.6426>
140142af9: lea rcx, [rsp + 0x38]
140142afe: call 0x1401e7700 <Corrade::Utility::Debug::operator<<(char const*)>
140142b03: jmp 0x140142c01 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xca1>
140142b08: lea rdi, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
140142b0d: lea rdx, [rip + 0x1584f4] # 0x14029b008 <std::__2::cerr>
140142b14: xor r8d, r8d
140142b17: mov rcx, rdi
140142b1a: call 0x1401e7600 <Corrade::Utility::Error::Error(std::__2::basic_ostream<char, std::__2::char_traits<char>>*, Corrade::Containers::EnumSet<Corrade::Utility::Debug::Flag, (unsigned char)255>)>
140142b1f: lea rax, [rip + 0x127cdb] # 0x14026a801 <.str.137.6424>
140142b26: mov qword ptr [rsp + 0x30], rax
140142b2b: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142b30: mov rcx, rdi
140142b33: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
140142b38: lea rcx, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142b3d: mov edx, ebx
140142b3f: call 0x1401e9150 <Corrade::Utility::Debug::operator<<(unsigned int)>
140142b44: lea rax, [rip + 0x127b1b] # 0x14026a666 <.str.115.6425>
140142b4b: mov qword ptr [rsp + 0x30], rax
140142b50: lea rcx, [rsp + 0x38]
140142b55: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142b5a: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
140142b5f: mov rax, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142b64: mov rdx, qword ptr [rax + 0x20]
140142b68: lea rcx, [rsp + 0x38]
140142b6d: call 0x1401e81c0 <Corrade::Utility::Debug::operator<<(unsigned long long)>
140142b72: lea rdx, [rip + 0x127caf] # 0x14026a828 <.str.138.6426>
140142b79: lea rcx, [rsp + 0x38]
140142b7e: call 0x1401e7700 <Corrade::Utility::Debug::operator<<(char const*)>
140142b83: jmp 0x140142c01 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xca1>
140142b85: lea rdi, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1168
140142b8a: lea rdx, [rip + 0x158477] # 0x14029b008 <std::__2::cerr>
140142b91: xor r8d, r8d
140142b94: mov rcx, rdi
140142b97: call 0x1401e7600 <Corrade::Utility::Error::Error(std::__2::basic_ostream<char, std::__2::char_traits<char>>*, Corrade::Containers::EnumSet<Corrade::Utility::Debug::Flag, (unsigned char)255>)>
140142b9c: lea rax, [rip + 0x127c5e] # 0x14026a801 <.str.137.6424>
140142ba3: mov qword ptr [rsp + 0x30], rax
140142ba8: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142bad: mov rcx, rdi
140142bb0: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
140142bb5: lea rcx, [rsp + 0x38]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142bba: mov edx, r13d
140142bbd: call 0x1401e9150 <Corrade::Utility::Debug::operator<<(unsigned int)>
140142bc2: lea rax, [rip + 0x127a9d] # 0x14026a666 <.str.115.6425>
140142bc9: mov qword ptr [rsp + 0x30], rax
140142bce: lea rcx, [rsp + 0x38]
140142bd3: lea rdx, [rsp + 0x30]
; D:/dev/floormat/external/corrade/src/Corrade/Utility/Debug.cpp:784
140142bd8: call 0x1401e7cf0 <Corrade::Utility::Debug& Corrade::Utility::Debug::print<char const*>(char const* const&)>
140142bdd: mov rax, qword ptr [rsp + 0x28]
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:1169
140142be2: mov rdx, qword ptr [rax + 0x38]
140142be6: lea rcx, [rsp + 0x38]
140142beb: call 0x1401e81c0 <Corrade::Utility::Debug::operator<<(unsigned long long)>
140142bf0: lea rdx, [rip + 0x127c31] # 0x14026a828 <.str.138.6426>
140142bf7: lea rcx, [rsp + 0x38]
140142bfc: call 0x1401e7700 <Corrade::Utility::Debug::operator<<(char const*)>
140142c01: lea rcx, [rsp + 0x38]
140142c06: call 0x1401e7720 <Corrade::Utility::Error::~Error()>
140142c0b: call 0x140232770 <abort>
; D:/dev/floormat/src/spritebatch.cpp:286
140142c10: lea rcx, [rip + 0x11099e] # 0x1402535b5 <.str.12.3178>
140142c17: lea rdx, [rip + 0x1107cb] # 0x1402533e9 <.str.1.3152>
140142c1e: lea r9, [rip + 0x110916] # 0x14025353b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
140142c25: mov r8d, 0x11e
140142c2b: call 0x1400ed6d0 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:210
140142c30: lea rcx, [rip + 0x1107a3] # 0x1402533da <.str.3151>
140142c37: lea rdx, [rip + 0x1107ab] # 0x1402533e9 <.str.1.3152>
140142c3e: lea r9, [rip + 0x1108f6] # 0x14025353b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
140142c45: mov r8d, 0xd2
140142c4b: call 0x1400ed6d0 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:225
140142c50: lea rcx, [rip + 0x110919] # 0x140253570 <.str.7.3173>
140142c57: lea rdx, [rip + 0x11078b] # 0x1402533e9 <.str.1.3152>
140142c5e: lea r9, [rip + 0x1108d6] # 0x14025353b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
140142c65: mov r8d, 0xe1
140142c6b: call 0x1400ed6d0 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:226
140142c70: lea rcx, [rip + 0x110905] # 0x14025357c <.str.8.3174>
140142c77: lea rdx, [rip + 0x11076b] # 0x1402533e9 <.str.1.3152>
140142c7e: lea r9, [rip + 0x1108b6] # 0x14025353b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
140142c85: mov r8d, 0xe2
140142c8b: call 0x1400ed6d0 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:227
140142c90: lea rcx, [rip + 0x1108f1] # 0x140253588 <.str.9.3175>
140142c97: lea rdx, [rip + 0x11074b] # 0x1402533e9 <.str.1.3152>
140142c9e: lea r9, [rip + 0x110896] # 0x14025353b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
140142ca5: mov r8d, 0xe3
140142cab: call 0x1400ed6d0 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:228
140142cb0: lea rcx, [rip + 0x1108e0] # 0x140253597 <.str.10.3176>
140142cb7: lea rdx, [rip + 0x11072b] # 0x1402533e9 <.str.1.3152>
140142cbe: lea r9, [rip + 0x110876] # 0x14025353b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
140142cc5: mov r8d, 0xe4
140142ccb: call 0x1400ed6d0 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/src/spritebatch.cpp:229
140142cd0: lea rcx, [rip + 0x1108cf] # 0x1402535a6 <.str.11.3177>
140142cd7: lea rdx, [rip + 0x11070b] # 0x1402533e9 <.str.1.3152>
140142cde: lea r9, [rip + 0x110856] # 0x14025353b <__PRETTY_FUNCTION__._ZN8floormat11SpriteBatch18sort_vertex_bufferEb>
140142ce5: mov r8d, 0xe5
140142ceb: call 0x1400ed6d0 <floormat::debug::detail::emit_assert_fail(char const*, char const*, int, char const*)>
; D:/dev/floormat/external/corrade/src/Corrade/Containers/Array.h:558
140142cf0: mov rcx, rax
140142cf3: call 0x1400017a0 <__clang_call_terminate>
140142cf8: mov rcx, rax
140142cfb: call 0x1400017a0 <__clang_call_terminate>
140142d00: mov rcx, rax
140142d03: call 0x1400017a0 <__clang_call_terminate>
140142d08: mov rcx, rax
140142d0b: call 0x1400017a0 <__clang_call_terminate>
140142d10: jmp 0x140142d18 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xdb8>
140142d12: jmp 0x140142d18 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xdb8>
140142d14: jmp 0x140142d18 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xdb8>
140142d16: jmp 0x140142d18 <floormat::SpriteBatch::sort_vertex_buffer(bool)+0xdb8>
140142d18: lea rcx, [rsp + 0x38]
140142d1d: mov rsi, rax
140142d20: call 0x1401e7720 <Corrade::Utility::Error::~Error()>
140142d25: mov rcx, rsi
140142d28: call 0x1401ed3b0 <_Unwind_Resume>
140142d2d: int3
140142d2e: int3
140142d2f: int3
(the same as corrade master)
diff --git src/Corrade/Utility/Assert.h src/Corrade/Utility/Assert.h
index 32aacb4c..446ab9fe 100644
--- src/Corrade/Utility/Assert.h
+++ src/Corrade/Utility/Assert.h
@@ -331,12 +331,7 @@ to override behavior for all assertions at once.
} while(false)
#else
#define CORRADE_ASSERT(condition, message, returnValue) \
- do { \
- if(!(condition)) { \
- CORRADE_ASSERT_MESSAGE_ABORT(message) \
- return returnValue; \
- } \
- } while(false)
+ (CORRADE_INTERNAL_EXPECT_1(!!(condition)) ? void() : [&]() { CORRADE_ASSERT_MESSAGE_ABORT(message); }())
#endif
#endif
@@ -392,9 +387,7 @@ to override behavior for all assertions at once.
}(), 0))
#else
#define CORRADE_CONSTEXPR_ASSERT(condition, message) \
- static_cast<void>((condition) ? 0 : ([&]() { \
- CORRADE_ASSERT_MESSAGE_ABORT(message) \
- }(), 0))
+ void(CORRADE_INTERNAL_EXPECT_1(condition) ? 0 : ([&]() { CORRADE_ASSERT_MESSAGE_ABORT(message) }(), 0))
#endif
#endif
diff --git src/Corrade/Utility/Macros.h src/Corrade/Utility/Macros.h
index 33009d95..93312058 100644
--- src/Corrade/Utility/Macros.h
+++ src/Corrade/Utility/Macros.h
@@ -436,6 +436,14 @@ but the behavior is highly dependent on compiler-specific heuristics.
#endif
#endif
+#if defined(CORRADE_TARGET_GCC) || defined(DOXYGEN_GENERATING_OUTPUT)
+#define CORRADE_INTERNAL_EXPECT_0(...) __builtin_expect((__VA_ARGS__), 0)
+#define CORRADE_INTERNAL_EXPECT_1(...) __builtin_expect((__VA_ARGS__), 1)
+#else
+#define CORRADE_INTERNAL_EXPECT_0(...) (__VA_ARGS__)
+#define CORRADE_INTERNAL_EXPECT_1(...) (__VA_ARGS__)
+#endif
+
/** @hideinitializer
@brief Mark an if condition as unlikely to happen
@m_since_latest
; src/spritebatch.cpp:286 NOW (patch reverted, vanilla Corrade)
1401427dc: cmp edi, r14d
1401427df: jae 0x140142c10
1401427e5: mov rcx, rsi
1401427e8: mov edx, edi
1401427ea: call <Array<merge_state::run>::operator[]> <- three of these per iteration
; src/spritebatch.cpp:286 earlier build (patch applied, builtin_expect + lambda for assertion failed clause)
14014b1c9: cmp ecx, edi
14014b1cb: jae 0x14014b4f8
; Array.h:1169
14014b1d1: cmp qword ptr [rsi + 0x8], rcx
14014b1d5: jbe 0x14014b44c <- no call; branch to the tail
#include "spritebatch.hpp"
#include "src/quads-gl.hpp"
#include "src/object.hpp"
#include "src/anim-atlas.hpp"
#include "src/point.inl"
#include "src/sprite-list.hpp"
#include "main/clickable.hpp"
#include "shaders/shader.hpp"
#include "loader/loader.hpp"
#include "src/sprite-atlas.hpp"
#include <cfloat>
#include <utility>
#include <ranges>
#include <algorithm>
#include <cr/GrowableArray.h>
#include <mg/Mesh.h>
#include <mg/Buffer.h>
namespace floormat {
namespace ranges = std::ranges;
namespace {
template<typename T>
uint32_t ensure_buffer_size(GL::Buffer& buf, uint32_t capacity, uint32_t count)
{
if (count <= capacity) [[likely]]
return capacity;
constexpr auto factor = 1.5f;
auto new_cap = uint32_t((float)count * factor);
if (!buf.id())
buf = GL::Buffer{};
buf.setData({nullptr, new_cap * sizeof(T)}, GL::BufferUsage::DynamicDraw);
return new_cap;
}
struct merge_state
{
struct run { uint32_t pos, end; };
Array<run> runs;
Array<uint32_t> tree;
Array<float> head; // FLT_MAX once the run is exhausted
};
struct quick_draw
{
GL::Mesh _mesh{NoCreate};
GL::Buffer _vertex_buffer{NoCreate}, _index_buffer{NoCreate};
};
constexpr uint32_t slot_count = 3;
struct slot
{
GL::Mesh mesh{NoCreate};
GL::Buffer vertex_buffer_handle{NoCreate};
};
} // namespace
struct SpriteBatch::Impl
{
merge_state m;
quick_draw quick;
Array<Quads::vertexes> vertex_buffer;
Array<Quads::indexes> index_buffer;
Array<Quads::vertexes> verts;
Array<float> depths;
Array<uint32_t> starts, sort_indexes, merge_output;
slot slots[slot_count];
GL::Buffer index_buffer_handle{NoCreate};
uint32_t slot_idx = 0;
uint32_t buffer_capacity = 0;
uint32_t index_uploaded = 0;
uint32_t last_start = 0;
bool in_chunk = false;
// Cleared by end_chunk(true), the only thing that permutes sort_indexes.
bool s_is_identity = true;
};
ArrayView<const uint32_t> SpriteBatch::merged_order() const { return impl->sort_indexes; }
SpriteBatch::SpriteBatch()
{
auto& impl = *this->impl;
arrayReserve(impl.index_buffer, 16);
arrayReserve(impl.verts, 16);
arrayReserve(impl.depths, 16);
arrayReserve(impl.starts, 16);
arrayReserve(impl.sort_indexes, 16);
}
SpriteBatch::~SpriteBatch() noexcept = default;
void SpriteBatch::begin_chunk()
{
auto& impl = *this->impl;
fm_assert(!impl.in_chunk);
fm_debug_assert(impl.sort_indexes.size() == impl.verts.size());
fm_debug_assert(impl.last_start == impl.verts.size());
impl.in_chunk = true;
}
void SpriteBatch::clear()
{
auto& impl = *this->impl;
fm_assert(!impl.in_chunk);
arrayClear(impl.vertex_buffer);
arrayClear(impl.verts);
arrayClear(impl.depths);
arrayClear(impl.starts);
arrayClear(impl.sort_indexes);
arrayClear(impl.merge_output);
arrayClear(impl.m.runs);
arrayClear(impl.m.tree);
arrayClear(impl.m.head);
//arrayClear(impl.index_buffer);
impl.last_start = 0;
impl.in_chunk = false;
impl.s_is_identity = true;
}
void SpriteBatch::ensure_allocated(uint32_t count)
{
auto& impl = *this->impl;
if (count <= impl.buffer_capacity) [[likely]]
return;
uint32_t new_cap = 0;
const auto cap2 = ensure_buffer_size<Quads::indexes>(impl.index_buffer_handle, impl.buffer_capacity, count);
impl.index_uploaded = 0; // setData() orphaned the old contents
for (auto& s : impl.slots)
{
auto cap = ensure_buffer_size<Quads::vertexes>(s.vertex_buffer_handle, impl.buffer_capacity, count);
fm_debug_assert(cap == cap2);
new_cap = cap;
}
impl.buffer_capacity = new_cap;
}
void SpriteBatch::emit(const Quads::vertexes& vertexes, float depth)
{
auto& impl = *this->impl;
fm_assert(impl.in_chunk);
arrayAppend(impl.verts, NoInit, 1);
arrayAppend(impl.depths, NoInit, 1);
impl.verts.back() = vertexes;
impl.depths.back() = depth;
}
void SpriteBatch::emit(SpriteList& list, bool render_vobjs)
{
begin_chunk();
const auto size = list.size();
for (auto i = 0u; i < size; i++)
{
const auto& v = list.Vertexes[i];
const auto& d = list.Depths[i];
auto* obj = list.Objects[i];
if (obj && !render_vobjs && obj->is_virtual())
continue;
emit(v, d);
}
end_chunk(false);
}
void SpriteBatch::end_chunk(bool do_sort)
{
auto& impl = *this->impl;
fm_assert(impl.in_chunk);
impl.in_chunk = false;
const auto first = impl.last_start;
const auto last = (uint32_t)impl.verts.size();
auto& S = impl.sort_indexes;
if (first == last)
return;
fm_debug_assert(S.size() == first);
arrayResize(S, NoInit, last);
for (auto i = first; i < last; i++)
S.data()[i] = i;
if (do_sort)
{
ranges::sort(S.slice(first, last), [&A = std::as_const(impl.depths)](auto i, auto j) { return A[i] < A[j]; });
impl.s_is_identity = false;
}
arrayAppend(impl.starts, first);
impl.last_start = last;
}
template<typename T> void reserve(Array<T>& A, uint32_t size) // todo reuse this, many places naively reserve without 1.5
{
if (arrayCapacity(A) < size)
arrayReserve(A, (uint32_t)((float)size * 1.5f));
arrayResize(A, NoInit, size);
}
void SpriteBatch::sort_vertex_buffer(bool do_sort)
{
auto& impl = *this->impl;
fm_assert(!impl.in_chunk);
// One-past-the-end terminator, so the run loop below reads bounds without a branch.
arrayAppend(impl.starts, impl.last_start);
const auto& Dep = impl.depths;
const auto& Vin = impl.verts;
const auto size = (uint32_t)Vin.size();
auto& V = impl.vertex_buffer;
auto& M = impl.merge_output;
const auto& S = impl.sort_indexes;
const auto& Starts = impl.starts;
auto& runs = impl.m.runs;
auto& tree = impl.m.tree;
auto& head = impl.m.head;
fm_assert(V.isEmpty());
fm_debug_assert(M.isEmpty());
fm_debug_assert(runs.isEmpty());
fm_debug_assert(tree.isEmpty());
fm_debug_assert(head.isEmpty());
reserve(V, size);
const auto k = (uint32_t)Starts.size() - 1; // number of runs
if (!do_sort || k <= 1)
{
// sort skipped (depth-buffered opaque pass), single chunk, or empty —
// copy vertices in input order.
for (auto i = 0u; i < size; i++)
V[i] = Vin[S[i]];
return;
}
reserve(M, size);
reserve(runs, k);
reserve(tree, k);
reserve(head, k);
// --- k-way merge via loser tree ---
// Runs are never empty: end_chunk() returns before appending to starts when first == last.
for (auto i = 0u; i < k; i++)
{
runs[i] = {Starts[i], Starts[i + 1]};
head[i] = Dep[S[Starts[i]]];
}
const uint32_t sentinel = k;
auto depth_of = [&](uint32_t r) -> float { return r >= k ? -FLT_MAX : head[r]; };
// build tree: insert runs back to front
for (auto i = 0u; i < k; i++)
tree[i] = sentinel;
for (auto i = k - 1; i != (uint32_t)-1; i--)
{
uint32_t winner = i;
float wd = depth_of(i);
for (uint32_t p = (k + i) / 2; p > 0; p /= 2)
{
const float pd = depth_of(tree[p]);
if (wd > pd)
{
std::swap(winner, tree[p]);
wd = pd;
}
}
tree[0] = winner;
}
// Runner-up key. Valid only while tree[0] is unchanged, so a replay that moves the
// winner resets it. The seed forces a full replay on iteration 0.
float second = -FLT_MAX;
// extract in sorted order
for (auto i = 0u; i < size; i++)
{
const auto w = tree[0];
fm_debug_assert(w < k && runs[w].pos < runs[w].end);
M[i] = S[runs[w].pos];
runs[w].pos++;
head[w] = runs[w].pos < runs[w].end ? Dep[S[runs[w].pos]] : FLT_MAX;
// Still the winner, so the tree, tree[0] and `second` are all unchanged.
if (head[w] <= second)
continue;
// replay from leaf w
uint32_t winner = w;
float wd = head[w], lo = FLT_MAX;
for (uint32_t p = (k + w) / 2; p > 0; p /= 2)
{
const float pd = depth_of(tree[p]);
if (wd > pd)
{
std::swap(winner, tree[p]);
wd = pd;
}
else if (pd < lo)
lo = pd;
}
tree[0] = winner;
// With no swap the else branch ran at every level, so lo is the min over all path
// losers. Once swapped it is a partial min over the wrong path.
second = winner == w ? lo : -FLT_MAX;
}
// write vertices in merged order
for (auto i = 0u; i < size; i++)
V[i] = Vin[M[i]];
// swap so draw() reads merged order from sort_indexes
std::swap(impl.sort_indexes, impl.merge_output);
#if !defined FM_NO_DEBUG2 && !defined __FAST_MATH__ /* hack */
for (auto i = 1u; i < size; i++)
{
const auto &a = S[i-1], &b = S[i];
const auto ad = Dep[a], bd = Dep[b];
fm_assert(ad <= bd);
}
#endif
}
void SpriteBatch::draw(tile_shader& shader, bool do_sort)
{
auto& impl = *this->impl;
fm_assert(!impl.in_chunk);
const auto size = (uint32_t)impl.verts.size();
if (size == 0)
return;
// raise the per-draw cap by widening Quads::index_type in src/quads.hpp.
fm_assert(size <= Quads::max_quads_per_buffer);
const auto& S = impl.sort_indexes;
auto& V = impl.vertex_buffer;
fm_debug_assert(V.isEmpty());
fm_debug_assert(size == S.size());
fm_debug_assert(size == impl.depths.size());
fm_debug_assert(!size == impl.starts.isEmpty());
fm_debug_assert(impl.last_start == size);
fm_debug_assert(impl.merge_output.isEmpty());
// Nothing permuted sort_indexes, so the staging copy would reproduce impl.verts
// exactly. Upload from it and skip both the identity gather and the V allocation.
const bool direct = !do_sort && impl.s_is_identity;
if (!direct)
sort_vertex_buffer(do_sort); // modifies V
#ifndef FM_NO_DEBUG2
else
for (auto i = 0u; i < size; i++)
fm_assert(S[i] == i);
#endif
ensure_allocated(size);
auto& slot = impl.slots[impl.slot_idx];
slot.vertex_buffer_handle.setSubData(0, ArrayView{ direct ? impl.verts.data() : V.data(), size });
auto& I = impl.index_buffer;
const auto Isz = (uint32_t)I.size();
reserve(I, size);
for (auto i = Isz; i < size; i++)
I[i] = Quads::quad_indexes(i);
// quad_indexes(i) depends only on i, so already-uploaded entries never go stale
if (size > impl.index_uploaded)
{
impl.index_buffer_handle.setSubData(impl.index_uploaded * sizeof(Quads::indexes),
ArrayView{ I.data() + impl.index_uploaded, size - impl.index_uploaded });
impl.index_uploaded = size;
}
auto& mesh = slot.mesh;
if (!mesh.id())
{
mesh = GL::Mesh{GL::MeshPrimitive::Triangles};
mesh.addVertexBuffer(slot.vertex_buffer_handle, 0, tile_shader::Position{}, tile_shader::TextureCoordinates{}, tile_shader::Depth{});
mesh.setIndexBuffer(impl.index_buffer_handle, 0, Quads::index_gl_type);
}
mesh.setCount((Int)(Quads::indexes_per_quad * size));
fm_assert(mesh.isIndexed());
shader.draw(loader.atlas().texture(), mesh);
impl.slot_idx = (impl.slot_idx + 1) % slot_count;
clear();
}
void SpriteBatch::emit_quick(tile_shader& shader, const anim_atlas& atlas, rotation r, size_t frame,
const Vector3& center, const Quads::depths& depth)
{
auto& impl = *this->impl;
const auto pos = atlas.frame_quad(center, r, frame);
const auto& g = atlas.group(r);
const auto* sp = g.sprites[frame];
fm_assert(sp);
const auto uv3 = loader.atlas().texcoords_for(sprite{sp}, !g.mirror_from.isEmpty());
Quads::vertexes vertexes;
for (auto i = 0uz; i < 4; i++)
vertexes[i] = { pos[i], uv3[i], depth[i] };
const auto indexes = Quads::quad_indexes(0);
auto& quick = impl.quick;
auto& mesh = quick._mesh;
if (!quick._vertex_buffer.id())
quick._vertex_buffer = GL::Buffer{{nullptr, sizeof vertexes}, GL::BufferUsage::DynamicDraw};
quick._vertex_buffer.setSubData(0, {&vertexes, 1});
if (!quick._index_buffer.id())
quick._index_buffer = GL::Buffer{{nullptr, sizeof indexes}, GL::BufferUsage::DynamicDraw};
quick._index_buffer.setSubData(0, {&indexes, 1});
if (!mesh.id())
{
mesh = GL::Mesh{GL::MeshPrimitive::Triangles};
mesh.addVertexBuffer(quick._vertex_buffer, 0, tile_shader::Position{}, tile_shader::TextureCoordinates{}, tile_shader::Depth{});
mesh.setIndexBuffer(quick._index_buffer, 0, Quads::index_gl_type);
mesh.setCount((Int)Quads::indexes_per_quad);
fm_assert(mesh.isIndexed());
}
shader.draw(loader.atlas().texture(), quick._mesh);
}
void SpriteBatch::add_clickable(object* obj, const tile_shader& shader, Vector2i win_size, Array<clickable>& array)
{
const auto& s = *obj;
const auto& a = *s.atlas;
const auto& g = a.group(s.r);
const auto& f = a.frame(s.r, s.frame);
const Vector2i offset((Vector2(shader.camera_offset()) + Vector2(win_size)*.5f)
+ shader.project(Vector3(s.position()) + Vector3(g.offset)) - Vector2(f.ground));
if (offset < win_size && offset + Vector2i(f.size) >= Vector2i())
{
arrayAppend(array, NoInit, 1);
array.back() =
clickable {
.src = {f.offset, f.offset + f.size},
.dest = {offset, offset + Vector2i(f.size)},
.bitmask = a.bitmask(),
.e = obj,
.stride = a.info().pixel_size[0],
.mirrored = !g.mirror_from.isEmpty(),
};
}
}
} // namespace floormat
#pragma once
#include "compat/defs.hpp"
#include "compat/safe-ptr.hpp"
#include "src/rotation.hpp"
#include "src/quads.hpp"
namespace floormat {
struct point;
struct tile_shader;
struct object;
struct clickable;
class anim_atlas;
class chunk;
struct SpriteList;
class SpriteBatch
{
struct Impl;
void ensure_allocated(uint32_t count);
safe_ptr<Impl> impl;
public:
void begin_chunk();
void end_chunk(bool do_sort);
void clear();
void draw(tile_shader& shader, bool do_sort = true);
// Needs no GL. Together these let a test observe the merge; without merged_order() a
// dropped or duplicated quad is unobservable from outside.
void sort_vertex_buffer(bool do_sort);
ArrayView<const uint32_t> merged_order() const;
static void add_clickable(object* obj, const tile_shader& shader, Vector2i win_size, Array<clickable>& array);
void emit(const Quads::vertexes& vertexes, float depth);
void emit(SpriteList& list, bool render_vobjs);
void emit_quick(tile_shader& shader, const anim_atlas& atlas, rotation r, size_t frame, const Vector3& center, const Quads::depths& depth);
explicit SpriteBatch();
~SpriteBatch() noexcept;
fm_DISABLE_MOVE_COPY(SpriteBatch);
};
} // namespace floormat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment