	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vcn_v2_5_hw_init
_vcn_v2_5_hw_init:                      ## @vcn_v2_5_hw_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.1:
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_15
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	movl	4(%r14), %ecx
	btl	%ebx, %ecx
	jb	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%rbx,4), %r12
	movq	16(%r14), %rax
	movq	24(%r14), %r8
	leaq	(%rax,%r12,8), %r15
	addq	$24, %r15
	movl	28(%rax,%r12,8), %edx
	movl	32(%rax,%r12,8), %esi
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	*(%r8)
	movq	%r15, %rdi
	callq	_amdgpu_ring_test_ring
	testl	%eax, %eax
	jne	LBB0_18
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r14), %esi
	movq	16(%r14), %rax
	testl	%esi, %esi
	jle	LBB0_13
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rax,%r12,8), %r8
	leaq	-1(%rsi), %rcx
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$3, %rcx
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	jmp	LBB0_10
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	andl	$-4, %esi
	movq	%r8, %rcx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$0, (%rcx)
	movl	$0, 12(%rcx)
	movl	$0, 24(%rcx)
	movl	$0, 36(%rcx)
	addq	$4, %rdi
	addq	$48, %rcx
	cmpq	%rdi, %rsi
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	testq	%rdx, %rdx
	je	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdi,%rdi,2), %rcx
	leaq	(%r8,%rcx,4), %rcx
	shlq	$2, %rdx
	leaq	(%rdx,%rdx,2), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	$0, (%rcx,%rsi)
	addq	$12, %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rax,%r12,8), %r15
	movq	%r15, %rdi
	callq	_amdgpu_ring_test_ring
	testl	%eax, %eax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %eax
	jmp	LBB0_2
LBB0_15:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_18:
	movl	$0, (%r15)
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VCN decode and encode initialized successfully.\n"

	.no_dead_strip	_vcn_v2_5_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vcn_v2_5_hw_init
_vcn_v2_5_hw_init:                      ; @vcn_v2_5_hw_init
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.1:
	mov	x19, x0
	mov	x20, #0
	mov	w22, #40
	mov	w23, #12
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	madd	x21, x20, x22, x8
	mov	x0, x21
	bl	_amdgpu_ring_test_ring
	cbnz	w0, LBB0_16
; %bb.3:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	cmp	x20, w8, sxtw
	b.ge	LBB0_15
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ldr	w9, [x19, #4]
	lsr	w9, w9, w20
	tbnz	w9, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldp	x8, x9, [x19, #16]
	madd	x8, x20, x22, x8
	add	x21, x8, #24
	ldr	x9, [x9]
	ldp	w2, w1, [x8, #28]
	mov	x0, x19
	mov	x3, x20
	blr	x9
	mov	x0, x21
	bl	_amdgpu_ring_test_ring
	cbnz	w0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w9, [x19, #8]
	ldr	x8, [x19, #16]
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x20, x22, x8
	ldr	x10, [x10, #16]
	cmp	w9, #4
	b.hs	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x11, #0
	b	LBB0_13
LBB0_10:                                ;   in Loop: Header=BB0_5 Depth=1
	and	x11, x9, #0xfffffffc
	add	x12, x10, #24
	mov	x13, x11
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	stur	wzr, [x12, #-24]
	stur	wzr, [x12, #-12]
	str	wzr, [x12]
	str	wzr, [x12, #12]
	add	x12, x12, #48
	subs	x13, x13, #4
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	x11, x9
	b.eq	LBB0_2
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
	madd	x10, x11, x23, x10
	sub	x9, x9, x11
LBB0_14:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	wzr, [x10], #12
	subs	x9, x9, #1
	b.ne	LBB0_14
	b	LBB0_2
LBB0_15:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #0
	b	LBB0_17
LBB0_16:
	str	wzr, [x21]
LBB0_17:
	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
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VCN decode and encode initialized successfully.\n"

	.no_dead_strip	_vcn_v2_5_hw_init
.subsections_via_symbols
