	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_pasid
_read_pasid:                            ## @read_pasid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_PCI_EXT_CAP_ID_PASID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pci_find_ext_capability
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movslq	%eax, %rsi
	movq	_PCI_PASID_CAP@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	leaq	-20(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_pci_read_config_word
	movl	-20(%rbp), %edi
	movl	$8, %esi
	movl	$12, %edx
	callq	_EXTRACT_BITS
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$-1, %eax
LBB0_3:
	movl	%eax, (%r14)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PCI_EXT_CAP_ID_PASID,4,2       ## @PCI_EXT_CAP_ID_PASID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Function doesn't require any PASID\n"

	.comm	_PCI_PASID_CAP,8,3              ## @PCI_PASID_CAP
L_.str.1:                               ## @.str.1
	.asciz	"PASID capability:\n"

L_.str.2:                               ## @.str.2
	.asciz	"  Max PASID log = %d\n"

	.no_dead_strip	_read_pasid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_pasid
_read_pasid:                            ; @read_pasid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PCI_EXT_CAP_ID_PASID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PCI_EXT_CAP_ID_PASID@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_pci_find_ext_capability
	cbz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PCI_PASID_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PCI_PASID_CAP@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x1, x8, w0, sxtw
	add	x2, sp, #12
	mov	x0, x19
	bl	_pci_read_config_word
	ldr	w0, [sp, #12]
	mov	w1, #8
	mov	w2, #12
	bl	_EXTRACT_BITS
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #-1
LBB0_3:
	str	w0, [x20]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w8, [x20]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PCI_EXT_CAP_ID_PASID,4,2       ; @PCI_EXT_CAP_ID_PASID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Function doesn't require any PASID\n"

	.comm	_PCI_PASID_CAP,8,3              ; @PCI_PASID_CAP
l_.str.1:                               ; @.str.1
	.asciz	"PASID capability:\n"

l_.str.2:                               ; @.str.2
	.asciz	"  Max PASID log = %d\n"

	.no_dead_strip	_read_pasid
.subsections_via_symbols
