	.file	"72290.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"XXXXXX"
.LC1:
	.string	"%05d"
	.text
	.globl	mktemp
	.type	mktemp, @function
mktemp:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	QWORD PTR -200[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -180[rbp], eax
	mov	eax, DWORD PTR -180[rbp]
	cdqe
	lea	rdx, -6[rax]
	mov	rax, QWORD PTR -200[rbp]
	add	rax, rdx
	mov	QWORD PTR -176[rbp], rax
	cmp	DWORD PTR -180[rbp], 5
	jle	.L2
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L3
.L2:
	mov	rax, QWORD PTR -200[rbp]
	mov	BYTE PTR [rax], 0
	jmp	.L4
.L3:
	call	getpid@PLT
	movsx	rdx, eax
	imul	rdx, rdx, 351843721
	shr	rdx, 32
	sar	edx, 13
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 100000
	sub	eax, ecx
	mov	edx, eax
	movsx	rax, edx
	mov	QWORD PTR -168[rbp], rax
	mov	rdx, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR -176[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	add	QWORD PTR -176[rbp], 5
	mov	DWORD PTR -184[rbp], 97
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -184[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], dl
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	jns	.L6
	mov	rax, QWORD PTR -200[rbp]
	jmp	.L9
.L6:
	add	DWORD PTR -184[rbp], 1
.L5:
	cmp	DWORD PTR -184[rbp], 122
	jle	.L8
	mov	rax, QWORD PTR -200[rbp]
	mov	BYTE PTR [rax], 0
.L4:
	mov	rax, QWORD PTR -200[rbp]
.L9:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	mktemp, .-mktemp
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"72290.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"XXXXXX\000"
	.align	2
.LC1:
	.ascii	"%05d\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mktemp
	.syntax unified
	.arm
	.fpu softvfp
	.type	mktemp, %function
mktemp:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, [fp, #-120]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r3, [fp, #-112]
	sub	r3, r3, #6
	ldr	r2, [fp, #-120]
	add	r3, r2, r3
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-112]
	cmp	r3, #5
	ble	.L2
	ldr	r1, .L11+4
	ldr	r0, [fp, #-108]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
.L2:
	ldr	r3, [fp, #-120]
	mov	r2, #0
	strb	r2, [r3]
	b	.L4
.L3:
	bl	getpid
	mov	r3, r0
	ldr	r2, .L11+8
	smull	r1, r2, r3, r2
	asr	r1, r2, #13
	asr	r2, r3, #31
	sub	r2, r1, r2
	ldr	r1, .L11+12
	mul	r2, r1, r2
	sub	r3, r3, r2
	str	r3, [fp, #-104]
	ldr	r2, [fp, #-104]
	ldr	r1, .L11+16
	ldr	r0, [fp, #-108]
	bl	sprintf
	ldr	r3, [fp, #-108]
	add	r3, r3, #5
	str	r3, [fp, #-108]
	mov	r3, #97
	str	r3, [fp, #-116]
	b	.L5
.L8:
	ldr	r3, [fp, #-116]
	and	r2, r3, #255
	ldr	r3, [fp, #-108]
	strb	r2, [r3]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	bge	.L6
	ldr	r3, [fp, #-120]
	b	.L9
.L6:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L5:
	ldr	r3, [fp, #-116]
	cmp	r3, #122
	ble	.L8
	ldr	r3, [fp, #-120]
	mov	r2, #0
	strb	r2, [r3]
.L4:
	ldr	r3, [fp, #-120]
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	.LC0
	.word	351843721
	.word	100000
	.word	.LC1
	.size	mktemp, .-mktemp
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
