	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ivhd_print_cap
_ivhd_print_cap:                        ## @ivhd_print_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %r14d
	movl	20(%rdi), %esi
	movl	24(%rdi), %edx
	movl	%r14d, %edi
	callq	_ivhd_print_flag
	movl	16(%rbx), %edx
	movl	20(%rbx), %esi
	movl	%r14d, %edi
	callq	_ivhd_print_feature
	movl	12(%rbx), %esi
	movl	%r14d, %edi
	callq	_ivhd_print_ext_feature
	movq	_amdvi_ptp_level@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$8, %ecx
	jl	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	$7, %edx
	xorl	%eax, %eax
	callq	_device_printf
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movl	$7, %edx
	xorl	%eax, %eax
	callq	_device_printf
	movl	8(%rbx), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_amdvi_ptp_level,4,2            ## @amdvi_ptp_level
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"insufficient PTP level:%d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"supported paging level:%d, will use only: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"device range: 0x%x - 0x%x\n"

	.no_dead_strip	_ivhd_print_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ivhd_print_cap
_ivhd_print_cap:                        ; @ivhd_print_cap
	.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	x19, x0
	ldr	w20, [x0, #8]
	ldp	w1, w2, [x0, #20]
	mov	x0, x20
	bl	_ivhd_print_flag
	ldp	w2, w1, [x19, #16]
	mov	x0, x20
	bl	_ivhd_print_feature
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_ivhd_print_ext_feature
Lloh0:
	adrp	x8, _amdvi_ptp_level@GOTPAGE
Lloh1:
	ldr	x8, [x8, _amdvi_ptp_level@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #8
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	w2, #7
	bl	_device_printf
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w2, #7
	bl	_device_printf
	ldp	w8, w0, [x19, #4]
	ldr	w2, [x19]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_device_printf
	mov	w0, #0
LBB0_3:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_amdvi_ptp_level,4,2            ; @amdvi_ptp_level
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"insufficient PTP level:%d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"supported paging level:%d, will use only: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"device range: 0x%x - 0x%x\n"

	.no_dead_strip	_ivhd_print_cap
.subsections_via_symbols
