	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function addr4sort
_addr4sort:                             ## @addr4sort
	.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	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.1:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_32
## %bb.2:
	movq	%rsi, %r14
	movb	$1, %cl
	movq	$-1, %rbx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %r13d
	movq	(%rax), %rax
	leal	1(%r13), %ecx
	incq	%rbx
	addl	$16, %edi
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	testl	%ebx, %ebx
	je	LBB0_32
## %bb.5:
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_33
## %bb.6:
	movq	(%r12), %r10
	testq	%r10, %r10
	je	LBB0_31
## %bb.7:
	leaq	1(%rbx), %r8
	movl	(%r14), %r15d
	xorl	%r11d, %r11d
	xorl	%r9d, %r9d
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	incq	%r11
	movq	(%r10), %r10
	testq	%r10, %r10
	je	LBB0_17
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	movl	$0, %edi
	testq	%r15, %r15
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%r10), %rcx
	movq	8(%r14), %rsi
	movl	(%rcx), %ecx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rsi,%rdi,8), %edx
	andl	%ecx, %edx
	cmpl	%edx, 4(%rsi,%rdi,8)
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	incq	%rdi
	cmpq	%rdi, %r15
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %edi
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r11, %rcx
	shlq	$4, %rcx
	movq	%r10, 8(%rax,%rcx)
	movl	%edi, (%rax,%rcx)
	testl	%r9d, %r9d
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	testq	%r11, %r11
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	leal	-1(%r11), %ecx
	shlq	$4, %rcx
	cmpl	(%rax,%rcx), %edi
	movl	$0, %r9d
	cmovll	%r11d, %r9d
	jmp	LBB0_16
LBB0_17:
	testl	%r9d, %r9d
	je	LBB0_31
## %bb.18:
	cmpl	%ebx, %r9d
	jle	LBB0_19
LBB0_23:
	cmpq	$3, %rbx
	jae	LBB0_25
## %bb.24:
	xorl	%ecx, %ecx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_19 Depth=1
	leal	1(%r9), %ecx
	cmpl	%r9d, %ebx
	movl	%ecx, %r9d
	je	LBB0_23
LBB0_19:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movl	%r9d, %ecx
	testl	%r9d, %r9d
	jle	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   Parent Loop BB0_19 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
                                        ## kill: def $ecx killed $ecx killed $rcx def $rcx
	movl	%ecx, %edx
	decl	%ecx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movl	(%rax,%rsi), %edi
	shlq	$4, %rdx
	cmpl	(%rax,%rdx), %edi
	jle	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=2
	addq	%rax, %rsi
	addq	%rax, %rdx
	movups	(%rsi), %xmm0
	movaps	%xmm0, -64(%rbp)
	movups	(%rdx), %xmm0
	movups	%xmm0, (%rsi)
	movaps	-64(%rbp), %xmm0
	movups	%xmm0, (%rdx)
	leal	1(%rcx), %edx
	cmpl	$1, %edx
	ja	LBB0_20
	jmp	LBB0_22
LBB0_25:
	leaq	56(%rax), %rdx
	movl	%r8d, %esi
	andl	$2147483644, %esi               ## imm = 0x7FFFFFFC
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	-48(%rdx), %rdi
	movq	%rdi, (%r12)
	movq	-32(%rdx), %rbx
	movq	%rbx, (%rdi)
	movq	-16(%rdx), %rdi
	movq	%rdi, (%rbx)
	movq	(%rdx), %r12
	movq	%r12, (%rdi)
	addq	$4, %rcx
	addq	$64, %rdx
	cmpq	%rcx, %rsi
	jne	LBB0_26
LBB0_27:
	movq	%r12, %rdi
	testb	$3, %r8b
	je	LBB0_30
## %bb.28:
	shlq	$4, %rcx
	addq	%rax, %rcx
	addq	$8, %rcx
	movzbl	%r13b, %edx
	andl	$3, %edx
	shlq	$4, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rsi), %rdi
	movq	%rdi, (%r12)
	addq	$16, %rsi
	movq	%rdi, %r12
	cmpq	%rsi, %rdx
	jne	LBB0_29
LBB0_30:
	movq	$0, (%rdi)
LBB0_31:
	movq	%rax, %rdi
	callq	_free
LBB0_32:
	xorl	%r15d, %r15d
LBB0_33:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_addr4sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function addr4sort
_addr4sort:                             ; @addr4sort
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	cbz	x0, LBB0_18
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_34
; %bb.2:
	mov	x20, x1
	mov	w0, #0
	mov	x21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	add	x21, x21, #1
	add	w0, w0, #16
	cbnz	x8, LBB0_3
; %bb.4:
	cmp	w21, #1
	b.eq	LBB0_34
; %bb.5:
	bl	_malloc
	cbz	x0, LBB0_18
; %bb.6:
	ldr	x10, [x19]
	cbz	x10, LBB0_33
; %bb.7:
	mov	x11, #0
	mov	w9, #0
	sub	x8, x21, #1
	ldr	w12, [x20]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x11, x11, #1
	ldr	x10, [x10]
	cbz	x10, LBB0_19
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	cbz	w12, LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x13, #0
	ldr	x14, [x10, #8]
	ldr	x15, [x20, #8]
	ldr	w14, [x14]
	add	x15, x15, #4
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w17, w16, [x15, #-4]
	and	w17, w17, w14
	cmp	w16, w17
	b.eq	LBB0_15
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x13, x13, #1
	add	x15, x15, #8
	cmp	x12, x13
	b.ne	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x13, x12
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w13, #0
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x14, x0, x11, lsl #4
	str	x10, [x14, #8]
	str	w13, [x14]
	cbnz	w9, LBB0_8
; %bb.16:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	x11, LBB0_8
; %bb.17:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	w9, w11, #1
	lsl	x9, x9, #4
	ldr	w9, [x0, x9]
	cmp	w13, w9
	csel	w9, w11, wzr, lt
	b	LBB0_8
LBB0_18:
	mov	w0, #-1
	b	LBB0_35
LBB0_19:
	cbz	w9, LBB0_33
; %bb.20:
	cmp	w9, w8
	b.le	LBB0_24
LBB0_21:
	cmp	w8, #3
	b.hs	LBB0_27
; %bb.22:
	mov	x8, #0
	b	LBB0_30
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	add	w10, w9, #1
	cmp	w8, w9
	mov	x9, x10
	b.eq	LBB0_21
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
	mov	x12, x9
	cmp	w9, #1
	b.lt	LBB0_23
LBB0_25:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w10, w12, #1
	add	x11, x0, w10, uxtw #4
	ldr	w13, [x11]
	add	x12, x0, w12, uxtw #4
	ldr	w14, [x12]
	cmp	w13, w14
	b.le	LBB0_23
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldr	q0, [x11]
	str	q0, [sp]
	ldr	q1, [x12]
	str	q1, [x11]
	str	q0, [x12]
	add	w11, w10, #1
	mov	x12, x10
	cmp	w11, #1
	b.hi	LBB0_25
	b	LBB0_23
LBB0_27:
	and	x8, x21, #0x7ffffffc
	add	x9, x0, #40
	ubfx	x10, x21, #2, #29
	lsl	x10, x10, #2
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	x11, x19
	ldur	x12, [x9, #-32]
	ldur	x13, [x9, #-16]
	ldr	x14, [x9]
	ldr	x19, [x9, #16]
	str	x12, [x11]
	str	x13, [x12]
	str	x14, [x13]
	str	x19, [x14]
	add	x9, x9, #64
	subs	x10, x10, #4
	b.ne	LBB0_28
; %bb.29:
	cmp	x21, x8
	b.eq	LBB0_32
LBB0_30:
	add	x9, x0, x8, lsl #4
	add	x9, x9, #8
	sub	x8, x8, x21
	mov	x10, x19
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x9], #16
	str	x19, [x10]
	mov	x10, x19
	adds	x8, x8, #1
	b.lo	LBB0_31
LBB0_32:
	str	xzr, [x19]
LBB0_33:
	bl	_free
LBB0_34:
	mov	w0, #0
LBB0_35:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_addr4sort
.subsections_via_symbols
