	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sort_wmeta
_sort_wmeta:                            ## @sort_wmeta
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
                                        ## kill: def $edi killed $edi def $rdi
	cmpl	%esi, %edi
	jge	LBB0_13
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_sort_wmeta
	movl	%r15d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	cmpl	%esi, %r15d
	jge	LBB0_13
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_6 Depth 3
	movq	_QL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	leal	(%rdi,%rsi), %eax
	sarl	%eax
	cltq
	movq	%rdi, %r15
	movl	(%rbx,%rax,4), %r14d
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r15d killed $r15d killed $r15 def $r15
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_4 Depth 3
                                        ##       Child Loop BB0_6 Depth 3
	movslq	%r15d, %r8
	leaq	(%rbx,%r8,4), %r10
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%r10,%rcx,4), %edx
	incq	%rcx
	cmpl	%r14d, %edx
	jl	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r15, %rdi
	leal	-1(%r15), %r11d
	addq	%rcx, %r11
	movslq	%esi, %r9
	leaq	(%rbx,%r9,4), %r13
	addq	$4, %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_3 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	-4(%r13,%rbx,4), %r12d
	decq	%rbx
	cmpl	%r14d, %r12d
	jg	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%esi, %eax
	leaq	(%rax,%rbx), %r15
	incq	%r15
	cmpl	%r15d, %r11d
	jle	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movl	%r15d, %esi
	movl	%r11d, %r15d
	cmpl	%esi, %r15d
	jle	LBB0_11
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	%r12d, -4(%r10,%rcx,4)
	movl	%edx, (%r13,%rbx,4)
	movq	_QW_msize@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r8,4), %r11
	addq	$-4, %r11
	movl	(%r11,%rcx,4), %r10d
	leaq	4(%rax,%r9,4), %rax
	movl	(%rax,%rbx,4), %edx
	movl	%edx, (%r11,%rcx,4)
	movl	%r10d, (%rax,%rbx,4)
	movq	_QW_mfile@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	leaq	(%rax,%r8,8), %r11
	movq	-8(%r11,%rcx,8), %r10
	leaq	8(,%r9,8), %rdx
	leaq	(%rax,%r9,8), %rax
	addq	$8, %rax
	movq	(%rax,%rbx,8), %rax
	movq	%rax, -8(%r11,%rcx,8)
	addq	(%r15), %rdx
	movq	%r10, (%rdx,%rbx,8)
	movq	_QWords@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%r8,4), %r10
	addq	$-4, %r10
	movl	(%r10,%rcx,4), %r8d
	leaq	4(%rax,%r9,4), %rax
	movl	(%rax,%rbx,4), %edx
	movl	%edx, (%r10,%rcx,4)
	movl	%r8d, (%rax,%rbx,4)
	movq	%rdi, %r15
	addl	%ecx, %r15d
	addl	%ebx, %esi
	cmpl	%esi, %r15d
	jg	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	movq	_QL@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_3
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QL,8,3                         ## @QL
	.comm	_QW_msize,8,3                   ## @QW_msize
	.comm	_QW_mfile,8,3                   ## @QW_mfile
	.comm	_QWords,8,3                     ## @QWords
	.no_dead_strip	_sort_wmeta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sort_wmeta
_sort_wmeta:                            ; @sort_wmeta
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cmp	w0, w1
	b.ge	LBB0_12
; %bb.1:
	mov	x19, x1
Lloh0:
	adrp	x20, _QL@GOTPAGE
Lloh1:
	ldr	x20, [x20, _QL@GOTPAGEOFF]
Lloh2:
	adrp	x21, _QW_msize@GOTPAGE
Lloh3:
	ldr	x21, [x21, _QW_msize@GOTPAGEOFF]
Lloh4:
	adrp	x22, _QW_mfile@GOTPAGE
Lloh5:
	ldr	x22, [x22, _QW_mfile@GOTPAGEOFF]
Lloh6:
	adrp	x23, _QWords@GOTPAGE
Lloh7:
	ldr	x23, [x23, _QWords@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_sort_wmeta
	mov	x0, x24
	cmp	w24, w19
	b.ge	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_7 Depth 3
	ldr	x10, [x20]
	add	w8, w0, w19
	asr	w8, w8, #1
	ldr	w8, [x10, w8, sxtw #2]
	mov	x1, x19
	mov	x24, x0
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_5 Depth 3
                                        ;       Child Loop BB0_7 Depth 3
	sxtw	x9, w24
	sub	x11, x9, #1
	add	x13, x10, w24, sxtw #2
	mov	x9, x24
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w14, [x13], #4
	add	x11, x11, #1
	add	w9, w9, #1
	cmp	w14, w8
	b.lt	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x12, #0
	sub	w24, w9, #1
	sxtw	x15, w1
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ;     Parent Loop BB0_4 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w16, [x10, x15, lsl #2]
	sub	x12, x12, #1
	sub	x10, x10, #4
	cmp	w16, w8
	b.gt	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x17, x12, w1, uxtw
	add	x17, x17, #1
	cmp	w24, w17
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=2
	mov	x1, x17
	cmp	w24, w1
	b.le	LBB0_11
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x10, x10, x15, lsl #2
	stur	w16, [x13, #-4]
	str	w14, [x10, #4]
	ldr	x10, [x21]
	lsl	x13, x11, #2
	ldr	w14, [x10, x13]
	lsl	x16, x15, #2
	ldr	x17, [x22]
	lsl	x11, x11, #3
	ldr	x2, [x17, x11]
	lsl	x15, x15, #3
	add	x15, x15, #8
	add	x3, x17, x15
	lsl	x4, x12, #3
	ldr	x3, [x3, x4]
	str	x3, [x17, x11]
	lsl	x11, x12, #2
	add	x17, x10, x16
	add	x17, x17, x11
	ldr	w3, [x17, #4]
	str	w3, [x10, x13]
	ldr	x10, [x22]
	add	x10, x10, x15
	str	x2, [x10, x4]
	str	w14, [x17, #4]
	ldr	x10, [x23]
	ldr	w14, [x10, x13]
	add	x15, x10, x16
	add	x11, x15, x11
	ldr	w15, [x11, #4]
	str	w15, [x10, x13]
	str	w14, [x11, #4]
	add	w1, w1, w12
	mov	x24, x9
	cmp	w24, w1
	b.gt	LBB0_2
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x10, [x20]
	b	LBB0_4
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_QL,8,3                         ; @QL
	.comm	_QW_msize,8,3                   ; @QW_msize
	.comm	_QW_mfile,8,3                   ; @QW_mfile
	.comm	_QWords,8,3                     ; @QWords
	.no_dead_strip	_sort_wmeta
.subsections_via_symbols
