	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_align_iout_current
_max77693_align_iout_current:           ## @max77693_align_iout_current
	.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
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r12d
	movq	%rdi, %r13
	cmpq	$0, (%rdi)
	movq	_FLED1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	je	LBB0_1
## %bb.2:
	movl	(%rsi,%rax,4), %ecx
	cmpl	%r12d, %ecx
	jle	LBB0_11
## %bb.3:
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	%edx, (%rsi,%rax,4)
	movq	_FLED2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%edx, (%rsi,%rcx,4)
	jmp	LBB0_4
LBB0_1:
	movq	_FLED2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_4:
	movslq	%eax, %rbx
	cmpq	%rbx, %rcx
	jb	LBB0_10
## %bb.5:
	leaq	(%rsi,%rbx,4), %r14
	movq	_FLED2@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, (%r14)
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
	addq	$4, %r14
	cmpq	%rbx, (%r15)
	jb	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_max77693_fled_used
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r14, %rdi
	movl	%r12d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	callq	_clamp_align
	jmp	LBB0_9
LBB0_11:
	movl	%r12d, (%rsi,%rax,4)
	movq	_FLED2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, (%rsi,%rax,4)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLED1,8,3                      ## @FLED1
	.comm	_FLED2,8,3                      ## @FLED2
	.no_dead_strip	_max77693_align_iout_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_align_iout_current
_max77693_align_iout_current:           ; @max77693_align_iout_current
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _FLED1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLED1@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x1, x8, lsl #2]
	cmp	w9, w20
	b.le	LBB0_10
; %bb.2:
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w10, w9, #1
	str	w10, [x1, x8, lsl #2]
Lloh3:
	adrp	x9, _FLED2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLED2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	w10, [x1, x9, lsl #2]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x9, _FLED2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FLED2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
LBB0_4:
	sxtw	x23, w8
	cmp	x9, x23
	b.lo	LBB0_11
; %bb.5:
	add	x24, x1, x23, lsl #2
Lloh9:
	adrp	x25, _FLED2@GOTPAGE
Lloh10:
	ldr	x25, [x25, _FLED2@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	wzr, [x24]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	add	x23, x23, #1
	ldr	x8, [x25]
	add	x24, x24, #4
	cmp	x8, x23
	b.lo	LBB0_11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_max77693_fled_used
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x24
	mov	x1, x20
	mov	x2, x21
	mov	x3, x19
	bl	_clamp_align
	b	LBB0_7
LBB0_10:
	str	w20, [x1, x8, lsl #2]
Lloh11:
	adrp	x8, _FLED2@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FLED2@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	wzr, [x1, x8, lsl #2]
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FLED1,8,3                      ; @FLED1
	.comm	_FLED2,8,3                      ; @FLED2
	.no_dead_strip	_max77693_align_iout_current
.subsections_via_symbols
