	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_target_speaker              ## -- Begin function SP_target_speaker
	.p2align	4, 0x90
_SP_target_speaker:                     ## @SP_target_speaker
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_MAX_QPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	leaq	L_.str(%rip), %rdi
	leaq	L_.str.1(%rip), %r12
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_G_SpawnFloat
	leaq	4(%rbx), %rdx
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_G_SpawnFloat
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	callq	_G_SpawnString
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	24(%rbx), %edi
	callq	_vtos
	leaq	L_.str.5(%rip), %rdi
	movl	%eax, %esi
	callq	_G_Error
LBB0_2:
	movq	-48(%rbp), %rdi
	cmpb	$42, (%rdi)
	jne	LBB0_4
## %bb.3:
	orb	$8, 8(%rbx)
LBB0_4:
	leaq	L_.str.6(%rip), %rsi
	callq	_strstr
	movq	-48(%rbp), %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	movq	%rcx, %rsi
	movl	%r15d, %edx
	callq	_Q_strncpyz
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.7(%rip), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_Com_sprintf
LBB0_7:
	movq	%r14, %rdi
	callq	_G_SoundIndex
	movl	%eax, 48(%rbx)
	movq	_ET_SPEAKER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 36(%rbx)
	movl	%eax, 32(%rbx)
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	%ecx, 12(%rbx)
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %ecx
	movl	%ecx, 16(%rbx)
	movl	8(%rbx), %ecx
	testb	$1, %cl
	je	LBB0_9
## %bb.8:
	movl	%eax, 28(%rbx)
LBB0_9:
	movq	_Use_Target_Speaker@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%rbx)
	testb	$4, %cl
	je	LBB0_11
## %bb.10:
	movq	_SVF_BROADCAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%rbx)
LBB0_11:
	movl	20(%rbx), %esi
	movl	24(%rbx), %edi
	callq	_VectorCopy
	movq	%rbx, %rdi
	callq	_trap_LinkEntity
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	leaq	-32(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_QPATH,4,2                  ## @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait"

L_.str.1:                               ## @.str.1
	.asciz	"0"

L_.str.2:                               ## @.str.2
	.asciz	"random"

L_.str.3:                               ## @.str.3
	.asciz	"noise"

L_.str.4:                               ## @.str.4
	.asciz	"NOSOUND"

L_.str.5:                               ## @.str.5
	.asciz	"target_speaker without a noise key at %s"

L_.str.6:                               ## @.str.6
	.asciz	".wav"

L_.str.7:                               ## @.str.7
	.asciz	"%s.wav"

	.comm	_ET_SPEAKER,4,2                 ## @ET_SPEAKER
	.comm	_Use_Target_Speaker,4,2         ## @Use_Target_Speaker
	.comm	_SVF_BROADCAST,4,2              ## @SVF_BROADCAST
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_SP_target_speaker              ; -- Begin function SP_target_speaker
	.p2align	2
_SP_target_speaker:                     ; @SP_target_speaker
	.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
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh5:
	ldr	w21, [x8]
	mov	x9, x21
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x21, #15
	and	x9, x9, #0x1fffffff0
	sub	x20, x8, x9
	mov	sp, x20
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	bl	_G_SpawnFloat
	add	x2, x19, #4
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_G_SpawnFloat
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	sub	x2, x29, #48
	bl	_G_SpawnString
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_vtos
	mov	x1, x0
Lloh18:
	adrp	x0, l_.str.5@PAGE
Lloh19:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_G_Error
LBB0_2:
	ldur	x0, [x29, #-48]
	ldrb	w8, [x0]
	cmp	w8, #42
	b.ne	LBB0_4
; %bb.3:
	ldr	w8, [x19, #8]
	orr	w8, w8, #0x8
	str	w8, [x19, #8]
LBB0_4:
Lloh20:
	adrp	x1, l_.str.6@PAGE
Lloh21:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_strstr
	ldur	x3, [x29, #-48]
	cbz	w0, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x3
	mov	x2, x21
	bl	_Q_strncpyz
	b	LBB0_7
LBB0_6:
Lloh22:
	adrp	x2, l_.str.7@PAGE
Lloh23:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x1, x21
	bl	_Com_sprintf
LBB0_7:
	mov	x0, x20
	bl	_G_SoundIndex
	str	w0, [x19, #48]
Lloh24:
	adrp	x8, _ET_SPEAKER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ET_SPEAKER@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	stp	w0, w8, [x19, #32]
	ldr	d0, [x19]
	movi.2s	v1, #10
	mul.2s	v0, v0, v1
	stur	d0, [x19, #12]
	ldr	w8, [x19, #8]
	tbz	w8, #0, LBB0_9
; %bb.8:
	str	w0, [x19, #28]
LBB0_9:
Lloh27:
	adrp	x9, _Use_Target_Speaker@GOTPAGE
Lloh28:
	ldr	x9, [x9, _Use_Target_Speaker@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	str	w9, [x19, #44]
	tbz	w8, #2, LBB0_11
; %bb.10:
Lloh30:
	adrp	x8, _SVF_BROADCAST@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SVF_BROADCAST@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	ldr	w9, [x19, #40]
	orr	w8, w9, w8
	str	w8, [x19, #40]
LBB0_11:
	ldp	w1, w0, [x19, #20]
	bl	_VectorCopy
	mov	x0, x19
	bl	_trap_LinkEntity
	ldur	x8, [x29, #-40]
Lloh33:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh34:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh35:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #32
	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
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_QPATH,4,2                  ; @MAX_QPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait"

l_.str.1:                               ; @.str.1
	.asciz	"0"

l_.str.2:                               ; @.str.2
	.asciz	"random"

l_.str.3:                               ; @.str.3
	.asciz	"noise"

l_.str.4:                               ; @.str.4
	.asciz	"NOSOUND"

l_.str.5:                               ; @.str.5
	.asciz	"target_speaker without a noise key at %s"

l_.str.6:                               ; @.str.6
	.asciz	".wav"

l_.str.7:                               ; @.str.7
	.asciz	"%s.wav"

	.comm	_ET_SPEAKER,4,2                 ; @ET_SPEAKER
	.comm	_Use_Target_Speaker,4,2         ; @Use_Target_Speaker
	.comm	_SVF_BROADCAST,4,2              ; @SVF_BROADCAST
.subsections_via_symbols
