	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3601x_read_faults
_lm3601x_read_faults:                   ## @lm3601x_read_faults
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	4(%rdi), %edi
	movq	_LM3601X_FLAGS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movl	$0, (%rbx)
	movl	-12(%rbp), %ecx
	movq	_LM36010_OVP_FAULT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_LED_FAULT_OVER_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_3:
	xorl	%eax, %eax
LBB0_5:
	movq	_LM3601X_THERM_SHUTDOWN@GOTPCREL(%rip), %rdx
	movq	_LM3601X_THERM_CURR@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rdx), %esi
	testl	%ecx, %esi
	je	LBB0_7
## %bb.6:
	movq	_LED_FAULT_OVER_TEMPERATURE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
LBB0_7:
	movq	_LM3601X_SHORT_FAULT@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_9
## %bb.8:
	movq	_LED_FAULT_SHORT_CIRCUIT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
LBB0_9:
	movq	_LM36010_CURR_LIMIT@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_11
## %bb.10:
	movq	_LED_FAULT_OVER_CURRENT@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
LBB0_11:
	movq	_LM3601X_UVLO_FAULT@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_13
## %bb.12:
	movq	_LED_FAULT_UNDER_VOLTAGE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
LBB0_13:
	movq	_LM3601X_IVFM_TRIP@GOTPCREL(%rip), %rsi
	testl	%ecx, (%rsi)
	je	LBB0_15
## %bb.14:
	movq	_LED_FAULT_INPUT_VOLTAGE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rbx)
LBB0_15:
	testl	%ecx, (%rdx)
	je	LBB0_17
## %bb.16:
	movq	_LED_FAULT_LED_OVER_TEMPERATURE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3601X_FLAGS_REG,4,2          ## @LM3601X_FLAGS_REG
	.comm	_EIO,4,2                        ## @EIO
	.comm	_LM36010_OVP_FAULT,4,2          ## @LM36010_OVP_FAULT
	.comm	_LED_FAULT_OVER_VOLTAGE,4,2     ## @LED_FAULT_OVER_VOLTAGE
	.comm	_LM3601X_THERM_SHUTDOWN,4,2     ## @LM3601X_THERM_SHUTDOWN
	.comm	_LM3601X_THERM_CURR,4,2         ## @LM3601X_THERM_CURR
	.comm	_LED_FAULT_OVER_TEMPERATURE,4,2 ## @LED_FAULT_OVER_TEMPERATURE
	.comm	_LM3601X_SHORT_FAULT,4,2        ## @LM3601X_SHORT_FAULT
	.comm	_LED_FAULT_SHORT_CIRCUIT,4,2    ## @LED_FAULT_SHORT_CIRCUIT
	.comm	_LM36010_CURR_LIMIT,4,2         ## @LM36010_CURR_LIMIT
	.comm	_LED_FAULT_OVER_CURRENT,4,2     ## @LED_FAULT_OVER_CURRENT
	.comm	_LM3601X_UVLO_FAULT,4,2         ## @LM3601X_UVLO_FAULT
	.comm	_LED_FAULT_UNDER_VOLTAGE,4,2    ## @LED_FAULT_UNDER_VOLTAGE
	.comm	_LM3601X_IVFM_TRIP,4,2          ## @LM3601X_IVFM_TRIP
	.comm	_LED_FAULT_INPUT_VOLTAGE,4,2    ## @LED_FAULT_INPUT_VOLTAGE
	.comm	_LED_FAULT_LED_OVER_TEMPERATURE,4,2 ## @LED_FAULT_LED_OVER_TEMPERATURE
	.no_dead_strip	_lm3601x_read_faults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3601x_read_faults
_lm3601x_read_faults:                   ; @lm3601x_read_faults
	.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, #4]
Lloh0:
	adrp	x8, _LM3601X_FLAGS_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM3601X_FLAGS_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_3
; %bb.1:
	str	wzr, [x19]
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x9, _LM36010_OVP_FAULT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _LM36010_OVP_FAULT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh6:
	adrp	x9, _LED_FAULT_OVER_VOLTAGE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _LED_FAULT_OVER_VOLTAGE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	str	w0, [x19]
	b	LBB0_5
LBB0_3:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_17
LBB0_4:
	mov	w0, #0
LBB0_5:
Lloh12:
	adrp	x9, _LM3601X_THERM_SHUTDOWN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LM3601X_THERM_SHUTDOWN@GOTPAGEOFF]
	ldr	w10, [x9]
Lloh14:
	adrp	x11, _LM3601X_THERM_CURR@GOTPAGE
Lloh15:
	ldr	x11, [x11, _LM3601X_THERM_CURR@GOTPAGEOFF]
Lloh16:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w10, w8
	b.eq	LBB0_7
; %bb.6:
Lloh17:
	adrp	x10, _LED_FAULT_OVER_TEMPERATURE@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LED_FAULT_OVER_TEMPERATURE@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w0, w0, w10
	str	w0, [x19]
LBB0_7:
Lloh20:
	adrp	x10, _LM3601X_SHORT_FAULT@GOTPAGE
Lloh21:
	ldr	x10, [x10, _LM3601X_SHORT_FAULT@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_9
; %bb.8:
Lloh23:
	adrp	x10, _LED_FAULT_SHORT_CIRCUIT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _LED_FAULT_SHORT_CIRCUIT@GOTPAGEOFF]
Lloh25:
	ldr	w10, [x10]
	orr	w0, w0, w10
	str	w0, [x19]
LBB0_9:
Lloh26:
	adrp	x10, _LM36010_CURR_LIMIT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _LM36010_CURR_LIMIT@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_11
; %bb.10:
Lloh29:
	adrp	x10, _LED_FAULT_OVER_CURRENT@GOTPAGE
Lloh30:
	ldr	x10, [x10, _LED_FAULT_OVER_CURRENT@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	orr	w0, w0, w10
	str	w0, [x19]
LBB0_11:
Lloh32:
	adrp	x10, _LM3601X_UVLO_FAULT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _LM3601X_UVLO_FAULT@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_13
; %bb.12:
Lloh35:
	adrp	x10, _LED_FAULT_UNDER_VOLTAGE@GOTPAGE
Lloh36:
	ldr	x10, [x10, _LED_FAULT_UNDER_VOLTAGE@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w0, w0, w10
	str	w0, [x19]
LBB0_13:
Lloh38:
	adrp	x10, _LM3601X_IVFM_TRIP@GOTPAGE
Lloh39:
	ldr	x10, [x10, _LM3601X_IVFM_TRIP@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_15
; %bb.14:
Lloh41:
	adrp	x10, _LED_FAULT_INPUT_VOLTAGE@GOTPAGE
Lloh42:
	ldr	x10, [x10, _LED_FAULT_INPUT_VOLTAGE@GOTPAGEOFF]
Lloh43:
	ldr	w10, [x10]
	orr	w0, w0, w10
	str	w0, [x19]
LBB0_15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.16:
Lloh44:
	adrp	x8, _LED_FAULT_LED_OVER_TEMPERATURE@GOTPAGE
Lloh45:
	ldr	x8, [x8, _LED_FAULT_LED_OVER_TEMPERATURE@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	orr	w0, w0, w8
	str	w0, [x19]
LBB0_17:
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3601X_FLAGS_REG,4,2          ; @LM3601X_FLAGS_REG
	.comm	_EIO,4,2                        ; @EIO
	.comm	_LM36010_OVP_FAULT,4,2          ; @LM36010_OVP_FAULT
	.comm	_LED_FAULT_OVER_VOLTAGE,4,2     ; @LED_FAULT_OVER_VOLTAGE
	.comm	_LM3601X_THERM_SHUTDOWN,4,2     ; @LM3601X_THERM_SHUTDOWN
	.comm	_LM3601X_THERM_CURR,4,2         ; @LM3601X_THERM_CURR
	.comm	_LED_FAULT_OVER_TEMPERATURE,4,2 ; @LED_FAULT_OVER_TEMPERATURE
	.comm	_LM3601X_SHORT_FAULT,4,2        ; @LM3601X_SHORT_FAULT
	.comm	_LED_FAULT_SHORT_CIRCUIT,4,2    ; @LED_FAULT_SHORT_CIRCUIT
	.comm	_LM36010_CURR_LIMIT,4,2         ; @LM36010_CURR_LIMIT
	.comm	_LED_FAULT_OVER_CURRENT,4,2     ; @LED_FAULT_OVER_CURRENT
	.comm	_LM3601X_UVLO_FAULT,4,2         ; @LM3601X_UVLO_FAULT
	.comm	_LED_FAULT_UNDER_VOLTAGE,4,2    ; @LED_FAULT_UNDER_VOLTAGE
	.comm	_LM3601X_IVFM_TRIP,4,2          ; @LM3601X_IVFM_TRIP
	.comm	_LED_FAULT_INPUT_VOLTAGE,4,2    ; @LED_FAULT_INPUT_VOLTAGE
	.comm	_LED_FAULT_LED_OVER_TEMPERATURE,4,2 ; @LED_FAULT_LED_OVER_TEMPERATURE
	.no_dead_strip	_lm3601x_read_faults
.subsections_via_symbols
