	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_get_flash_faults
_max77693_get_flash_faults:             ## @max77693_get_flash_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_sub_led_to_led
	movq	8(%rax), %rdi
	movl	$0, 8(%r14)
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_FLASH_INT_FLED1_OPEN@GOTPCREL(%rip), %rax
	movq	_FLASH_INT_FLED2_OPEN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movq	_FLASH_INT_FLED1_SHORT@GOTPCREL(%rip), %rax
	movq	_FLASH_INT_FLED2_SHORT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movq	(%r14), %rax
	movq	_FLED1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	_FLASH_INT_FLED2_OPEN@GOTPCREL(%rip), %rax
	cmoveq	_FLASH_INT_FLED1_OPEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_FLASH_INT_FLED2_SHORT@GOTPCREL(%rip), %rax
	cmoveq	_FLASH_INT_FLED1_SHORT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_3:
	movq	_MAX77693_LED_REG_FLASH_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_10
## %bb.4:
	movl	-28(%rbp), %ecx
	testl	%r15d, %ecx
	je	LBB0_6
## %bb.5:
	movq	_LED_FAULT_OVER_VOLTAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_6:
	testl	%ebx, %ecx
	je	LBB0_8
## %bb.7:
	movq	_LED_FAULT_SHORT_CIRCUIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r14)
LBB0_8:
	movq	_FLASH_INT_OVER_CURRENT@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_10
## %bb.9:
	movq	_LED_FAULT_OVER_CURRENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, 8(%r14)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLASH_INT_FLED1_OPEN,4,2       ## @FLASH_INT_FLED1_OPEN
	.comm	_FLASH_INT_FLED2_OPEN,4,2       ## @FLASH_INT_FLED2_OPEN
	.comm	_FLASH_INT_FLED1_SHORT,4,2      ## @FLASH_INT_FLED1_SHORT
	.comm	_FLASH_INT_FLED2_SHORT,4,2      ## @FLASH_INT_FLED2_SHORT
	.comm	_FLED1,8,3                      ## @FLED1
	.comm	_MAX77693_LED_REG_FLASH_INT,4,2 ## @MAX77693_LED_REG_FLASH_INT
	.comm	_LED_FAULT_OVER_VOLTAGE,4,2     ## @LED_FAULT_OVER_VOLTAGE
	.comm	_LED_FAULT_SHORT_CIRCUIT,4,2    ## @LED_FAULT_SHORT_CIRCUIT
	.comm	_FLASH_INT_OVER_CURRENT,4,2     ## @FLASH_INT_OVER_CURRENT
	.comm	_LED_FAULT_OVER_CURRENT,4,2     ## @LED_FAULT_OVER_CURRENT
	.no_dead_strip	_max77693_get_flash_faults
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_get_flash_faults
_max77693_get_flash_faults:             ; @max77693_get_flash_faults
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_sub_led_to_led
	mov	x8, x0
	str	wzr, [x19, #8]
	ldr	x0, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FLASH_INT_FLED1_OPEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLASH_INT_FLED1_OPEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FLASH_INT_FLED2_OPEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLASH_INT_FLED2_OPEN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _FLASH_INT_FLED1_SHORT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _FLASH_INT_FLED1_SHORT@GOTPAGEOFF]
	orr	w21, w9, w8
Lloh8:
	ldr	w8, [x10]
Lloh9:
	adrp	x9, _FLASH_INT_FLED2_SHORT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FLASH_INT_FLED2_SHORT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w20, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
Lloh12:
	adrp	x9, _FLED1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FLED1@GOTPAGEOFF]
Lloh14:
	adrp	x10, _FLASH_INT_FLED1_OPEN@GOTPAGE
Lloh15:
	ldr	x10, [x10, _FLASH_INT_FLED1_OPEN@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x11, _FLASH_INT_FLED2_OPEN@GOTPAGE
Lloh18:
	ldr	x11, [x11, _FLASH_INT_FLED2_OPEN@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w21, [x8]
Lloh19:
	adrp	x8, _FLASH_INT_FLED1_SHORT@GOTPAGE
Lloh20:
	ldr	x8, [x8, _FLASH_INT_FLED1_SHORT@GOTPAGEOFF]
Lloh21:
	adrp	x9, _FLASH_INT_FLED2_SHORT@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FLASH_INT_FLED2_SHORT@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
LBB0_3:
Lloh23:
	adrp	x8, _MAX77693_LED_REG_FLASH_INT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _MAX77693_LED_REG_FLASH_INT@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_11
; %bb.4:
	ldr	w8, [sp, #12]
	tst	w8, w21
	b.eq	LBB0_6
; %bb.5:
Lloh26:
	adrp	x9, _LED_FAULT_OVER_VOLTAGE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _LED_FAULT_OVER_VOLTAGE@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_6:
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh29:
	adrp	x9, _LED_FAULT_SHORT_CIRCUIT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LED_FAULT_SHORT_CIRCUIT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	str	w9, [x19, #8]
LBB0_8:
Lloh32:
	adrp	x9, _FLASH_INT_OVER_CURRENT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _FLASH_INT_OVER_CURRENT@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	w0, #0
Lloh35:
	adrp	x8, _LED_FAULT_OVER_CURRENT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _LED_FAULT_OVER_CURRENT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.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
	.cfi_endproc
                                        ; -- End function
	.comm	_FLASH_INT_FLED1_OPEN,4,2       ; @FLASH_INT_FLED1_OPEN
	.comm	_FLASH_INT_FLED2_OPEN,4,2       ; @FLASH_INT_FLED2_OPEN
	.comm	_FLASH_INT_FLED1_SHORT,4,2      ; @FLASH_INT_FLED1_SHORT
	.comm	_FLASH_INT_FLED2_SHORT,4,2      ; @FLASH_INT_FLED2_SHORT
	.comm	_FLED1,8,3                      ; @FLED1
	.comm	_MAX77693_LED_REG_FLASH_INT,4,2 ; @MAX77693_LED_REG_FLASH_INT
	.comm	_LED_FAULT_OVER_VOLTAGE,4,2     ; @LED_FAULT_OVER_VOLTAGE
	.comm	_LED_FAULT_SHORT_CIRCUIT,4,2    ; @LED_FAULT_SHORT_CIRCUIT
	.comm	_FLASH_INT_OVER_CURRENT,4,2     ; @FLASH_INT_OVER_CURRENT
	.comm	_LED_FAULT_OVER_CURRENT,4,2     ; @LED_FAULT_OVER_CURRENT
	.no_dead_strip	_max77693_get_flash_faults
.subsections_via_symbols
