	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function G_BounceItem
LCPI0_0:
	.long	0xc0000000                      ## float -2
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_G_BounceItem
	.p2align	4, 0x90
_G_BounceItem:                          ## @G_BounceItem
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_level@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movl	4(%r15), %esi
	subl	%eax, %esi
	imull	(%r14), %esi
	addl	%eax, %esi
	callq	_BG_EvaluateTrajectoryDelta
	movq	16(%r14), %rsi
	callq	_DotProduct
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	movq	16(%r14), %rdx
	movq	(%rbx), %rcx
	callq	_VectorMA
	movq	(%rbx), %rdi
	movl	28(%rbx), %esi
	movq	%rdi, %rdx
	callq	_VectorScale
	movq	16(%r14), %rsi
	cmpq	$0, 16(%rsi)
	jle	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	cmpl	$39, 8(%rax)
	jg	LBB0_3
## %bb.2:
	movq	8(%r14), %rdi
	movsd	16(%rdi), %xmm0                 ## xmm0 = mem[0],zero
	addsd	LCPI0_1(%rip), %xmm0
	movsd	%xmm0, 16(%rdi)
	callq	_SnapVector
	movq	8(%r14), %rsi
	movq	%rbx, %rdi
	callq	_G_SetOrigin
	movl	24(%r14), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_4
LBB0_3:
	movl	24(%rbx), %edi
	movl	%edi, %edx
	callq	_VectorAdd
	movl	12(%rbx), %esi
	movl	24(%rbx), %edi
	callq	_VectorCopy
	movl	4(%r15), %eax
	movl	%eax, 8(%rbx)
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,8,2                      ## @level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_BounceItem                   ; -- Begin function G_BounceItem
	.p2align	2
_G_BounceItem:                          ; @G_BounceItem
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [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 w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x21, _level@GOTPAGE
Lloh1:
	ldr	x21, [x21, _level@GOTPAGEOFF]
	ldp	w8, w9, [x21]
	sub	w9, w9, w8
	ldr	w10, [x1]
	madd	w1, w9, w10, w8
	bl	_BG_EvaluateTrajectoryDelta
	ldr	x1, [x20, #16]
	bl	_DotProduct
	fmov	s1, #-2.00000000
	fmul	s0, s0, s1
	fcvtzs	w1, s0
	ldr	x2, [x20, #16]
	ldr	x3, [x19]
	bl	_VectorMA
	ldr	x0, [x19]
	ldr	w1, [x19, #28]
	mov	x2, x0
	bl	_VectorScale
	ldr	x1, [x20, #16]
	ldr	x8, [x1, #16]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19]
	ldr	w8, [x8, #8]
	cmp	w8, #39
	b.gt	LBB0_3
; %bb.2:
	ldr	x0, [x20, #8]
	ldr	d0, [x0, #16]
	fmov	d1, #1.00000000
	fadd	d0, d0, d1
	str	d0, [x0, #16]
	bl	_SnapVector
	ldr	x1, [x20, #8]
	mov	x0, x19
	bl	_G_SetOrigin
	ldr	w8, [x20, #24]
	str	w8, [x19, #16]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #24]
	mov	x2, x0
	bl	_VectorAdd
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #12]
	bl	_VectorCopy
	ldr	w8, [x21, #4]
	str	w8, [x19, #8]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,2                      ; @level
.subsections_via_symbols
