	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addrsort
_addrsort:                              ## @addrsort
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	__MAXADDRS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	%rax, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	testl	%r14d, %r14d
	jle	LBB0_18
## %bb.1:
	movl	(%r15), %ecx
	movl	%r14d, %r8d
	xorl	%r11d, %r11d
	xorl	%r9d, %r9d
	movq	%rbx, %r10
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	addq	$8, %r10
	cmpq	%r8, %r11
	je	LBB0_11
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	$0, %edx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rsi
	movq	(%r10), %rdx
	movl	(%rdx), %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi,%rdx,8), %eax
	andl	%edi, %eax
	cmpl	%eax, 4(%rsi,%rdx,8)
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%rdx
	cmpq	%rdx, %rcx
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ecx, %edx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movw	%dx, (%r12,%r11,2)
	testl	%r9d, %r9d
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%r11, %r11
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r11), %eax
	movswl	(%r12,%rax,2), %eax
	cmpl	%eax, %edx
	movl	$0, %r9d
	cmovll	%r11d, %r9d
	jmp	LBB0_10
LBB0_11:
	testl	%r9d, %r9d
	je	LBB0_18
## %bb.12:
	cmpl	%r14d, %r9d
	jl	LBB0_13
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_13 Depth=1
	incl	%r9d
	cmpl	%r14d, %r9d
	je	LBB0_18
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movl	%r9d, %eax
	movl	%r9d, %r9d
	testl	%eax, %eax
	jle	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movzwl	(%r12,%r9,2), %ecx
	movq	%r9, %rdx
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-1(%rdx), %esi
	movzwl	(%r12,%rsi,2), %edi
	cmpw	%cx, %di
	jle	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=2
	movw	%cx, (%r12,%rsi,2)
	movw	%di, (%r12,%rdx,2)
	movq	(%rbx,%rsi,8), %rax
	movq	(%rbx,%rdx,8), %rdi
	movq	%rdi, (%rbx,%rsi,8)
	movq	%rax, (%rbx,%rdx,8)
	decq	%rdx
	leal	1(%rdx), %eax
	cmpl	$1, %eax
	ja	LBB0_15
	jmp	LBB0_17
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__MAXADDRS,4,2                  ## @_MAXADDRS
	.no_dead_strip	_addrsort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addrsort
_addrsort:                              ; @addrsort
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, __MAXADDRS@GOTPAGE
Lloh4:
	ldr	x8, [x8, __MAXADDRS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #1
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x3fffffff0
	sub	x8, x9, x8
	mov	sp, x8
	cmp	w1, #1
	b.lt	LBB0_20
; %bb.1:
	mov	x10, #0
	mov	w9, #0
	ldr	w11, [x2]
	mov	x12, x0
	mov	w13, w1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #1
	add	x12, x12, #8
	cmp	x10, x13
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w11, LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	ldr	x16, [x2, #8]
	ldr	x15, [x12]
	ldr	w15, [x15]
	add	x16, x16, #4
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w3, w17, [x16, #-4]
	and	w3, w3, w15
	cmp	w17, w3
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	x14, x14, #1
	add	x16, x16, #8
	cmp	x11, x14
	b.ne	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, x11
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	strh	w14, [x8, x10, lsl #1]
	cbz	w9, LBB0_10
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w14, #0
	strh	w14, [x8, x10, lsl #1]
	cbnz	w9, LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	x10, LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	sub	w9, w10, #1
	ldrsh	w9, [x8, w9, uxtw #1]
	cmp	w14, w9
	csel	w9, w10, wzr, lt
	b	LBB0_2
LBB0_12:
	cbz	w9, LBB0_20
; %bb.13:
	cmp	w9, w1
	b.ge	LBB0_20
; %bb.14:
	add	w10, w9, #1
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w9, w9, #1
	add	w10, w10, #1
	cmp	w9, w1
	b.eq	LBB0_20
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_18 Depth 2
	cmp	w9, #1
	b.lt	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	add	x11, x8, w9, uxtw #1
	ldrsh	w12, [x8, w9, uxtw #1]
	mov	x13, x10
	add	x14, x0, w9, uxtw #3
LBB0_18:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w15, w13, #2
	ldrsh	w16, [x8, w15, uxtw #1]
	cmp	w16, w12
	b.le	LBB0_15
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=2
	strh	w12, [x8, x15, lsl #1]
	strh	w16, [x11], #-2
	lsl	x15, x15, #3
	ldr	x16, [x0, x15]
	ldr	x17, [x14]
	str	x17, [x0, x15]
	str	x16, [x14], #-8
	sub	w13, w13, #1
	cmp	w13, #1
	b.hi	LBB0_18
	b	LBB0_15
LBB0_20:
	ldur	x8, [x29, #-8]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.21:
	mov	sp, x29
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	__MAXADDRS,4,2                  ; @_MAXADDRS
	.no_dead_strip	_addrsort
.subsections_via_symbols
