	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_lro_sort
_tcp_lro_sort:                          ## @tcp_lro_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	cmpl	$13, %esi
	jge	LBB0_1
LBB0_15:
	cmpl	$2, %r14d
	jl	LBB0_22
## %bb.16:
	movl	%r14d, %eax
	movl	$1, %ecx
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	movslq	%esi, %rsi
	movl	%edx, (%r12,%rsi,4)
	incq	%rcx
	cmpq	%rax, %rcx
	je	LBB0_22
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_18 Depth 2
	movl	(%r12,%rcx,4), %edx
	movq	%rcx, %rsi
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-1(%rsi), %rdi
	movl	%edi, %ebx
	movl	(%r12,%rbx,4), %ebx
	cmpl	%ebx, %edx
	jge	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=2
	movl	%ebx, (%r12,%rsi,4)
	leaq	1(%rdi), %rbx
	movq	%rdi, %rsi
	cmpq	$1, %rbx
	jg	LBB0_18
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	xorl	%esi, %esi
	jmp	LBB0_21
LBB0_1:
	leaq	L_.str(%rip), %r15
	pcmpeqd	%xmm8, %xmm8
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%ebx, %ebx
	setne	%al
	subl	%ebx, %r14d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	movq	%r15, %rsi
	callq	_KASSERT
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_tcp_lro_sort
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %r12
	cmpl	$13, %r14d
	pcmpeqd	%xmm8, %xmm8
	jl	LBB0_15
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##     Child Loop BB0_11 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movl	%r14d, %eax
	movl	%r14d, %r14d
	cmpl	$8, %eax
	jae	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	xorl	%edi, %edi
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	andl	$-8, %eax
	leaq	-8(%rax), %rdx
	movq	%rdx, %rcx
	shrq	$3, %rcx
	incq	%rcx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rcx, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%r12,%rdx,4), %xmm4
	movdqu	16(%r12,%rdx,4), %xmm5
	movdqu	32(%r12,%rdx,4), %xmm6
	movdqu	48(%r12,%rdx,4), %xmm7
	por	%xmm4, %xmm1
	por	%xmm5, %xmm3
	por	%xmm6, %xmm1
	por	%xmm7, %xmm3
	pand	%xmm6, %xmm4
	pxor	%xmm8, %xmm4
	por	%xmm4, %xmm0
	pand	%xmm7, %xmm5
	pxor	%xmm8, %xmm5
	por	%xmm5, %xmm2
	addq	$16, %rdx
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %cl
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movdqu	(%r12,%rdx,4), %xmm4
	movdqu	16(%r12,%rdx,4), %xmm5
	por	%xmm4, %xmm1
	por	%xmm5, %xmm3
	pxor	%xmm8, %xmm4
	por	%xmm4, %xmm0
	pxor	%xmm8, %xmm5
	por	%xmm5, %xmm2
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	por	%xmm2, %xmm0
	por	%xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	por	%xmm1, %xmm2
	pshufd	$85, %xmm2, %xmm1               ## xmm1 = xmm2[1,1,1,1]
	por	%xmm2, %xmm1
	movd	%xmm1, %edi
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %ecx
	cmpq	%r14, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rax,4), %edx
	orl	%edx, %edi
	notl	%edx
	orl	%edx, %ecx
	incq	%rax
	cmpq	%rax, %r14
	jne	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	andl	%ecx, %edi
	je	LBB0_22
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	callq	_tcp_lro_msb_64
	cmpl	$1, %r14d
	jne	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
LBB0_29:                                ##   in Loop: Header=BB0_2 Depth=1
	testb	$1, %r14b
	je	LBB0_32
## %bb.30:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12,%rcx,4), %edx
	testl	%eax, %edx
	jne	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%ebx, %rbx
	movl	(%r12,%rbx,4), %eax
	movl	%edx, (%r12,%rbx,4)
	movl	%eax, (%r12,%rcx,4)
	incl	%ebx
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %edx
	andl	$-2, %edx
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=2
	addq	$2, %rcx
	cmpq	%rcx, %rdx
	je	LBB0_29
LBB0_24:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rcx,4), %esi
	testl	%eax, %esi
	jne	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movslq	%ebx, %rbx
	movl	(%r12,%rbx,4), %edi
	movl	%esi, (%r12,%rbx,4)
	movl	%edi, (%r12,%rcx,4)
	incl	%ebx
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=2
	movl	4(%r12,%rcx,4), %esi
	testl	%eax, %esi
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_24 Depth=2
	movslq	%ebx, %rbx
	movl	(%r12,%rbx,4), %edi
	movl	%esi, (%r12,%rbx,4)
	movl	%edi, 4(%r12,%rcx,4)
	incl	%ebx
	jmp	LBB0_28
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	pxor	%xmm0, %xmm0
	xorl	%edx, %edx
	pxor	%xmm2, %xmm2
	pxor	%xmm1, %xmm1
	pxor	%xmm3, %xmm3
	testb	$1, %cl
	jne	LBB0_9
	jmp	LBB0_10
LBB0_22:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory is corrupted\n"

	.no_dead_strip	_tcp_lro_sort
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_lro_sort
_tcp_lro_sort:                          ; @tcp_lro_sort
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cmp	w1, #13
	b.ge	LBB0_8
LBB0_1:
	cmp	w1, #2
	b.lt	LBB0_22
; %bb.2:
	mov	w8, w1
	mov	w9, #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sbfiz	x11, x11, #2, #32
	str	w10, [x19, x11]
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_22
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldr	w10, [x19, x9, lsl #2]
	mov	x11, x9
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x12, x11, #1
	ldr	w13, [x19, w12, uxtw #2]
	cmp	w10, w13
	b.ge	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	str	w13, [x19, x11, lsl #2]
	add	x13, x12, #1
	mov	x11, x12
	cmp	x13, #1
	b.gt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x11, #0
	b	LBB0_3
LBB0_8:
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	cmp	w21, #0
	ccmp	w22, w21, #4, ne
	cset	w0, ne
	mov	x1, x20
	bl	_KASSERT
	mov	x0, x19
	mov	x1, x21
	bl	_tcp_lro_sort
	add	x19, x19, w21, sxtw #2
	sub	w1, w22, w21
	cmp	w1, #13
	b.lt	LBB0_1
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_13 Depth 2
                                        ;     Child Loop BB0_16 Depth 2
                                        ;     Child Loop BB0_20 Depth 2
	mov	w22, w1
	cmp	w1, #16
	b.hs	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x8, #0
	mov	w10, #0
	mov	w9, #0
	b	LBB0_15
LBB0_12:                                ;   in Loop: Header=BB0_10 Depth=1
	movi.2d	v0, #0000000000000000
	and	x8, x22, #0xfffffff0
	movi.2d	v1, #0000000000000000
	add	x9, x19, #32
	mov	x10, x8
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v5, #0000000000000000
	movi.2d	v6, #0000000000000000
	movi.2d	v7, #0000000000000000
LBB0_13:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q16, q17, [x9, #-32]
	orr.16b	v4, v16, v4
	orr.16b	v5, v17, v5
	ldp	q18, q19, [x9], #64
	orr.16b	v6, v18, v6
	orr.16b	v7, v19, v7
	orn.16b	v0, v0, v16
	orn.16b	v1, v1, v17
	orn.16b	v2, v2, v18
	orn.16b	v3, v3, v19
	subs	x10, x10, #16
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	orr.16b	v4, v5, v4
	orr.16b	v4, v6, v4
	orr.16b	v4, v7, v4
	ext.16b	v5, v4, v4, #8
	orr.8b	v4, v4, v5
	mov.s	w9, v4[1]
	fmov	w10, s4
	orr	w9, w10, w9
	orr.16b	v0, v1, v0
	orr.16b	v0, v2, v0
	orr.16b	v0, v3, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	mov.s	w10, v0[1]
	fmov	w11, s0
	orr	w10, w11, w10
	cmp	x8, x22
	b.eq	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x11, x19, x8, lsl #2
	sub	x8, x22, x8
LBB0_16:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x11], #4
	orr	w9, w12, w9
	orn	w10, w10, w12
	subs	x8, x8, #1
	b.ne	LBB0_16
LBB0_17:                                ;   in Loop: Header=BB0_10 Depth=1
	ands	w0, w10, w9
	b.eq	LBB0_22
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_tcp_lro_msb_64
	mov	x8, #0
	mov	w21, #0
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_20 Depth=2
	add	x8, x8, #1
	cmp	x22, x8
	b.eq	LBB0_9
LBB0_20:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x19, x8, lsl #2]
	tst	w9, w0
	b.ne	LBB0_19
; %bb.21:                               ;   in Loop: Header=BB0_20 Depth=2
	sbfiz	x10, x21, #2, #32
	ldr	w11, [x19, x10]
	str	w9, [x19, x10]
	str	w11, [x19, x8, lsl #2]
	add	w21, w21, #1
	b	LBB0_19
LBB0_22:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory is corrupted\n"

	.no_dead_strip	_tcp_lro_sort
.subsections_via_symbols
