	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function UI_MachinegunSpinAngle
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_UI_MachinegunSpinAngle
	.p2align	4, 0x90
_UI_MachinegunSpinAngle:                ## @UI_MachinegunSpinAngle
	.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	%rdi, %r14
	movq	_dp_realtime@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rdi), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	movq	_SPIN_SPEED@GOTPCREL(%rip), %rsi
	imull	(%rsi), %edx
	addl	12(%r14), %edx
	cvtsi2ss	%edx, %xmm0
	jmp	LBB0_3
LBB0_2:
	movq	_COAST_TIME@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	cmpl	%edx, %esi
	cmovll	%esi, %edx
	movq	_SPIN_SPEED@GOTPCREL(%rip), %rdi
	cvtsi2ssl	(%rdi), %xmm0
	cvtsi2ss	%esi, %xmm1
	subl	%edx, %esi
	cvtsi2ss	%esi, %xmm2
	divss	%xmm1, %xmm2
	xorps	%xmm1, %xmm1
	cvtsi2ssl	12(%r14), %xmm1
	addss	%xmm0, %xmm2
	xorps	%xmm0, %xmm0
	cvtsi2ss	%edx, %xmm0
	mulss	LCPI0_0(%rip), %xmm2
	mulss	%xmm2, %xmm0
	addss	%xmm1, %xmm0
LBB0_3:
	movq	_ANIM_TOGGLEBIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	notl	%ebx
	andl	16(%r14), %ebx
	movq	_TORSO_ATTACK2@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ebx
	movq	_TORSO_ATTACK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	cmovel	%edx, %ebx
	xorl	%esi, %esi
	cmpl	%edx, %ebx
	setne	%sil
	cmpl	%esi, %ecx
	jne	LBB0_5
## %bb.4:
	movq	%rax, (%r14)
	movss	%xmm0, -28(%rbp)                ## 4-byte Spill
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	callq	_AngleMod
	movss	-28(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movl	%eax, 12(%r14)
	xorl	%eax, %eax
	cmpl	(%r15), %ebx
	sete	%al
	movl	%eax, 8(%r14)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dp_realtime,8,3                ## @dp_realtime
	.comm	_SPIN_SPEED,4,2                 ## @SPIN_SPEED
	.comm	_COAST_TIME,4,2                 ## @COAST_TIME
	.comm	_ANIM_TOGGLEBIT,4,2             ## @ANIM_TOGGLEBIT
	.comm	_TORSO_ATTACK2,4,2              ## @TORSO_ATTACK2
	.comm	_TORSO_ATTACK,4,2               ## @TORSO_ATTACK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_MachinegunSpinAngle         ; -- Begin function UI_MachinegunSpinAngle
	.p2align	2
_UI_MachinegunSpinAngle:                ; @UI_MachinegunSpinAngle
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-64]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _dp_realtime@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dp_realtime@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w9, [x0]
	sub	w10, w8, w9
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_2
; %bb.1:
	ldr	w11, [x19, #12]
Lloh3:
	adrp	x12, _SPIN_SPEED@GOTPAGE
Lloh4:
	ldr	x12, [x12, _SPIN_SPEED@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
	madd	w10, w12, w10, w11
	scvtf	s8, w10
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x11, _COAST_TIME@GOTPAGE
Lloh7:
	ldr	x11, [x11, _COAST_TIME@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	cmp	w11, w10
	csel	w10, w11, w10, lt
Lloh9:
	adrp	x12, _SPIN_SPEED@GOTPAGE
Lloh10:
	ldr	x12, [x12, _SPIN_SPEED@GOTPAGEOFF]
Lloh11:
	ldr	s0, [x12]
	sub	w12, w11, w10
	scvtf	s1, w12
	scvtf	s0, s0
	scvtf	s2, w11
	fdiv	s1, s1, s2
	fadd	s0, s1, s0
	fmov	s1, #0.50000000
	fmul	s0, s0, s1
	ldr	s1, [x19, #12]
	scvtf	s1, s1
	scvtf	s2, w10
	fmadd	s8, s2, s0, s1
LBB0_3:
	ldr	w10, [x19, #16]
Lloh12:
	adrp	x11, _ANIM_TOGGLEBIT@GOTPAGE
Lloh13:
	ldr	x11, [x11, _ANIM_TOGGLEBIT@GOTPAGEOFF]
Lloh14:
	ldr	w11, [x11]
	bic	w10, w10, w11
Lloh15:
	adrp	x11, _TORSO_ATTACK2@GOTPAGE
Lloh16:
	ldr	x11, [x11, _TORSO_ATTACK2@GOTPAGEOFF]
Lloh17:
	ldr	w11, [x11]
Lloh18:
	adrp	x20, _TORSO_ATTACK@GOTPAGE
Lloh19:
	ldr	x20, [x20, _TORSO_ATTACK@GOTPAGEOFF]
	ldr	w12, [x20]
	cmp	w10, w11
	csel	w21, w12, w10, eq
	cmp	w21, w12
	cset	w10, ne
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.4:
	str	x8, [x19]
	fmov	s0, s8
	bl	_AngleMod
	ldr	w8, [x20]
	cmp	w21, w8
	cset	w8, eq
	stp	w8, w0, [x19, #8]
LBB0_5:
	fmov	s0, s8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #64               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_dp_realtime,8,3                ; @dp_realtime
	.comm	_SPIN_SPEED,4,2                 ; @SPIN_SPEED
	.comm	_COAST_TIME,4,2                 ; @COAST_TIME
	.comm	_ANIM_TOGGLEBIT,4,2             ; @ANIM_TOGGLEBIT
	.comm	_TORSO_ATTACK2,4,2              ; @TORSO_ATTACK2
	.comm	_TORSO_ATTACK,4,2               ; @TORSO_ATTACK
.subsections_via_symbols
