	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_vce_start
_si_vce_start:                          ## @si_vce_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_9
## %bb.1:
	movq	%rdi, %rbx
	callq	_radeon_vce_resume
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	callq	_vce_v1_0_resume
	testl	%eax, %eax
	je	LBB0_4
LBB0_2:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movl	%eax, %edx
	callq	_dev_err
	movq	(%rbx), %rax
	movq	_TN_RING_TYPE_VCE1_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_TN_RING_TYPE_VCE2_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	_TN_RING_TYPE_VCE1_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_6:
	movq	_TN_RING_TYPE_VCE2_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_radeon_fence_driver_start_ring
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	8(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed VCE resume (%d).\n"

	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ## @TN_RING_TYPE_VCE1_INDEX
L_.str.1:                               ## @.str.1
	.asciz	"failed initializing VCE1 fences (%d).\n"

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

	.no_dead_strip	_si_vce_start
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_vce_start
_si_vce_start:                          ; @si_vce_start
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	bl	_radeon_vce_resume
Lloh0:
	adrp	x21, _TN_RING_TYPE_VCE1_INDEX@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TN_RING_TYPE_VCE1_INDEX@GOTPAGEOFF]
Lloh2:
	adrp	x20, _TN_RING_TYPE_VCE2_INDEX@GOTPAGE
Lloh3:
	ldr	x20, [x20, _TN_RING_TYPE_VCE2_INDEX@GOTPAGEOFF]
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_vce_v1_0_resume
	cbz	w0, LBB0_6
LBB0_3:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_dev_err
	ldr	x8, [x19]
	ldr	x9, [x21]
	str	xzr, [x8, x9, lsl #3]
	ldr	x9, [x20]
	str	xzr, [x8, x9, lsl #3]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_8:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_radeon_fence_driver_start_ring
	cbz	w0, LBB0_5
; %bb.9:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed VCE resume (%d).\n"

	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ; @TN_RING_TYPE_VCE1_INDEX
l_.str.1:                               ; @.str.1
	.asciz	"failed initializing VCE1 fences (%d).\n"

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

	.no_dead_strip	_si_vce_start
.subsections_via_symbols
