	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7124_find_closest_match
_ad7124_find_closest_match:             ## @ad7124_find_closest_match
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	movq	_U32_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%r10d, %r10d
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, %r11d
	subl	(%rdi,%r10,4), %r11d
	movl	%r11d, %esi
	negl	%esi
	cmovsl	%r11d, %esi
	cmpl	%ecx, %esi
	movl	%eax, %r11d
	cmovbl	%r10d, %r11d
	cmovael	%ecx, %esi
	movl	%edx, %eax
	subl	4(%rdi,%r10,4), %eax
	movl	%eax, %ecx
	negl	%ecx
	cmovsl	%eax, %ecx
	leal	1(%r10), %eax
	cmpl	%esi, %ecx
	cmovael	%r11d, %eax
	cmovael	%esi, %ecx
	addq	$2, %r10
	cmpq	%r9, %r10
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	subl	(%rdi,%r10,4), %edx
	movl	%edx, %esi
	negl	%esi
	cmovsl	%edx, %esi
	cmpl	%ecx, %esi
	cmovbl	%r10d, %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_U32_MAX,4,2                    ## @U32_MAX
	.no_dead_strip	_ad7124_find_closest_match
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7124_find_closest_match
_ad7124_find_closest_match:             ; @ad7124_find_closest_match
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_4
; %bb.1:
	mov	x8, x0
	mov	x9, #0
	mov	w0, #0
Lloh0:
	adrp	x10, _U32_MAX@GOTPAGE
Lloh1:
	ldr	x10, [x10, _U32_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	mov	w11, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x8, x9, lsl #2]
	subs	w12, w2, w12
	cneg	w12, w12, mi
	cmp	w12, w10
	csel	w0, w9, w0, lo
	csel	w10, w12, w10, lo
	add	x9, x9, #1
	cmp	x11, x9
	b.ne	LBB0_2
; %bb.3:
	ret
LBB0_4:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_U32_MAX,4,2                    ; @U32_MAX
	.no_dead_strip	_ad7124_find_closest_match
.subsections_via_symbols
