	.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_PlayerPowerups
LCPI0_0:
	.quad	0x3fc99999a0000000              ## double 0.20000000298023224
LCPI0_1:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_CG_PlayerPowerups:                     ## @CG_PlayerPowerups
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rdi), %r12d
	testl	%r12d, %r12d
	je	LBB0_21
## %bb.1:
	movq	%rdi, %rbx
	movq	_PW_QUAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r12d
	jae	LBB0_3
## %bb.2:
	movl	(%rbx), %r15d
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	andl	$31, %eax
	leal	200(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	movl	%r15d, %edi
	movaps	%xmm0, %xmm1
	callq	_trap_R_AddLightToScene
LBB0_3:
	movq	_PW_FLIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r12d
	jae	LBB0_5
## %bb.4:
	movl	(%rbx), %esi
	movl	24(%rbx), %edi
	movq	_vec3_origin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_cgs@GOTPCREL(%rip), %rax
	movl	24(%rax), %ecx
	callq	_trap_S_AddLoopingSound
LBB0_5:
	movq	_cgs@GOTPCREL(%rip), %rcx
	movq	32(%rcx), %r13
	movq	16(%rbx), %r14
	movq	_PW_REDFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r12d
	jae	LBB0_10
## %bb.6:
	cmpq	$0, (%r13,%r14,8)
	je	LBB0_8
## %bb.7:
	movl	20(%rcx), %esi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_CG_PlayerFlag
	jmp	LBB0_9
LBB0_8:
	movl	16(%rcx), %esi
	movq	%rbx, %rdi
	callq	_CG_TrailItem
LBB0_9:
	movl	(%rbx), %r15d
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	andl	$31, %eax
	leal	200(%rax), %esi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero
	movl	%r15d, %edi
	movaps	%xmm1, %xmm2
	callq	_trap_R_AddLightToScene
	movq	_cgs@GOTPCREL(%rip), %rcx
LBB0_10:
	movq	_PW_BLUEFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r12d
	jae	LBB0_15
## %bb.11:
	cmpq	$0, (%r13,%r14,8)
	je	LBB0_13
## %bb.12:
	movl	12(%rcx), %esi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_CG_PlayerFlag
	jmp	LBB0_14
LBB0_13:
	movl	8(%rcx), %esi
	movq	%rbx, %rdi
	callq	_CG_TrailItem
LBB0_14:
	movl	(%rbx), %r15d
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	andl	$31, %eax
	leal	200(%rax), %esi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movsd	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero
	movl	%r15d, %edi
	movaps	%xmm0, %xmm1
	callq	_trap_R_AddLightToScene
	movq	_cgs@GOTPCREL(%rip), %rcx
LBB0_15:
	movq	_PW_NEUTRALFLAG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r12d
	jae	LBB0_20
## %bb.16:
	cmpq	$0, (%r13,%r14,8)
	je	LBB0_18
## %bb.17:
	movl	4(%rcx), %esi
	movq	%rbx, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	_CG_PlayerFlag
	jmp	LBB0_19
LBB0_18:
	movl	(%rcx), %esi
	movq	%rbx, %rdi
	callq	_CG_TrailItem
LBB0_19:
	movl	(%rbx), %r14d
	xorl	%eax, %eax
	callq	_rand
                                        ## kill: def $eax killed $eax def $rax
	andl	$31, %eax
	leal	200(%rax), %esi
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movl	%r14d, %edi
	movaps	%xmm0, %xmm1
	movaps	%xmm0, %xmm2
	callq	_trap_R_AddLightToScene
LBB0_20:
	movq	_PW_HASTE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%eax, %r12d
	jae	LBB0_21
## %bb.22:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CG_HasteTrail                  ## TAILCALL
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PW_QUAD,4,2                    ## @PW_QUAD
	.comm	_PW_FLIGHT,4,2                  ## @PW_FLIGHT
	.comm	_vec3_origin,4,2                ## @vec3_origin
	.comm	_cgs,40,3                       ## @cgs
	.comm	_PW_REDFLAG,4,2                 ## @PW_REDFLAG
	.comm	_PW_BLUEFLAG,4,2                ## @PW_BLUEFLAG
	.comm	_PW_NEUTRALFLAG,4,2             ## @PW_NEUTRALFLAG
	.comm	_PW_HASTE,4,2                   ## @PW_HASTE
	.no_dead_strip	_CG_PlayerPowerups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CG_PlayerPowerups
_CG_PlayerPowerups:                     ; @CG_PlayerPowerups
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	w22, [x0, #8]
	cbz	w22, LBB0_22
; %bb.1:
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _PW_QUAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PW_QUAD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	w8, w22, w8
	tbz	w8, #0, LBB0_3
; %bb.2:
	ldr	w21, [x19]
	bl	_rand
	and	w8, w0, #0x1f
	add	w1, w8, #200
	mov	x8, #2684354560
	movk	x8, #39321, lsl #32
	movk	x8, #16329, lsl #48
	fmov	d0, x8
	fmov	d2, #1.00000000
	mov	x0, x21
	fmov	d1, d0
	bl	_trap_R_AddLightToScene
LBB0_3:
Lloh3:
	adrp	x8, _PW_FLIGHT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PW_FLIGHT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsr	w8, w22, w8
Lloh6:
	adrp	x23, _cgs@GOTPAGE
Lloh7:
	ldr	x23, [x23, _cgs@GOTPAGEOFF]
	tbz	w8, #0, LBB0_5
; %bb.4:
	ldr	w0, [x19, #24]
	ldr	w1, [x19]
Lloh8:
	adrp	x8, _vec3_origin@GOTPAGE
Lloh9:
	ldr	x8, [x8, _vec3_origin@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	ldr	w3, [x23, #24]
	bl	_trap_S_AddLoopingSound
LBB0_5:
	ldr	x24, [x23, #32]
	ldr	x25, [x19, #16]
Lloh11:
	adrp	x8, _PW_REDFLAG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PW_REDFLAG@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	lsr	w8, w22, w8
	tbz	w8, #0, LBB0_10
; %bb.6:
	ldr	x8, [x24, x25, lsl #3]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w1, [x23, #20]
	mov	x0, x19
	mov	x2, x20
	bl	_CG_PlayerFlag
	b	LBB0_9
LBB0_8:
	ldr	w1, [x23, #16]
	mov	x0, x19
	bl	_CG_TrailItem
LBB0_9:
	ldr	w21, [x19]
	bl	_rand
	and	w8, w0, #0x1f
	add	w1, w8, #200
	mov	x8, #2684354560
	movk	x8, #39321, lsl #32
	movk	x8, #16329, lsl #48
	fmov	d1, x8
	fmov	d0, #1.00000000
	mov	x0, x21
	fmov	d2, d1
	bl	_trap_R_AddLightToScene
LBB0_10:
Lloh14:
	adrp	x8, _PW_BLUEFLAG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PW_BLUEFLAG@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	lsr	w8, w22, w8
	tbz	w8, #0, LBB0_15
; %bb.11:
	ldr	x8, [x24, x25, lsl #3]
	cbz	x8, LBB0_13
; %bb.12:
	ldr	w1, [x23, #12]
	mov	x0, x19
	mov	x2, x20
	bl	_CG_PlayerFlag
	b	LBB0_14
LBB0_13:
	ldr	w1, [x23, #8]
	mov	x0, x19
	bl	_CG_TrailItem
LBB0_14:
	ldr	w21, [x19]
	bl	_rand
	and	w8, w0, #0x1f
	add	w1, w8, #200
	mov	x8, #2684354560
	movk	x8, #39321, lsl #32
	movk	x8, #16329, lsl #48
	fmov	d0, x8
	fmov	d2, #1.00000000
	mov	x0, x21
	fmov	d1, d0
	bl	_trap_R_AddLightToScene
LBB0_15:
Lloh17:
	adrp	x8, _PW_NEUTRALFLAG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PW_NEUTRALFLAG@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	lsr	w8, w22, w8
	tbz	w8, #0, LBB0_20
; %bb.16:
	ldr	x8, [x24, x25, lsl #3]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w1, [x23, #4]
	mov	x0, x19
	mov	x2, x20
	bl	_CG_PlayerFlag
	b	LBB0_19
LBB0_18:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_CG_TrailItem
LBB0_19:
	ldr	w20, [x19]
	bl	_rand
	and	w8, w0, #0x1f
	add	w1, w8, #200
	fmov	d0, #1.00000000
	fmov	d1, #1.00000000
	fmov	d2, #1.00000000
	mov	x0, x20
	bl	_trap_R_AddLightToScene
LBB0_20:
Lloh20:
	adrp	x8, _PW_HASTE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PW_HASTE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	lsr	w8, w22, w8
	tbz	w8, #0, LBB0_22
; %bb.21:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_CG_HasteTrail
LBB0_22:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PW_QUAD,4,2                    ; @PW_QUAD
	.comm	_PW_FLIGHT,4,2                  ; @PW_FLIGHT
	.comm	_vec3_origin,4,2                ; @vec3_origin
	.comm	_cgs,40,3                       ; @cgs
	.comm	_PW_REDFLAG,4,2                 ; @PW_REDFLAG
	.comm	_PW_BLUEFLAG,4,2                ; @PW_BLUEFLAG
	.comm	_PW_NEUTRALFLAG,4,2             ; @PW_NEUTRALFLAG
	.comm	_PW_HASTE,4,2                   ; @PW_HASTE
	.no_dead_strip	_CG_PlayerPowerups
.subsections_via_symbols
