	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdvi_print_pci_cap
_amdvi_print_pci_cap:                   ## @amdvi_print_pci_cap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	(%rax), %r14d
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_amdvi_pci_read
	movl	%eax, %r15d
	andl	$458752, %eax                   ## imm = 0x70000
	xorl	%edi, %edi
	cmpl	$196608, %eax                   ## imm = 0x30000
	sete	%dil
	movslq	%r14d, %r14
	movq	%r14, %rsi
	callq	_KASSERT
	movl	%r15d, %r8d
	sarl	$24, %r8d
	movl	%r8d, 4(%rbx)
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	L_.str.2(%rip), %r9
	movl	%r15d, %edx
	movl	%r14d, %ecx
	callq	_device_printf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"PCI cap 0x%x@0x%x feature:%b\n"

L_.str.2:                               ## @.str.2
	.asciz	"\020\001IOTLB\002HT\003NPCache\004EFR\005CapExt"

	.no_dead_strip	_amdvi_print_pci_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdvi_print_pci_cap
_amdvi_print_pci_cap:                   ; @amdvi_print_pci_cap
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	bl	_device_get_softc
	mov	x19, x0
	ldr	w20, [x0]
	mov	x1, x20
	bl	_amdvi_pci_read
	mov	x21, x0
	and	w8, w0, #0x70000
	cmp	w8, #48, lsl #12                ; =196608
	cset	w0, eq
	sxtw	x1, w20
	bl	_KASSERT
	asr	w4, w21, #24
	str	w4, [x19, #4]
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh2:
	adrp	x5, l_.str.2@PAGE
Lloh3:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	x2, x21
	mov	x3, x20
	bl	_device_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"PCI cap 0x%x@0x%x feature:%b\n"

l_.str.2:                               ; @.str.2
	.asciz	"\020\001IOTLB\002HT\003NPCache\004EFR\005CapExt"

	.no_dead_strip	_amdvi_print_pci_cap
.subsections_via_symbols
