	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_distribute_currents
_max77693_distribute_currents:          ## @max77693_distribute_currents
	.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	%r9, %r12
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rdi, %r15
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.3:
	movq	_FLED1@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%r8,%rax,8), %rsi
	movq	%rbx, %rdi
	callq	_min
	movq	(%r13), %rcx
	movq	%rax, (%r12,%rcx,8)
	movq	(%r13), %rax
	subq	(%r12,%rax,8), %rbx
	movq	_FLED2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rbx, (%r12,%rax,8)
	movq	_FLASH@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_4
## %bb.5:
	movq	%rcx, %rbx
	movq	_MODE_FLASH_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movslq	%esi, %rsi
	movq	%rbx, (%r12,%rsi,8)
	jmp	LBB0_2
LBB0_4:
	movq	%rcx, %rbx
	movq	_MODE_TORCH_MASK@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%r15)
	movq	(%r13), %rsi
	movq	%r15, %rdi
	movl	%r14d, %edx
	callq	_max77693_add_allowed_modes
	movq	(%rbx), %rsi
	cmpq	$0, (%r12,%rsi,8)
	je	LBB0_7
LBB0_2:
	movq	%r15, %rdi
	movl	%r14d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_max77693_add_allowed_modes     ## TAILCALL
LBB0_7:
	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
	.comm	_FLASH,4,2                      ## @FLASH
	.comm	_MODE_FLASH_MASK,4,2            ## @MODE_FLASH_MASK
	.comm	_MODE_TORCH_MASK,4,2            ## @MODE_TORCH_MASK
	.no_dead_strip	_max77693_distribute_currents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_distribute_currents
_max77693_distribute_currents:          ; @max77693_distribute_currents
	.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	x21, x5
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
	ldr	w9, [x0, #4]
	cbz	w9, LBB0_3
; %bb.1:
Lloh0:
	adrp	x23, _FLED1@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FLED1@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x1, [x4, x8, lsl #3]
	mov	x0, x22
	bl	_min
	ldr	x8, [x23]
	str	x0, [x21, x8, lsl #3]
	ldr	x8, [x23]
	ldr	x8, [x21, x8, lsl #3]
Lloh2:
	adrp	x24, _FLED2@GOTPAGE
Lloh3:
	ldr	x24, [x24, _FLED2@GOTPAGEOFF]
	sub	x8, x22, x8
	ldr	x9, [x24]
	str	x8, [x21, x9, lsl #3]
Lloh4:
	adrp	x8, _FLASH@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FLASH@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _MODE_FLASH_MASK@GOTPAGE
Lloh8:
	ldr	x9, [x9, _MODE_FLASH_MASK@GOTPAGEOFF]
Lloh9:
	adrp	x10, _MODE_TORCH_MASK@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MODE_TORCH_MASK@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	ldr	w9, [x20]
	bic	w8, w9, w8
	str	w8, [x20]
	ldr	x1, [x23]
	mov	x0, x20
	mov	x2, x19
	bl	_max77693_add_allowed_modes
	ldr	x1, [x24]
	ldr	x8, [x21, x1, lsl #3]
	cbnz	x8, LBB0_4
; %bb.2:
	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
LBB0_3:
	mov	x8, x1
	sxtw	x1, w8
	str	x22, [x21, w8, sxtw #3]
LBB0_4:
	mov	x0, x20
	mov	x2, 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	_max77693_add_allowed_modes
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_FLED1,8,3                      ; @FLED1
	.comm	_FLED2,8,3                      ; @FLED2
	.comm	_FLASH,4,2                      ; @FLASH
	.comm	_MODE_FLASH_MASK,4,2            ; @MODE_FLASH_MASK
	.comm	_MODE_TORCH_MASK,4,2            ; @MODE_TORCH_MASK
	.no_dead_strip	_max77693_distribute_currents
.subsections_via_symbols
