	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma3000_reset
_cma3000_reset:                         ## @cma3000_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_CMA3000_RSTR@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	L_.str(%rip), %r15
	movl	$2, %edx
	movq	%r15, %rcx
	callq	_CMA3000_SET
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$10, %edx
	movq	%r15, %rcx
	callq	_CMA3000_SET
	movl	(%rbx), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	movq	%r15, %rcx
	callq	_CMA3000_SET
	movl	$10, %edi
	callq	_mdelay
	movq	_CMA3000_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_CMA3000_READ
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_CMA3000_STATUS_PERR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMA3000_RSTR,4,2               ## @CMA3000_RSTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Reset"

	.comm	_CMA3000_STATUS,4,2             ## @CMA3000_STATUS
L_.str.1:                               ## @.str.1
	.asciz	"Status"

L_.str.2:                               ## @.str.2
	.asciz	"Reset failed\n"

	.comm	_CMA3000_STATUS_PERR,4,2        ## @CMA3000_STATUS_PERR
L_.str.3:                               ## @.str.3
	.asciz	"Parity Error\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma3000_reset
_cma3000_reset:                         ; @cma3000_reset
	.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
Lloh0:
	adrp	x21, _CMA3000_RSTR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CMA3000_RSTR@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x20, l_.str@PAGE
Lloh3:
	add	x20, x20, l_.str@PAGEOFF
	mov	w2, #2
	mov	x3, x20
	bl	_CMA3000_SET
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #10
	mov	x3, x20
	bl	_CMA3000_SET
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #4
	mov	x3, x20
	bl	_CMA3000_SET
	mov	w0, #10
	bl	_mdelay
Lloh4:
	adrp	x8, _CMA3000_STATUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CMA3000_STATUS@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x2, l_.str.1@PAGE
Lloh8:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_CMA3000_READ
	mov	x20, x0
	tbnz	w0, #31, LBB0_3
; %bb.1:
Lloh9:
	adrp	x8, _CMA3000_STATUS_PERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMA3000_STATUS_PERR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.2:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_5
LBB0_3:
	ldr	w0, [x19]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_CMA3000_RSTR,4,2               ; @CMA3000_RSTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Reset"

	.comm	_CMA3000_STATUS,4,2             ; @CMA3000_STATUS
l_.str.1:                               ; @.str.1
	.asciz	"Status"

l_.str.2:                               ; @.str.2
	.asciz	"Reset failed\n"

	.comm	_CMA3000_STATUS_PERR,4,2        ; @CMA3000_STATUS_PERR
l_.str.3:                               ; @.str.3
	.asciz	"Parity Error\n"

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