	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_symt_find_nearest              ## -- Begin function symt_find_nearest
	.p2align	4, 0x90
_symt_find_nearest:                     ## @symt_find_nearest
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	cmpl	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_5
LBB0_2:
	movq	%r15, %rdi
	callq	_resort_symbols
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	8(%r15), %rax
LBB0_5:
	movl	(%r15), %r12d
	movq	(%rax), %rdi
	leaq	-48(%rbp), %rsi
	callq	_symt_get_address
	cmpq	%r14, -48(%rbp)
	jge	LBB0_6
## %bb.7:
	testl	%r12d, %r12d
	je	LBB0_8
## %bb.9:
	movslq	%r12d, %rbx
	movq	8(%r15), %rax
	movq	-8(%rax,%rbx,8), %rdi
	leaq	-48(%rbp), %rsi
	callq	_symt_get_address
	movq	8(%r15), %rax
	movq	-8(%rax,%rbx,8), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	callq	_symt_get_length
	movq	-56(%rbp), %rax
	addq	-48(%rbp), %rax
	xorl	%r13d, %r13d
	cmpq	%r14, %rax
	jle	LBB0_22
## %bb.10:
	cmpl	$2, %r12d
	jl	LBB0_16
## %bb.11:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%ebx, %r12d
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	leal	1(%r13), %eax
	cmpl	%eax, %r12d
	jle	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r13), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_cmp_sorttab_addr
	testq	%rax, %rax
	jns	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	%ebx, %r13d
	jmp	LBB0_15
LBB0_6:
	movq	%r15, %rdi
	xorl	%esi, %esi
	jmp	LBB0_21
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_22
LBB0_8:
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
LBB0_16:
	cmpl	%r12d, %r13d
	je	LBB0_20
## %bb.17:
	cmpl	(%r15), %r12d
	je	LBB0_19
## %bb.18:
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	%r14, %rdx
	callq	_cmp_sorttab_addr
	testq	%rax, %rax
	cmovlel	%r12d, %r13d
LBB0_19:
	movl	%r13d, %r12d
LBB0_20:
	movq	%r15, %rdi
	movl	%r12d, %esi
LBB0_21:
	callq	_symt_get_best_at
	movq	8(%r15), %rcx
	cltq
	movq	(%rcx,%rax,8), %r13
LBB0_22:
	movq	%r13, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_symt_find_nearest              ; -- Begin function symt_find_nearest
	.p2align	2
_symt_find_nearest:                     ; @symt_find_nearest
	.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	x20, x1
	mov	x19, x0
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_resort_symbols
	cbz	w0, LBB0_11
; %bb.3:
	ldr	x8, [x19, #8]
LBB0_4:
	ldr	w21, [x19]
	ldr	x0, [x8]
	add	x1, sp, #8
	bl	_symt_get_address
	ldr	x8, [sp, #8]
	cmp	x8, x20
	b.ge	LBB0_10
; %bb.5:
	cbz	w21, LBB0_12
; %bb.6:
	ldr	x8, [x19, #8]
	sub	w9, w21, #1
	sbfiz	x22, x9, #3, #32
	ldr	x0, [x8, x22]
	add	x1, sp, #8
	bl	_symt_get_address
	ldr	x8, [x19, #8]
	ldr	x1, [x8, x22]
	mov	x2, sp
	mov	x0, x19
	bl	_symt_get_length
	ldp	x9, x8, [sp]
	add	x8, x9, x8
	cmp	x8, x20
	b.le	LBB0_11
; %bb.7:
	cmp	w21, #2
	b.lt	LBB0_17
; %bb.8:
	mov	w23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w23, w21
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w22, w8, #1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_cmp_sorttab_addr
	cmp	x0, #0
	csel	w21, w21, w22, lt
	csel	w23, w22, w23, lt
	add	w8, w23, #1
	cmp	w21, w8
	b.gt	LBB0_9
	b	LBB0_13
LBB0_10:
	mov	x0, x19
	mov	w1, #0
	b	LBB0_19
LBB0_11:
	mov	x0, #0
	b	LBB0_20
LBB0_12:
	mov	w23, #0
LBB0_13:
	cmp	w23, w21
	b.eq	LBB0_18
LBB0_14:
	ldr	w8, [x19]
	cmp	w21, w8
	b.ne	LBB0_16
; %bb.15:
	mov	x21, x23
	b	LBB0_18
LBB0_16:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_cmp_sorttab_addr
	cmp	x0, #1
	csel	w21, w21, w23, lt
	b	LBB0_18
LBB0_17:
	mov	w23, #0
	cmp	w23, w21
	b.ne	LBB0_14
LBB0_18:
	mov	x0, x19
	mov	x1, x21
LBB0_19:
	bl	_symt_get_best_at
	ldr	x8, [x19, #8]
	ldr	x0, [x8, w0, sxtw #3]
LBB0_20:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
