	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Bleed                       ## -- Begin function CG_Bleed
	.p2align	4, 0x90
_CG_Bleed:                              ## @CG_Bleed
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_cg_blood@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movl	%edi, %r15d
	xorl	%eax, %eax
	callq	_CG_AllocLocalEntity
	movq	%rax, %rbx
	movq	_LE_EXPLOSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rbx)
	movq	_cg@GOTPCREL(%rip), %r12
	movq	8(%r12), %rax
	movq	%rax, 24(%rbx)
	addq	$500, %rax                      ## imm = 0x1F4
	movq	%rax, 32(%rbx)
	movl	20(%rbx), %esi
	movl	%r15d, %edi
	callq	_VectorCopy
	movq	_RT_SPRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	xorl	%eax, %eax
	callq	_rand
	cltq
	imulq	$-1240768329, %rax, %rcx        ## imm = 0xB60B60B7
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$8, %ecx
	addl	%edx, %ecx
	imull	$360, %ecx, %ecx                ## imm = 0x168
	subl	%ecx, %eax
	movl	%eax, (%rbx)
	movl	$24, 4(%rbx)
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	(%r12), %rax
	cmpl	%r14d, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_RF_THIRD_PERSON@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_blood,4,2                   ## @cg_blood
	.comm	_LE_EXPLOSION,4,2               ## @LE_EXPLOSION
	.comm	_cg,16,3                        ## @cg
	.comm	_RT_SPRITE,4,2                  ## @RT_SPRITE
	.comm	_cgs,4,2                        ## @cgs
	.comm	_RF_THIRD_PERSON,4,2            ## @RF_THIRD_PERSON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Bleed                       ; -- Begin function CG_Bleed
	.p2align	2
_CG_Bleed:                              ; @CG_Bleed
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x8, _cg_blood@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cg_blood@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x19, x1
	mov	x21, x0
	bl	_CG_AllocLocalEntity
	mov	x20, x0
Lloh3:
	adrp	x8, _LE_EXPLOSION@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LE_EXPLOSION@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x22, _cg@GOTPAGE
Lloh7:
	ldr	x22, [x22, _cg@GOTPAGEOFF]
	str	w8, [x0, #40]
	ldr	x8, [x22, #8]
	add	x9, x8, #500
	stp	x8, x9, [x0, #24]
	ldr	w1, [x0, #20]
	mov	x0, x21
	bl	_VectorCopy
Lloh8:
	adrp	x8, _RT_SPRITE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RT_SPRITE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x20, #16]
	bl	_rand
	mov	w8, #24759
	movk	w8, #46603, lsl #16
	smull	x8, w0, w8
	lsr	x8, x8, #32
	add	w8, w8, w0
	asr	w9, w8, #8
	add	w8, w9, w8, lsr #31
	mov	w9, #360
	msub	w8, w8, w9, w0
	mov	w9, #24
Lloh11:
	adrp	x10, _cgs@GOTPAGE
Lloh12:
	ldr	x10, [x10, _cgs@GOTPAGEOFF]
	stp	w8, w9, [x20]
Lloh13:
	ldr	w8, [x10]
	str	w8, [x20, #12]
	ldr	x8, [x22]
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_3
; %bb.2:
Lloh14:
	adrp	x8, _RF_THIRD_PERSON@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RF_THIRD_PERSON@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	ldr	w9, [x20, #8]
	orr	w8, w9, w8
	str	w8, [x20, #8]
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_blood,4,2                   ; @cg_blood
	.comm	_LE_EXPLOSION,4,2               ; @LE_EXPLOSION
	.comm	_cg,16,3                        ; @cg
	.comm	_RT_SPRITE,4,2                  ; @RT_SPRITE
	.comm	_cgs,4,2                        ; @cgs
	.comm	_RF_THIRD_PERSON,4,2            ; @RF_THIRD_PERSON
.subsections_via_symbols
