	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotFindEntityForLevelItem      ## -- Begin function BotFindEntityForLevelItem
	.p2align	4, 0x90
_BotFindEntityForLevelItem:             ## @BotFindEntityForLevelItem
	.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	_itemconfig@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	je	LBB0_11
## %bb.1:
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_AAS_NextEntity
	testl	%eax, %eax
	je	LBB0_11
## %bb.2:
	movl	%eax, %ebx
	leaq	-56(%rbp), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %edi
	callq	_AAS_NextEntity
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_11
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_AAS_EntityModelindex
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r12d
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_AAS_EntityInfo
	movq	-56(%rbp), %rsi
	movq	-48(%rbp), %rax
	movq	(%rsi), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rsi), %rcx
	cmpq	8(%rax), %rcx
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rsi), %rcx
	cmpq	16(%rax), %rcx
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r13), %rax
	movq	(%r14), %rcx
	cmpl	%r12d, (%rax,%rcx,4)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	12(%r14), %edi
	callq	_VectorSubtract
	callq	_VectorLength
	cmpl	$29, %eax
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, 8(%r14)
	jmp	LBB0_10
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_itemconfig,8,3                 ## @itemconfig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BotFindEntityForLevelItem      ; -- Begin function BotFindEntityForLevelItem
	.p2align	2
_BotFindEntityForLevelItem:             ; @BotFindEntityForLevelItem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _itemconfig@GOTPAGE
Lloh1:
	ldr	x8, [x8, _itemconfig@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	cbz	x22, LBB0_11
; %bb.1:
	mov	x19, x0
	mov	w0, #0
	bl	_AAS_NextEntity
	cbz	w0, LBB0_11
; %bb.2:
	mov	x20, x0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_AAS_NextEntity
	mov	x20, x0
	cbz	w0, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_AAS_EntityModelindex
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x21, x0
	mov	x1, sp
	mov	x0, x20
	bl	_AAS_EntityInfo
	ldp	x1, x8, [sp]
	ldr	x9, [x1]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x1, #8]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x1, #16]
	ldr	x8, [x8, #16]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x19]
	ldr	w8, [x8, x9, lsl #2]
	cmp	w8, w21
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #12]
	bl	_VectorSubtract
	bl	_VectorLength
	cmp	w0, #29
	b.gt	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	str	w20, [x19, #8]
	b	LBB0_3
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_itemconfig,8,3                 ; @itemconfig
.subsections_via_symbols
