	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function CG_DamageBlendBlob
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_1:
	.quad	0x4069000000000000              ## double 200
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_DamageBlendBlob:                    ## @CG_DamageBlendBlob
	.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	_cg@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.1:
	movq	_cgs@GOTPCREL(%rip), %r15
	movq	8(%r15), %rax
	movq	_GLHW_RAGEPRO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.2:
	movl	4(%rbx), %r12d
	subl	8(%rbx), %r12d
	jle	LBB0_5
## %bb.3:
	movq	_DAMAGE_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%r13d, %r12d
	jge	LBB0_5
## %bb.4:
	leaq	-72(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_RT_SPRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_RF_FIRST_PERSON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	32(%rbx), %edi
	movq	24(%rbx), %rax
	movl	(%rax), %edx
	movl	-52(%rbp), %ecx
	movl	$8, %esi
	callq	_VectorMA
	movl	-52(%rbp), %ecx
	movl	12(%rbx), %esi
	shll	$3, %esi
	negl	%esi
	movq	24(%rbx), %rax
	movl	4(%rax), %edx
	movl	%ecx, %edi
	callq	_VectorMA
	movl	-52(%rbp), %ecx
	movl	16(%rbx), %esi
	shll	$3, %esi
	movq	24(%rbx), %rax
	movl	8(%rax), %edx
	movl	%ecx, %edi
	callq	_VectorMA
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %eax
	movl	%eax, -72(%rbp)
	movl	(%r15), %eax
	movl	%eax, -56(%rbp)
	cvtsi2ss	%r12d, %xmm0
	movq	-64(%rbp), %rax
	cvtsi2ss	%r13d, %xmm1
	movabsq	$1095216660735, %rcx            ## imm = 0xFF000000FF
	movq	%rcx, (%rax)
	divss	%xmm1, %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	LCPI0_1(%rip), %xmm1
	movl	$255, 8(%rax)
	cvttsd2si	%xmm1, %ecx
	movl	%ecx, 12(%rax)
	movq	%r14, %rdi
	callq	_trap_R_AddRefEntityToScene
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg,40,3                        ## @cg
	.comm	_cgs,16,3                       ## @cgs
	.comm	_GLHW_RAGEPRO,8,3               ## @GLHW_RAGEPRO
	.comm	_DAMAGE_TIME,4,2                ## @DAMAGE_TIME
	.comm	_RT_SPRITE,4,2                  ## @RT_SPRITE
	.comm	_RF_FIRST_PERSON,4,2            ## @RF_FIRST_PERSON
	.no_dead_strip	_CG_DamageBlendBlob
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_DamageBlendBlob
_CG_DamageBlendBlob:                    ; @CG_DamageBlendBlob
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x19, _cg@GOTPAGE
Lloh1:
	ldr	x19, [x19, _cg@GOTPAGEOFF]
	ldr	w8, [x19]
	cbz	w8, LBB0_4
; %bb.1:
Lloh2:
	adrp	x20, _cgs@GOTPAGE
Lloh3:
	ldr	x20, [x20, _cgs@GOTPAGEOFF]
	ldr	x8, [x20, #8]
Lloh4:
	adrp	x9, _GLHW_RAGEPRO@GOTPAGE
Lloh5:
	ldr	x9, [x9, _GLHW_RAGEPRO@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_4
; %bb.2:
Lloh7:
	adrp	x8, _DAMAGE_TIME@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DAMAGE_TIME@GOTPAGEOFF]
Lloh9:
	ldr	w21, [x8]
	ldp	w8, w9, [x19, #4]
	sub	w22, w8, w9
	cmp	w22, #1
	ccmp	w22, w21, #0, ge
	b.ge	LBB0_4
; %bb.3:
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh10:
	adrp	x8, _RT_SPRITE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RT_SPRITE@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _RF_FIRST_PERSON@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RF_FIRST_PERSON@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #24]
	ldr	w0, [x19, #32]
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	ldr	w3, [sp, #20]
	mov	w1, #8
	bl	_VectorMA
	ldr	w0, [sp, #20]
	ldr	w8, [x19, #12]
	neg	w1, w8, lsl #3
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #4]
	mov	x3, x0
	bl	_VectorMA
	ldr	w0, [sp, #20]
	ldr	w8, [x19, #16]
	lsl	w1, w8, #3
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #8]
	mov	x3, x0
	bl	_VectorMA
	ldr	w8, [x19]
	add	w8, w8, w8, lsl #1
	ldr	w9, [x20]
	str	w8, [sp]
	str	w9, [sp, #16]
	ldr	x8, [sp, #8]
	movi	d0, #0x0000ff000000ff
	str	d0, [x8]
	scvtf	s0, w22
	scvtf	s1, w21
	fdiv	s0, s0, s1
	fcvt	d0, s0
	fmov	d1, #1.00000000
	fsub	d0, d1, d0
	mov	x9, #4641240890982006784
	fmov	d1, x9
	fmul	d0, d0, d1
	fcvtzs	w9, d0
	mov	w10, #255
	stp	w10, w9, [x8, #8]
	mov	x0, sp
	bl	_trap_R_AddRefEntityToScene
LBB0_4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_cg,40,3                        ; @cg
	.comm	_cgs,16,3                       ; @cgs
	.comm	_GLHW_RAGEPRO,8,3               ; @GLHW_RAGEPRO
	.comm	_DAMAGE_TIME,4,2                ; @DAMAGE_TIME
	.comm	_RT_SPRITE,4,2                  ; @RT_SPRITE
	.comm	_RF_FIRST_PERSON,4,2            ; @RF_FIRST_PERSON
	.no_dead_strip	_CG_DamageBlendBlob
.subsections_via_symbols
