	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mss_fixup_ipv6                 ## -- Begin function mss_fixup_ipv6
	.p2align	4, 0x90
_mss_fixup_ipv6:                        ## @mss_fixup_ipv6
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_BLEN
	cmpl	$16, %eax
	jl	LBB0_7
## %bb.1:
	movq	%rbx, %rdi
	callq	_verify_align_4
	movq	%rbx, %rdi
	callq	_BPTR
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_BLEN
	movl	%eax, %r12d
	movl	8(%r15), %edi
	callq	_ntohs
	addl	$40, %eax
	cmpl	%eax, %r12d
	jne	LBB0_7
## %bb.2:
	movq	(%r15), %rax
	movq	_OPENVPN_IPPROTO_TCP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.3:
	movl	(%rbx), %eax
	movl	%eax, -40(%rbp)
	leaq	-40(%rbp), %rdi
	movl	$40, %esi
	callq	_buf_advance
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	leaq	-40(%rbp), %rdi
	callq	_BLEN
	cmpl	$4, %eax
	jl	LBB0_7
## %bb.5:
	leaq	-40(%rbp), %rdi
	callq	_BPTR
	movq	_OPENVPN_TCPH_SYN_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_7
## %bb.6:
	movslq	%r14d, %rsi
	addq	$-20, %rsi
	leaq	-40(%rbp), %rdi
	callq	_mss_fixup_dowork
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENVPN_IPPROTO_TCP,8,3        ## @OPENVPN_IPPROTO_TCP
	.comm	_OPENVPN_TCPH_SYN_MASK,4,2      ## @OPENVPN_TCPH_SYN_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mss_fixup_ipv6                 ; -- Begin function mss_fixup_ipv6
	.p2align	2
_mss_fixup_ipv6:                        ; @mss_fixup_ipv6
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_BLEN
	cmp	w0, #16
	b.lt	LBB0_7
; %bb.1:
	mov	x0, x20
	bl	_verify_align_4
	mov	x0, x20
	bl	_BPTR
	mov	x21, x0
	mov	x0, x20
	bl	_BLEN
	mov	x22, x0
	ldr	w0, [x21, #8]
	bl	_ntohs
	add	w8, w0, #40
	cmp	w22, w8
	b.ne	LBB0_7
; %bb.2:
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _OPENVPN_IPPROTO_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _OPENVPN_IPPROTO_TCP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.3:
	ldr	w8, [x20]
	str	w8, [sp, #8]
	add	x0, sp, #8
	mov	w1, #40
	bl	_buf_advance
	cbz	x0, LBB0_7
; %bb.4:
	add	x0, sp, #8
	bl	_BLEN
	cmp	w0, #4
	b.lt	LBB0_7
; %bb.5:
	add	x0, sp, #8
	bl	_BPTR
	ldr	w8, [x0]
Lloh3:
	adrp	x9, _OPENVPN_TCPH_SYN_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OPENVPN_TCPH_SYN_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	sxtw	x8, w19
	sub	x1, x8, #20
	add	x0, sp, #8
	bl	_mss_fixup_dowork
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENVPN_IPPROTO_TCP,8,3        ; @OPENVPN_IPPROTO_TCP
	.comm	_OPENVPN_TCPH_SYN_MASK,4,2      ; @OPENVPN_TCPH_SYN_MASK
.subsections_via_symbols
