	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ceu_soft_reset
_ceu_soft_reset:                        ## @ceu_soft_reset
	.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, %r12
	movq	_CEU_CAPSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CEU_CAPSR_CPKIL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	callq	_ceu_write
	movl	$100, %ebx
	movq	_CEU_CSTSR@GOTPCREL(%rip), %r13
	movq	_CEU_CSTRST_CPTON@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_ceu_read
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_1
	jmp	LBB0_3
LBB0_4:
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.5:
	movl	$100, %ebx
	movq	_CEU_CAPSR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_ceu_read
	testl	%eax, (%r15)
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %edi
	callq	_udelay
	decl	%ebx
	jne	LBB0_6
	jmp	LBB0_9
LBB0_3:
	movl	(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_CEU_CAPSR,4,2                  ## @CEU_CAPSR
	.comm	_CEU_CAPSR_CPKIL,4,2            ## @CEU_CAPSR_CPKIL
	.comm	_CEU_CSTSR,4,2                  ## @CEU_CSTSR
	.comm	_CEU_CSTRST_CPTON,4,2           ## @CEU_CSTRST_CPTON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"soft reset time out\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_ceu_soft_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ceu_soft_reset
_ceu_soft_reset:                        ; @ceu_soft_reset
	.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	x20, _CEU_CAPSR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CEU_CAPSR@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh2:
	adrp	x21, _CEU_CAPSR_CPKIL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CEU_CAPSR_CPKIL@GOTPAGEOFF]
	ldr	w2, [x21]
	bl	_ceu_write
	mov	w22, #100
Lloh4:
	adrp	x23, _CEU_CSTSR@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CEU_CSTSR@GOTPAGEOFF]
Lloh6:
	adrp	x24, _CEU_CSTRST_CPTON@GOTPAGE
Lloh7:
	ldr	x24, [x24, _CEU_CSTRST_CPTON@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_ceu_read
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w22, w22, #1
	b.ne	LBB0_1
	b	LBB0_7
LBB0_3:
	cbz	w22, LBB0_7
; %bb.4:
	mov	w22, #100
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ceu_read
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #1
	bl	_udelay
	subs	w22, w22, #1
	b.ne	LBB0_5
	b	LBB0_8
LBB0_7:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_8:
Lloh10:
	adrp	x8, _EIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
LBB0_10:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_CEU_CAPSR,4,2                  ; @CEU_CAPSR
	.comm	_CEU_CAPSR_CPKIL,4,2            ; @CEU_CAPSR_CPKIL
	.comm	_CEU_CSTSR,4,2                  ; @CEU_CSTSR
	.comm	_CEU_CSTRST_CPTON,4,2           ; @CEU_CSTRST_CPTON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"soft reset time out\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_ceu_soft_reset
.subsections_via_symbols
