	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3532_get_ramp_index
_lm3532_get_ramp_index:                 ## @lm3532_get_ramp_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %edx
	movq	_ramp_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%eax, %eax
	cmpl	%edx, (%rdi)
	jge	LBB0_3
## %bb.1:
	movq	_LM3532_NUM_RAMP_VALS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpl	%edx, -4(%rdi,%rax,4)
	jge	LBB0_4
## %bb.2:
	decq	%rax
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	movl	%eax, %esi
	popq	%rbp
	jmp	_lm3532_get_index               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ramp_table,8,3                 ## @ramp_table
	.comm	_LM3532_NUM_RAMP_VALS,4,2       ## @LM3532_NUM_RAMP_VALS
	.no_dead_strip	_lm3532_get_ramp_index
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm3532_get_ramp_index
_lm3532_get_ramp_index:                 ; @lm3532_get_ramp_index
	.cfi_startproc
; %bb.0:
	mov	x2, x0
Lloh0:
	adrp	x8, _ramp_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ramp_table@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	ldr	w8, [x0]
	cmp	w8, w2
	b.ge	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _LM3532_NUM_RAMP_VALS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LM3532_NUM_RAMP_VALS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	sub	w8, w1, #1
	ldr	w9, [x0, w8, sxtw #2]
	cmp	w9, w2
	b.ge	LBB0_4
; %bb.2:
	mov	x0, x8
	ret
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	b	_lm3532_get_index
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ramp_table,8,3                 ; @ramp_table
	.comm	_LM3532_NUM_RAMP_VALS,4,2       ; @LM3532_NUM_RAMP_VALS
	.no_dead_strip	_lm3532_get_ramp_index
.subsections_via_symbols
