	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function UI_SwingAngles
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
LCPI0_1:
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.long	0x7fffffff                      ## float NaN
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_3:
	.long	0x40000000                      ## float 2
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2
LCPI0_4:
	.long	0x3f000000                      ## float 0.5
LCPI0_5:
	.long	0xbf800000                      ## float -1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_UI_SwingAngles:                        ## @UI_SwingAngles
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movaps	%xmm3, -48(%rbp)                ## 16-byte Spill
	movaps	%xmm1, %xmm4
	movaps	%xmm0, %xmm3
	cmpq	$0, (%rsi)
	movaps	%xmm0, -32(%rbp)                ## 16-byte Spill
	movaps	%xmm2, -80(%rbp)                ## 16-byte Spill
	movaps	%xmm1, -64(%rbp)                ## 16-byte Spill
	jne	LBB0_6
## %bb.1:
	movss	(%rbx), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm1
	callq	_AngleSubtract
	movaps	-64(%rbp), %xmm4                ## 16-byte Reload
	ucomiss	%xmm4, %xmm0
	ja	LBB0_3
## %bb.2:
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm4, %xmm1
	ucomiss	%xmm0, %xmm1
	ja	LBB0_3
## %bb.4:
	movq	(%r14), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_qtrue@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
LBB0_5:
	movaps	-32(%rbp), %xmm3                ## 16-byte Reload
	testq	%rax, %rax
	je	LBB0_24
LBB0_6:
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm3, %xmm0
	callq	_AngleSubtract
	movaps	LCPI0_1(%rip), %xmm1            ## xmm1 = [NaN,NaN,NaN,NaN]
	andps	%xmm0, %xmm1
	xorl	%eax, %eax
	movaps	-64(%rbp), %xmm2                ## 16-byte Reload
	ucomiss	%xmm1, %xmm2
	seta	%cl
	cvtss2sd	%xmm1, %xmm1
	cvtss2sd	%xmm2, %xmm2
	mulsd	LCPI0_2(%rip), %xmm2
	ucomisd	%xmm1, %xmm2
	ja	LBB0_7
## %bb.8:
	movb	%cl, %al
	leaq	LCPI0_3(%rip), %rcx
	movss	(%rcx,%rax,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	jmp	LBB0_9
LBB0_7:
	movss	LCPI0_4(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
LBB0_9:
	xorpd	%xmm2, %xmm2
	ucomiss	%xmm2, %xmm0
	jae	LBB0_10
## %bb.13:
	ucomiss	%xmm0, %xmm2
	jbe	LBB0_14
## %bb.15:
	movq	_uiInfo@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm1
	movaps	-48(%rbp), %xmm2                ## 16-byte Reload
	xorps	LCPI0_0(%rip), %xmm2
	mulss	%xmm1, %xmm2
	ucomiss	%xmm2, %xmm0
	jb	LBB0_17
## %bb.16:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movaps	%xmm0, %xmm2
LBB0_17:
	addss	(%rbx), %xmm2
	movaps	%xmm2, %xmm0
	jmp	LBB0_18
LBB0_10:
	movq	_uiInfo@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm1
	mulss	-48(%rbp), %xmm1                ## 16-byte Folded Reload
	ucomiss	%xmm0, %xmm1
	jb	LBB0_12
## %bb.11:
	movq	_qfalse@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movaps	%xmm0, %xmm1
LBB0_12:
	addss	(%rbx), %xmm1
	movaps	%xmm1, %xmm0
LBB0_18:
	callq	_AngleMod
	movaps	%xmm0, %xmm1
	movss	%xmm0, (%rbx)
	jmp	LBB0_19
LBB0_14:
	movss	(%rbx), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
LBB0_19:
	movaps	-32(%rbp), %xmm0                ## 16-byte Reload
	callq	_AngleSubtract
	movaps	-80(%rbp), %xmm2                ## 16-byte Reload
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_21
## %bb.20:
	addss	LCPI0_5(%rip), %xmm2
	movaps	-32(%rbp), %xmm0                ## 16-byte Reload
	subss	%xmm2, %xmm0
	jmp	LBB0_23
LBB0_21:
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [-0.0E+0,-0.0E+0,-0.0E+0,-0.0E+0]
	xorps	%xmm2, %xmm1
	ucomiss	%xmm0, %xmm1
	movaps	-32(%rbp), %xmm0                ## 16-byte Reload
	jbe	LBB0_24
## %bb.22:
	addss	LCPI0_5(%rip), %xmm2
	addss	%xmm2, %xmm0
LBB0_23:
	callq	_AngleMod
	movss	%xmm0, (%rbx)
LBB0_24:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_qtrue,8,3                      ## @qtrue
	.comm	_uiInfo,4,2                     ## @uiInfo
	.comm	_qfalse,8,3                     ## @qfalse
	.no_dead_strip	_UI_SwingAngles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UI_SwingAngles
_UI_SwingAngles:                        ; @UI_SwingAngles
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	d9, d8, [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 b8, -40
	.cfi_offset b9, -48
	.cfi_offset b10, -56
	.cfi_offset b11, -64
	mov	x20, x1
	mov	x19, x0
	fmov	s10, s3
	fmov	s9, s2
	fmov	s11, s1
	fmov	s8, s0
	ldr	x8, [x1]
	cbnz	x8, LBB0_4
; %bb.1:
	ldr	s0, [x19]
	fmov	s1, s8
	bl	_AngleSubtract
	fneg	s1, s11
	fcmp	s0, s11
	fccmp	s0, s1, #8, le
	b.pl	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _qtrue@GOTPAGE
Lloh1:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20]
	cbnz	x8, LBB0_4
	b	LBB0_16
LBB0_3:
	ldr	x8, [x20]
	cbz	x8, LBB0_16
LBB0_4:
	ldr	s1, [x19]
	fmov	s0, s8
	bl	_AngleSubtract
	fabs	s1, s0
	fcvt	d2, s1
	fcvt	d3, s11
	fmov	d4, #0.50000000
	fmul	d3, d3, d4
	fcmp	s1, s11
	fmov	s1, #2.00000000
	fmov	s4, #1.00000000
	fcsel	s1, s4, s1, mi
	fcmp	d3, d2
	fmov	s2, #0.50000000
	fcsel	s1, s2, s1, gt
	fcmp	s0, #0.0
	b.ge	LBB0_7
; %bb.5:
	b.pl	LBB0_10
; %bb.6:
Lloh3:
	adrp	x8, _uiInfo@GOTPAGE
Lloh4:
	ldr	x8, [x8, _uiInfo@GOTPAGEOFF]
Lloh5:
	ldr	s2, [x8]
	fmul	s1, s1, s2
	fneg	s2, s10
	fmul	s1, s1, s2
	fcmp	s1, s0
	b.ls	LBB0_8
	b	LBB0_9
LBB0_7:
Lloh6:
	adrp	x8, _uiInfo@GOTPAGE
Lloh7:
	ldr	x8, [x8, _uiInfo@GOTPAGEOFF]
Lloh8:
	ldr	s2, [x8]
	fmul	s1, s1, s2
	fmul	s1, s1, s10
	fcmp	s1, s0
	b.lt	LBB0_9
LBB0_8:
Lloh9:
	adrp	x8, _qfalse@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	str	x8, [x20]
	fmov	s1, s0
LBB0_9:
	ldr	s0, [x19]
	fadd	s0, s1, s0
	bl	_AngleMod
	fmov	s1, s0
	str	s0, [x19]
	b	LBB0_11
LBB0_10:
	ldr	s1, [x19]
LBB0_11:
	fmov	s0, s8
	bl	_AngleSubtract
	fcmp	s0, s9
	b.le	LBB0_13
; %bb.12:
	fmov	s0, #-1.00000000
	fadd	s0, s9, s0
	fsub	s0, s8, s0
	b	LBB0_15
LBB0_13:
	fneg	s1, s9
	fcmp	s0, s1
	b.pl	LBB0_16
; %bb.14:
	fmov	s0, #-1.00000000
	fadd	s0, s9, s0
	fadd	s0, s0, s8
LBB0_15:
	bl	_AngleMod
	str	s0, [x19]
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_qtrue,8,3                      ; @qtrue
	.comm	_uiInfo,4,2                     ; @uiInfo
	.comm	_qfalse,8,3                     ; @qfalse
	.no_dead_strip	_UI_SwingAngles
.subsections_via_symbols
