	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm3532_get_index
_lm3532_get_index:                      ## @lm3532_get_index
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$2, %esi
	jl	LBB0_7
## %bb.1:
	movl	%esi, %r8d
	movl	$1, %ecx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rcx,4), %esi
	cmpl	%edx, %esi
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-4(%rdi,%rcx,4), %eax
	cmpl	%edx, %eax
	jge	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	subl	%edx, %esi
	jle	LBB0_6
## %bb.5:
	subl	%eax, %edx
	leal	-1(%rcx), %eax
	cmpl	%esi, %edx
	cmovgel	%ecx, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_8:
	movl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lm3532_get_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_index
_lm3532_get_index:                      ; @lm3532_get_index
	.cfi_startproc
; %bb.0:
	cmp	w1, #2
	b.lt	LBB0_5
; %bb.1:
	mov	x8, #0
	mov	w9, w1
	sub	x9, x9, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x0, x8, lsl #2
	ldr	w11, [x10, #4]
	subs	w10, w11, w2
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w12, [x0, x8, lsl #2]
	cmp	w12, w2
	ccmp	w11, w2, #4, lt
	b.gt	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_5:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_6:
	add	w0, w8, #1
	ret
LBB0_7:
	sub	w9, w2, w12
	cmp	w9, w10
	cinc	w0, w8, ge
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lm3532_get_index
.subsections_via_symbols
