	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_IsDemoExt                   ## -- Begin function FS_IsDemoExt
	.p2align	4, 0x90
_FS_IsDemoExt:                          ## @FS_IsDemoExt
	.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
	movl	$46, %esi
	callq	_strrchr
	movq	_qfalse@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	%rax, %rbx
	leaq	1(%rax), %r14
	movq	_DEMOEXT@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	movl	%r15d, %edi
	callq	_ARRAY_LEN
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_Q_stricmpn
	testl	%eax, %eax
	jne	LBB0_8
## %bb.2:
	movl	(%r13), %edi
	callq	_ARRAY_LEN
	cltq
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_atoi
	movq	_com_protocol@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	_qtrue@GOTPCREL(%rip), %rcx
	cmpl	(%rdx), %eax
	jne	LBB0_3
LBB0_7:
	movq	%rcx, %r12
	jmp	LBB0_8
LBB0_3:
	movq	_demo_protocols@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx), %esi
	testl	%esi, %esi
	je	LBB0_8
## %bb.4:
	addq	$4, %rdx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%eax, %esi
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%rdx), %esi
	addq	$4, %rdx
	testl	%esi, %esi
	jne	LBB0_6
LBB0_8:
	movl	(%r12), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEMOEXT,4,2                    ## @DEMOEXT
	.comm	_com_protocol,8,3               ## @com_protocol
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_demo_protocols,8,3             ## @demo_protocols
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_com_legacyprotocol,8,3         ## @com_legacyprotocol
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_FS_IsDemoExt                   ; -- Begin function FS_IsDemoExt
	.p2align	2
_FS_IsDemoExt:                          ; @FS_IsDemoExt
	.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
	mov	w1, #46
	bl	_strrchr
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
	add	x20, x0, #1
Lloh0:
	adrp	x22, _DEMOEXT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DEMOEXT@GOTPAGEOFF]
	ldr	w21, [x22]
	mov	x0, x21
	bl	_ARRAY_LEN
	sub	w2, w0, #1
	mov	x0, x20
	mov	x1, x21
	bl	_Q_stricmpn
	cbz	w0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x8, _qfalse@GOTPAGE
Lloh3:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	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_4:
	ldr	w0, [x22]
	bl	_ARRAY_LEN
	add	x0, x19, w0, sxtw
	bl	_atoi
Lloh4:
	adrp	x8, _com_protocol@GOTPAGE
Lloh5:
	ldr	x8, [x8, _com_protocol@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_6
; %bb.5:
Lloh7:
	adrp	x8, _qtrue@GOTPAGE
Lloh8:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b	LBB0_3
LBB0_6:
Lloh9:
	adrp	x8, _demo_protocols@GOTPAGE
Lloh10:
	ldr	x8, [x8, _demo_protocols@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	w11, [x8]
	cbz	w11, LBB0_2
; %bb.7:
	add	x10, x8, #4
Lloh12:
	adrp	x9, _qtrue@GOTPAGE
Lloh13:
	ldr	x9, [x9, _qtrue@GOTPAGEOFF]
Lloh14:
	adrp	x8, _qfalse@GOTPAGE
Lloh15:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w11, w0
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w11, [x10], #4
	cbnz	w11, LBB0_8
	b	LBB0_3
LBB0_10:
	mov	x8, x9
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DEMOEXT,4,2                    ; @DEMOEXT
	.comm	_com_protocol,8,3               ; @com_protocol
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_demo_protocols,8,3             ; @demo_protocols
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_com_legacyprotocol,8,3         ; @com_legacyprotocol
.subsections_via_symbols
