	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function resort_symbols
_resort_symbols:                        ## @resort_symbols
	.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
	movl	(%rdi), %r15d
	movl	%r15d, 24(%rdi)
	testl	%r15d, %r15d
	je	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	movl	4(%rdi), %eax
	movq	_symt_cmp_addr@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	subl	%eax, %r15d
	movslq	%eax, %rdi
	shlq	$3, %rdi
	addq	16(%r14), %rdi
	movl	(%r13), %ecx
	movl	%r15d, %esi
	movl	$8, %edx
	callq	_qsort
	movl	4(%r14), %ebx
	testl	%ebx, %ebx
	je	LBB0_13
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_resort_symbols.tmp(%rip), %r12
	cmpl	%r15d, _resort_symbols.num_tmp(%rip)
	jae	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	callq	_GetProcessHeap
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_resort_symbols.tmp(%rip), %rdx
	leal	(,%r15,8), %ecx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapReAlloc
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	(,%r15,8), %edx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%rax, _resort_symbols.new(%rip)
	testq	%rax, %rax
	jne	LBB0_9
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$0, 4(%r14)
	movl	(%r14), %r15d
	movl	%r15d, 24(%r14)
	xorl	%eax, %eax
	testl	%r15d, %r15d
	jne	LBB0_2
LBB0_15:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_4:
	movl	%ebx, %eax
	jmp	LBB0_10
LBB0_9:
	movq	%r12, _resort_symbols.tmp(%rip)
	movl	%r15d, _resort_symbols.num_tmp(%rip)
	movl	4(%r14), %eax
LBB0_10:
	movslq	%eax, %rsi
	shlq	$3, %rsi
	addq	16(%r14), %rsi
	leal	(,%r15,8), %edx
	movq	%r12, %rdi
	callq	_memcpy
	movq	_resort_symbols.tmp(%rip), %rdi
	movl	(%r13), %ecx
	movl	%r15d, %esi
	movl	$8, %edx
	callq	_qsort
	testl	%r15d, %r15d
	jle	LBB0_13
## %bb.11:
	movl	%r15d, %r12d
	movq	_resort_symbols.tmp(%rip), %rax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%r12), %r13
	movl	%r13d, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rcx,8), %rdx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_where_to_insert
	movl	%eax, %r15d
	movq	16(%r14), %rax
	leal	(%r15,%r13), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	(%r12,%r15), %ecx
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,8), %rdi
	movslq	%r15d, %rcx
	leaq	(%rax,%rcx,8), %rsi
	subl	%ecx, %ebx
	shll	$3, %ebx
	movl	%ebx, %edx
	callq	_memmove
	movq	_resort_symbols.tmp(%rip), %rax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rax,%rcx,8), %rcx
	movq	16(%r14), %rdx
	movslq	-44(%rbp), %rsi                 ## 4-byte Folded Reload
	movq	%rcx, (%rdx,%rsi,8)
	movl	%r15d, %ebx
	cmpq	$1, %r12
	movq	%r13, %r12
	ja	LBB0_12
LBB0_13:
	movl	(%r14), %eax
	movl	%eax, 4(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_symt_cmp_addr,4,2              ## @symt_cmp_addr
.zerofill __DATA,__bss,_resort_symbols.tmp,8,3 ## @resort_symbols.tmp
.zerofill __DATA,__bss,_resort_symbols.num_tmp,4,2 ## @resort_symbols.num_tmp
.zerofill __DATA,__bss,_resort_symbols.new,8,3 ## @resort_symbols.new
	.comm	_TRUE,4,2                       ## @TRUE
	.no_dead_strip	_resort_symbols
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function resort_symbols
_resort_symbols:                        ; @resort_symbols
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w8, [x0]
	str	w8, [x0, #24]
	cbz	w8, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w9, [x0, #4]
Lloh0:
	adrp	x24, _symt_cmp_addr@GOTPAGE
Lloh1:
	ldr	x24, [x24, _symt_cmp_addr@GOTPAGEOFF]
	adrp	x25, _resort_symbols.num_tmp@PAGE
	adrp	x23, _resort_symbols.tmp@PAGE
	adrp	x26, _resort_symbols.new@PAGE
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w20, w8, w9
	ldr	x8, [x19, #16]
	add	x0, x8, w9, sxtw #3
	ldr	w3, [x24]
	mov	x1, x20
	mov	w2, #8
	bl	_qsort
	ldr	w21, [x19, #4]
	cbz	w21, LBB0_15
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x25, _resort_symbols.num_tmp@PAGEOFF]
	ldr	x22, [x23, _resort_symbols.tmp@PAGEOFF]
	cmp	w8, w20
	b.hs	LBB0_10
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_GetProcessHeap
	cbz	x22, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x2, [x23, _resort_symbols.tmp@PAGEOFF]
	lsl	w3, w20, #3
	mov	w1, #0
	bl	_HeapReAlloc
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	w2, w20, #3
	mov	w1, #0
	bl	_HeapAlloc
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x22, x0
	str	x0, [x26, _resort_symbols.new@PAGEOFF]
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w9, #0
	str	wzr, [x19, #4]
	ldr	w8, [x19]
	str	w8, [x19, #24]
	cbnz	w8, LBB0_2
LBB0_9:
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_10:
	mov	x8, x21
	b	LBB0_12
LBB0_11:
	str	x22, [x23, _resort_symbols.tmp@PAGEOFF]
	str	w20, [x25, _resort_symbols.num_tmp@PAGEOFF]
	ldr	w8, [x19, #4]
LBB0_12:
	ldr	x9, [x19, #16]
	add	x1, x9, w8, sxtw #3
	lsl	w2, w20, #3
	mov	x0, x22
	bl	_memcpy
	ldr	x0, [x23, _resort_symbols.tmp@PAGEOFF]
	ldr	w3, [x24]
	mov	x1, x20
	mov	w2, #8
	bl	_qsort
	cmp	w20, #1
	b.lt	LBB0_15
; %bb.13:
	ldr	x8, [x23, _resort_symbols.tmp@PAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	subs	x9, x20, #1
	and	x9, x9, #0xffffffff
	lsl	x24, x9, #3
	ldr	x2, [x8, x24]
	mov	x0, x19
	mov	x1, x21
	bl	_where_to_insert
	mov	x22, x0
	ldr	x8, [x19, #16]
	add	w9, w20, w0
	add	x0, x8, w9, sxtw #3
	add	x1, x8, w22, sxtw #3
	sub	w8, w21, w22
	lsl	w2, w8, #3
	bl	_memmove
	mov	x21, x22
	subs	x20, x20, #1
	add	w9, w20, w22
	ldr	x8, [x23, _resort_symbols.tmp@PAGEOFF]
	ldr	x10, [x8, x24]
	ldr	x11, [x19, #16]
	str	x10, [x11, w9, sxtw #3]
	b.hi	LBB0_14
LBB0_15:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _TRUE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TRUE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x9]
	stp	w8, w0, [x19, #4]
LBB0_16:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_symt_cmp_addr,4,2              ; @symt_cmp_addr
.zerofill __DATA,__bss,_resort_symbols.tmp,8,3 ; @resort_symbols.tmp
.zerofill __DATA,__bss,_resort_symbols.num_tmp,4,2 ; @resort_symbols.num_tmp
.zerofill __DATA,__bss,_resort_symbols.new,8,3 ; @resort_symbols.new
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_resort_symbols
.subsections_via_symbols
