	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vce_v1_0_init                  ## -- Begin function vce_v1_0_init
	.p2align	4, 0x90
_vce_v1_0_init:                         ## @vce_v1_0_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_vce_v1_0_start
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_TN_RING_TYPE_VCE1_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leaq	(%rax,%rsi,4), %r14
	movl	$1, (%rax,%rsi,4)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_radeon_ring_test
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:
	movq	(%rbx), %rax
	movq	_TN_RING_TYPE_VCE2_INDEX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	leaq	(%rax,%rsi,4), %r14
	movl	$1, (%rax,%rsi,4)
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_radeon_ring_test
	testl	%eax, %eax
	je	LBB0_5
LBB0_2:
	movl	$0, (%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_INFO
	xorl	%eax, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ## @TN_RING_TYPE_VCE1_INDEX
	.comm	_TN_RING_TYPE_VCE2_INDEX,8,3    ## @TN_RING_TYPE_VCE2_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VCE initialized successfully.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vce_v1_0_init                  ; -- Begin function vce_v1_0_init
	.p2align	2
_vce_v1_0_init:                         ; @vce_v1_0_init
	.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
	mov	x19, x0
	bl	_vce_v1_0_start
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TN_RING_TYPE_VCE1_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TN_RING_TYPE_VCE1_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x9]
	add	x20, x8, x1, lsl #2
	mov	w21, #1
	str	w21, [x20]
	mov	x0, x19
	mov	x2, x20
	bl	_radeon_ring_test
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _TN_RING_TYPE_VCE2_INDEX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TN_RING_TYPE_VCE2_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x9]
	add	x20, x8, x1, lsl #2
	str	w21, [x20]
	mov	x0, x19
	mov	x2, x20
	bl	_radeon_ring_test
	cbz	w0, LBB0_5
LBB0_3:
	str	wzr, [x20]
LBB0_4:
	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_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_INFO
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ; @TN_RING_TYPE_VCE1_INDEX
	.comm	_TN_RING_TYPE_VCE2_INDEX,8,3    ; @TN_RING_TYPE_VCE2_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VCE initialized successfully.\n"

.subsections_via_symbols
