	.file	"292120.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"XXXXXX"
	.text
	.globl	__mkostemps
	.type	__mkostemps, @function
__mkostemps:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 5
	jbe	.L2
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, 6
	cmp	rax, rdx
	ja	.L2
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, rdx
	lea	rdx, -6[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 6
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L3
.L2:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	mov	eax, -1
	jmp	.L4
.L3:
	and	DWORD PTR -32[rbp], -4
	mov	DWORD PTR -16[rbp], 100
.L7:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, rdx
	lea	rdx, -6[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdi, rax
	mov	eax, 0
	call	__randname@PLT
	mov	eax, DWORD PTR -32[rbp]
	or	al, -62
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 384
	mov	esi, ecx
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L5
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L4
.L5:
	sub	DWORD PTR -16[rbp], 1
	cmp	DWORD PTR -16[rbp], 0
	je	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L7
.L6:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, rdx
	lea	rdx, -6[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, 6
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, -1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	__mkostemps, .-__mkostemps
	.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	"292120.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"XXXXXX\000"
	.text
	.align	2
	.global	__mkostemps
	.syntax unified
	.arm
	.fpu softvfp
	.type	__mkostemps, %function
__mkostemps:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	strlen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	bls	.L2
	ldr	r3, [fp, #-12]
	sub	r2, r3, #6
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L2
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	sub	r3, r3, #6
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #6
	ldr	r1, .L8
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
.L2:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-32]
	bic	r3, r3, #3
	str	r3, [fp, #-32]
	mov	r3, #100
	str	r3, [fp, #-16]
.L7:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	sub	r3, r3, #6
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r0, r3
	bl	__randname
	ldr	r3, [fp, #-32]
	orr	r3, r3, #194
	mov	r2, #384
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	open
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L5
	ldr	r3, [fp, #-8]
	b	.L4
.L5:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L7
.L6:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	sub	r3, r2, r3
	sub	r3, r3, #6
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #6
	ldr	r1, .L8
	mov	r0, r3
	bl	memcpy
	mvn	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.size	__mkostemps, .-__mkostemps
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
