	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lp8860_fault_check
_lp8860_fault_check:                    ## @lp8860_fault_check
	.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	_LP8860_LED_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movl	-20(%rbp), %r14d
	movl	(%rbx), %edi
	movq	_LP8860_FAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	orl	-20(%rbp), %r14d
	je	LBB0_3
## %bb.4:
	movl	(%rbx), %edi
	movq	_LP8860_FAULT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LP8860_CLEAR_FAULTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_write
	jmp	LBB0_5
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LP8860_LED_FAULT,4,2           ## @LP8860_LED_FAULT
	.comm	_LP8860_FAULT,4,2               ## @LP8860_FAULT
	.comm	_LP8860_FAULT_CLEAR,4,2         ## @LP8860_FAULT_CLEAR
	.comm	_LP8860_CLEAR_FAULTS,4,2        ## @LP8860_CLEAR_FAULTS
	.no_dead_strip	_lp8860_fault_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lp8860_fault_check
_lp8860_fault_check:                    ; @lp8860_fault_check
	.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	x8, _LP8860_LED_FAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LP8860_LED_FAULT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w20, [sp, #12]
	ldr	w0, [x19]
Lloh3:
	adrp	x8, _LP8860_FAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LP8860_FAULT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w8, [sp, #12]
	orr	w8, w8, w20
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _LP8860_FAULT_CLEAR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LP8860_FAULT_CLEAR@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _LP8860_CLEAR_FAULTS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LP8860_CLEAR_FAULTS@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_regmap_write
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_LP8860_LED_FAULT,4,2           ; @LP8860_LED_FAULT
	.comm	_LP8860_FAULT,4,2               ; @LP8860_FAULT
	.comm	_LP8860_FAULT_CLEAR,4,2         ; @LP8860_FAULT_CLEAR
	.comm	_LP8860_CLEAR_FAULTS,4,2        ; @LP8860_CLEAR_FAULTS
	.no_dead_strip	_lp8860_fault_check
.subsections_via_symbols
