	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vce_v1_0_start                 ## -- Begin function vce_v1_0_start
	.p2align	4, 0x90
_vce_v1_0_start:                        ## @vce_v1_0_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_VCE_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movl	$1, %esi
	movl	$-2, %edx
	callq	_WREG32_P
	movq	(%r14), %r12
	movq	_TN_RING_TYPE_VCE1_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VCE_RB_RPTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rax,2), %rbx
	movl	(%r12,%rbx,4), %esi
	callq	_WREG32
	movq	_VCE_RB_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12,%rbx,4), %esi
	callq	_WREG32
	movq	_VCE_RB_BASE_LO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r12,%rbx,4), %esi
	callq	_WREG32
	movq	_VCE_RB_BASE_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	4(%r12,%rbx,4), %edi
	callq	_upper_32_bits
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_VCE_RB_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12,%rbx,4), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	callq	_WREG32
	movq	(%r14), %r15
	movq	_TN_RING_TYPE_VCE2_INDEX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VCE_RB_RPTR2@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	(%rax,%rax,2), %rbx
	movl	(%r15,%rbx,4), %esi
	callq	_WREG32
	movq	_VCE_RB_WPTR2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15,%rbx,4), %esi
	callq	_WREG32
	movq	_VCE_RB_BASE_LO2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r15,%rbx,4), %esi
	callq	_WREG32
	movq	_VCE_RB_BASE_HI2@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	4(%r15,%rbx,4), %edi
	callq	_upper_32_bits
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_WREG32
	movq	_VCE_RB_SIZE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r15,%rbx,4), %eax
	leal	3(%rax), %esi
	testl	%eax, %eax
	cmovnsl	%eax, %esi
	sarl	$2, %esi
	callq	_WREG32
	movq	_VCE_VCPU_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VCE_CLK_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
	movq	_VCE_SOFT_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_VCE_ECPU_SOFT_RESET@GOTPCREL(%rip), %r12
	movq	_VCE_FME_SOFT_RESET@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	orl	(%r12), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
	movl	$100, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movl	(%rbx), %edx
	orl	(%r12), %edx
	notl	%edx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	callq	_WREG32_P
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	$100, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %edi
	callq	_RREG32
	testb	$2, %al
	jne	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=2
	movl	$10, %edi
	callq	_mdelay
	decl	%r14d
	jne	LBB0_2
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_DRM_ERROR
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	%esi, %edx
	notl	%edx
	callq	_WREG32_P
	movl	$10, %edi
	callq	_mdelay
	movl	(%r15), %edi
	movl	(%r12), %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_WREG32_P
	movl	$10, %edi
	callq	_mdelay
	incl	%ebx
	cmpl	$10, %ebx
	jne	LBB0_1
## %bb.5:
	movl	(%r13), %edi
	xorl	%esi, %esi
	movl	$-2, %edx
	callq	_WREG32_P
	leaq	L_.str.1(%rip), %rdi
	callq	_DRM_ERROR
	movl	$-1, %ebx
	jmp	LBB0_6
LBB0_7:
	movl	(%r13), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$-2, %edx
	callq	_WREG32_P
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCE_STATUS,4,2                 ## @VCE_STATUS
	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ## @TN_RING_TYPE_VCE1_INDEX
	.comm	_VCE_RB_RPTR,4,2                ## @VCE_RB_RPTR
	.comm	_VCE_RB_WPTR,4,2                ## @VCE_RB_WPTR
	.comm	_VCE_RB_BASE_LO,4,2             ## @VCE_RB_BASE_LO
	.comm	_VCE_RB_BASE_HI,4,2             ## @VCE_RB_BASE_HI
	.comm	_VCE_RB_SIZE,4,2                ## @VCE_RB_SIZE
	.comm	_TN_RING_TYPE_VCE2_INDEX,8,3    ## @TN_RING_TYPE_VCE2_INDEX
	.comm	_VCE_RB_RPTR2,4,2               ## @VCE_RB_RPTR2
	.comm	_VCE_RB_WPTR2,4,2               ## @VCE_RB_WPTR2
	.comm	_VCE_RB_BASE_LO2,4,2            ## @VCE_RB_BASE_LO2
	.comm	_VCE_RB_BASE_HI2,4,2            ## @VCE_RB_BASE_HI2
	.comm	_VCE_RB_SIZE2,4,2               ## @VCE_RB_SIZE2
	.comm	_VCE_VCPU_CNTL,4,2              ## @VCE_VCPU_CNTL
	.comm	_VCE_CLK_EN,4,2                 ## @VCE_CLK_EN
	.comm	_VCE_SOFT_RESET,4,2             ## @VCE_SOFT_RESET
	.comm	_VCE_ECPU_SOFT_RESET,4,2        ## @VCE_ECPU_SOFT_RESET
	.comm	_VCE_FME_SOFT_RESET,4,2         ## @VCE_FME_SOFT_RESET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VCE not responding, trying to reset the ECPU!!!\n"

L_.str.1:                               ## @.str.1
	.asciz	"VCE not responding, giving up!!!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vce_v1_0_start                 ; -- Begin function vce_v1_0_start
	.p2align	2
_vce_v1_0_start:                        ; @vce_v1_0_start
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _VCE_STATUS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VCE_STATUS@GOTPAGEOFF]
	ldr	w0, [x21]
	mov	w1, #1
	mov	w2, #-2
	bl	_WREG32_P
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _TN_RING_TYPE_VCE1_INDEX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TN_RING_TYPE_VCE1_INDEX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _VCE_RB_RPTR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _VCE_RB_RPTR@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x10]
	mov	w22, #12
	madd	x23, x9, x22, x8
	ldr	w1, [x23]
	bl	_WREG32
Lloh8:
	adrp	x8, _VCE_RB_WPTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCE_RB_WPTR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldr	w1, [x23]
	bl	_WREG32
Lloh11:
	adrp	x8, _VCE_RB_BASE_LO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VCE_RB_BASE_LO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w1, [x23, #4]
	bl	_WREG32
Lloh14:
	adrp	x8, _VCE_RB_BASE_HI@GOTPAGE
Lloh15:
	ldr	x8, [x8, _VCE_RB_BASE_HI@GOTPAGEOFF]
Lloh16:
	ldr	w20, [x8]
	ldr	w0, [x23, #4]
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x20
	bl	_WREG32
Lloh17:
	adrp	x8, _VCE_RB_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _VCE_RB_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	ldr	w8, [x23, #8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	bl	_WREG32
	ldr	x8, [x19]
Lloh20:
	adrp	x9, _TN_RING_TYPE_VCE2_INDEX@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TN_RING_TYPE_VCE2_INDEX@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _VCE_RB_RPTR2@GOTPAGE
Lloh24:
	ldr	x10, [x10, _VCE_RB_RPTR2@GOTPAGEOFF]
Lloh25:
	ldr	w0, [x10]
	madd	x20, x9, x22, x8
	ldr	w1, [x20]
	bl	_WREG32
Lloh26:
	adrp	x8, _VCE_RB_WPTR2@GOTPAGE
Lloh27:
	ldr	x8, [x8, _VCE_RB_WPTR2@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	w1, [x20]
	bl	_WREG32
Lloh29:
	adrp	x8, _VCE_RB_BASE_LO2@GOTPAGE
Lloh30:
	ldr	x8, [x8, _VCE_RB_BASE_LO2@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldr	w1, [x20, #4]
	bl	_WREG32
Lloh32:
	adrp	x8, _VCE_RB_BASE_HI2@GOTPAGE
Lloh33:
	ldr	x8, [x8, _VCE_RB_BASE_HI2@GOTPAGEOFF]
Lloh34:
	ldr	w19, [x8]
	ldr	w0, [x20, #4]
	bl	_upper_32_bits
	mov	x1, x0
	mov	x0, x19
	bl	_WREG32
Lloh35:
	adrp	x8, _VCE_RB_SIZE2@GOTPAGE
Lloh36:
	ldr	x8, [x8, _VCE_RB_SIZE2@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
	ldr	w8, [x20, #8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w1, w8, #2
	bl	_WREG32
Lloh38:
	adrp	x8, _VCE_VCPU_CNTL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _VCE_VCPU_CNTL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
Lloh41:
	adrp	x8, _VCE_CLK_EN@GOTPAGE
Lloh42:
	ldr	x8, [x8, _VCE_CLK_EN@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mvn	w2, w1
	bl	_WREG32_P
Lloh44:
	adrp	x20, _VCE_SOFT_RESET@GOTPAGE
Lloh45:
	ldr	x20, [x20, _VCE_SOFT_RESET@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh46:
	adrp	x22, _VCE_ECPU_SOFT_RESET@GOTPAGE
Lloh47:
	ldr	x22, [x22, _VCE_ECPU_SOFT_RESET@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh48:
	adrp	x19, _VCE_FME_SOFT_RESET@GOTPAGE
Lloh49:
	ldr	x19, [x19, _VCE_FME_SOFT_RESET@GOTPAGEOFF]
	ldr	w9, [x19]
	orr	w1, w9, w8
	mvn	w2, w1
	bl	_WREG32_P
	mov	w0, #100
	bl	_mdelay
	ldr	w0, [x20]
	ldr	w8, [x22]
	ldr	w9, [x19]
	orr	w8, w9, w8
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
	mov	w23, #0
Lloh50:
	adrp	x19, l_.str@PAGE
Lloh51:
	add	x19, x19, l_.str@PAGEOFF
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_2 Depth 2
	mov	w24, #100
LBB0_2:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21]
	bl	_RREG32
	tbnz	w0, #1, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=2
	mov	w0, #10
	bl	_mdelay
	subs	w24, w24, #1
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x19
	bl	_DRM_ERROR
	ldr	w0, [x20]
	ldr	w1, [x22]
	mvn	w2, w1
	bl	_WREG32_P
	mov	w0, #10
	bl	_mdelay
	ldr	w0, [x20]
	ldr	w8, [x22]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
	mov	w0, #10
	bl	_mdelay
	add	w23, w23, #1
	cmp	w23, #10
	b.ne	LBB0_1
; %bb.5:
	ldr	w0, [x21]
	mov	w1, #0
	mov	w2, #-2
	bl	_WREG32_P
Lloh52:
	adrp	x0, l_.str.1@PAGE
Lloh53:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DRM_ERROR
	mov	w0, #-1
	b	LBB0_7
LBB0_6:
	ldr	w0, [x21]
	mov	w1, #0
	mov	w2, #-2
	bl	_WREG32_P
	mov	w0, #0
LBB0_7:
	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	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_VCE_STATUS,4,2                 ; @VCE_STATUS
	.comm	_TN_RING_TYPE_VCE1_INDEX,8,3    ; @TN_RING_TYPE_VCE1_INDEX
	.comm	_VCE_RB_RPTR,4,2                ; @VCE_RB_RPTR
	.comm	_VCE_RB_WPTR,4,2                ; @VCE_RB_WPTR
	.comm	_VCE_RB_BASE_LO,4,2             ; @VCE_RB_BASE_LO
	.comm	_VCE_RB_BASE_HI,4,2             ; @VCE_RB_BASE_HI
	.comm	_VCE_RB_SIZE,4,2                ; @VCE_RB_SIZE
	.comm	_TN_RING_TYPE_VCE2_INDEX,8,3    ; @TN_RING_TYPE_VCE2_INDEX
	.comm	_VCE_RB_RPTR2,4,2               ; @VCE_RB_RPTR2
	.comm	_VCE_RB_WPTR2,4,2               ; @VCE_RB_WPTR2
	.comm	_VCE_RB_BASE_LO2,4,2            ; @VCE_RB_BASE_LO2
	.comm	_VCE_RB_BASE_HI2,4,2            ; @VCE_RB_BASE_HI2
	.comm	_VCE_RB_SIZE2,4,2               ; @VCE_RB_SIZE2
	.comm	_VCE_VCPU_CNTL,4,2              ; @VCE_VCPU_CNTL
	.comm	_VCE_CLK_EN,4,2                 ; @VCE_CLK_EN
	.comm	_VCE_SOFT_RESET,4,2             ; @VCE_SOFT_RESET
	.comm	_VCE_ECPU_SOFT_RESET,4,2        ; @VCE_ECPU_SOFT_RESET
	.comm	_VCE_FME_SOFT_RESET,4,2         ; @VCE_FME_SOFT_RESET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VCE not responding, trying to reset the ECPU!!!\n"

l_.str.1:                               ; @.str.1
	.asciz	"VCE not responding, giving up!!!\n"

.subsections_via_symbols
