	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mss_fixup_dowork               ## -- Begin function mss_fixup_dowork
	.p2align	4, 0x90
_mss_fixup_dowork:                      ## @mss_fixup_dowork
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	callq	_BLEN
	cmpl	$8, %eax
	jl	LBB0_14
## %bb.1:
	movq	%r15, %rdi
	callq	_verify_align_4
	movq	%r15, %rdi
	callq	_BPTR
	movq	%rax, %r14
	movl	4(%rax), %edi
	callq	_OPENVPN_TCPH_GET_DOFF
	cmpl	$9, %eax
	jl	LBB0_14
## %bb.2:
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_BLEN
	cmpl	%eax, %r13d
	jg	LBB0_14
## %bb.3:
	cmpl	$9, %r13d
	je	LBB0_14
## %bb.4:
	addl	$-8, %r13d
	movq	%r14, %rbx
	addq	$8, %rbx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movzbl	%ah, %ecx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movzbl	%al, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_OPENVPN_TCPOPT_EOL@GOTPCREL(%rip), %rcx
	movq	_OPENVPN_TCPOPT_NOP@GOTPCREL(%rip), %rdx
	movq	_OPENVPN_TCPOPT_MAXSEG@GOTPCREL(%rip), %rsi
	movq	_OPENVPN_TCPOLEN_MAXSEG@GOTPCREL(%rip), %rdi
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	subl	%r15d, %r13d
	movl	%r15d, %eax
	leaq	(%rbx,%rax,8), %rbx
	cmpl	$1, %r13d
	jle	LBB0_14
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	(%rcx), %rax
	je	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, %r15d
	cmpq	(%rdx), %rax
	je	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%rbx), %r15d
	testl	%r15d, %r15d
	jle	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r15d, %r13d
	jl	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	(%rsi), %rax
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	%r15d, (%rdi)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%rbx), %r12d
	shll	$8, %r12d
	addl	24(%rbx), %r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	cmpl	%r14d, %r12d
	jle	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	_D_MSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_dmsg
	movl	%r12d, %edi
	callq	_htons
	movl	%eax, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%rbx)
	movl	%r14d, %edi
	callq	_htons
	subl	%eax, %r12d
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %esi
	movl	%r12d, %edi
	callq	_ADJUST_CHECKSUM
	movq	_OPENVPN_TCPOLEN_MAXSEG@GOTPCREL(%rip), %rdi
	movq	_OPENVPN_TCPOPT_MAXSEG@GOTPCREL(%rip), %rsi
	movq	_OPENVPN_TCPOPT_NOP@GOTPCREL(%rip), %rdx
	movq	_OPENVPN_TCPOPT_EOL@GOTPCREL(%rip), %rcx
	jmp	LBB0_13
LBB0_14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENVPN_TCPOPT_EOL,8,3         ## @OPENVPN_TCPOPT_EOL
	.comm	_OPENVPN_TCPOPT_NOP,8,3         ## @OPENVPN_TCPOPT_NOP
	.comm	_OPENVPN_TCPOPT_MAXSEG,8,3      ## @OPENVPN_TCPOPT_MAXSEG
	.comm	_OPENVPN_TCPOLEN_MAXSEG,4,2     ## @OPENVPN_TCPOLEN_MAXSEG
	.comm	_D_MSS,4,2                      ## @D_MSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MSS: %d -> %d"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mss_fixup_dowork               ; -- Begin function mss_fixup_dowork
	.p2align	2
_mss_fixup_dowork:                      ; @mss_fixup_dowork
	.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	x19, x1
	mov	x21, x0
	bl	_BLEN
	cmp	w0, #8
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x21
	bl	_verify_align_4
	mov	x0, x21
	bl	_BPTR
	mov	x20, x0
	ldr	w0, [x0, #4]
	bl	_OPENVPN_TCPH_GET_DOFF
	cmp	w0, #9
	b.lt	LBB0_3
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	bl	_BLEN
	cmp	w22, w0
	ccmp	w22, #9, #4, le
	b.ne	LBB0_4
LBB0_3:
	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
LBB0_4:
	sub	w23, w22, #8
	add	x24, x20, #8
	ubfx	w9, w19, #8, #8
	and	w8, w19, #0xff
	stp	x8, x9, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x27, _OPENVPN_TCPOPT_EOL@GOTPAGE
Lloh1:
	ldr	x27, [x27, _OPENVPN_TCPOPT_EOL@GOTPAGEOFF]
Lloh2:
	adrp	x28, _OPENVPN_TCPOPT_NOP@GOTPAGE
Lloh3:
	ldr	x28, [x28, _OPENVPN_TCPOPT_NOP@GOTPAGEOFF]
Lloh4:
	adrp	x21, _OPENVPN_TCPOPT_MAXSEG@GOTPAGE
Lloh5:
	ldr	x21, [x21, _OPENVPN_TCPOPT_MAXSEG@GOTPAGEOFF]
Lloh6:
	adrp	x25, _OPENVPN_TCPOLEN_MAXSEG@GOTPAGE
Lloh7:
	ldr	x25, [x25, _OPENVPN_TCPOLEN_MAXSEG@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w26, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w23, w23, w26
	add	x24, x24, w26, uxtw #3
	cmp	w23, #1
	b.le	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	x9, [x27]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w26, [x24, #8]
	cmp	w26, #1
	ccmp	w23, w26, #8, ge
	b.lt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	x9, [x21]
	ldr	w10, [x25]
	cmp	x8, x9
	ccmp	w10, w26, #0, eq
	b.ne	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x24, #16]
	ldr	w9, [x24, #24]
	add	w22, w9, w8, lsl #8
	cmp	w22, w19
	b.le	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh8:
	adrp	x8, _D_MSS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _D_MSS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	bl	_dmsg
	mov	x0, x22
	bl	_htons
	mov	x22, x0
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	stp	x9, x8, [x24, #16]
	mov	x0, x19
	bl	_htons
	sub	w0, w22, w0
	ldr	w1, [x20]
	bl	_ADJUST_CHECKSUM
	b	LBB0_6
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENVPN_TCPOPT_EOL,8,3         ; @OPENVPN_TCPOPT_EOL
	.comm	_OPENVPN_TCPOPT_NOP,8,3         ; @OPENVPN_TCPOPT_NOP
	.comm	_OPENVPN_TCPOPT_MAXSEG,8,3      ; @OPENVPN_TCPOPT_MAXSEG
	.comm	_OPENVPN_TCPOLEN_MAXSEG,4,2     ; @OPENVPN_TCPOLEN_MAXSEG
	.comm	_D_MSS,4,2                      ; @D_MSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MSS: %d -> %d"

.subsections_via_symbols
