	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_ats_queue_depth            ## -- Begin function pci_ats_queue_depth
	.p2align	4, 0x90
_pci_ats_queue_depth:                   ## @pci_ats_queue_depth
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	jne	LBB0_6
## %bb.3:
	movq	_PCI_ATS_CAP@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-4(%rbp), %rdx
	callq	_pci_read_config_word
	movl	-4(%rbp), %edi
	callq	_PCI_ATS_CAP_QDEP
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	-4(%rbp), %edi
	callq	_PCI_ATS_CAP_QDEP
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
LBB0_5:
	movq	_PCI_ATS_MAX_QDEP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PCI_ATS_CAP,8,3                ## @PCI_ATS_CAP
	.comm	_PCI_ATS_MAX_QDEP,4,2           ## @PCI_ATS_MAX_QDEP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pci_ats_queue_depth            ; -- Begin function pci_ats_queue_depth
	.p2align	2
_pci_ats_queue_depth:                   ; @pci_ats_queue_depth
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
	cbz	x9, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_7
LBB0_3:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x9, _PCI_ATS_CAP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PCI_ATS_CAP@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	sub	x2, x29, #4
	bl	_pci_read_config_word
	ldur	w0, [x29, #-4]
	bl	_PCI_ATS_CAP_QDEP
	cbz	w0, LBB0_6
; %bb.5:
	ldur	w0, [x29, #-4]
	bl	_PCI_ATS_CAP_QDEP
	b	LBB0_7
LBB0_6:
Lloh6:
	adrp	x8, _PCI_ATS_MAX_QDEP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_ATS_MAX_QDEP@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PCI_ATS_CAP,8,3                ; @PCI_ATS_CAP
	.comm	_PCI_ATS_MAX_QDEP,4,2           ; @PCI_ATS_MAX_QDEP
.subsections_via_symbols
