	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Bullet                      ## -- Begin function CG_Bullet
	.p2align	4, 0x90
_CG_Bullet:                             ## @CG_Bullet
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movq	%rcx, %r12
	movl	%edx, %r14d
	movl	%edi, %r13d
	testl	%esi, %esi
	js	LBB0_13
## %bb.1:
	movq	_cg_tracerChance@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_13
## %bb.2:
	movl	%esi, %edi
	callq	_CG_CalcMuzzlePoint
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	xorl	%esi, %esi
	callq	_trap_CM_PointContents
	movl	%eax, %ebx
	movl	%r13d, %edi
	xorl	%esi, %esi
	callq	_trap_CM_PointContents
	movq	_CONTENTS_WATER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%eax, %ebx
	jne	LBB0_7
## %bb.4:
	movl	%ecx, %edx
	andl	%ebx, %edx
	je	LBB0_7
## %bb.5:
	movl	%r13d, %esi
	jmp	LBB0_6
LBB0_7:
	testl	%ebx, %ecx
	je	LBB0_9
## %bb.8:
	movl	%ecx, (%rsp)
	leaq	-48(%rbp), %rdi
	movl	%r13d, %esi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_trap_CM_BoxTrace
	movl	-48(%rbp), %esi
LBB0_6:
	movl	$32, %edx
	callq	_CG_BubbleTrail
	movq	_cg_tracerChance@GOTPCREL(%rip), %rbx
LBB0_11:
	xorl	%eax, %eax
	callq	_random
	cmpq	(%rbx), %rax
	jge	LBB0_13
## %bb.12:
	movl	%r13d, %esi
	callq	_CG_Tracer
LBB0_13:
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:
	movl	%r13d, %edi
	movl	%r15d, %esi
	callq	_CG_Bleed
	jmp	LBB0_16
LBB0_15:
	movq	_WP_MACHINEGUN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IMPACTSOUND_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%esi, %esi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_CG_MissileHitWall
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testl	%eax, %ecx
	movq	_cg_tracerChance@GOTPCREL(%rip), %rbx
	je	LBB0_11
## %bb.10:
	movl	%ecx, (%rsp)
	leaq	-48(%rbp), %rdi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_trap_CM_BoxTrace
	movl	-48(%rbp), %edi
	movl	%r13d, %esi
	movl	$32, %edx
	callq	_CG_BubbleTrail
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_cg_tracerChance,8,3            ## @cg_tracerChance
	.comm	_CONTENTS_WATER,4,2             ## @CONTENTS_WATER
	.comm	_WP_MACHINEGUN,4,2              ## @WP_MACHINEGUN
	.comm	_IMPACTSOUND_DEFAULT,4,2        ## @IMPACTSOUND_DEFAULT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CG_Bullet                      ; -- Begin function CG_Bullet
	.p2align	2
_CG_Bullet:                             ; @CG_Bullet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
	tbnz	w1, #31, LBB0_14
; %bb.1:
Lloh0:
	adrp	x24, _cg_tracerChance@GOTPAGE
Lloh1:
	ldr	x24, [x24, _cg_tracerChance@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, #1
	b.lt	LBB0_14
; %bb.2:
	mov	x0, x1
	bl	_CG_CalcMuzzlePoint
	cbz	x0, LBB0_14
; %bb.3:
	mov	w1, #0
	bl	_trap_CM_PointContents
	mov	x23, x0
	mov	x0, x20
	mov	w1, #0
	bl	_trap_CM_PointContents
Lloh2:
	adrp	x8, _CONTENTS_WATER@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CONTENTS_WATER@GOTPAGEOFF]
Lloh4:
	ldr	w6, [x8]
	and	w8, w6, w23
	cmp	w23, w0
	b.ne	LBB0_6
; %bb.4:
	cbz	w8, LBB0_6
; %bb.5:
                                        ; implicit-def: $w0
	b	LBB0_10
LBB0_6:
	cbz	w8, LBB0_8
; %bb.7:
	add	x0, sp, #8
	mov	x1, x20
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_trap_CM_BoxTrace
	ldr	w1, [sp, #8]
                                        ; implicit-def: $w0
	b	LBB0_11
LBB0_8:
	tst	w6, w0
	b.eq	LBB0_12
; %bb.9:
	add	x0, sp, #8
	mov	x2, x20
	mov	x3, #0
	mov	x4, #0
	mov	w5, #0
	bl	_trap_CM_BoxTrace
	ldr	w0, [sp, #8]
LBB0_10:
	mov	x1, x20
LBB0_11:
	mov	w2, #32
	bl	_CG_BubbleTrail
LBB0_12:
	bl	_random
	ldr	x8, [x24]
	cmp	x0, x8
	b.ge	LBB0_14
; %bb.13:
	mov	x1, x20
	bl	_CG_Tracer
LBB0_14:
	cbz	x22, LBB0_16
; %bb.15:
	mov	x0, x20
	mov	x1, x21
	bl	_CG_Bleed
	b	LBB0_17
LBB0_16:
Lloh5:
	adrp	x8, _WP_MACHINEGUN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WP_MACHINEGUN@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _IMPACTSOUND_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IMPACTSOUND_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	w1, #0
	mov	x2, x20
	mov	x3, x19
	bl	_CG_MissileHitWall
LBB0_17:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_cg_tracerChance,8,3            ; @cg_tracerChance
	.comm	_CONTENTS_WATER,4,2             ; @CONTENTS_WATER
	.comm	_WP_MACHINEGUN,4,2              ; @WP_MACHINEGUN
	.comm	_IMPACTSOUND_DEFAULT,4,2        ; @IMPACTSOUND_DEFAULT
.subsections_via_symbols
