	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cik_uvd_start
_cik_uvd_start:                         ## @cik_uvd_start
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpl	$0, 12(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	callq	_radeon_uvd_resume
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_3:
	movq	%rbx, %rdi
	callq	_uvd_v4_2_resume
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_5:
	movq	_R600_RING_TYPE_UVD_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_7:
	movl	%eax, %edx
	callq	_dev_err
	movq	(%rbx), %rax
	movq	_R600_RING_TYPE_UVD_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed UVD resume (%d).\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed UVD 4.2 resume (%d).\n"

	.comm	_R600_RING_TYPE_UVD_INDEX,8,3   ## @R600_RING_TYPE_UVD_INDEX
L_.str.2:                               ## @.str.2
	.asciz	"failed initializing UVD fences (%d).\n"

	.no_dead_strip	_cik_uvd_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cik_uvd_start
_cik_uvd_start:                         ; @cik_uvd_start
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	bl	_radeon_uvd_resume
Lloh0:
	adrp	x20, _R600_RING_TYPE_UVD_INDEX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _R600_RING_TYPE_UVD_INDEX@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.2:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	_uvd_v4_2_resume
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbz	w0, LBB0_8
; %bb.6:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_7:
	bl	_dev_err
	ldr	x8, [x19]
	ldr	x9, [x20]
	str	xzr, [x8, x9, lsl #3]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed UVD resume (%d).\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed UVD 4.2 resume (%d).\n"

	.comm	_R600_RING_TYPE_UVD_INDEX,8,3   ; @R600_RING_TYPE_UVD_INDEX
l_.str.2:                               ; @.str.2
	.asciz	"failed initializing UVD fences (%d).\n"

	.no_dead_strip	_cik_uvd_start
.subsections_via_symbols
