	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pf_normalize_tcpopt
_pf_normalize_tcpopt:                   ## @pf_normalize_tcpopt
	.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, %r14d
	movl	%ecx, %r12d
	movq	%rdx, %rbx
	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	_TCP_MAXOLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	leal	-8(,%rax,4), %ecx
	testl	%ecx, %ecx
	jle	LBB0_15
## %bb.1:
	addl	$8, %r12d
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%r14
	movl	%ecx, %r14d
	callq	_pf_pull_hdr
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_16
## %bb.2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_TCPOPT_EOL@GOTPCREL(%rip), %rax
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movl	%r14d, %r13d
	movq	%rax, %r14
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r15d, %eax
	leaq	(%r12,%rax,4), %r12
	subl	%r15d, %r13d
	jle	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %eax
	cmpl	(%r14), %eax
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, %r15d
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$2, %r13d
	jb	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r12), %r15d
	cmpl	$2, %r15d
	jl	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r13d, %r15d
	jg	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %edi
	callq	_ntohs
	movl	(%rbx), %edi
	cmpl	%edi, %eax
	jle	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	8(%r12), %r14d
	callq	_htons
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %edx
	movq	_TCPOPT_EOL@GOTPCREL(%rip), %r14
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_pf_proto_cksum_fixup
	movl	%eax, 4(%rbx)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_htons
	movl	%eax, 8(%r12)
	movl	$1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_12:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.13:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	callq	_m_copyback
	jmp	LBB0_16
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TCP_MAXOLEN,4,2                ## @TCP_MAXOLEN
	.comm	_TCPOPT_EOL,4,2                 ## @TCPOPT_EOL
	.comm	_TCPOPT_NOP,4,2                 ## @TCPOPT_NOP
	.no_dead_strip	_pf_normalize_tcpopt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pf_normalize_tcpopt
_pf_normalize_tcpopt:                   ; @pf_normalize_tcpopt
	.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	x6, x4
	mov	x21, x2
	mov	x20, x1
	mov	x22, 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, _TCP_MAXOLEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_MAXOLEN@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	x24, x9, x8
	mov	sp, x24
	ldr	w8, [x2]
	lsl	w8, w8, #2
	sub	w19, w8, #8
	cmp	w19, #1
	b.lt	LBB0_12
; %bb.1:
	add	w23, w3, #8
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	mov	x3, x19
	mov	x4, #0
	mov	x5, #0
	bl	_pf_pull_hdr
	cbz	w0, LBB0_12
; %bb.2:
	stur	w23, [x29, #-100]               ; 4-byte Folded Spill
	stur	x20, [x29, #-96]                ; 8-byte Folded Spill
	mov	x20, x24
	mov	w25, #0
Lloh8:
	adrp	x24, _TCPOPT_EOL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _TCPOPT_EOL@GOTPAGEOFF]
Lloh10:
	adrp	x26, _TCPOPT_NOP@GOTPAGE
Lloh11:
	ldr	x26, [x26, _TCPOPT_NOP@GOTPAGEOFF]
	stur	x20, [x29, #-112]               ; 8-byte Folded Spill
	mov	x23, x19
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w23, w23, w28
	add	x20, x20, w28, uxtw #2
	cmp	w23, #0
	b.le	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20]
	ldr	w9, [x24]
	cmp	w8, w9
	b.eq	LBB0_13
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x26]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w28, #1
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w23, #2
	b.lo	LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w28, [x20, #4]
	cmp	w28, #2
	ccmp	w28, w23, #0, ge
	b.gt	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #128
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20, #8]
	bl	_ntohs
	mov	x8, x0
	ldr	w0, [x22]
	cmp	w8, w0
	b.le	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w25, [x21, #4]
	mov	x27, x26
	ldr	w26, [x20, #8]
	bl	_htons
	mov	x3, x0
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	mov	x1, x25
	mov	x2, x26
	mov	x26, x27
	mov	w4, #0
	bl	_pf_proto_cksum_fixup
	str	w0, [x21, #4]
	ldr	w0, [x22]
	bl	_htons
	str	w0, [x20, #8]
	mov	w25, #1
	b	LBB0_3
LBB0_12:
	mov	w25, #0
	b	LBB0_15
LBB0_13:
	cbz	w25, LBB0_15
; %bb.14:
	ldur	x0, [x29, #-96]                 ; 8-byte Folded Reload
	ldur	w1, [x29, #-100]                ; 4-byte Folded Reload
	mov	x2, x19
	ldur	x3, [x29, #-112]                ; 8-byte Folded Reload
	bl	_m_copyback
LBB0_15:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x25
	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_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_TCP_MAXOLEN,4,2                ; @TCP_MAXOLEN
	.comm	_TCPOPT_EOL,4,2                 ; @TCPOPT_EOL
	.comm	_TCPOPT_NOP,4,2                 ; @TCPOPT_NOP
	.no_dead_strip	_pf_normalize_tcpopt
.subsections_via_symbols
