	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function BG_EvaluateTrajectory
LCPI0_0:
	.quad	0x3f50624dd2f1a9fc              ## double 0.001
LCPI0_1:
	.quad	0xbfe0000000000000              ## double -0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BG_EvaluateTrajectory
	.p2align	4, 0x90
_BG_EvaluateTrajectory:                 ## @BG_EvaluateTrajectory
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	(%rdi), %edx
	leal	-128(%rdx), %eax
	cmpl	$5, %eax
	ja	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	16(%rbx), %edi
	movq	%r14, %rsi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_VectorCopy                     ## TAILCALL
LBB0_9:
	movq	_ERR_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_Com_Error                      ## TAILCALL
LBB0_6:
	subl	4(%rbx), %esi
	cvtsi2ss	%esi, %xmm0
	cvtsi2ssl	8(%rbx), %xmm1
	divss	%xmm1, %xmm0
	movq	_M_PI@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	addss	%xmm0, %xmm0
	callq	_sin
	jmp	LBB0_4
LBB0_7:
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	addl	%eax, %ecx
	cmpl	%esi, %ecx
	cmovgel	%esi, %ecx
	subl	%eax, %ecx
	cvtsi2sd	%ecx, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm1
	movl	12(%rbx), %esi
	xorps	%xmm0, %xmm0
	maxss	%xmm1, %xmm0
	jmp	LBB0_5
LBB0_8:
	subl	4(%rbx), %esi
	cvtsi2sd	%esi, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -20(%rbp)                ## 4-byte Spill
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	%r14, %rdx
	callq	_VectorMA
	movq	_DEFAULT_GRAVITY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movss	-20(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	cvtss2sd	%xmm1, %xmm1
	mulsd	LCPI0_1(%rip), %xmm0
	mulsd	%xmm1, %xmm0
	mulsd	%xmm1, %xmm0
	addsd	16(%r14), %xmm0
	movsd	%xmm0, 16(%r14)
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	subl	4(%rbx), %esi
	cvtsi2sd	%esi, %xmm0
	mulsd	LCPI0_0(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
LBB0_4:
	movl	12(%rbx), %esi
LBB0_5:
	movl	16(%rbx), %edi
	movq	%r14, %rdx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_VectorMA                       ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_M_PI,4,2                       ## @M_PI
	.comm	_DEFAULT_GRAVITY,8,3            ## @DEFAULT_GRAVITY
	.comm	_ERR_DROP,4,2                   ## @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BG_EvaluateTrajectory: unknown trType: %i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BG_EvaluateTrajectory          ; -- Begin function BG_EvaluateTrajectory
	.p2align	2
_BG_EvaluateTrajectory:                 ; @BG_EvaluateTrajectory
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-48]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset b8, -40
	.cfi_offset b9, -48
	mov	x19, x2
	ldr	w2, [x0]
	sub	w8, w2, #128
	cmp	w8, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w0, [x20, #16]
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_VectorCopy
LBB0_3:
Lloh2:
	adrp	x8, _ERR_DROP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ERR_DROP@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_Com_Error
LBB0_4:
	ldr	w8, [x20, #4]
	sub	w8, w1, w8
	scvtf	s0, w8
	ldr	s1, [x20, #8]
	scvtf	s1, s1
	fdiv	s0, s0, s1
Lloh7:
	adrp	x8, _M_PI@GOTPAGE
Lloh8:
	ldr	x8, [x8, _M_PI@GOTPAGEOFF]
Lloh9:
	ldr	s1, [x8]
	fmul	s0, s1, s0
	fadd	s0, s0, s0
	bl	_sin
	b	LBB0_8
LBB0_5:
	ldp	w8, w9, [x20, #4]
	add	w9, w9, w8
	cmp	w9, w1
	csel	w9, w9, w1, lt
	sub	w8, w9, w8
	scvtf	d0, w8
	mov	x8, #43516
	movk	x8, #54001, lsl #16
	movk	x8, #25165, lsl #32
	movk	x8, #16208, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvt	s0, d0
	movi	d1, #0000000000000000
	fmax	s0, s0, s1
	b	LBB0_8
LBB0_6:
	ldr	w8, [x20, #4]
	sub	w8, w1, w8
	scvtf	d0, w8
	mov	x8, #43516
	movk	x8, #54001, lsl #16
	movk	x8, #25165, lsl #32
	movk	x8, #16208, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvt	s8, d0
	ldp	w1, w0, [x20, #12]
	fmov	s0, s8
	mov	x2, x19
	bl	_VectorMA
Lloh10:
	adrp	x8, _DEFAULT_GRAVITY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DEFAULT_GRAVITY@GOTPAGEOFF]
Lloh12:
	ldr	d0, [x8]
	fcvt	d1, s8
	ldr	d2, [x19, #16]
	fmov	d3, #-0.50000000
	fmul	d0, d0, d3
	fmul	d0, d0, d1
	fmadd	d0, d0, d1, d2
	str	d0, [x19, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w8, [x20, #4]
	sub	w8, w1, w8
	scvtf	d0, w8
	mov	x8, #43516
	movk	x8, #54001, lsl #16
	movk	x8, #25165, lsl #32
	movk	x8, #16208, lsl #48
	fmov	d1, x8
	fmul	d0, d0, d1
	fcvt	s0, d0
LBB0_8:
	ldp	w1, w0, [x20, #12]
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #48               ; 16-byte Folded Reload
	b	_VectorMA
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_M_PI,4,2                       ; @M_PI
	.comm	_DEFAULT_GRAVITY,8,3            ; @DEFAULT_GRAVITY
	.comm	_ERR_DROP,4,2                   ; @ERR_DROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BG_EvaluateTrajectory: unknown trType: %i"

.subsections_via_symbols
