	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9063_clear_fault_log
_da9063_clear_fault_log:                ## @da9063_clear_fault_log
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movl	$0, -20(%rbp)
	movl	4(%rdi), %edi
	movq	_DA9063_REG_FAULT_LOG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	movq	_DA9063_TWD_ERROR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_6:
	movq	_DA9063_POR@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_8:
	movq	_DA9063_VDD_FAULT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.9:
	movl	(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_10:
	movq	_DA9063_VDD_START@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_12
## %bb.11:
	movl	(%r14), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_12:
	movq	_DA9063_TEMP_CRIT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_14
## %bb.13:
	movl	(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_14:
	movq	_DA9063_KEY_RESET@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_16
## %bb.15:
	movl	(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_16:
	movq	_DA9063_NSHUTDOWN@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_18
## %bb.17:
	movl	(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_18:
	movq	_DA9063_WAIT_SHUT@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_20
## %bb.19:
	movl	(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
	jmp	LBB0_20
LBB0_1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_22
LBB0_3:
	xorl	%edx, %edx
LBB0_20:
	movl	4(%r14), %edi
	movl	(%rbx), %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_22
## %bb.21:
	movl	(%r14), %edi
	leaq	L_.str.9(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
LBB0_22:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9063_REG_FAULT_LOG,4,2       ## @DA9063_REG_FAULT_LOG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot read FAULT_LOG.\n"

	.comm	_EIO,4,2                        ## @EIO
	.comm	_DA9063_TWD_ERROR,4,2           ## @DA9063_TWD_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Fault log entry detected: DA9063_TWD_ERROR\n"

	.comm	_DA9063_POR,4,2                 ## @DA9063_POR
L_.str.2:                               ## @.str.2
	.asciz	"Fault log entry detected: DA9063_POR\n"

	.comm	_DA9063_VDD_FAULT,4,2           ## @DA9063_VDD_FAULT
L_.str.3:                               ## @.str.3
	.asciz	"Fault log entry detected: DA9063_VDD_FAULT\n"

	.comm	_DA9063_VDD_START,4,2           ## @DA9063_VDD_START
L_.str.4:                               ## @.str.4
	.asciz	"Fault log entry detected: DA9063_VDD_START\n"

	.comm	_DA9063_TEMP_CRIT,4,2           ## @DA9063_TEMP_CRIT
L_.str.5:                               ## @.str.5
	.asciz	"Fault log entry detected: DA9063_TEMP_CRIT\n"

	.comm	_DA9063_KEY_RESET,4,2           ## @DA9063_KEY_RESET
L_.str.6:                               ## @.str.6
	.asciz	"Fault log entry detected: DA9063_KEY_RESET\n"

	.comm	_DA9063_NSHUTDOWN,4,2           ## @DA9063_NSHUTDOWN
L_.str.7:                               ## @.str.7
	.asciz	"Fault log entry detected: DA9063_NSHUTDOWN\n"

	.comm	_DA9063_WAIT_SHUT,4,2           ## @DA9063_WAIT_SHUT
L_.str.8:                               ## @.str.8
	.asciz	"Fault log entry detected: DA9063_WAIT_SHUT\n"

L_.str.9:                               ## @.str.9
	.asciz	"Cannot reset FAULT_LOG values %d\n"

	.no_dead_strip	_da9063_clear_fault_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9063_clear_fault_log
_da9063_clear_fault_log:                ; @da9063_clear_fault_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x20, _DA9063_REG_FAULT_LOG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DA9063_REG_FAULT_LOG@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_20
; %bb.1:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_18
; %bb.2:
Lloh2:
	adrp	x8, _DA9063_TWD_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DA9063_TWD_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_4:
Lloh7:
	adrp	x8, _DA9063_POR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DA9063_POR@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_6:
Lloh12:
	adrp	x8, _DA9063_VDD_FAULT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9063_VDD_FAULT@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_8:
Lloh17:
	adrp	x8, _DA9063_VDD_START@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DA9063_VDD_START@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_10:
Lloh22:
	adrp	x8, _DA9063_TEMP_CRIT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DA9063_TEMP_CRIT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19]
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_12:
Lloh27:
	adrp	x8, _DA9063_KEY_RESET@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DA9063_KEY_RESET@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19]
Lloh30:
	adrp	x1, l_.str.6@PAGE
Lloh31:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_14:
Lloh32:
	adrp	x8, _DA9063_NSHUTDOWN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DA9063_NSHUTDOWN@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x19]
Lloh35:
	adrp	x1, l_.str.7@PAGE
Lloh36:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_16:
Lloh37:
	adrp	x8, _DA9063_WAIT_SHUT@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DA9063_WAIT_SHUT@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_18
; %bb.17:
	ldr	w0, [x19]
Lloh40:
	adrp	x1, l_.str.8@PAGE
Lloh41:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_18:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	bl	_regmap_write
	mov	x20, x0
	tbz	w0, #31, LBB0_21
; %bb.19:
	ldr	w0, [x19]
	str	x20, [sp]
Lloh42:
	adrp	x1, l_.str.9@PAGE
Lloh43:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_dev_err
	b	LBB0_21
LBB0_20:
	ldr	w0, [x19]
Lloh44:
	adrp	x1, l_.str@PAGE
Lloh45:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh46:
	adrp	x8, _EIO@GOTPAGE
Lloh47:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_21:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9063_REG_FAULT_LOG,4,2       ; @DA9063_REG_FAULT_LOG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot read FAULT_LOG.\n"

	.comm	_EIO,4,2                        ; @EIO
	.comm	_DA9063_TWD_ERROR,4,2           ; @DA9063_TWD_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Fault log entry detected: DA9063_TWD_ERROR\n"

	.comm	_DA9063_POR,4,2                 ; @DA9063_POR
l_.str.2:                               ; @.str.2
	.asciz	"Fault log entry detected: DA9063_POR\n"

	.comm	_DA9063_VDD_FAULT,4,2           ; @DA9063_VDD_FAULT
l_.str.3:                               ; @.str.3
	.asciz	"Fault log entry detected: DA9063_VDD_FAULT\n"

	.comm	_DA9063_VDD_START,4,2           ; @DA9063_VDD_START
l_.str.4:                               ; @.str.4
	.asciz	"Fault log entry detected: DA9063_VDD_START\n"

	.comm	_DA9063_TEMP_CRIT,4,2           ; @DA9063_TEMP_CRIT
l_.str.5:                               ; @.str.5
	.asciz	"Fault log entry detected: DA9063_TEMP_CRIT\n"

	.comm	_DA9063_KEY_RESET,4,2           ; @DA9063_KEY_RESET
l_.str.6:                               ; @.str.6
	.asciz	"Fault log entry detected: DA9063_KEY_RESET\n"

	.comm	_DA9063_NSHUTDOWN,4,2           ; @DA9063_NSHUTDOWN
l_.str.7:                               ; @.str.7
	.asciz	"Fault log entry detected: DA9063_NSHUTDOWN\n"

	.comm	_DA9063_WAIT_SHUT,4,2           ; @DA9063_WAIT_SHUT
l_.str.8:                               ; @.str.8
	.asciz	"Fault log entry detected: DA9063_WAIT_SHUT\n"

l_.str.9:                               ; @.str.9
	.asciz	"Cannot reset FAULT_LOG values %d\n"

	.no_dead_strip	_da9063_clear_fault_log
.subsections_via_symbols
