	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __send_to_port
___send_to_port:                        ## @__send_to_port
	.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	%r9d, -52(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	24(%rdi), %rbx
	addq	$16, %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_irqsave
	movq	%r12, %rdi
	callq	_reclaim_consumed_buffers
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	xorl	%ecx, %ecx
	movq	%r13, %r8
	callq	_virtqueue_add_buf
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_virtqueue_kick
	testq	%r14, %r14
	js	LBB0_1
## %bb.2:
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r12)
LBB0_4:
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_8
## %bb.5:
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_virtqueue_get_buf
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:
	leaq	-56(%rbp), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_cpu_relax
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_virtqueue_get_buf
	testl	%eax, %eax
	je	LBB0_7
LBB0_8:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_1:
	xorl	%ebx, %ebx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_9:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	addq	%rbx, 8(%r12)
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___send_to_port
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __send_to_port
___send_to_port:                        ; @__send_to_port
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x5
	mov	x24, x4
	mov	x19, x3
	mov	x25, x2
	mov	x26, x1
	mov	x20, x0
	ldr	x22, [x0, #24]
	add	x21, x0, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_reclaim_consumed_buffers
	mov	x0, x22
	mov	x1, x26
	mov	x2, x25
	mov	w3, #0
	mov	x4, x24
	bl	_virtqueue_add_buf
	mov	x24, x0
	mov	x0, x22
	bl	_virtqueue_kick
	tbnz	x24, #63, LBB0_3
; %bb.1:
	cbz	x24, LBB0_4
; %bb.2:
	cbnz	w23, LBB0_7
	b	LBB0_6
LBB0_3:
	mov	x19, #0
	b	LBB0_7
LBB0_4:
	mov	w8, #1
	str	w8, [x20]
	cbnz	w23, LBB0_7
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_cpu_relax
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x22
	bl	_virtqueue_get_buf
	cbz	w0, LBB0_5
LBB0_7:
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #8]
	add	x8, x8, x19
	str	x8, [x20, #8]
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___send_to_port
.subsections_via_symbols
