	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vtnet_tx_thread
_pci_vtnet_tx_thread:                   ## @pci_vtnet_tx_thread
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_VTNET_TXQ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	shlq	$2, %rbx
	addq	24(%rdi), %rbx
	leaq	4(%rdi), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	leaq	8(%r14), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_8 Depth 3
	cmpq	$0, 16(%r14)
	je	LBB0_3
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_vq_kick_enable
	cmpq	$0, 16(%r14)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_vq_has_descs
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_vq_has_descs
	testq	%rax, %rax
	je	LBB0_4
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	callq	_vq_kick_disable
	movl	$1, (%r14)
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_2 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_pci_vtnet_proctx
	movq	%rbx, %rdi
	callq	_vq_has_descs
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vq_endchains
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%r14)
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
                                        ##       Child Loop BB0_8 Depth 3
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pthread_cond_wait
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_VTNET_TXQ,8,3                  ## @VTNET_TXQ
	.no_dead_strip	_pci_vtnet_tx_thread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vtnet_tx_thread
_pci_vtnet_tx_thread:                   ; @pci_vtnet_tx_thread
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x8, [x0, #24]
Lloh0:
	adrp	x9, _VTNET_TXQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VTNET_TXQ@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x20, x8, x9, lsl #2
	add	x21, x0, #4
	mov	x0, x21
	bl	_pthread_mutex_lock
	add	x22, x19, #8
	mov	x0, x22
	mov	x1, x21
	bl	_pthread_cond_wait
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	w23, #1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x19]
	mov	x0, x22
	mov	x1, x21
	bl	_pthread_cond_wait
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_vq_has_descs
	cbnz	x0, LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_vq_kick_enable
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_vq_has_descs
	cbz	x0, LBB0_1
LBB0_5:
	mov	x0, x20
	bl	_vq_kick_disable
	str	w23, [x19]
	mov	x0, x21
	bl	_pthread_mutex_unlock
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_pci_vtnet_proctx
	mov	x0, x20
	bl	_vq_has_descs
	cbnz	x0, LBB0_6
; %bb.7:
	mov	x0, x20
	mov	w1, #1
	bl	_vq_endchains
	mov	x0, x21
	bl	_pthread_mutex_lock
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_3
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VTNET_TXQ,8,3                  ; @VTNET_TXQ
	.no_dead_strip	_pci_vtnet_tx_thread
.subsections_via_symbols
