	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_DemoFilename                ## -- Begin function CL_DemoFilename
	.p2align	4, 0x90
_CL_DemoFilename:                       ## @CL_DemoFilename
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	%rsi, %rax
	cmpl	$10000, %edi                    ## imm = 0x2710
	jb	LBB0_1
## %bb.2:
	movq	_MAX_OSPATH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	jmp	_Com_sprintf                    ## TAILCALL
LBB0_1:
	movzwl	%di, %ecx
	shrl	$3, %ecx
	imull	$8389, %ecx, %ecx               ## imm = 0x20C5
	shrl	$20, %ecx
	imull	$-1000, %ecx, %edx              ## imm = 0xFC18
	addl	%edi, %edx
	movswl	%dx, %esi
	imull	$5243, %esi, %r8d               ## imm = 0x147B
	movl	%r8d, %esi
	shrl	$31, %esi
	sarl	$19, %r8d
	addl	%esi, %r8d
	imull	$-100, %r8d, %edi
	addl	%edx, %edi
	movswl	%di, %edx
	imull	$26215, %edx, %r9d              ## imm = 0x6667
	movl	%r9d, %edx
	shrl	$31, %edx
	sarl	$18, %r9d
	addl	%edx, %r9d
	leal	(%r9,%r9), %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %edi
	movq	_MAX_OSPATH@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	movl	%edi, (%rsp)
	leaq	L_.str.1(%rip), %rdx
	movq	%rax, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_Com_sprintf
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_OSPATH,4,2                 ## @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"demo9999.tga"

L_.str.1:                               ## @.str.1
	.asciz	"demo%i%i%i%i"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CL_DemoFilename                ; -- Begin function CL_DemoFilename
	.p2align	2
_CL_DemoFilename:                       ; @CL_DemoFilename
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	mov	x8, x1
	lsr	w9, w0, #4
	cmp	w9, #625
	b.lo	LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _MAX_OSPATH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_OSPATH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_Com_sprintf
LBB0_2:
	ubfx	w9, w0, #3, #13
	mov	w10, #8389
	mul	w9, w9, w10
	lsr	w9, w9, #20
	mov	w10, #-1000
	madd	w10, w9, w10, w0
	sxth	w11, w10
	mov	w12, #5243
	mul	w11, w11, w12
	asr	w12, w11, #19
	add	w11, w12, w11, lsr #31
	mov	w12, #-100
	madd	w10, w11, w12, w10
	sxth	w12, w10
	mov	w13, #26215
	mul	w12, w12, w13
	asr	w13, w12, #18
	add	w12, w13, w12, lsr #31
	mov	w13, #-10
	madd	w10, w12, w13, w10
Lloh5:
	adrp	x13, _MAX_OSPATH@GOTPAGE
Lloh6:
	ldr	x13, [x13, _MAX_OSPATH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x13]
	sxtw	x11, w11
	stp	x9, x11, [sp]
	sxtw	x9, w12
	stp	x9, x10, [sp, #16]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x8
	bl	_Com_sprintf
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_OSPATH,4,2                 ; @MAX_OSPATH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"demo9999.tga"

l_.str.1:                               ; @.str.1
	.asciz	"demo%i%i%i%i"

.subsections_via_symbols
