	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_led_validate_configuration
_max77693_led_validate_configuration:   ## @max77693_led_validate_configuration
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	cmpq	$0, (%rsi)
	jne	LBB0_1
## %bb.2:
	movq	_FLASH_IOUT_MAX_1LED@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_FLASH_IOUT_MAX_2LEDS@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %r15d
	cmpl	$1, 8(%r12)
	jne	LBB0_7
## %bb.4:
	movq	_FLED1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_max77693_fled_used
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_FLED2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_max77693_fled_used
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movl	$1, (%r14)
LBB0_7:
	movq	(%r12), %rdi
	movq	_MAX77693_LED_BOOST_NONE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	_MAX77693_LED_BOOST_FIXED@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	callq	_clamp_val
	movq	%rax, (%r12)
	cmpq	(%rbx), %rax
	jne	LBB0_10
## %bb.8:
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.9:
	movq	(%r13), %rax
	movq	%rax, (%r12)
LBB0_10:
	movl	44(%r12), %esi
	movq	_TORCH_IOUT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_TORCH_IOUT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_TORCH_IOUT_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	callq	_max77693_align_iout_current
	movl	40(%r12), %esi
	movq	_FLASH_IOUT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FLASH_IOUT_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_max77693_align_iout_current
	movq	32(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_13
## %bb.11:
	xorl	%ebx, %ebx
	movq	_FLASH_TIMEOUT_MAX@GOTPCREL(%rip), %r15
	movq	_FLASH_TIMEOUT_STEP@GOTPCREL(%rip), %r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	addq	%rbx, %rdi
	movq	_FLASH_TIMEOUT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movl	(%r13), %ecx
	callq	_clamp_align
	incq	%r14
	movq	32(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %rbx
	cmpq	%rax, %r14
	jl	LBB0_12
LBB0_13:
	leaq	24(%r12), %rdi
	movq	_FLASH_VOUT_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_FLASH_VOUT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_FLASH_VOUT_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_clamp_align
	cmpq	$0, 16(%r12)
	je	LBB0_14
## %bb.15:
	addq	$16, %r12
	movq	_MAX_FLASH1_VSYS_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MAX_FLASH1_VSYS_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_FLASH1_VSYS_STEP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_clamp_align                    ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLASH_IOUT_MAX_2LEDS,4,2       ## @FLASH_IOUT_MAX_2LEDS
	.comm	_FLASH_IOUT_MAX_1LED,4,2        ## @FLASH_IOUT_MAX_1LED
	.comm	_FLED1,4,2                      ## @FLED1
	.comm	_FLED2,4,2                      ## @FLED2
	.comm	_MAX77693_LED_BOOST_NONE,8,3    ## @MAX77693_LED_BOOST_NONE
	.comm	_MAX77693_LED_BOOST_FIXED,8,3   ## @MAX77693_LED_BOOST_FIXED
	.comm	_TORCH_IOUT_MIN,4,2             ## @TORCH_IOUT_MIN
	.comm	_TORCH_IOUT_MAX,4,2             ## @TORCH_IOUT_MAX
	.comm	_TORCH_IOUT_STEP,4,2            ## @TORCH_IOUT_STEP
	.comm	_FLASH_IOUT_MIN,4,2             ## @FLASH_IOUT_MIN
	.comm	_FLASH_IOUT_STEP,4,2            ## @FLASH_IOUT_STEP
	.comm	_FLASH_TIMEOUT_MIN,4,2          ## @FLASH_TIMEOUT_MIN
	.comm	_FLASH_TIMEOUT_MAX,4,2          ## @FLASH_TIMEOUT_MAX
	.comm	_FLASH_TIMEOUT_STEP,4,2         ## @FLASH_TIMEOUT_STEP
	.comm	_FLASH_VOUT_MIN,4,2             ## @FLASH_VOUT_MIN
	.comm	_FLASH_VOUT_MAX,4,2             ## @FLASH_VOUT_MAX
	.comm	_FLASH_VOUT_STEP,4,2            ## @FLASH_VOUT_STEP
	.comm	_MAX_FLASH1_VSYS_MIN,4,2        ## @MAX_FLASH1_VSYS_MIN
	.comm	_MAX_FLASH1_VSYS_MAX,4,2        ## @MAX_FLASH1_VSYS_MAX
	.comm	_MAX_FLASH1_VSYS_STEP,4,2       ## @MAX_FLASH1_VSYS_STEP
	.no_dead_strip	_max77693_led_validate_configuration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_led_validate_configuration
_max77693_led_validate_configuration:   ; @max77693_led_validate_configuration
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _FLASH_IOUT_MAX_2LEDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLASH_IOUT_MAX_2LEDS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _FLASH_IOUT_MAX_1LED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FLASH_IOUT_MAX_1LED@GOTPAGEOFF]
	ldr	x10, [x1]
	cmp	x10, #0
	csel	x8, x9, x8, eq
	ldr	w21, [x8]
	ldr	w8, [x1, #8]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
Lloh4:
	adrp	x8, _FLED1@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLED1@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_max77693_fled_used
	cbz	x0, LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _FLED2@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FLED2@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_max77693_fled_used
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
	ldr	x0, [x19]
Lloh10:
	adrp	x23, _MAX77693_LED_BOOST_NONE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MAX77693_LED_BOOST_NONE@GOTPAGEOFF]
	ldr	x1, [x23]
Lloh12:
	adrp	x22, _MAX77693_LED_BOOST_FIXED@GOTPAGE
Lloh13:
	ldr	x22, [x22, _MAX77693_LED_BOOST_FIXED@GOTPAGEOFF]
	ldr	x2, [x22]
	bl	_clamp_val
	str	x0, [x19]
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	x8, [x22]
	str	x8, [x19]
LBB0_7:
	ldr	w1, [x19, #44]
Lloh14:
	adrp	x8, _TORCH_IOUT_MIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TORCH_IOUT_MIN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x8, _TORCH_IOUT_MAX@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TORCH_IOUT_MAX@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x8, _TORCH_IOUT_STEP@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TORCH_IOUT_STEP@GOTPAGEOFF]
Lloh22:
	ldr	w4, [x8]
	mov	x0, x20
	bl	_max77693_align_iout_current
	ldr	w1, [x19, #40]
Lloh23:
	adrp	x8, _FLASH_IOUT_MIN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _FLASH_IOUT_MIN@GOTPAGEOFF]
Lloh25:
	ldr	w2, [x8]
Lloh26:
	adrp	x8, _FLASH_IOUT_STEP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _FLASH_IOUT_STEP@GOTPAGEOFF]
Lloh28:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x3, x21
	bl	_max77693_align_iout_current
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x20, #0
	mov	x21, #0
Lloh29:
	adrp	x22, _FLASH_TIMEOUT_MIN@GOTPAGE
Lloh30:
	ldr	x22, [x22, _FLASH_TIMEOUT_MIN@GOTPAGEOFF]
Lloh31:
	adrp	x23, _FLASH_TIMEOUT_MAX@GOTPAGE
Lloh32:
	ldr	x23, [x23, _FLASH_TIMEOUT_MAX@GOTPAGEOFF]
Lloh33:
	adrp	x24, _FLASH_TIMEOUT_STEP@GOTPAGE
Lloh34:
	ldr	x24, [x24, _FLASH_TIMEOUT_STEP@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x0, x8, x20
	ldr	w1, [x22]
	ldr	w2, [x23]
	ldr	w3, [x24]
	bl	_clamp_align
	add	x21, x21, #1
	ldr	x0, [x19, #32]
	bl	_ARRAY_SIZE
	add	x20, x20, #8
	cmp	x21, w0, sxtw
	b.lt	LBB0_9
LBB0_10:
	add	x0, x19, #24
Lloh35:
	adrp	x8, _FLASH_VOUT_MIN@GOTPAGE
Lloh36:
	ldr	x8, [x8, _FLASH_VOUT_MIN@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
Lloh38:
	adrp	x8, _FLASH_VOUT_MAX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _FLASH_VOUT_MAX@GOTPAGEOFF]
Lloh40:
	ldr	w2, [x8]
Lloh41:
	adrp	x8, _FLASH_VOUT_STEP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _FLASH_VOUT_STEP@GOTPAGEOFF]
Lloh43:
	ldr	w3, [x8]
	bl	_clamp_align
	ldr	x8, [x19, #16]!
	cbz	x8, LBB0_12
; %bb.11:
Lloh44:
	adrp	x8, _MAX_FLASH1_VSYS_MIN@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MAX_FLASH1_VSYS_MIN@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x8, _MAX_FLASH1_VSYS_MAX@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MAX_FLASH1_VSYS_MAX@GOTPAGEOFF]
Lloh49:
	adrp	x9, _MAX_FLASH1_VSYS_STEP@GOTPAGE
Lloh50:
	ldr	x9, [x9, _MAX_FLASH1_VSYS_STEP@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x8]
Lloh52:
	ldr	w3, [x9]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_clamp_align
LBB0_12:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh51
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_FLASH_IOUT_MAX_2LEDS,4,2       ; @FLASH_IOUT_MAX_2LEDS
	.comm	_FLASH_IOUT_MAX_1LED,4,2        ; @FLASH_IOUT_MAX_1LED
	.comm	_FLED1,4,2                      ; @FLED1
	.comm	_FLED2,4,2                      ; @FLED2
	.comm	_MAX77693_LED_BOOST_NONE,8,3    ; @MAX77693_LED_BOOST_NONE
	.comm	_MAX77693_LED_BOOST_FIXED,8,3   ; @MAX77693_LED_BOOST_FIXED
	.comm	_TORCH_IOUT_MIN,4,2             ; @TORCH_IOUT_MIN
	.comm	_TORCH_IOUT_MAX,4,2             ; @TORCH_IOUT_MAX
	.comm	_TORCH_IOUT_STEP,4,2            ; @TORCH_IOUT_STEP
	.comm	_FLASH_IOUT_MIN,4,2             ; @FLASH_IOUT_MIN
	.comm	_FLASH_IOUT_STEP,4,2            ; @FLASH_IOUT_STEP
	.comm	_FLASH_TIMEOUT_MIN,4,2          ; @FLASH_TIMEOUT_MIN
	.comm	_FLASH_TIMEOUT_MAX,4,2          ; @FLASH_TIMEOUT_MAX
	.comm	_FLASH_TIMEOUT_STEP,4,2         ; @FLASH_TIMEOUT_STEP
	.comm	_FLASH_VOUT_MIN,4,2             ; @FLASH_VOUT_MIN
	.comm	_FLASH_VOUT_MAX,4,2             ; @FLASH_VOUT_MAX
	.comm	_FLASH_VOUT_STEP,4,2            ; @FLASH_VOUT_STEP
	.comm	_MAX_FLASH1_VSYS_MIN,4,2        ; @MAX_FLASH1_VSYS_MIN
	.comm	_MAX_FLASH1_VSYS_MAX,4,2        ; @MAX_FLASH1_VSYS_MAX
	.comm	_MAX_FLASH1_VSYS_STEP,4,2       ; @MAX_FLASH1_VSYS_STEP
	.no_dead_strip	_max77693_led_validate_configuration
.subsections_via_symbols
