	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function SP_func_bobbing
LCPI0_0:
	.long	0x447a0000                      ## float 1000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_SP_func_bobbing
	.p2align	4, 0x90
_SP_func_bobbing:                       ## @SP_func_bobbing
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	callq	_G_SpawnFloat
	leaq	L_.str.2(%rip), %rdi
	leaq	L_.str.3(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_G_SpawnFloat
	leaq	48(%rbx), %rdx
	leaq	L_.str.4(%rip), %rdi
	leaq	L_.str.5(%rip), %rsi
	callq	_G_SpawnInt
	leaq	L_.str.6(%rip), %rdi
	leaq	L_.str.7(%rip), %rsi
	leaq	-16(%rbp), %rdx
	callq	_G_SpawnFloat
	movl	44(%rbx), %esi
	movq	%rbx, %rdi
	callq	_trap_SetBrushModel
	movq	%rbx, %rdi
	callq	_InitMover
	movl	28(%rbx), %esi
	movl	32(%rbx), %edi
	callq	_VectorCopy
	movl	32(%rbx), %edi
	movl	40(%rbx), %esi
	callq	_VectorCopy
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm0
	cvttss2si	%xmm0, %eax
	movl	%eax, 8(%rbx)
	cvttps2dq	%xmm0, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	mulss	-16(%rbp), %xmm0
	movss	%xmm0, 12(%rbx)
	movq	_TR_SINE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	4(%rbx), %eax
	testb	$1, %al
	jne	LBB0_1
## %bb.2:
	movss	-12(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movq	16(%rbx), %rcx
	testb	$2, %al
	jne	LBB0_3
## %bb.4:
	movss	%xmm0, 8(%rcx)
	jmp	LBB0_5
LBB0_1:
	movss	-12(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movq	16(%rbx), %rax
	movss	%xmm0, (%rax)
	jmp	LBB0_5
LBB0_3:
	movss	%xmm0, 4(%rcx)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"speed"

L_.str.1:                               ## @.str.1
	.asciz	"4"

L_.str.2:                               ## @.str.2
	.asciz	"height"

L_.str.3:                               ## @.str.3
	.asciz	"32"

L_.str.4:                               ## @.str.4
	.asciz	"dmg"

L_.str.5:                               ## @.str.5
	.asciz	"2"

L_.str.6:                               ## @.str.6
	.asciz	"phase"

L_.str.7:                               ## @.str.7
	.asciz	"0"

	.comm	_TR_SINE,4,2                    ## @TR_SINE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_func_bobbing                ; -- Begin function SP_func_bobbing
	.p2align	2
_SP_func_bobbing:                       ; @SP_func_bobbing
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	bl	_G_SpawnFloat
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	bl	_G_SpawnFloat
	add	x2, x19, #48
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_G_SpawnInt
Lloh12:
	adrp	x0, l_.str.6@PAGE
Lloh13:
	add	x0, x0, l_.str.6@PAGEOFF
Lloh14:
	adrp	x1, l_.str.7@PAGE
Lloh15:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #8
	bl	_G_SpawnFloat
	ldr	w1, [x19, #44]
	mov	x0, x19
	bl	_trap_SetBrushModel
	mov	x0, x19
	bl	_InitMover
	ldp	w1, w0, [x19, #28]
	bl	_VectorCopy
	ldr	w0, [x19, #32]
	ldr	w1, [x19, #40]
	bl	_VectorCopy
	ldr	s0, [x19]
	mov	w8, #1148846080
	fmov	s1, w8
	fmul	s0, s0, s1
	fcvtzs	w8, s0
	str	w8, [x19, #8]
	fcvtzs	s0, s0
	scvtf	s0, s0
	ldr	s1, [sp, #8]
	fmul	s0, s1, s0
	str	s0, [x19, #12]
Lloh16:
	adrp	x8, _TR_SINE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TR_SINE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w8, [x19, #4]
	tbnz	w8, #0, LBB0_3
; %bb.1:
	ldr	s0, [sp, #12]
	ldr	x9, [x19, #16]
	tbnz	w8, #1, LBB0_4
; %bb.2:
	str	s0, [x9, #8]
	b	LBB0_5
LBB0_3:
	ldr	s0, [sp, #12]
	ldr	x8, [x19, #16]
	str	s0, [x8]
	b	LBB0_5
LBB0_4:
	str	s0, [x9, #4]
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"speed"

l_.str.1:                               ; @.str.1
	.asciz	"4"

l_.str.2:                               ; @.str.2
	.asciz	"height"

l_.str.3:                               ; @.str.3
	.asciz	"32"

l_.str.4:                               ; @.str.4
	.asciz	"dmg"

l_.str.5:                               ; @.str.5
	.asciz	"2"

l_.str.6:                               ; @.str.6
	.asciz	"phase"

l_.str.7:                               ; @.str.7
	.asciz	"0"

	.comm	_TR_SINE,4,2                    ; @TR_SINE
.subsections_via_symbols
