	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function S_FindName
_S_FindName:                            ## @S_FindName
	.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	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	cmpb	$0, (%r14)
	jne	LBB0_4
LBB0_3:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
LBB0_4:
	movq	%r14, %rdi
	callq	_strlen
	movq	_MAX_QPATH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_6
## %bb.5:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_Com_Error
LBB0_6:
	movq	%r14, %rdi
	callq	_S_HashSFXName
	movq	_sfxHash@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	%eax, %r12
	movq	(%rcx,%r12,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	movq	%r14, %rsi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_8:
	movq	_s_numSfx@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.13:
	movq	_s_knownSfx@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	$8, %rcx
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx), %rdx
	cmpl	$0, (%rdx)
	je	LBB0_10
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	addq	$16, %rcx
	cmpq	%rbx, %rax
	jne	LBB0_14
## %bb.16:
	movl	%eax, %ebx
	jmp	LBB0_17
LBB0_1:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
	cmpb	$0, (%r14)
	jne	LBB0_4
	jmp	LBB0_3
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	cmpl	%eax, %ebx
	jne	LBB0_20
LBB0_17:
	movq	_MAX_SFX@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_19
## %bb.18:
	movq	_ERR_FATAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_Com_Error
	movl	(%r13), %eax
LBB0_19:
	incl	%eax
	movl	%eax, (%r13)
LBB0_20:
	movq	_s_knownSfx@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%ebx, %r15d
	shlq	$4, %r15
	leaq	(%r15,%r13), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_Com_Memset
	movq	8(%r13,%r15), %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	_sfxHash@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	(%rax,%r12,8), %rax
	movq	%rax, (%r13,%r15)
	movq	(%rcx), %rax
	movq	%rbx, (%rax,%r12,8)
LBB0_21:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERR_FATAL,4,2                  ## @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"S_FindName: NULL\n"

L_.str.1:                               ## @.str.1
	.asciz	"S_FindName: empty name\n"

	.comm	_MAX_QPATH,8,3                  ## @MAX_QPATH
L_.str.2:                               ## @.str.2
	.asciz	"Sound name too long: %s"

	.comm	_sfxHash,8,3                    ## @sfxHash
	.comm	_s_numSfx,4,2                   ## @s_numSfx
	.comm	_s_knownSfx,8,3                 ## @s_knownSfx
	.comm	_MAX_SFX,4,2                    ## @MAX_SFX
L_.str.3:                               ## @.str.3
	.asciz	"S_FindName: out of sfx_t"

	.no_dead_strip	_S_FindName
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function S_FindName
_S_FindName:                            ; @S_FindName
	.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	x19, x0
	cbz	x0, LBB0_13
; %bb.1:
	ldrb	w8, [x19]
	cbnz	w8, LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_Com_Error
LBB0_3:
	mov	x0, x19
	bl	_strlen
Lloh5:
	adrp	x8, _MAX_QPATH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MAX_QPATH@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.lt	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_Com_Error
LBB0_5:
	mov	x0, x19
	bl	_S_HashSFXName
	mov	x21, x0
Lloh13:
	adrp	x22, _sfxHash@GOTPAGE
Lloh14:
	ldr	x22, [x22, _sfxHash@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x20, [x8, w0, sxtw #3]
	cbz	x20, LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x20, #8]
	mov	x1, x19
	bl	_Q_stricmp
	cbz	w0, LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x20]
	cbnz	x20, LBB0_6
LBB0_8:
	sxtw	x21, w21
Lloh15:
	adrp	x23, _s_numSfx@GOTPAGE
Lloh16:
	ldr	x23, [x23, _s_numSfx@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh17:
	adrp	x20, _s_knownSfx@GOTPAGE
Lloh18:
	ldr	x20, [x20, _s_knownSfx@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.9:
	mov	x24, #0
	ldr	x9, [x20]
	add	x9, x9, #8
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	ldr	w10, [x10]
	cbz	w10, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	add	x9, x9, #16
	cmp	x8, x24
	b.ne	LBB0_10
; %bb.12:
	mov	x24, x8
	b	LBB0_16
LBB0_13:
Lloh19:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	bl	_Com_Error
	ldrb	w8, [x19]
	cbnz	w8, LBB0_3
	b	LBB0_2
LBB0_14:
	mov	w24, #0
LBB0_15:
	cmp	w24, w8
	b.ne	LBB0_19
LBB0_16:
Lloh24:
	adrp	x9, _MAX_SFX@GOTPAGE
Lloh25:
	ldr	x9, [x9, _MAX_SFX@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_18
; %bb.17:
Lloh27:
	adrp	x8, _ERR_FATAL@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ERR_FATAL@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_Com_Error
	ldr	w8, [x23]
LBB0_18:
	add	w8, w8, #1
	str	w8, [x23]
LBB0_19:
	ldr	x8, [x20]
	add	x20, x8, w24, uxtw #4
	mov	x0, x20
	mov	w1, #0
	mov	w2, #16
	bl	_Com_Memset
	ldr	x0, [x20, #8]
	mov	x1, x19
	bl	_strcpy
	ldr	x8, [x22]
	lsl	x9, x21, #3
	ldr	x8, [x8, x9]
	str	x8, [x20]
	ldr	x8, [x22]
	str	x20, [x8, x9]
LBB0_20:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_ERR_FATAL,4,2                  ; @ERR_FATAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"S_FindName: NULL\n"

l_.str.1:                               ; @.str.1
	.asciz	"S_FindName: empty name\n"

	.comm	_MAX_QPATH,8,3                  ; @MAX_QPATH
l_.str.2:                               ; @.str.2
	.asciz	"Sound name too long: %s"

	.comm	_sfxHash,8,3                    ; @sfxHash
	.comm	_s_numSfx,4,2                   ; @s_numSfx
	.comm	_s_knownSfx,8,3                 ; @s_knownSfx
	.comm	_MAX_SFX,4,2                    ; @MAX_SFX
l_.str.3:                               ; @.str.3
	.asciz	"S_FindName: out of sfx_t"

	.no_dead_strip	_S_FindName
.subsections_via_symbols
