	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function AAS_NearestEntity
LCPI0_0:
	.long	0x47c34f80                      ## float 99999
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_AAS_NearestEntity
	.p2align	4, 0x90
_AAS_NearestEntity:                     ## @AAS_NearestEntity
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_aasworld@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	jle	LBB0_1
## %bb.2:
	movl	%esi, %r12d
	movq	%rdi, %r14
	xorl	%ebx, %ebx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	cmpl	%r12d, (%rax,%rbx,8)
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rax,%rbx,8), %edi
	movq	%r14, %rsi
	callq	_VectorSubtract
	callq	_fabsf
	cmpl	$39, %eax
	jg	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_fabsf
	cmpl	$39, %eax
	jg	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_VectorLength
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r15d
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	jmp	LBB0_8
LBB0_1:
	xorl	%r15d, %r15d
LBB0_9:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_aasworld,16,3                  ## @aasworld
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_AAS_NearestEntity              ; -- Begin function AAS_NearestEntity
	.p2align	2
_AAS_NearestEntity:                     ; @AAS_NearestEntity
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -72
	.cfi_offset b9, -80
Lloh0:
	adrp	x22, _aasworld@GOTPAGE
Lloh1:
	ldr	x22, [x22, _aasworld@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x23, #0
	mov	x24, #0
	mov	w21, #0
	mov	w8, #20352
	movk	w8, #18371, lsl #16
	fmov	s8, w8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #8
	cmp	x24, x8
	b.ge	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	w9, [x8, x23]
	cmp	w9, w19
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x8, x23
	ldr	w0, [x8, #4]
	mov	x1, x20
	bl	_VectorSubtract
	bl	_fabsf
	cmp	w0, #39
	b.gt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_fabsf
	cmp	w0, #39
	b.gt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_VectorLength
	fcmp	s0, s8
	csel	w21, w21, w24, pl
	fcsel	s8, s8, s0, pl
	b	LBB0_2
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x21
	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
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_aasworld,16,3                  ; @aasworld
.subsections_via_symbols
