	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdvi_print_dev_cap
_amdvi_print_dev_cap:                   ## @amdvi_print_dev_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	%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
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	movq	%rdi, %r12
	movq	8(%rdi), %rbx
	addq	$16, %rbx
	xorl	%r13d, %r13d
	leaq	L_.str(%rip), %r14
	leaq	l_.str.1(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r12), %edi
	movl	(%rbx), %edx
	movl	-8(%rbx), %r8d
	movl	-4(%rbx), %ecx
	cmpq	$0, -16(%rbx)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.3(%rip), %rsi
	cmoveq	%rsi, %rax
	movq	%rax, (%rsp)
	movq	%r14, %rsi
	movq	%r15, %r9
	callq	_device_printf
	incl	%r13d
	addq	$24, %rbx
	cmpl	(%r12), %r13d
	jl	LBB0_2
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"device [0x%x - 0x%x]config:%b%s\n"

	.section	__TEXT,__const
l_.str.1:                               ## @.str.1
	.asciz	"\020\001INIT\002ExtInt\003NMI\007LINT0\0008LINT1"

	.section	__TEXT,__cstring,cstring_literals
L_.str.2:                               ## @.str.2
	.asciz	"ATS enabled"

L_.str.3:                               ## @.str.3
	.space	1

	.no_dead_strip	_amdvi_print_dev_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_dev_cap
_amdvi_print_dev_cap:                   ; @amdvi_print_dev_cap
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w22, #0
	ldr	x8, [x0, #8]
	add	x23, x8, #16
Lloh0:
	adrp	x24, l_.str.2@PAGE
Lloh1:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh2:
	adrp	x25, l_.str.3@PAGE
Lloh3:
	add	x25, x25, l_.str.3@PAGEOFF
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
Lloh6:
	adrp	x21, l_.str.1@PAGE
Lloh7:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #4]
	ldp	w3, w2, [x23, #-4]
	ldur	w4, [x23, #-8]
	ldur	x8, [x23, #-16]
	cmp	x8, #0
	csel	x6, x25, x24, eq
	mov	x1, x20
	mov	x5, x21
	bl	_device_printf
	add	w22, w22, #1
	ldr	w8, [x19]
	add	x23, x23, #24
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_3:
	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
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"device [0x%x - 0x%x]config:%b%s\n"

	.section	__TEXT,__const
l_.str.1:                               ; @.str.1
	.asciz	"\020\001INIT\002ExtInt\003NMI\007LINT0\0008LINT1"

	.section	__TEXT,__cstring,cstring_literals
l_.str.2:                               ; @.str.2
	.asciz	"ATS enabled"

l_.str.3:                               ; @.str.3
	.space	1

	.no_dead_strip	_amdvi_print_dev_cap
.subsections_via_symbols
