	.file	"extr_tr_init.c_R_ScreenshotFilename.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"screenshots/shot9999.tga"
.LC1:
	.string	"screenshots/shot%i%i%i%i.tga"
	.text
	.p2align 4
	.globl	R_ScreenshotFilename
	.type	R_ScreenshotFilename, @function
R_ScreenshotFilename:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r10, rsi
	mov	esi, DWORD PTR MAX_OSPATH[rip]
	cmp	edi, 9999
	ja	.L6
	movsx	rcx, edi
	mov	eax, edi
	sub	rsp, 16
	.cfi_def_cfa_offset 24
	imul	rcx, rcx, 274877907
	sar	eax, 31
	sar	rcx, 38
	sub	ecx, eax
	imul	eax, ecx, -1000
	add	eax, edi
	movsx	r8, eax
	cdq
	imul	r8, r8, 1374389535
	sar	r8, 37
	sub	r8d, edx
	lea	rdx, .LC1[rip]
	imul	edi, r8d, -100
	add	edi, eax
	movsx	r9, edi
	mov	eax, edi
	imul	r9, r9, 1717986919
	sar	eax, 31
	sar	r9, 34
	sub	r9d, eax
	imul	eax, r9d, -10
	add	edi, eax
	xor	eax, eax
	push	rdi
	.cfi_def_cfa_offset 32
	mov	rdi, r10
	call	Com_sprintf@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rdx, .LC0[rip]
	mov	rdi, r10
	xor	eax, eax
	jmp	Com_sprintf@PLT
	.cfi_endproc
.LFE0:
	.size	R_ScreenshotFilename, .-R_ScreenshotFilename
	.comm	MAX_OSPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_tr_init.c_R_ScreenshotFilename.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"screenshots/shot9999.tga\000"
	.align	2
.LC1:
	.ascii	"screenshots/shot%i%i%i%i.tga\000"
	.text
	.align	2
	.global	R_ScreenshotFilename
	.syntax unified
	.arm
	.fpu softvfp
	.type	R_ScreenshotFilename, %function
R_ScreenshotFilename:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r2, r0
	ldr	r0, .L7
	ldr	r3, .L7+4
	cmp	r2, r0
	mov	r0, r1
	ldr	r1, [r3]
	bhi	.L6
	mvn	ip, #99
	ldr	r3, .L7+8
	push	{r4, r5, lr}
	smull	r4, r3, r2, r3
	asr	lr, r2, #31
	rsb	r3, lr, r3, asr #6
	rsb	lr, r3, r3, lsl #22
	add	lr, r3, lr, lsl #6
	add	lr, r3, lr, lsl #1
	ldr	r4, .L7+12
	add	r2, r2, lr, lsl #3
	smull	r5, lr, r4, r2
	asr	r4, r2, #31
	rsb	lr, r4, lr, asr #5
	mla	r2, ip, lr, r2
	ldr	ip, .L7+16
	sub	sp, sp, #20
	smull	r5, r4, ip, r2
	asr	ip, r2, #31
	rsb	ip, ip, r4, asr #2
	rsb	r4, ip, ip, lsl #29
	rsb	r4, ip, r4, lsl #2
	add	r2, r2, r4, lsl #1
	str	r2, [sp, #8]
	str	lr, [sp]
	ldr	r2, .L7+20
	str	ip, [sp, #4]
	bl	Com_sprintf
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r2, .L7+24
	b	Com_sprintf
.L8:
	.align	2
.L7:
	.word	9999
	.word	MAX_OSPATH
	.word	274877907
	.word	1374389535
	.word	1717986919
	.word	.LC1
	.word	.LC0
	.size	R_ScreenshotFilename, .-R_ScreenshotFilename
	.comm	MAX_OSPATH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
