	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_frame_finalize                 ## -- Begin function frame_finalize
	.p2align	4, 0x90
_frame_finalize:                        ## @frame_finalize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movl	%r8d, %r14d
	xorl	%edi, %edi
	testl	%esi, %esi
	sete	%dil
	callq	_ASSERT
	movq	%r15, %rdi
	callq	_TUN_LINK_DELTA
	movl	%eax, %ebx
	addl	%r14d, %ebx
	jmp	LBB0_3
LBB0_2:
	movl	%edx, %ebx
	movl	%esi, %edi
	callq	_ASSERT
LBB0_3:
	movl	%ebx, (%r15)
	movq	%r15, %rdi
	callq	_TUN_MTU_SIZE
	movq	_TUN_MTU_MIN@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	jge	LBB0_5
## %bb.4:
	movq	_M_WARN@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r15, %rdi
	callq	_TUN_MTU_SIZE
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_msg
	movq	_M_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	callq	_frame_print
LBB0_5:
	movl	(%r15), %eax
	movl	%eax, 4(%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TUN_MTU_MIN,8,3                ## @TUN_MTU_MIN
	.comm	_M_WARN,4,2                     ## @M_WARN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TUN MTU value (%d) must be at least %d"

	.comm	_M_FATAL,4,2                    ## @M_FATAL
L_.str.1:                               ## @.str.1
	.asciz	"MTU is too small"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_frame_finalize                 ; -- Begin function frame_finalize
	.p2align	2
_frame_finalize:                        ; @frame_finalize
	.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
	cbz	w3, LBB0_2
; %bb.1:
	mov	x20, x4
	cmp	w1, #0
	cset	w0, eq
	bl	_ASSERT
	mov	x0, x19
	bl	_TUN_LINK_DELTA
	add	w21, w0, w20
	b	LBB0_3
LBB0_2:
	mov	x21, x2
	mov	x0, x1
	bl	_ASSERT
LBB0_3:
	str	w21, [x19]
	mov	x0, x19
	bl	_TUN_MTU_SIZE
Lloh0:
	adrp	x21, _TUN_MTU_MIN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TUN_MTU_MIN@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _M_WARN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_WARN@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_TUN_MTU_SIZE
	mov	x2, x0
	ldr	x3, [x21]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_msg
Lloh7:
	adrp	x8, _M_FATAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_FATAL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
Lloh10:
	adrp	x2, l_.str.1@PAGE
Lloh11:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_frame_print
LBB0_5:
	ldr	w8, [x19]
	str	w8, [x19, #4]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TUN_MTU_MIN,8,3                ; @TUN_MTU_MIN
	.comm	_M_WARN,4,2                     ; @M_WARN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TUN MTU value (%d) must be at least %d"

	.comm	_M_FATAL,4,2                    ; @M_FATAL
l_.str.1:                               ; @.str.1
	.asciz	"MTU is too small"

.subsections_via_symbols
