	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9062_clear_fault_log
_da9062_clear_fault_log:                ## @da9062_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, %rbx
	movl	(%rdi), %edi
	movq	_DA9062AA_FAULT_LOG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_19
## %bb.2:
	movq	_DA9062AA_TWD_ERROR_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_4
## %bb.3:
	movl	4(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_4:
	movq	_DA9062AA_POR_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_6
## %bb.5:
	movl	4(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_6:
	movq	_DA9062AA_VDD_FAULT_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_8
## %bb.7:
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_8:
	movq	_DA9062AA_VDD_START_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_10:
	movq	_DA9062AA_TEMP_CRIT_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_12
## %bb.11:
	movl	4(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_12:
	movq	_DA9062AA_KEY_RESET_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_14
## %bb.13:
	movl	4(%rbx), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_14:
	movq	_DA9062AA_NSHUTDOWN_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_16
## %bb.15:
	movl	4(%rbx), %edi
	leaq	L_.str.6(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_16:
	movq	_DA9062AA_WAIT_SHUT_MASK@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_18
## %bb.17:
	movl	4(%rbx), %edi
	leaq	L_.str.7(%rip), %rsi
	callq	_dev_dbg
	movl	-20(%rbp), %edx
LBB0_18:
	movl	(%rbx), %edi
	movl	(%r14), %esi
	callq	_regmap_write
LBB0_19:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9062AA_FAULT_LOG,4,2         ## @DA9062AA_FAULT_LOG
	.comm	_DA9062AA_TWD_ERROR_MASK,4,2    ## @DA9062AA_TWD_ERROR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fault log entry detected: TWD_ERROR\n"

	.comm	_DA9062AA_POR_MASK,4,2          ## @DA9062AA_POR_MASK
L_.str.1:                               ## @.str.1
	.asciz	"Fault log entry detected: POR\n"

	.comm	_DA9062AA_VDD_FAULT_MASK,4,2    ## @DA9062AA_VDD_FAULT_MASK
L_.str.2:                               ## @.str.2
	.asciz	"Fault log entry detected: VDD_FAULT\n"

	.comm	_DA9062AA_VDD_START_MASK,4,2    ## @DA9062AA_VDD_START_MASK
L_.str.3:                               ## @.str.3
	.asciz	"Fault log entry detected: VDD_START\n"

	.comm	_DA9062AA_TEMP_CRIT_MASK,4,2    ## @DA9062AA_TEMP_CRIT_MASK
L_.str.4:                               ## @.str.4
	.asciz	"Fault log entry detected: TEMP_CRIT\n"

	.comm	_DA9062AA_KEY_RESET_MASK,4,2    ## @DA9062AA_KEY_RESET_MASK
L_.str.5:                               ## @.str.5
	.asciz	"Fault log entry detected: KEY_RESET\n"

	.comm	_DA9062AA_NSHUTDOWN_MASK,4,2    ## @DA9062AA_NSHUTDOWN_MASK
L_.str.6:                               ## @.str.6
	.asciz	"Fault log entry detected: NSHUTDOWN\n"

	.comm	_DA9062AA_WAIT_SHUT_MASK,4,2    ## @DA9062AA_WAIT_SHUT_MASK
L_.str.7:                               ## @.str.7
	.asciz	"Fault log entry detected: WAIT_SHUT\n"

	.no_dead_strip	_da9062_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 da9062_clear_fault_log
_da9062_clear_fault_log:                ; @da9062_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
	ldr	w0, [x0]
Lloh0:
	adrp	x20, _DA9062AA_FAULT_LOG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _DA9062AA_FAULT_LOG@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_19
; %bb.1:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_19
; %bb.2:
Lloh2:
	adrp	x8, _DA9062AA_TWD_ERROR_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DA9062AA_TWD_ERROR_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_4:
Lloh7:
	adrp	x8, _DA9062AA_POR_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DA9062AA_POR_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #4]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_6:
Lloh12:
	adrp	x8, _DA9062AA_VDD_FAULT_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DA9062AA_VDD_FAULT_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_8
; %bb.7:
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_8:
Lloh17:
	adrp	x8, _DA9062AA_VDD_START_MASK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DA9062AA_VDD_START_MASK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #4]
Lloh20:
	adrp	x1, l_.str.3@PAGE
Lloh21:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_10:
Lloh22:
	adrp	x8, _DA9062AA_TEMP_CRIT_MASK@GOTPAGE
Lloh23:
	ldr	x8, [x8, _DA9062AA_TEMP_CRIT_MASK@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_12:
Lloh27:
	adrp	x8, _DA9062AA_KEY_RESET_MASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DA9062AA_KEY_RESET_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19, #4]
Lloh30:
	adrp	x1, l_.str.5@PAGE
Lloh31:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_14:
Lloh32:
	adrp	x8, _DA9062AA_NSHUTDOWN_MASK@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DA9062AA_NSHUTDOWN_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_16
; %bb.15:
	ldr	w0, [x19, #4]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_16:
Lloh37:
	adrp	x8, _DA9062AA_WAIT_SHUT_MASK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DA9062AA_WAIT_SHUT_MASK@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	tst	w8, w2
	b.eq	LBB0_18
; %bb.17:
	ldr	w0, [x19, #4]
Lloh40:
	adrp	x1, l_.str.7@PAGE
Lloh41:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
	ldr	w2, [sp, #12]
LBB0_18:
	ldr	w0, [x19]
	ldr	w1, [x20]
	bl	_regmap_write
LBB0_19:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9062AA_FAULT_LOG,4,2         ; @DA9062AA_FAULT_LOG
	.comm	_DA9062AA_TWD_ERROR_MASK,4,2    ; @DA9062AA_TWD_ERROR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fault log entry detected: TWD_ERROR\n"

	.comm	_DA9062AA_POR_MASK,4,2          ; @DA9062AA_POR_MASK
l_.str.1:                               ; @.str.1
	.asciz	"Fault log entry detected: POR\n"

	.comm	_DA9062AA_VDD_FAULT_MASK,4,2    ; @DA9062AA_VDD_FAULT_MASK
l_.str.2:                               ; @.str.2
	.asciz	"Fault log entry detected: VDD_FAULT\n"

	.comm	_DA9062AA_VDD_START_MASK,4,2    ; @DA9062AA_VDD_START_MASK
l_.str.3:                               ; @.str.3
	.asciz	"Fault log entry detected: VDD_START\n"

	.comm	_DA9062AA_TEMP_CRIT_MASK,4,2    ; @DA9062AA_TEMP_CRIT_MASK
l_.str.4:                               ; @.str.4
	.asciz	"Fault log entry detected: TEMP_CRIT\n"

	.comm	_DA9062AA_KEY_RESET_MASK,4,2    ; @DA9062AA_KEY_RESET_MASK
l_.str.5:                               ; @.str.5
	.asciz	"Fault log entry detected: KEY_RESET\n"

	.comm	_DA9062AA_NSHUTDOWN_MASK,4,2    ; @DA9062AA_NSHUTDOWN_MASK
l_.str.6:                               ; @.str.6
	.asciz	"Fault log entry detected: NSHUTDOWN\n"

	.comm	_DA9062AA_WAIT_SHUT_MASK,4,2    ; @DA9062AA_WAIT_SHUT_MASK
l_.str.7:                               ; @.str.7
	.asciz	"Fault log entry detected: WAIT_SHUT\n"

	.no_dead_strip	_da9062_clear_fault_log
.subsections_via_symbols
