	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdvi_dump_cmds
_amdvi_dump_cmds:                       ## @amdvi_dump_cmds
	.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
	movq	%rdi, %r14
	movq	24(%rdi), %r13
	movl	16(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_device_printf
	movl	4(%r13), %edi
	movl	(%r14), %edx
	movl	$16, %esi
	callq	_MOD_DEC
	cmpl	(%r13), %eax
	jne	LBB0_1
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%eax, %edx
	movl	(%r14), %ecx
	xorl	%r12d, %r12d
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $edx killed $edx def $rdx
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r12d
	cmpl	%edx, (%r13)
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, %r12d
	jge	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r14), %rax
	movslq	%edx, %rbx
	movl	(%rax,%rbx,4), %ecx
	movl	4(%rax,%rbx,4), %r8d
	movl	8(%rax,%rbx,4), %r9d
	movl	12(%rax,%rbx,4), %eax
	movl	%eax, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%ebx, %edx
	callq	_printf
	addq	$16, %rbx
	movslq	(%r14), %rcx
	movq	%rcx, %rsi
	shlq	$4, %rsi
	movq	%rbx, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dump all the commands:\n"

L_.str.1:                               ## @.str.1
	.asciz	"  [CMD%d, off:0x%x] opcode= 0x%x 0x%x 0x%x 0x%lx\n"

	.no_dead_strip	_amdvi_dump_cmds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdvi_dump_cmds
_amdvi_dump_cmds:                       ; @amdvi_dump_cmds
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x22, [x0, #24]
	ldr	w0, [x0, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_device_printf
	ldr	w0, [x22, #4]
	ldr	w2, [x19]
	mov	w1, #16
	bl	_MOD_DEC
	ldr	w8, [x22]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x2, x0
	mov	w20, #0
	ldr	w8, [x19]
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w20, w8
	b.ge	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19, #8]
	sxtw	x23, w2
	add	x8, x8, w2, sxtw #2
	ldp	w3, w4, [x8]
	ldp	w5, w6, [x8, #8]
	mov	x0, x21
	mov	x1, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_printf
	add	x9, x23, #16
	ldrsw	x8, [x19]
	lsl	x10, x8, #4
	udiv	x11, x9, x10
	msub	w2, w11, w10, w9
	add	w20, w20, #1
	ldr	w9, [x22]
	cmp	w9, w2
	b.ne	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dump all the commands:\n"

l_.str.1:                               ; @.str.1
	.asciz	"  [CMD%d, off:0x%x] opcode= 0x%x 0x%x 0x%x 0x%lx\n"

	.no_dead_strip	_amdvi_dump_cmds
.subsections_via_symbols
