	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pci_ahci_ioreq_init
_pci_ahci_ioreq_init:                   ## @pci_ahci_ioreq_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	callq	_blockif_queuesz
	movl	%eax, (%r15)
	movl	%eax, %edi
	movl	$24, %esi
	callq	_calloc
	movq	%rax, 16(%r15)
	leaq	8(%r15), %r14
	movq	%r14, %rdi
	callq	_STAILQ_INIT
	cmpl	$0, (%r15)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_io_flist@GOTPCREL(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax,%rbx)
	movq	%rsi, (%rax,%rbx)
	movl	(%r13), %edx
	movq	%r14, %rdi
	callq	_STAILQ_INSERT_TAIL
	incq	%r12
	movslq	(%r15), %rax
	addq	$24, %rbx
	cmpq	%rax, %r12
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	leaq	(%rax,%rbx), %rsi
	movq	%r15, 16(%rax,%rbx)
	cmpl	$0, 12(%r15)
	movq	_atapi_ioreq_cb@GOTPCREL(%rip), %rcx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_ata_ioreq_cb@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_5:
	addq	$4, %r15
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_TAILQ_INIT                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ata_ioreq_cb,4,2               ## @ata_ioreq_cb
	.comm	_atapi_ioreq_cb,4,2             ## @atapi_ioreq_cb
	.comm	_io_flist,4,2                   ## @io_flist
	.no_dead_strip	_pci_ahci_ioreq_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pci_ahci_ioreq_init
_pci_ahci_ioreq_init:                   ; @pci_ahci_ioreq_init
	.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	x19, x0
	ldr	w0, [x0, #24]
	bl	_blockif_queuesz
	str	w0, [x19]
	mov	w1, #24
	bl	_calloc
	str	x0, [x19, #16]
	add	x20, x19, #8
	mov	x0, x20
	bl	_STAILQ_INIT
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
Lloh0:
	adrp	x23, _ata_ioreq_cb@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ata_ioreq_cb@GOTPAGEOFF]
Lloh2:
	adrp	x24, _atapi_ioreq_cb@GOTPAGE
Lloh3:
	ldr	x24, [x24, _atapi_ioreq_cb@GOTPAGEOFF]
Lloh4:
	adrp	x25, _io_flist@GOTPAGE
Lloh5:
	ldr	x25, [x25, _io_flist@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #16]
	add	x1, x8, x21
	str	x19, [x1, #16]
	ldr	w8, [x19, #12]
	cmp	w8, #0
	csel	x8, x23, x24, eq
	ldr	w8, [x8]
	str	w8, [x1, #8]
	str	x1, [x1]
	ldr	w2, [x25]
	mov	x0, x20
	bl	_STAILQ_INSERT_TAIL
	add	x22, x22, #1
	ldrsw	x8, [x19]
	add	x21, x21, #24
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	add	x0, x19, #4
	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
	b	_TAILQ_INIT
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_ata_ioreq_cb,4,2               ; @ata_ioreq_cb
	.comm	_atapi_ioreq_cb,4,2             ; @atapi_ioreq_cb
	.comm	_io_flist,4,2                   ; @io_flist
	.no_dead_strip	_pci_ahci_ioreq_init
.subsections_via_symbols
