	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_FinishMove                  ## -- Begin function CL_FinishMove
	.p2align	4, 0x90
_CL_FinishMove:                         ## @CL_FinishMove
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r13
	xorl	%eax, %eax
	callq	_dmlab_context
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	*32(%rbx)
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_frame_msec@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_2:
	movq	_cl@GOTPCREL(%rip), %r14
	movl	12(%r14), %eax
	movl	%eax, 28(%r12)
	movl	8(%r14), %eax
	movl	%eax, 24(%r12)
	movl	(%rbx), %edi
	callq	*8(%rbx)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	24(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	_PITCH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	(%r13,%rcx,8), %rsi
	callq	_AngleDelta
	cltd
	idivl	%r15d
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	(%r14), %rax
	movq	_YAW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	(%r13,%rcx,8), %rsi
	callq	_AngleDelta
	cltd
	idivl	%r15d
	movl	20(%r12), %ecx
	movl	16(%r12), %r8d
	movl	8(%r12), %edx
	movl	12(%r12), %r9d
	movl	%edx, (%rsp)
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%eax, %edx
	callq	*-48(%rbp)                      ## 8-byte Folded Reload
LBB0_4:
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	xorl	%eax, %eax
	callq	*40(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	xorpd	%xmm0, %xmm0
	movupd	%xmm0, 8(%r12)
	xorpd	%xmm0, %xmm0
	jmp	LBB0_7
LBB0_5:
	movl	(%rbx), %edi
	leaq	20(%r12), %rcx
	leaq	16(%r12), %r8
	leaq	12(%r12), %r9
	leaq	8(%r12), %rax
	movq	%rax, (%rsp)
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	callq	*16(%rbx)
	movsd	-72(%rbp), %xmm0                ## xmm0 = mem[0],zero
LBB0_7:
	movq	(%r14), %rax
	movq	_ROLL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_PITCH@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	cvtsi2sdq	(%r13,%rax,8), %xmm1
	cvtsi2sd	%r15d, %xmm2
	movsd	%xmm2, -48(%rbp)                ## 8-byte Spill
	mulsd	%xmm2, %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rdi
	callq	_AngleNormalize360
	movq	(%r14), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	_YAW@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%r13,%rax,8), %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	-64(%rbp), %xmm1
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %rdi
	callq	_AngleNormalize360
	movq	(%r14), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	(%r14), %rax
	movq	(%rax), %rdi
	callq	_ANGLE2SHORT
	movq	(%r12), %rcx
	movl	%eax, (%rcx)
	movq	(%r14), %rax
	movq	8(%rax), %rdi
	callq	_ANGLE2SHORT
	movq	(%r12), %rcx
	movl	%eax, 4(%rcx)
	movq	(%r14), %rax
	movq	16(%rax), %rdi
	callq	_ANGLE2SHORT
	movq	(%r12), %rcx
	movl	%eax, 8(%rcx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_frame_msec,4,2                 ## @frame_msec
	.comm	_cl,16,3                        ## @cl
	.comm	_PITCH,8,3                      ## @PITCH
	.comm	_YAW,8,3                        ## @YAW
	.comm	_ROLL,8,3                       ## @ROLL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_FinishMove                  ; -- Begin function CL_FinishMove
	.p2align	2
_CL_FinishMove:                         ; @CL_FinishMove
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x19, x1
	mov	x20, x0
	bl	_dmlab_context
	mov	x21, x0
	ldr	x8, [x0, #32]
	blr	x8
Lloh0:
	adrp	x8, _frame_msec@GOTPAGE
Lloh1:
	ldr	x8, [x8, _frame_msec@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w26, w8, w0, eq
Lloh3:
	adrp	x24, _cl@GOTPAGE
Lloh4:
	ldr	x24, [x24, _cl@GOTPAGEOFF]
	ldr	d0, [x24, #8]
	str	d0, [x19, #24]
	ldr	x8, [x21, #8]
	ldr	w0, [x21]
	blr	x8
Lloh5:
	adrp	x27, _PITCH@GOTPAGE
Lloh6:
	ldr	x27, [x27, _PITCH@GOTPAGEOFF]
Lloh7:
	adrp	x25, _YAW@GOTPAGE
Lloh8:
	ldr	x25, [x25, _YAW@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x28, [x21, #24]
	ldr	w22, [x21]
	ldr	x8, [x24]
	ldr	x9, [x27]
	lsl	x9, x9, #3
	ldr	x0, [x8, x9]
	ldr	x1, [x20, x9]
	bl	_AngleDelta
	ldr	x8, [x24]
	ldr	x9, [x25]
	lsl	x9, x9, #3
	ldr	x8, [x8, x9]
	ldr	x1, [x20, x9]
	sdiv	w23, w0, w26
	mov	x0, x8
	bl	_AngleDelta
	ldp	w4, w3, [x19, #16]
	ldp	w6, w5, [x19, #8]
	sdiv	w2, w0, w26
	mov	x0, x22
	mov	x1, x23
	blr	x28
LBB0_2:
	stp	xzr, xzr, [sp]
	ldr	x8, [x21, #40]
	blr	x8
	cbz	w0, LBB0_4
; %bb.3:
	stp	xzr, xzr, [x19, #8]
	movi	d0, #0000000000000000
	b	LBB0_5
LBB0_4:
	ldr	x8, [x21, #16]
	ldr	w0, [x21]
	add	x3, x19, #20
	add	x4, x19, #16
	add	x5, x19, #12
	add	x6, x19, #8
	add	x1, sp, #8
	mov	x2, sp
	blr	x8
	ldr	d0, [sp, #8]
LBB0_5:
	ldr	x8, [x24]
Lloh9:
	adrp	x9, _ROLL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ROLL@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	str	xzr, [x8, x9, lsl #3]
	ldr	x8, [x27]
	ldr	d1, [x20, x8, lsl #3]
	scvtf	d1, d1
	scvtf	d8, w26
	fmadd	d0, d0, d8, d1
	fcvtzs	x0, d0
	bl	_AngleNormalize360
	ldr	x8, [x24]
	ldr	x9, [x27]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x25]
	ldr	d0, [x20, x8, lsl #3]
	scvtf	d0, d0
	ldr	d1, [sp]
	fmadd	d0, d1, d8, d0
	fcvtzs	x0, d0
	bl	_AngleNormalize360
	ldr	x8, [x24]
	ldr	x9, [x25]
	str	x0, [x8, x9, lsl #3]
	ldr	x8, [x24]
	ldr	x0, [x8]
	bl	_ANGLE2SHORT
	ldr	x8, [x19]
	str	w0, [x8]
	ldr	x8, [x24]
	ldr	x0, [x8, #8]
	bl	_ANGLE2SHORT
	ldr	x8, [x19]
	str	w0, [x8, #4]
	ldr	x8, [x24]
	ldr	x0, [x8, #16]
	bl	_ANGLE2SHORT
	ldr	x8, [x19]
	str	w0, [x8, #8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_frame_msec,4,2                 ; @frame_msec
	.comm	_cl,16,3                        ; @cl
	.comm	_PITCH,8,3                      ; @PITCH
	.comm	_YAW,8,3                        ; @YAW
	.comm	_ROLL,8,3                       ; @ROLL
.subsections_via_symbols
