	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcpoptstrip_mangle_packet
_tcpoptstrip_mangle_packet:             ## @tcpoptstrip_mangle_packet
	.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	%edx, %r15d
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %esi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_skb_make_writable
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_skb_network_header
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_tcp_hdrlen
	movq	_XT_CONTINUE@GOTPCREL(%rip), %rcx
	cmpl	$5, %eax
	jb	LBB0_12
## %bb.3:
	movl	%r15d, %eax
	addq	%rax, -48(%rbp)                 ## 8-byte Folded Spill
	movl	$4, %ebx
	movq	_TCPOPT_NOP@GOTPCREL(%rip), %r13
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rdi
	movl	(%r13), %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memset
	movl	-60(%rbp), %r14d                ## 4-byte Reload
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_tcp_hdrlen
	movl	%r14d, %ebx
	cmpl	%eax, %r14d
	jae	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_optlen
	movl	%eax, %r15d
	leal	(%r15,%rbx), %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_tcp_hdrlen
	cmpl	%eax, %r14d
	ja	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movl	%ebx, %r12d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r12,4), %esi
	callq	_tcpoptstrip_test_bit
	testl	%eax, %eax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movl	%r14d, -60(%rbp)                ## 4-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	je	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	-72(%rbp), %r15d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%rax,4), %eax
	movl	(%r13), %ecx
	movl	%eax, %edi
	shll	$8, %edi
	movl	%ecx, %r14d
	shll	$8, %r14d
	testb	$1, %bl
	cmovnel	%ecx, %r14d
	cmovnel	%eax, %edi
	callq	_htons
	movq	%r13, %r12
	movl	%eax, %r13d
	movl	%r14d, %edi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	callq	_htons
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r13d, %edx
	movq	%r12, %r13
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	callq	_inet_proto_csum_replace2
	incl	%ebx
	decq	%r15
	jne	LBB0_8
	jmp	LBB0_9
LBB0_1:
	movq	_NF_DROP@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_11:
	movq	_XT_CONTINUE@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NF_DROP,4,2                    ## @NF_DROP
	.comm	_TCPOPT_NOP,4,2                 ## @TCPOPT_NOP
	.comm	_XT_CONTINUE,4,2                ## @XT_CONTINUE
	.no_dead_strip	_tcpoptstrip_mangle_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcpoptstrip_mangle_packet
_tcpoptstrip_mangle_packet:             ; @tcpoptstrip_mangle_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	w1, [x0]
	bl	_skb_make_writable
	cbz	w0, LBB0_11
; %bb.1:
	mov	x0, x20
	bl	_skb_network_header
	mov	x23, x0
	mov	x0, x20
	bl	_tcp_hdrlen
	cmp	w0, #5
	b.lo	LBB0_10
; %bb.2:
	mov	w22, #4
Lloh0:
	adrp	x28, _TCPOPT_NOP@GOTPAGE
Lloh1:
	ldr	x28, [x28, _TCPOPT_NOP@GOTPAGEOFF]
	add	x21, x23, w21, uxtw
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x28]
	mov	x0, x24
	mov	x2, x23
	bl	_memset
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	bl	_tcp_hdrlen
	mov	x22, x27
	cmp	w27, w0
	b.hs	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	mov	x0, x21
	mov	x1, x22
	bl	_optlen
	mov	x23, x0
	add	w27, w0, w22
	mov	x0, x20
	bl	_tcp_hdrlen
	cmp	w27, w0
	b.hi	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w0, [x8]
	add	x24, x21, w22, uxtw #2
	ldr	w1, [x24]
	bl	_tcpoptstrip_test_bit
	cbz	w0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w23, LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w19, w23
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x21, w22, uxtw #2]
	ldr	w9, [x28]
	lsl	w10, w8, #8
	lsl	w11, w9, #8
	tst	w22, #0x1
	csel	w25, w11, w9, eq
	csel	w0, w10, w8, eq
	bl	_htons
	mov	x26, x0
	mov	x0, x25
	bl	_htons
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x26
	mov	w4, #0
	bl	_inet_proto_csum_replace2
	add	w22, w22, #1
	subs	x19, x19, #1
	b.ne	LBB0_9
	b	LBB0_3
LBB0_10:
Lloh2:
	adrp	x8, _XT_CONTINUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XT_CONTINUE@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh4:
	adrp	x8, _NF_DROP@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NF_DROP@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NF_DROP,4,2                    ; @NF_DROP
	.comm	_TCPOPT_NOP,4,2                 ; @TCPOPT_NOP
	.comm	_XT_CONTINUE,4,2                ; @XT_CONTINUE
	.no_dead_strip	_tcpoptstrip_mangle_packet
.subsections_via_symbols
