	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __xfrm6_sort
___xfrm6_sort:                          ## @__xfrm6_sort
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r12d
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_XFRM_MAX_DEPTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movl	%r12d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rax,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	leal	(,%r12,4), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memset
	movl	%r14d, %r10d
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_3
## %bb.1:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%r14,8), %rdi
	movq	%r13, %r12
	movq	%r10, %r13
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	movq	%r13, %r10
	movq	%r12, %r13
	movslq	%eax, %rcx
	incl	(%rbx,%rcx,4)
	movl	%eax, (%r12,%r14,4)
	incq	%r14
	cmpq	%r14, %r10
	jne	LBB0_2
LBB0_3:
	cmpl	$3, -72(%rbp)                   ## 4-byte Folded Reload
	movq	-80(%rbp), %r9                  ## 8-byte Reload
	movl	-52(%rbp), %r8d                 ## 4-byte Reload
	jl	LBB0_10
## %bb.4:
	movl	4(%rbx), %eax
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	leaq	-2(%rdi), %rdx
	addq	$-3, %rdi
	movl	%edx, %ecx
	andl	$3, %ecx
	movl	$2, %esi
	cmpq	$3, %rdi
	jb	LBB0_7
## %bb.5:
	andq	$-4, %rdx
	negq	%rdx
	movl	$2, %esi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rbx,%rsi,4), %eax
	movl	%eax, (%rbx,%rsi,4)
	addl	4(%rbx,%rsi,4), %eax
	movl	%eax, 4(%rbx,%rsi,4)
	addl	8(%rbx,%rsi,4), %eax
	movl	%eax, 8(%rbx,%rsi,4)
	addl	12(%rbx,%rsi,4), %eax
	movl	%eax, 12(%rbx,%rsi,4)
	leaq	(%rdx,%rsi), %rdi
	addq	$4, %rdi
	addq	$4, %rsi
	cmpq	$2, %rdi
	jne	LBB0_6
LBB0_7:
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.8:
	leaq	(%rbx,%rsi,4), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	addl	(%rdx,%rsi,4), %eax
	movl	%eax, (%rdx,%rsi,4)
	incq	%rsi
	cmpq	%rsi, %rcx
	jne	LBB0_9
LBB0_10:
	testl	%r8d, %r8d
	jle	LBB0_17
## %bb.11:
	cmpl	$1, %r8d
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_13:
	movl	%r10d, %r8d
	andl	$-2, %r8d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rax,8), %rdx
	movslq	(%r13,%rax,4), %rsi
	movslq	-4(%rbx,%rsi,4), %rdi
	leal	1(%rdi), %ecx
	movl	%ecx, -4(%rbx,%rsi,4)
	movq	%rdx, (%r9,%rdi,8)
	movq	$0, (%r15,%rax,8)
	movq	8(%r15,%rax,8), %rcx
	movslq	4(%r13,%rax,4), %rdx
	movslq	-4(%rbx,%rdx,4), %rsi
	leal	1(%rsi), %edi
	movl	%edi, -4(%rbx,%rdx,4)
	movq	%rcx, (%r9,%rsi,8)
	movq	$0, 8(%r15,%rax,8)
	addq	$2, %rax
	cmpq	%rax, %r8
	jne	LBB0_14
LBB0_15:
	testb	$1, %r10b
	je	LBB0_17
## %bb.16:
	movq	(%r15,%rax,8), %rcx
	movslq	(%r13,%rax,4), %rdx
	movslq	-4(%rbx,%rdx,4), %rsi
	leal	1(%rsi), %edi
	movl	%edi, -4(%rbx,%rdx,4)
	movq	%rcx, (%r9,%rsi,8)
	movq	$0, (%r15,%rax,8)
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	xorl	%eax, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XFRM_MAX_DEPTH,4,2             ## @XFRM_MAX_DEPTH
	.no_dead_strip	___xfrm6_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __xfrm6_sort
___xfrm6_sort:                          ; @__xfrm6_sort
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x23, x4
	mov	x24, x3
	mov	x19, x2
	mov	x27, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _XFRM_MAX_DEPTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XFRM_MAX_DEPTH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	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, #0x7fffffff0
	sub	x22, x9, x8
	mov	sp, x22
	mov	w8, w4
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	lsl	x8, x8, #2
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	lsl	w2, w4, #2
	mov	x0, x21
	mov	w1, #0
	bl	_memset
	mov	w26, w19
	stur	w19, [x29, #-92]                ; 4-byte Folded Spill
	cmp	w19, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x28, x26
	mov	x19, x27
	mov	x25, x22
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19], #8
	blr	x24
                                        ; kill: def $w0 killed $w0 def $x0
	str	w0, [x25], #4
	sbfiz	x8, x0, #2, #32
	ldr	w9, [x21, x8]
	add	w9, w9, #1
	str	w9, [x21, x8]
	subs	x28, x28, #1
	b.ne	LBB0_2
LBB0_3:
	cmp	w23, #3
	b.lt	LBB0_6
; %bb.4:
	ldr	w8, [x21, #4]
	add	x9, x21, #8
	ldur	x10, [x29, #-104]               ; 8-byte Folded Reload
	sub	x10, x10, #2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	add	w8, w11, w8
	str	w8, [x9], #4
	subs	x10, x10, #1
	b.ne	LBB0_5
LBB0_6:
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	cmp	w8, #1
	b.lt	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldrsw	x9, [x22], #4
	add	x9, x21, x9, lsl #2
	ldursw	x10, [x9, #-4]
	add	w11, w10, #1
	stur	w11, [x9, #-4]
	str	x8, [x20, x10, lsl #3]
	str	xzr, [x27], #8
	subs	x26, x26, #1
	b.ne	LBB0_7
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_XFRM_MAX_DEPTH,4,2             ; @XFRM_MAX_DEPTH
	.no_dead_strip	___xfrm6_sort
.subsections_via_symbols
