	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3601x_register_leds
_lm3601x_register_leds:                 ## @lm3601x_register_leds
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	$0, -40(%rbp)
	leaq	8(%rdi), %r14
	movq	_flash_ops@GOTPCREL(%rip), %rax
	movq	%rax, 56(%rdi)
	movq	_LM3601X_MIN_TIMEOUT_US@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%rdi)
	movl	80(%rdi), %eax
	movl	%eax, 44(%rdi)
	movq	_LM3601X_LOWER_STEP_US@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 40(%rdi)
	movl	%eax, 36(%rdi)
	movq	_LM3601X_MIN_STROBE_I_UA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rdi)
	movl	72(%rdi), %edi
	movl	76(%rbx), %eax
	movl	%eax, 28(%rbx)
	movq	_LM3601X_TORCH_REG_DIV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, 24(%rbx)
	movl	%eax, 20(%rbx)
	movq	_lm3601x_brightness_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	callq	_DIV_ROUND_UP
	movl	%eax, 12(%rbx)
	movq	_LED_DEV_CAP_FLASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%r15, -32(%rbp)
	movq	64(%rbx), %rdi
	movl	4(%rdi), %eax
	movl	%eax, -40(%rbp)
	movq	(%rbx), %rax
	movq	_LM3601X_LED_TORCH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -48(%rbp)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rsi
	callq	_led_classdev_flash_register_ext
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_flash_ops,4,2                  ## @flash_ops
	.comm	_LM3601X_MIN_TIMEOUT_US,4,2     ## @LM3601X_MIN_TIMEOUT_US
	.comm	_LM3601X_LOWER_STEP_US,4,2      ## @LM3601X_LOWER_STEP_US
	.comm	_LM3601X_MIN_STROBE_I_UA,4,2    ## @LM3601X_MIN_STROBE_I_UA
	.comm	_LM3601X_TORCH_REG_DIV,4,2      ## @LM3601X_TORCH_REG_DIV
	.comm	_lm3601x_brightness_set,4,2     ## @lm3601x_brightness_set
	.comm	_LED_DEV_CAP_FLASH,4,2          ## @LED_DEV_CAP_FLASH
	.comm	_LM3601X_LED_TORCH,8,3          ## @LM3601X_LED_TORCH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"torch"

L_.str.1:                               ## @.str.1
	.asciz	"infrared"

	.no_dead_strip	_lm3601x_register_leds
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3601x_register_leds
_lm3601x_register_leds:                 ; @lm3601x_register_leds
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	str	xzr, [sp, #16]
Lloh0:
	adrp	x8, _flash_ops@GOTPAGE
Lloh1:
	ldr	x8, [x8, _flash_ops@GOTPAGEOFF]
	str	x8, [x0, #56]
Lloh2:
	adrp	x8, _LM3601X_MIN_TIMEOUT_US@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LM3601X_MIN_TIMEOUT_US@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #48]
	ldr	w8, [x0, #80]
Lloh5:
	adrp	x9, _LM3601X_LOWER_STEP_US@GOTPAGE
Lloh6:
	ldr	x9, [x9, _LM3601X_LOWER_STEP_US@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #40]
Lloh8:
	adrp	x9, _LM3601X_MIN_STROBE_I_UA@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LM3601X_MIN_STROBE_I_UA@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #32]
Lloh11:
	adrp	x8, _lm3601x_brightness_set@GOTPAGE
Lloh12:
	ldr	x8, [x8, _lm3601x_brightness_set@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldp	w0, w9, [x0, #72]
	stp	w8, w9, [x20, #16]
Lloh14:
	adrp	x8, _LM3601X_TORCH_REG_DIV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LM3601X_TORCH_REG_DIV@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	stp	w1, w9, [x20, #24]
	bl	_DIV_ROUND_UP
	str	w0, [x20, #12]
Lloh17:
	adrp	x8, _LED_DEV_CAP_FLASH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LED_DEV_CAP_FLASH@GOTPAGEOFF]
	mov	x1, x20
	ldr	w9, [x1, #8]!
Lloh19:
	ldr	w8, [x8]
	orr	w8, w9, w8
	str	w8, [x1]
	str	x19, [sp, #24]
	ldr	x0, [x20, #64]
	ldr	w8, [x0, #4]
	str	w8, [sp, #16]
	ldr	x8, [x20]
Lloh20:
	adrp	x9, _LM3601X_LED_TORCH@GOTPAGE
Lloh21:
	ldr	x9, [x9, _LM3601X_LED_TORCH@GOTPAGEOFF]
Lloh22:
	adrp	x10, l_.str.1@PAGE
Lloh23:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh24:
	ldr	x9, [x9]
Lloh25:
	adrp	x11, l_.str@PAGE
Lloh26:
	add	x11, x11, l_.str@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
	str	x8, [sp, #8]
	add	x2, sp, #8
	bl	_led_classdev_flash_register_ext
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_flash_ops,4,2                  ; @flash_ops
	.comm	_LM3601X_MIN_TIMEOUT_US,4,2     ; @LM3601X_MIN_TIMEOUT_US
	.comm	_LM3601X_LOWER_STEP_US,4,2      ; @LM3601X_LOWER_STEP_US
	.comm	_LM3601X_MIN_STROBE_I_UA,4,2    ; @LM3601X_MIN_STROBE_I_UA
	.comm	_LM3601X_TORCH_REG_DIV,4,2      ; @LM3601X_TORCH_REG_DIV
	.comm	_lm3601x_brightness_set,4,2     ; @lm3601x_brightness_set
	.comm	_LED_DEV_CAP_FLASH,4,2          ; @LED_DEV_CAP_FLASH
	.comm	_LM3601X_LED_TORCH,8,3          ; @LM3601X_LED_TORCH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"torch"

l_.str.1:                               ; @.str.1
	.asciz	"infrared"

	.no_dead_strip	_lm3601x_register_leds
.subsections_via_symbols
