	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cayman_vce_resume
_cayman_vce_resume:                     ## @cayman_vce_resume
	.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, 16(%rdi)
	je	LBB0_8
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	_TN_RING_TYPE_VCE1_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %edx
	testl	%edx, %edx
	je	LBB0_8
## %bb.2:
	leaq	(%rax,%rcx,4), %rsi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_radeon_ring_init
	testl	%eax, %eax
	jne	LBB0_3
## %bb.5:
	movq	8(%rbx), %rax
	movq	_TN_RING_TYPE_VCE2_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rsi
	movl	(%rax,%rcx,4), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_radeon_ring_init
	testl	%eax, %eax
	je	LBB0_6
LBB0_3:
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
LBB0_4:
	movl	%eax, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
LBB0_6:
	movq	%rbx, %rdi
	callq	_vce_v1_0_init
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ## @TN_RING_TYPE_VCE1_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed initializing VCE1 ring (%d).\n"

	.comm	_TN_RING_TYPE_VCE2_INDEX,8,3    ## @TN_RING_TYPE_VCE2_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"failed initializing VCE (%d).\n"

	.no_dead_strip	_cayman_vce_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cayman_vce_resume
_cayman_vce_resume:                     ; @cayman_vce_resume
	.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, #16]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _TN_RING_TYPE_VCE1_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TN_RING_TYPE_VCE1_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x1]
	cbz	w2, LBB0_8
; %bb.2:
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_radeon_ring_init
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _TN_RING_TYPE_VCE2_INDEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TN_RING_TYPE_VCE2_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x8, x9, lsl #2
	ldr	w2, [x1]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_radeon_ring_init
	cbz	w0, LBB0_6
LBB0_4:
	mov	x2, x0
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_dev_err
LBB0_6:
	mov	x0, x19
	bl	_vce_v1_0_init
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ; @TN_RING_TYPE_VCE1_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed initializing VCE1 ring (%d).\n"

	.comm	_TN_RING_TYPE_VCE2_INDEX,8,3    ; @TN_RING_TYPE_VCE2_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"failed initializing VCE (%d).\n"

	.no_dead_strip	_cayman_vce_resume
.subsections_via_symbols
