	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function CG_AddPainTwitch
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal8,8byte_literals
	.p2align	2
LCPI0_1:
	.long	0x41a00000                      ## float 20
	.long	0xc1a00000                      ## float -20
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_AddPainTwitch:                      ## @CG_AddPainTwitch
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_cg@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	subl	(%rdi), %eax
	movq	_PAIN_TWITCH_TIME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_2
## %bb.1:
	cvtsi2ss	%eax, %xmm0
	cvtsi2ss	%ecx, %xmm1
	divss	%xmm1, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	subss	%xmm0, %xmm1
	xorl	%eax, %eax
	cmpq	$0, 8(%rdi)
	movq	_ROLL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%rsi,%rcx,4), %xmm0
	sete	%al
	leaq	LCPI0_1(%rip), %rdx
	mulss	(%rdx,%rax,4), %xmm1
	addss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%rsi,%rcx,4)
LBB0_2:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,4,2                         ## @cg
	.comm	_PAIN_TWITCH_TIME,4,2           ## @PAIN_TWITCH_TIME
	.comm	_ROLL,8,3                       ## @ROLL
	.no_dead_strip	_CG_AddPainTwitch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_AddPainTwitch
_CG_AddPainTwitch:                      ; @CG_AddPainTwitch
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _cg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	ldr	w10, [x0]
Lloh3:
	adrp	x8, _PAIN_TWITCH_TIME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAIN_TWITCH_TIME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w9, w9, w10
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.1:
	scvtf	s0, w9
	scvtf	s1, w8
	fdiv	s0, s0, s1
	fmov	s1, #1.00000000
	fsub	s0, s1, s0
Lloh6:
	adrp	x8, _ROLL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ROLL@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	lsl	x8, x8, #2
	ldr	s1, [x1, x8]
	ldr	x9, [x0, #8]
	scvtf	s1, s1
	fmov	s2, #20.00000000
	fmadd	s2, s0, s2, s1
	fmov	s3, #-20.00000000
	fmadd	s0, s0, s3, s1
	cmp	x9, #0
	fcsel	s0, s0, s2, eq
	fcvtzs	w9, s0
	str	w9, [x1, x8]
LBB0_2:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,4,2                         ; @cg
	.comm	_PAIN_TWITCH_TIME,4,2           ; @PAIN_TWITCH_TIME
	.comm	_ROLL,8,3                       ; @ROLL
	.no_dead_strip	_CG_AddPainTwitch
.subsections_via_symbols
