	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function BounceBall
LCPI0_0:
	.long	0xbf400000                      ## float -0.75
LCPI0_1:
	.long	0xbf000000                      ## float -0.5
LCPI0_2:
	.long	0x3f400000                      ## float 0.75
LCPI0_3:
	.long	0x3f000000                      ## float 0.5
LCPI0_5:
	.long	0x41200000                      ## float 10
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_4:
	.quad	0x3feb333333333333              ## double 0.84999999999999998
LCPI0_6:
	.long	0x40800000                      ## float 4
	.long	0xc0800000                      ## float -4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_BounceBall
	.p2align	4, 0x90
_BounceBall:                            ## @BounceBall
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_override_pos@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_11
## %bb.1:
	movsd	%xmm0, -40(%rbp)                ## 8-byte Spill
	movq	_ball_x@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	movq	_BOUNCE_WIDTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	_WALL_R_OFFSET@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	cmpl	%edx, %eax
	jle	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_0(%rip), %xmm0
	movq	_RAND_MAX@GOTPCREL(%rip), %rax
	cvtsi2ssq	(%rax), %xmm1
	divss	%xmm1, %xmm0
	addss	LCPI0_1(%rip), %xmm0
	movq	_ball_x_inc@GOTPCREL(%rip), %rax
	movss	%xmm0, (%rax)
	movq	_deg_rot_y_inc@GOTPCREL(%rip), %rax
	negl	(%rax)
	movl	(%r14), %eax
LBB0_3:
	movq	_BOUNCE_HEIGHT@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	_WALL_L_OFFSET@GOTPCREL(%rip), %rsi
	addl	(%rsi), %edx
	negl	%edx
	cmpl	%edx, %eax
	jge	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	callq	_rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	mulss	LCPI0_2(%rip), %xmm0
	movq	_RAND_MAX@GOTPCREL(%rip), %rax
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%rax), %xmm1
	divss	%xmm1, %xmm0
	addss	LCPI0_3(%rip), %xmm0
	movq	_ball_x_inc@GOTPCREL(%rip), %rax
	movss	%xmm0, (%rax)
	movq	_deg_rot_y_inc@GOTPCREL(%rip), %rax
	negl	(%rax)
	movl	(%r15), %ecx
LBB0_5:
	movq	_ball_y@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	cmpl	%edx, %eax
	jle	LBB0_7
## %bb.6:
	xorl	%eax, %eax
	callq	_rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movq	_RAND_MAX@GOTPCREL(%rip), %rax
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%rax), %xmm1
	divss	%xmm1, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	movq	_ball_y_inc@GOTPCREL(%rip), %rax
	movss	%xmm1, (%rax)
	movl	(%r12), %eax
	movl	(%r15), %ecx
LBB0_7:
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	negl	%edx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%edx, %xmm1
	mulsd	LCPI0_4(%rip), %xmm1
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_8
## %bb.9:
	xorl	%eax, %eax
	callq	_rand
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	movq	_RAND_MAX@GOTPCREL(%rip), %rax
	xorps	%xmm1, %xmm1
	cvtsi2ssq	(%rax), %xmm1
	divss	%xmm1, %xmm0
	addss	LCPI0_2(%rip), %xmm0
	movq	_ball_y_inc@GOTPCREL(%rip), %rax
	movss	%xmm0, (%rax)
	movl	(%r12), %eax
	movl	(%r15), %ecx
	jmp	LBB0_10
LBB0_8:
	movq	_ball_y_inc@GOTPCREL(%rip), %rdx
	movss	(%rdx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
LBB0_10:
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	cvtsd2ss	%xmm1, %xmm1
	movq	_ball_x_inc@GOTPCREL(%rip), %rdx
	movq	_ANIMATION_SPEED@GOTPCREL(%rip), %rsi
	mulss	(%rsi), %xmm1
	cvtsi2ssl	(%r14), %xmm2
	movss	(%rdx), %xmm3                   ## xmm3 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm3
	addss	%xmm2, %xmm3
	cvttss2si	%xmm3, %edx
	xorps	%xmm2, %xmm2
	cvtsi2ss	%eax, %xmm2
	movl	%edx, (%r14)
	xorps	%xmm3, %xmm3
	xorl	%ebx, %ebx
	ucomiss	%xmm0, %xmm3
	seta	%bl
	mulss	%xmm0, %xmm1
	addss	%xmm2, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%r12)
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%eax, %edx
	imull	$90, %edx, %eax
	cltd
	idivl	%ecx
	cmpl	$80, %eax
	movl	$80, %ecx
	cmovll	%eax, %ecx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%ecx, %xmm1
	movss	LCPI0_5(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	maxss	%xmm1, %xmm0
	callq	_sin_deg
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rax, %xmm0
	leaq	LCPI0_6(%rip), %rax
	mulss	(%rax,%rbx,4), %xmm0
	movq	_ball_y_inc@GOTPCREL(%rip), %rax
	movss	%xmm0, (%rax)
LBB0_11:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_override_pos,8,3               ## @override_pos
	.comm	_ball_x,4,2                     ## @ball_x
	.comm	_BOUNCE_WIDTH,4,2               ## @BOUNCE_WIDTH
	.comm	_WALL_R_OFFSET,4,2              ## @WALL_R_OFFSET
	.comm	_RAND_MAX,8,3                   ## @RAND_MAX
	.comm	_ball_x_inc,4,2                 ## @ball_x_inc
	.comm	_deg_rot_y_inc,4,2              ## @deg_rot_y_inc
	.comm	_BOUNCE_HEIGHT,4,2              ## @BOUNCE_HEIGHT
	.comm	_WALL_L_OFFSET,4,2              ## @WALL_L_OFFSET
	.comm	_ball_y,4,2                     ## @ball_y
	.comm	_ball_y_inc,4,2                 ## @ball_y_inc
	.comm	_ANIMATION_SPEED,4,2            ## @ANIMATION_SPEED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BounceBall                     ; -- Begin function BounceBall
	.p2align	2
_BounceBall:                            ; @BounceBall
	.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	x8, _override_pos@GOTPAGE
Lloh1:
	ldr	x8, [x8, _override_pos@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbnz	x8, LBB0_11
; %bb.1:
	fmov	d8, d0
Lloh3:
	adrp	x19, _ball_x@GOTPAGE
Lloh4:
	ldr	x19, [x19, _ball_x@GOTPAGEOFF]
	ldr	w9, [x19]
Lloh5:
	adrp	x8, _BOUNCE_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BOUNCE_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
Lloh8:
	adrp	x10, _WALL_R_OFFSET@GOTPAGE
Lloh9:
	ldr	x10, [x10, _WALL_R_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
Lloh11:
	adrp	x21, _RAND_MAX@GOTPAGE
Lloh12:
	ldr	x21, [x21, _RAND_MAX@GOTPAGEOFF]
	add	w8, w10, w8, asr #1
Lloh13:
	adrp	x20, _ball_x_inc@GOTPAGE
Lloh14:
	ldr	x20, [x20, _ball_x_inc@GOTPAGEOFF]
Lloh15:
	adrp	x22, _deg_rot_y_inc@GOTPAGE
Lloh16:
	ldr	x22, [x22, _deg_rot_y_inc@GOTPAGEOFF]
	cmp	w9, w8
	b.le	LBB0_3
; %bb.2:
	bl	_rand
	scvtf	s0, x0
	fmov	s1, #-0.75000000
	fmul	s0, s0, s1
	ldr	x8, [x21]
	scvtf	s1, x8
	fdiv	s0, s0, s1
	fmov	s1, #-0.50000000
	fadd	s0, s0, s1
	str	s0, [x20]
	ldr	w8, [x22]
	neg	w8, w8
	str	w8, [x22]
	ldr	w9, [x19]
LBB0_3:
Lloh17:
	adrp	x23, _BOUNCE_HEIGHT@GOTPAGE
Lloh18:
	ldr	x23, [x23, _BOUNCE_HEIGHT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #0
	cinc	w10, w8, lt
Lloh19:
	adrp	x11, _WALL_L_OFFSET@GOTPAGE
Lloh20:
	ldr	x11, [x11, _WALL_L_OFFSET@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	add	w10, w11, w10, asr #1
	neg	w10, w10
	cmp	w9, w10
	b.ge	LBB0_5
; %bb.4:
	bl	_rand
	scvtf	s0, x0
	fmov	s1, #0.75000000
	fmul	s0, s0, s1
	ldr	x8, [x21]
	scvtf	s1, x8
	fdiv	s0, s0, s1
	fmov	s1, #0.50000000
	fadd	s0, s0, s1
	str	s0, [x20]
	ldr	w8, [x22]
	neg	w8, w8
	str	w8, [x22]
	ldr	w8, [x23]
LBB0_5:
Lloh22:
	adrp	x24, _ball_y@GOTPAGE
Lloh23:
	ldr	x24, [x24, _ball_y@GOTPAGEOFF]
	ldr	w9, [x24]
	cmp	w8, #0
	cinc	w10, w8, lt
	cmp	w9, w10, asr #1
Lloh24:
	adrp	x22, _ball_y_inc@GOTPAGE
Lloh25:
	ldr	x22, [x22, _ball_y_inc@GOTPAGEOFF]
	b.le	LBB0_7
; %bb.6:
	bl	_rand
	scvtf	s0, x0
	ldr	x8, [x21]
	scvtf	s1, x8
	fdiv	s0, s0, s1
	fmov	s1, #-0.75000000
	fsub	s0, s1, s0
	str	s0, [x22]
	ldr	w9, [x24]
	ldr	w8, [x23]
LBB0_7:
	scvtf	d0, w9
	cmp	w8, #0
	cinc	w10, w8, lt
	neg	w10, w10, asr #1
	scvtf	d1, w10
	mov	x10, #3689348814741910323
	movk	x10, #16363, lsl #48
	fmov	d2, x10
	fmul	d1, d1, d2
	fcmp	d1, d0
	b.le	LBB0_9
; %bb.8:
	bl	_rand
	scvtf	s0, x0
	ldr	x8, [x21]
	scvtf	s1, x8
	fdiv	s0, s0, s1
	fmov	s1, #0.75000000
	fadd	s0, s0, s1
	str	s0, [x22]
	ldr	w9, [x24]
	ldr	w8, [x23]
	b	LBB0_10
LBB0_9:
	ldr	s0, [x22]
LBB0_10:
	ldr	s1, [x20]
	fcvt	s2, d8
Lloh26:
	adrp	x10, _ANIMATION_SPEED@GOTPAGE
Lloh27:
	ldr	x10, [x10, _ANIMATION_SPEED@GOTPAGEOFF]
Lloh28:
	ldr	s3, [x10]
	fmul	s2, s3, s2
	ldr	s3, [x19]
	scvtf	s3, s3
	fmadd	s1, s1, s2, s3
	fcvtzs	w10, s1
	str	w10, [x19]
	scvtf	s1, w9
	fmadd	s1, s0, s2, s1
	fcvtzs	w9, s1
	str	w9, [x24]
	fcmp	s0, #0.0
	fmov	s0, #4.00000000
	fmov	s1, #-4.00000000
	fcsel	s8, s1, s0, mi
	cmp	w8, #0
	cinc	w10, w8, lt
	add	w9, w9, w10, asr #1
	mov	w10, #90
	mul	w9, w9, w10
	sdiv	w8, w9, w8
	mov	w9, #80
	cmp	w8, #80
	csel	w8, w8, w9, lt
	scvtf	s0, w8
	fmov	s1, #10.00000000
	fmax	s0, s0, s1
	bl	_sin_deg
	scvtf	s0, x0
	fmul	s0, s8, s0
	str	s0, [x22]
LBB0_11:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_override_pos,8,3               ; @override_pos
	.comm	_ball_x,4,2                     ; @ball_x
	.comm	_BOUNCE_WIDTH,4,2               ; @BOUNCE_WIDTH
	.comm	_WALL_R_OFFSET,4,2              ; @WALL_R_OFFSET
	.comm	_RAND_MAX,8,3                   ; @RAND_MAX
	.comm	_ball_x_inc,4,2                 ; @ball_x_inc
	.comm	_deg_rot_y_inc,4,2              ; @deg_rot_y_inc
	.comm	_BOUNCE_HEIGHT,4,2              ; @BOUNCE_HEIGHT
	.comm	_WALL_L_OFFSET,4,2              ; @WALL_L_OFFSET
	.comm	_ball_y,4,2                     ; @ball_y
	.comm	_ball_y_inc,4,2                 ; @ball_y_inc
	.comm	_ANIMATION_SPEED,4,2            ; @ANIMATION_SPEED
.subsections_via_symbols
