	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tap_do_read
_tap_do_read:                           ## @tap_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	%rcx, %rbx
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DEFINE_WAIT
	movq	%r15, %rdi
	callq	_iov_iter_count
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_3
LBB0_12:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_tap_put_user
	movl	%eax, %r12d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	callq	_kfree_skb
	jmp	LBB0_15
LBB0_1:
	movq	%rbx, %rdi
	callq	_kfree_skb
	xorl	%r12d, %r12d
	jmp	LBB0_15
LBB0_3:
	testl	%r12d, %r12d
	je	LBB0_4
## %bb.8:
	leaq	4(%r14), %rdi
	callq	_ptr_ring_consume
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_14:
	callq	_consume_skb
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	leaq	4(%r14), %rbx
	movq	%r14, %rdi
	callq	_sk_sleep
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_wait@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_prepare_to_wait
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_ptr_ring_consume
	movq	%rax, %rbx
	xorl	%r12d, %r12d
	testq	%rax, %rax
	sete	%r13b
	jne	LBB0_11
## %bb.5:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	%r14, %rdi
	callq	_sk_sleep
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_prepare_to_wait
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ptr_ring_consume
	movq	%rax, %rbx
	testq	%rax, %rax
	sete	%r13b
	je	LBB0_6
	jmp	LBB0_11
LBB0_7:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_11:
	movq	%r14, %rdi
	callq	_sk_sleep
	movq	_wait@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	callq	_finish_wait
	testb	$1, %r13b
	je	LBB0_12
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_current,4,2                    ## @current
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.no_dead_strip	_tap_do_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tap_do_read
_tap_do_read:                           ; @tap_do_read
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _wait@GOTPAGE
Lloh1:
	ldr	x8, [x8, _wait@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_DEFINE_WAIT
	mov	x0, x19
	bl	_iov_iter_count
	cbz	w0, LBB0_4
; %bb.1:
	cbz	x21, LBB0_5
LBB0_2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_tap_put_user
	mov	x22, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x21
	bl	_kfree_skb
	b	LBB0_9
LBB0_4:
	mov	x0, x21
	bl	_kfree_skb
	mov	w22, #0
	b	LBB0_9
LBB0_5:
	cbz	w22, LBB0_10
; %bb.6:
	add	x0, x20, #4
	bl	_ptr_ring_consume
	mov	x21, x0
	cbnz	x0, LBB0_2
; %bb.7:
Lloh3:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_9
LBB0_8:
	mov	x0, x21
	bl	_consume_skb
LBB0_9:
	mov	x0, x22
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	add	x22, x20, #4
	mov	x0, x20
	bl	_sk_sleep
Lloh6:
	adrp	x25, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh8:
	adrp	x1, _wait@GOTPAGE
Lloh9:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_prepare_to_wait
	mov	x0, x22
	bl	_ptr_ring_consume
	mov	x21, x0
	cmp	x0, #0
	cset	w24, eq
	cbnz	x0, LBB0_14
; %bb.11:
Lloh10:
	adrp	x26, _current@GOTPAGE
Lloh11:
	ldr	x26, [x26, _current@GOTPAGEOFF]
Lloh12:
	adrp	x23, _wait@GOTPAGE
Lloh13:
	ldr	x23, [x23, _wait@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x26]
	bl	_signal_pending
	cbnz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_schedule
	mov	x0, x20
	bl	_sk_sleep
	ldr	w2, [x25]
	mov	x1, x23
	bl	_prepare_to_wait
	mov	x0, x22
	bl	_ptr_ring_consume
	mov	x21, x0
	cmp	x0, #0
	cset	w24, eq
	cbz	x0, LBB0_12
LBB0_14:
	mov	w22, #0
	b	LBB0_16
LBB0_15:
Lloh14:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_16:
	mov	x0, x20
	bl	_sk_sleep
Lloh17:
	adrp	x1, _wait@GOTPAGE
Lloh18:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_finish_wait
	tbz	w24, #0, LBB0_2
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_current,4,2                    ; @current
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.no_dead_strip	_tap_do_read
.subsections_via_symbols
