	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function max77693_init_fled_cdev
_max77693_init_fled_cdev:               ## @max77693_init_fled_cdev
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_sub_led_to_led
	movslq	(%rbx), %rcx
	movq	_flash_ops@GOTPCREL(%rip), %rdx
	movq	%rdx, 32(%rbx)
	movq	8(%r14), %rdx
	movl	(%rdx,%rcx,4), %edx
	movl	%edx, 24(%rbx)
	movq	_max77693_led_brightness_set@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, 20(%rbx)
	cmpq	$0, (%rax)
	movq	(%r14), %rdx
	je	LBB0_2
## %bb.1:
	movq	_FLED1@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_FLED2@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdx,%rax,4), %eax
	addl	(%rdx,%rcx,4), %eax
	jmp	LBB0_3
LBB0_2:
	movl	(%rdx,%rcx,4), %eax
LBB0_3:
	movq	_TORCH_IOUT_STEP@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%eax, 12(%rbx)
	movq	_LED_DEV_CAP_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_max77693_init_flash_settings
	movl	8(%rbx), %eax
	movl	%eax, 4(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flash_ops,4,2                  ## @flash_ops
	.comm	_max77693_led_brightness_set,4,2 ## @max77693_led_brightness_set
	.comm	_FLED1,8,3                      ## @FLED1
	.comm	_FLED2,8,3                      ## @FLED2
	.comm	_TORCH_IOUT_STEP,4,2            ## @TORCH_IOUT_STEP
	.comm	_LED_DEV_CAP_FLASH,4,2          ## @LED_DEV_CAP_FLASH
	.no_dead_strip	_max77693_init_fled_cdev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function max77693_init_fled_cdev
_max77693_init_fled_cdev:               ; @max77693_init_fled_cdev
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_sub_led_to_led
Lloh0:
	adrp	x9, _flash_ops@GOTPAGE
Lloh1:
	ldr	x9, [x9, _flash_ops@GOTPAGEOFF]
	ldrsw	x8, [x19]
	str	x9, [x19, #32]
	ldp	x9, x10, [x20]
	ldr	w10, [x10, x8, lsl #2]
Lloh2:
	adrp	x11, _max77693_led_brightness_set@GOTPAGE
Lloh3:
	ldr	x11, [x11, _max77693_led_brightness_set@GOTPAGEOFF]
Lloh4:
	ldr	w11, [x11]
	stp	w11, w10, [x19, #20]
	ldr	x10, [x0]
	cbz	x10, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _FLED1@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FLED1@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
Lloh8:
	adrp	x10, _FLED2@GOTPAGE
Lloh9:
	ldr	x10, [x10, _FLED2@GOTPAGEOFF]
Lloh10:
	ldr	x10, [x10]
	ldr	w9, [x9, x10, lsl #2]
	add	w8, w9, w8
	b	LBB0_3
LBB0_2:
	ldr	w8, [x9, x8, lsl #2]
LBB0_3:
Lloh11:
	adrp	x9, _TORCH_IOUT_STEP@GOTPAGE
Lloh12:
	ldr	x9, [x9, _TORCH_IOUT_STEP@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _LED_DEV_CAP_FLASH@GOTPAGE
Lloh15:
	ldr	x10, [x10, _LED_DEV_CAP_FLASH@GOTPAGEOFF]
	sdiv	w8, w8, w9
Lloh16:
	ldr	w9, [x10]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	stp	w8, w9, [x19, #12]
	mov	x0, x19
	mov	x1, x20
	bl	_max77693_init_flash_settings
	ldr	w8, [x19, #8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_flash_ops,4,2                  ; @flash_ops
	.comm	_max77693_led_brightness_set,4,2 ; @max77693_led_brightness_set
	.comm	_FLED1,8,3                      ; @FLED1
	.comm	_FLED2,8,3                      ; @FLED2
	.comm	_TORCH_IOUT_STEP,4,2            ; @TORCH_IOUT_STEP
	.comm	_LED_DEV_CAP_FLASH,4,2          ; @LED_DEV_CAP_FLASH
	.no_dead_strip	_max77693_init_fled_cdev
.subsections_via_symbols
