	.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_BounceMissile
LCPI0_0:
	.long	0xc0000000                      ## float -2
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_1:
	.quad	0x3fe4cccccccccccd              ## double 0.65000000000000002
LCPI0_2:
	.quad	0x3fc999999999999a              ## double 0.20000000000000001
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_G_BounceMissile
	.p2align	4, 0x90
_G_BounceMissile:                       ## @G_BounceMissile
	.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
	addq	$4, %rdi
	callq	_BG_EvaluateTrajectoryDelta
	movq	8(%r14), %rsi
	callq	_DotProduct
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %esi
	movq	8(%r14), %rdx
	movl	12(%rbx), %ecx
	callq	_VectorMA
	movq	_EF_BOUNCE_HALF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.1:
	movl	12(%rbx), %edi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%edi, %esi
	callq	_VectorScale
	movq	8(%r14), %rax
	movsd	16(%rax), %xmm0                 ## xmm0 = mem[0],zero
	ucomisd	LCPI0_2(%rip), %xmm0
	jbe	LBB0_3
## %bb.2:
	movl	12(%rbx), %edi
	callq	_VectorLength
	cmpl	$39, %eax
	jg	LBB0_3
## %bb.4:
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_G_SetOrigin                    ## TAILCALL
LBB0_3:
	movl	16(%rbx), %edi
	movq	8(%r14), %rsi
	movl	%edi, %edx
	callq	_VectorAdd
	movl	8(%rbx), %esi
	movl	16(%rbx), %edi
	callq	_VectorCopy
	movl	4(%r15), %eax
	movl	%eax, 4(%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_level,8,2                      ## @level
	.comm	_EF_BOUNCE_HALF,4,2             ## @EF_BOUNCE_HALF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_G_BounceMissile                ; -- Begin function G_BounceMissile
	.p2align	2
_G_BounceMissile:                       ; @G_BounceMissile
	.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
	add	x0, x0, #4
	bl	_BG_EvaluateTrajectoryDelta
	ldr	x1, [x20, #8]
	bl	_DotProduct
	fmov	s1, #-2.00000000
	fmul	s0, s0, s1
	fcvtzs	w1, s0
	ldr	x2, [x20, #8]
	ldr	w3, [x19, #12]
	bl	_VectorMA
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _EF_BOUNCE_HALF@GOTPAGE
Lloh3:
	ldr	x9, [x9, _EF_BOUNCE_HALF@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	ldr	w0, [x19, #12]
	mov	x8, #-3689348814741910324
	movk	x8, #52429
	movk	x8, #16356, lsl #48
	fmov	d0, x8
	mov	x1, x0
	bl	_VectorScale
	ldr	x8, [x20, #8]
	ldr	d0, [x8, #16]
	mov	x8, #-7378697629483820647
	movk	x8, #39322
	movk	x8, #16329, lsl #48
	fmov	d1, x8
	fcmp	d0, d1
	b.le	LBB0_4
; %bb.2:
	ldr	w0, [x19, #12]
	bl	_VectorLength
	cmp	w0, #39
	b.gt	LBB0_4
; %bb.3:
	ldr	w1, [x20, #16]
	mov	x0, x19
	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
	b	_G_SetOrigin
LBB0_4:
	ldr	w0, [x19, #16]
	ldr	x1, [x20, #8]
	mov	x2, x0
	bl	_VectorAdd
	ldr	w0, [x19, #16]
	ldr	w1, [x19, #8]
	bl	_VectorCopy
	ldr	w8, [x21, #4]
	str	w8, [x19, #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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_level,8,2                      ; @level
	.comm	_EF_BOUNCE_HALF,4,2             ; @EF_BOUNCE_HALF
.subsections_via_symbols
