	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tun_do_read
_tun_do_read:                           ## @tun_do_read
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %rbx
	movl	%ecx, %r13d
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_KERN_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rsi
	callq	_tun_debug
	movq	%r14, %rdi
	callq	_iov_iter_count
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	jne	LBB0_5
## %bb.3:
	leaq	-44(%rbp), %rdx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_tun_ring_recv
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%rbx, %rdi
	callq	_tun_is_xdp_frame
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_tun_ptr_to_xdp
	movq	%rax, %rbx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r14, %rcx
	callq	_tun_put_user_xdp
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_xdp_return_frame
	jmp	LBB0_10
LBB0_1:
	movq	%rbx, %rdi
	callq	_tun_ptr_free
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	callq	_tun_put_user
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	callq	_kfree_skb
	jmp	LBB0_10
LBB0_4:
	movl	-44(%rbp), %r14d
	jmp	LBB0_10
LBB0_9:
	callq	_consume_skb
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_INFO,4,2                  ## @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tun_do_read\n"

	.no_dead_strip	_tun_do_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tun_do_read
_tun_do_read:                           ; @tun_do_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _KERN_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KERN_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x22
	bl	_tun_debug
	mov	x0, x20
	bl	_iov_iter_count
	cbz	w0, LBB0_5
; %bb.1:
	cbnz	x19, LBB0_3
; %bb.2:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x23
	bl	_tun_ring_recv
	mov	x19, x0
	cbz	x0, LBB0_8
LBB0_3:
	mov	x0, x19
	bl	_tun_is_xdp_frame
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	bl	_tun_ptr_to_xdp
	mov	x19, x0
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_tun_put_user_xdp
	mov	x20, x0
	mov	x0, x19
	bl	_xdp_return_frame
	b	LBB0_10
LBB0_5:
	mov	x0, x19
	bl	_tun_ptr_free
	mov	w20, #0
	b	LBB0_10
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_tun_put_user
	mov	x20, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.7:
	mov	x0, x19
	bl	_kfree_skb
	b	LBB0_10
LBB0_8:
	ldr	w20, [sp, #12]
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_consume_skb
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_INFO,4,2                  ; @KERN_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tun_do_read\n"

	.no_dead_strip	_tun_do_read
.subsections_via_symbols
