	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3533_led_get_hw_delay
_lm3533_led_get_hw_delay:               ## @lm3533_led_get_hw_delay
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	imull	$1000, (%rdi), %edi             ## imm = 0x3E8
	movq	_LM3533_LED_DELAY2_TMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_LM3533_LED_DELAY3_TMIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leal	(%rsi,%rdx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %edi
	jae	LBB0_1
## %bb.2:
	movq	_LM3533_LED_DELAY1_TMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_LM3533_LED_DELAY2_TMIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leal	(%rsi,%r8), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	cmpl	%ecx, %edi
	jae	LBB0_3
## %bb.4:
	movq	_LM3533_LED_DELAY1_TMIN@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	%r8d, %edx
	callq	_clamp
	movl	%eax, -20(%rbp)
	movq	_LM3533_LED_DELAY1_VMAX@GOTPCREL(%rip), %rax
	movq	_LM3533_LED_DELAY1_VMIN@GOTPCREL(%rip), %rcx
	movq	_LM3533_LED_DELAY1_TSTEP@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	movq	_LM3533_LED_DELAY3_TMAX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_clamp
	movl	%eax, -20(%rbp)
	movq	_LM3533_LED_DELAY3_VMAX@GOTPCREL(%rip), %rax
	movq	_LM3533_LED_DELAY3_VMIN@GOTPCREL(%rip), %rcx
	movq	_LM3533_LED_DELAY3_TSTEP@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_clamp
	movl	%eax, -20(%rbp)
	movq	_LM3533_LED_DELAY2_VMAX@GOTPCREL(%rip), %rax
	movq	_LM3533_LED_DELAY2_VMIN@GOTPCREL(%rip), %rcx
	movq	_LM3533_LED_DELAY2_TSTEP@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rbx), %esi
	movl	(%rdx), %edx
	movl	(%rcx), %ecx
	movl	(%rax), %r8d
	leaq	-20(%rbp), %rdi
	callq	_time_to_val
	movl	$500, %ecx                      ## imm = 0x1F4
	addl	-20(%rbp), %ecx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	shrq	$38, %rcx
	movl	%ecx, (%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LM3533_LED_DELAY2_TMAX,4,2     ## @LM3533_LED_DELAY2_TMAX
	.comm	_LM3533_LED_DELAY3_TMIN,4,2     ## @LM3533_LED_DELAY3_TMIN
	.comm	_LM3533_LED_DELAY3_TMAX,4,2     ## @LM3533_LED_DELAY3_TMAX
	.comm	_LM3533_LED_DELAY3_TSTEP,4,2    ## @LM3533_LED_DELAY3_TSTEP
	.comm	_LM3533_LED_DELAY3_VMIN,4,2     ## @LM3533_LED_DELAY3_VMIN
	.comm	_LM3533_LED_DELAY3_VMAX,4,2     ## @LM3533_LED_DELAY3_VMAX
	.comm	_LM3533_LED_DELAY1_TMAX,4,2     ## @LM3533_LED_DELAY1_TMAX
	.comm	_LM3533_LED_DELAY2_TMIN,4,2     ## @LM3533_LED_DELAY2_TMIN
	.comm	_LM3533_LED_DELAY2_TSTEP,4,2    ## @LM3533_LED_DELAY2_TSTEP
	.comm	_LM3533_LED_DELAY2_VMIN,4,2     ## @LM3533_LED_DELAY2_VMIN
	.comm	_LM3533_LED_DELAY2_VMAX,4,2     ## @LM3533_LED_DELAY2_VMAX
	.comm	_LM3533_LED_DELAY1_TMIN,4,2     ## @LM3533_LED_DELAY1_TMIN
	.comm	_LM3533_LED_DELAY1_TSTEP,4,2    ## @LM3533_LED_DELAY1_TSTEP
	.comm	_LM3533_LED_DELAY1_VMIN,4,2     ## @LM3533_LED_DELAY1_VMIN
	.comm	_LM3533_LED_DELAY1_VMAX,4,2     ## @LM3533_LED_DELAY1_VMAX
	.no_dead_strip	_lm3533_led_get_hw_delay
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3533_led_get_hw_delay
_lm3533_led_get_hw_delay:               ; @lm3533_led_get_hw_delay
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	mov	w9, #1000
	mul	w0, w8, w9
Lloh0:
	adrp	x8, _LM3533_LED_DELAY2_TMAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LM3533_LED_DELAY2_TMAX@GOTPAGEOFF]
Lloh2:
	adrp	x9, _LM3533_LED_DELAY3_TMIN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LM3533_LED_DELAY3_TMIN@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	ldr	w1, [x9]
	add	w8, w1, w2
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w0, w8, asr #1
	b.hs	LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _LM3533_LED_DELAY1_TMAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LM3533_LED_DELAY1_TMAX@GOTPAGEOFF]
Lloh8:
	adrp	x9, _LM3533_LED_DELAY2_TMIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LM3533_LED_DELAY2_TMIN@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	ldr	w1, [x9]
	add	w9, w1, w8
	cmp	w9, #0
	cinc	w9, w9, lt
	cmp	w0, w9, asr #1
	b.hs	LBB0_4
; %bb.2:
Lloh12:
	adrp	x20, _LM3533_LED_DELAY1_TMIN@GOTPAGE
Lloh13:
	ldr	x20, [x20, _LM3533_LED_DELAY1_TMIN@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x2, x8
	bl	_clamp
	str	w0, [sp, #12]
Lloh14:
	adrp	x8, _LM3533_LED_DELAY1_VMAX@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LM3533_LED_DELAY1_VMAX@GOTPAGEOFF]
Lloh16:
	adrp	x9, _LM3533_LED_DELAY1_VMIN@GOTPAGE
Lloh17:
	ldr	x9, [x9, _LM3533_LED_DELAY1_VMIN@GOTPAGEOFF]
Lloh18:
	adrp	x10, _LM3533_LED_DELAY1_TSTEP@GOTPAGE
Lloh19:
	ldr	x10, [x10, _LM3533_LED_DELAY1_TSTEP@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
Lloh20:
	adrp	x8, _LM3533_LED_DELAY3_TMAX@GOTPAGE
Lloh21:
	ldr	x8, [x8, _LM3533_LED_DELAY3_TMAX@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	bl	_clamp
	str	w0, [sp, #12]
Lloh23:
	adrp	x8, _LM3533_LED_DELAY3_VMAX@GOTPAGE
Lloh24:
	ldr	x8, [x8, _LM3533_LED_DELAY3_VMAX@GOTPAGEOFF]
Lloh25:
	adrp	x9, _LM3533_LED_DELAY3_VMIN@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LM3533_LED_DELAY3_VMIN@GOTPAGEOFF]
Lloh27:
	adrp	x10, _LM3533_LED_DELAY3_TSTEP@GOTPAGE
Lloh28:
	ldr	x10, [x10, _LM3533_LED_DELAY3_TSTEP@GOTPAGEOFF]
Lloh29:
	adrp	x20, _LM3533_LED_DELAY3_TMIN@GOTPAGE
Lloh30:
	ldr	x20, [x20, _LM3533_LED_DELAY3_TMIN@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	bl	_clamp
	str	w0, [sp, #12]
Lloh31:
	adrp	x8, _LM3533_LED_DELAY2_VMAX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LM3533_LED_DELAY2_VMAX@GOTPAGEOFF]
Lloh33:
	adrp	x9, _LM3533_LED_DELAY2_VMIN@GOTPAGE
Lloh34:
	ldr	x9, [x9, _LM3533_LED_DELAY2_VMIN@GOTPAGEOFF]
Lloh35:
	adrp	x10, _LM3533_LED_DELAY2_TSTEP@GOTPAGE
Lloh36:
	ldr	x10, [x10, _LM3533_LED_DELAY2_TSTEP@GOTPAGEOFF]
Lloh37:
	adrp	x20, _LM3533_LED_DELAY2_TMIN@GOTPAGE
Lloh38:
	ldr	x20, [x20, _LM3533_LED_DELAY2_TMIN@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x20]
	ldr	w2, [x10]
	ldr	w3, [x9]
	ldr	w4, [x8]
	add	x0, sp, #12
	bl	_time_to_val
	ldr	w8, [sp, #12]
	add	w8, w8, #500
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x8, x8, #38
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_LM3533_LED_DELAY2_TMAX,4,2     ; @LM3533_LED_DELAY2_TMAX
	.comm	_LM3533_LED_DELAY3_TMIN,4,2     ; @LM3533_LED_DELAY3_TMIN
	.comm	_LM3533_LED_DELAY3_TMAX,4,2     ; @LM3533_LED_DELAY3_TMAX
	.comm	_LM3533_LED_DELAY3_TSTEP,4,2    ; @LM3533_LED_DELAY3_TSTEP
	.comm	_LM3533_LED_DELAY3_VMIN,4,2     ; @LM3533_LED_DELAY3_VMIN
	.comm	_LM3533_LED_DELAY3_VMAX,4,2     ; @LM3533_LED_DELAY3_VMAX
	.comm	_LM3533_LED_DELAY1_TMAX,4,2     ; @LM3533_LED_DELAY1_TMAX
	.comm	_LM3533_LED_DELAY2_TMIN,4,2     ; @LM3533_LED_DELAY2_TMIN
	.comm	_LM3533_LED_DELAY2_TSTEP,4,2    ; @LM3533_LED_DELAY2_TSTEP
	.comm	_LM3533_LED_DELAY2_VMIN,4,2     ; @LM3533_LED_DELAY2_VMIN
	.comm	_LM3533_LED_DELAY2_VMAX,4,2     ; @LM3533_LED_DELAY2_VMAX
	.comm	_LM3533_LED_DELAY1_TMIN,4,2     ; @LM3533_LED_DELAY1_TMIN
	.comm	_LM3533_LED_DELAY1_TSTEP,4,2    ; @LM3533_LED_DELAY1_TSTEP
	.comm	_LM3533_LED_DELAY1_VMIN,4,2     ; @LM3533_LED_DELAY1_VMIN
	.comm	_LM3533_LED_DELAY1_VMAX,4,2     ; @LM3533_LED_DELAY1_VMAX
	.no_dead_strip	_lm3533_led_get_hw_delay
.subsections_via_symbols
