	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3692x_fault_check
_lm3692x_fault_check:                   ## @lm3692x_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	8(%rdi), %edi
	movq	_LM3692X_FAULT_FLAGS@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.2:
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
LBB0_3:
	movl	8(%rbx), %edi
	movl	(%r14), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	movl	-20(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movl	-20(%rbp), %eax
	jmp	LBB0_6
LBB0_4:
	xorl	%eax, %eax
LBB0_6:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3692X_FAULT_FLAGS,4,2        ## @LM3692X_FAULT_FLAGS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detected a fault 0x%X\n"

L_.str.1:                               ## @.str.1
	.asciz	"Second read of fault flags 0x%X\n"

	.no_dead_strip	_lm3692x_fault_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3692x_fault_check
_lm3692x_fault_check:                   ; @lm3692x_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, #8]
Lloh0:
	adrp	x20, _LM3692X_FAULT_FLAGS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _LM3692X_FAULT_FLAGS@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	cbnz	w0, LBB0_6
; %bb.1:
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_3
; %bb.2:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_3:
	ldr	w0, [x19, #8]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_regmap_read
	ldr	w2, [sp, #12]
	cbz	w2, LBB0_5
; %bb.4:
	ldr	x0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w0, [sp, #12]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3692X_FAULT_FLAGS,4,2        ; @LM3692X_FAULT_FLAGS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detected a fault 0x%X\n"

l_.str.1:                               ; @.str.1
	.asciz	"Second read of fault flags 0x%X\n"

	.no_dead_strip	_lm3692x_fault_check
.subsections_via_symbols
