	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_vtscsi_requestq_notify
_pci_vtscsi_requestq_notify:            ## @pci_vtscsi_requestq_notify
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_VTSCSI_MAXSEG@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	shlq	$3, %r15
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -104(%rbp)                ## 8-byte Spill
	movq	(%r14), %r14
	movslq	(%rbx), %r15
	movq	%rbx, %rdi
	callq	_vq_has_descs
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	addq	$-2, %r15
	leaq	(%r15,%r15,2), %rax
	leaq	(%r14,%rax,4), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,4), %rcx
	addq	$8, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leaq	4(%r14,%rax,4), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	movl	$40, %esi
	callq	_calloc
	movq	%rax, %r15
	movq	-56(%rbp), %rax
	movq	%rax, (%r15)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, 32(%r15)
	movl	%r13d, 8(%r15)
	movl	%r13d, %r12d
	subq	%r12, %r14
	movq	%r14, 16(%r15)
	movl	28(%r15), %edi
	shll	$2, %r13d
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r13d, %edx
	callq	_memcpy
	movl	16(%r15), %edx
	movl	24(%r15), %edi
	leaq	(%r14,%r12,4), %rsi
	shll	$2, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_pthread_mutex_lock
	movq	_vsr_link@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_STAILQ_INSERT_TAIL
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_pthread_cond_signal
	movq	%rbx, %rdi
	callq	_pthread_mutex_unlock
	movq	-56(%rbp), %rdi
	callq	_DPRINTF
	movq	%r14, %r12
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_vq_has_descs
	testq	%rax, %rax
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	_VTSCSI_MAXSEG@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	movq	%r12, %rdx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %r8
	callq	_vq_getchain
	movq	%rax, %r14
	movl	$0, %r13d
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_VRING_DESC_F_WRITE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testq	%rax, (%rbx,%r13,8)
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	incq	%r13
	cmpq	%r13, %r14
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %r13
	jmp	LBB0_7
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_VTSCSI_MAXSEG,4,2              ## @VTSCSI_MAXSEG
	.comm	_VRING_DESC_F_WRITE,8,3         ## @VRING_DESC_F_WRITE
	.comm	_vsr_link,4,2                   ## @vsr_link
	.no_dead_strip	_pci_vtscsi_requestq_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_vtscsi_requestq_notify
_pci_vtscsi_requestq_notify:            ; @pci_vtscsi_requestq_notify
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _VTSCSI_MAXSEG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VTSCSI_MAXSEG@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	x8, x12, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	lsl	x8, x12, #3
	mov	x9, x8
Lloh8:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh9:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	ldr	x23, [x0]
	ldrsw	x22, [x1]
	mov	x0, x1
	bl	_vq_has_descs
	cbz	x0, LBB0_9
; %bb.1:
	sub	x8, x22, #2
	mov	w9, #12
	madd	x22, x8, x9, x23
	mov	w9, #12
	madd	x8, x8, x9, x23
	add	x23, x8, #8
	add	x24, x8, #4
Lloh10:
	adrp	x28, _vsr_link@GOTPAGE
Lloh11:
	ldr	x28, [x28, _vsr_link@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w25, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	w1, #40
	bl	_calloc
	mov	x26, x0
	ldur	x8, [x29, #-96]
	str	x8, [x0]
	str	x22, [x0, #32]
	str	w25, [x0, #8]
	sub	x8, x27, w25, uxtw
	str	x8, [x0, #16]
	ldr	w0, [x0, #28]
	lsl	w2, w25, #2
	mov	x1, x20
	bl	_memcpy
	ldr	w0, [x26, #24]
	add	x1, x20, w25, uxtw #2
	ldr	w8, [x26, #16]
	lsl	w2, w8, #2
	bl	_memcpy
	mov	x0, x22
	bl	_pthread_mutex_lock
	ldr	w2, [x28]
	mov	x0, x23
	mov	x1, x26
	bl	_STAILQ_INSERT_TAIL
	mov	x0, x24
	bl	_pthread_cond_signal
	mov	x0, x22
	bl	_pthread_mutex_unlock
	ldur	x0, [x29, #-96]
	bl	_DPRINTF
	mov	x0, x19
	bl	_vq_has_descs
	cbz	x0, LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
Lloh12:
	adrp	x8, _VTSCSI_MAXSEG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VTSCSI_MAXSEG@GOTPAGEOFF]
Lloh14:
	ldr	w3, [x8]
	sub	x1, x29, #96
	mov	x0, x19
	mov	x2, x20
	mov	x4, x21
	bl	_vq_getchain
	mov	x27, x0
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
Lloh15:
	adrp	x8, _VRING_DESC_F_WRITE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _VRING_DESC_F_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x21, x25, lsl #3]
	tst	x8, x9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x25, x25, #1
	cmp	x27, x25
	b.ne	LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x27
	b	LBB0_3
LBB0_9:
	ldur	x8, [x29, #-88]
Lloh18:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh19:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_VTSCSI_MAXSEG,4,2              ; @VTSCSI_MAXSEG
	.comm	_VRING_DESC_F_WRITE,8,3         ; @VRING_DESC_F_WRITE
	.comm	_vsr_link,4,2                   ; @vsr_link
	.no_dead_strip	_pci_vtscsi_requestq_notify
.subsections_via_symbols
