	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vtscsi_proc
_pci_vtscsi_proc:                       ## @pci_vtscsi_proc
	.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
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	leaq	12(%rbx), %r15
	leaq	16(%rbx), %r12
	leaq	4(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_STAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=2
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pthread_cond_wait
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_STAILQ_FIRST
	movq	%rax, %r13
	movq	_vsr_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_STAILQ_REMOVE_HEAD
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movl	16(%r13), %esi
	movl	12(%r13), %edx
	movl	4(%r13), %r8d
	movl	8(%r13), %ecx
	movq	%rbx, %rdi
	callq	_pci_vtscsi_request_handle
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_mutex_lock
	movl	8(%rbx), %edi
	movl	(%r13), %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_vq_relchain
	movl	8(%rbx), %edi
	xorl	%esi, %esi
	callq	_vq_endchains
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_mutex_unlock
	movslq	(%r13), %rdi
	callq	_DPRINTF
	movq	%r13, %rdi
	callq	_free
	jmp	LBB0_1
LBB0_7:
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vsr_link,4,2                   ## @vsr_link
	.no_dead_strip	_pci_vtscsi_proc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vtscsi_proc
_pci_vtscsi_proc:                       ; @pci_vtscsi_proc
	.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	x20, x0
	ldr	x19, [x0, #8]
	add	x21, x19, #12
	add	x22, x19, #16
	add	x23, x19, #4
Lloh0:
	adrp	x26, _vsr_link@GOTPAGE
Lloh1:
	ldr	x26, [x26, _vsr_link@GOTPAGEOFF]
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	x0, x19
	bl	_pthread_mutex_lock
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_STAILQ_EMPTY
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	x0, x22
	mov	x1, x19
	bl	_pthread_cond_wait
	b	LBB0_2
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_STAILQ_FIRST
	mov	x24, x0
	ldr	w1, [x26]
	mov	x0, x21
	bl	_STAILQ_REMOVE_HEAD
	mov	x0, x19
	bl	_pthread_mutex_unlock
	ldp	w2, w1, [x24, #12]
	ldp	w4, w3, [x24, #4]
	mov	x0, x19
	bl	_pci_vtscsi_request_handle
	mov	x25, x0
	mov	x0, x23
	bl	_pthread_mutex_lock
	ldr	w0, [x19, #8]
	ldr	w1, [x24]
	mov	x2, x25
	bl	_vq_relchain
	ldr	w0, [x19, #8]
	mov	w1, #0
	bl	_vq_endchains
	mov	x0, x23
	bl	_pthread_mutex_unlock
	ldrsw	x0, [x24]
	bl	_DPRINTF
	mov	x0, x24
	bl	_free
	b	LBB0_1
LBB0_7:
	mov	x0, x19
	bl	_pthread_mutex_unlock
	mov	x0, #0
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vsr_link,4,2                   ; @vsr_link
	.no_dead_strip	_pci_vtscsi_proc
.subsections_via_symbols
