	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3601x_strobe_set
_lm3601x_strobe_set:                    ## @lm3601x_strobe_set
	.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	%esi, %r15d
	callq	_fled_cdev_to_led
	movq	%rax, %r12
	leaq	4(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	8(%r12), %edi
	movq	_LM3601X_CFG_REG@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	-44(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_7
## %bb.1:
	movl	(%r12), %eax
	cmpl	-44(%rbp), %eax
	je	LBB0_6
## %bb.2:
	movq	_LM3601X_TIMEOUT_XOVER_US@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	setge	%bl
	jge	LBB0_3
## %bb.4:
	movq	_LM3601X_LOWER_STEP_US@GOTPCREL(%rip), %rsi
	jmp	LBB0_5
LBB0_3:
	movq	_LM3601X_UPPER_STEP_US@GOTPCREL(%rip), %rsi
LBB0_5:
	cltd
	idivl	(%rsi)
                                        ## kill: def $eax killed $eax def $rax
	movb	%bl, %cl
	leal	(%rax,%rcx,8), %ecx
	decl	%ecx
	movl	8(%r12), %edi
	movl	(%r13), %esi
	movq	_LM3601X_TIMEOUT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_regmap_update_bits
LBB0_6:
	movq	_LM3601X_MODE_TORCH@GOTPCREL(%rip), %rax
	movq	_LM3601X_MODE_IR_DRV@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	testl	%r15d, %r15d
	movl	8(%r12), %edi
	movq	_LM3601X_ENABLE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_LM3601X_MODE_STROBE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmovel	%ecx, %edx
	movq	_LED_OFF@GOTPCREL(%rip), %rax
	cmovel	(%rax), %ecx
	callq	_regmap_update_bits
	movq	%r12, %rdi
	callq	_lm3601x_read_faults
LBB0_7:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3601X_CFG_REG,4,2            ## @LM3601X_CFG_REG
	.comm	_LM3601X_TIMEOUT_XOVER_US,4,2   ## @LM3601X_TIMEOUT_XOVER_US
	.comm	_LM3601X_UPPER_STEP_US,4,2      ## @LM3601X_UPPER_STEP_US
	.comm	_LM3601X_LOWER_STEP_US,4,2      ## @LM3601X_LOWER_STEP_US
	.comm	_LM3601X_TIMEOUT_MASK,4,2       ## @LM3601X_TIMEOUT_MASK
	.comm	_LM3601X_ENABLE_REG,4,2         ## @LM3601X_ENABLE_REG
	.comm	_LM3601X_MODE_TORCH,4,2         ## @LM3601X_MODE_TORCH
	.comm	_LM3601X_MODE_IR_DRV,4,2        ## @LM3601X_MODE_IR_DRV
	.comm	_LM3601X_MODE_STROBE,4,2        ## @LM3601X_MODE_STROBE
	.comm	_LED_OFF,4,2                    ## @LED_OFF
	.no_dead_strip	_lm3601x_strobe_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3601x_strobe_set
_lm3601x_strobe_set:                    ; @lm3601x_strobe_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	bl	_fled_cdev_to_led
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x20, #8]
Lloh0:
	adrp	x23, _LM3601X_CFG_REG@GOTPAGE
Lloh1:
	ldr	x23, [x23, _LM3601X_CFG_REG@GOTPAGEOFF]
	ldr	w1, [x23]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [x20]
	ldr	w9, [sp, #12]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.2:
Lloh2:
	adrp	x9, _LM3601X_TIMEOUT_XOVER_US@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LM3601X_TIMEOUT_XOVER_US@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _LM3601X_LOWER_STEP_US@GOTPAGE
Lloh6:
	ldr	x10, [x10, _LM3601X_LOWER_STEP_US@GOTPAGEOFF]
Lloh7:
	adrp	x11, _LM3601X_UPPER_STEP_US@GOTPAGE
Lloh8:
	ldr	x11, [x11, _LM3601X_UPPER_STEP_US@GOTPAGEOFF]
	cmp	w8, w9
	csel	x9, x10, x11, lt
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	mov	w9, #7
	csinv	w9, w9, wzr, ge
	add	w3, w8, w9
	ldr	w0, [x20, #8]
	ldr	w1, [x23]
Lloh9:
	adrp	x8, _LM3601X_TIMEOUT_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _LM3601X_TIMEOUT_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_regmap_update_bits
LBB0_3:
Lloh12:
	adrp	x8, _LM3601X_ENABLE_REG@GOTPAGE
Lloh13:
	ldr	x8, [x8, _LM3601X_ENABLE_REG@GOTPAGEOFF]
	ldr	w0, [x20, #8]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _LM3601X_MODE_STROBE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _LM3601X_MODE_STROBE@GOTPAGEOFF]
Lloh17:
	adrp	x9, _LM3601X_MODE_TORCH@GOTPAGE
Lloh18:
	ldr	x9, [x9, _LM3601X_MODE_TORCH@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _LM3601X_MODE_IR_DRV@GOTPAGE
Lloh22:
	ldr	x10, [x10, _LM3601X_MODE_IR_DRV@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
	orr	w9, w10, w9
	cmp	w21, #0
	csel	w2, w8, w9, eq
Lloh24:
	adrp	x9, _LED_OFF@GOTPAGE
Lloh25:
	ldr	x9, [x9, _LED_OFF@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	csel	w3, w9, w8, eq
	bl	_regmap_update_bits
	mov	x0, x20
	bl	_lm3601x_read_faults
LBB0_4:
	mov	x22, x0
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3601X_CFG_REG,4,2            ; @LM3601X_CFG_REG
	.comm	_LM3601X_TIMEOUT_XOVER_US,4,2   ; @LM3601X_TIMEOUT_XOVER_US
	.comm	_LM3601X_UPPER_STEP_US,4,2      ; @LM3601X_UPPER_STEP_US
	.comm	_LM3601X_LOWER_STEP_US,4,2      ; @LM3601X_LOWER_STEP_US
	.comm	_LM3601X_TIMEOUT_MASK,4,2       ; @LM3601X_TIMEOUT_MASK
	.comm	_LM3601X_ENABLE_REG,4,2         ; @LM3601X_ENABLE_REG
	.comm	_LM3601X_MODE_TORCH,4,2         ; @LM3601X_MODE_TORCH
	.comm	_LM3601X_MODE_IR_DRV,4,2        ; @LM3601X_MODE_IR_DRV
	.comm	_LM3601X_MODE_STROBE,4,2        ; @LM3601X_MODE_STROBE
	.comm	_LED_OFF,4,2                    ; @LED_OFF
	.no_dead_strip	_lm3601x_strobe_set
.subsections_via_symbols
