	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macvtap_do_read
_macvtap_do_read:                       ## @macvtap_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r13d
	movq	%rcx, %rbx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movq	_wait@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_current@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	callq	_DECLARE_WAITQUEUE
	movl	(%r12), %edi
	movq	%r15, %rsi
	callq	_add_wait_queue
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	leaq	4(%r12), %rbx
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_skb_dequeue
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
LBB0_10:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	callq	_macvtap_put_user
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_kfree_skb
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_schedule
	movq	_TASK_INTERRUPTIBLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_skb_dequeue
	testq	%rax, %rax
	jne	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testl	%r13d, %r13d
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	callq	_signal_pending
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_11
LBB0_4:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_11:
	movq	_TASK_RUNNING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movl	(%r12), %edi
	movq	_wait@GOTPCREL(%rip), %rsi
	callq	_remove_wait_queue
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rax, %r15
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_wait,4,2                       ## @wait
	.comm	_current,8,3                    ## @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ## @TASK_INTERRUPTIBLE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.comm	_TASK_RUNNING,4,2               ## @TASK_RUNNING
	.no_dead_strip	_macvtap_do_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macvtap_do_read
_macvtap_do_read:                       ; @macvtap_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	x22, x4
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _wait@GOTPAGE
Lloh1:
	ldr	x23, [x23, _wait@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x25, _current@GOTPAGE
Lloh3:
	ldr	x25, [x25, _current@GOTPAGEOFF]
	ldr	x1, [x25]
	bl	_DECLARE_WAITQUEUE
	ldr	w0, [x19]
	mov	x1, x23
	bl	_add_wait_queue
	cbz	x20, LBB0_9
; %bb.1:
	add	x23, x19, #4
Lloh4:
	adrp	x26, _TASK_INTERRUPTIBLE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _TASK_INTERRUPTIBLE@GOTPAGEOFF]
	ldr	w8, [x26]
	ldr	x9, [x25]
	str	w8, [x9]
	mov	x0, x23
	bl	_skb_dequeue
	mov	x24, x0
	cbz	x0, LBB0_4
LBB0_2:
	mov	x0, x19
	mov	x1, x24
	mov	x2, x21
	mov	x3, x20
	bl	_macvtap_put_user
	mov	x20, x0
	mov	x0, x24
	bl	_kfree_skb
	b	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_schedule
	ldr	w8, [x26]
	ldr	x9, [x25]
	str	w8, [x9]
	mov	x0, x23
	bl	_skb_dequeue
	cbnz	x0, LBB0_10
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w22, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x25]
	bl	_signal_pending
	cbz	x0, LBB0_3
; %bb.6:
Lloh6:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
Lloh10:
	adrp	x8, _TASK_RUNNING@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TASK_RUNNING@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x25]
	str	w8, [x9]
	ldr	w0, [x19]
Lloh13:
	adrp	x1, _wait@GOTPAGE
Lloh14:
	ldr	x1, [x1, _wait@GOTPAGEOFF]
	bl	_remove_wait_queue
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x24, x0
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_wait,4,2                       ; @wait
	.comm	_current,8,3                    ; @current
	.comm	_TASK_INTERRUPTIBLE,4,2         ; @TASK_INTERRUPTIBLE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.comm	_TASK_RUNNING,4,2               ; @TASK_RUNNING
	.no_dead_strip	_macvtap_do_read
.subsections_via_symbols
