	.file	"783527.c"
	.intel_syntax noprefix
	.text
	.globl	_zip_mkstemp
	.type	_zip_mkstemp, @function
_zip_mkstemp:
.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	DWORD PTR -184[rbp], 0
	call	getpid@PLT
	mov	DWORD PTR -188[rbp], eax
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR -176[rbp], rax
	jmp	.L2
.L5:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L3
	add	DWORD PTR -184[rbp], 1
	jmp	.L4
.L3:
	mov	DWORD PTR -184[rbp], 0
.L4:
	add	QWORD PTR -176[rbp], 1
.L2:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L5
	mov	rax, QWORD PTR -176[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L6
	sub	QWORD PTR -176[rbp], 1
	movzx	edx, BYTE PTR xtra.0[rip]
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], dl
.L6:
	cmp	DWORD PTR -184[rbp], 6
	jle	.L8
	mov	rax, QWORD PTR -176[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	jne	.L8
	sub	QWORD PTR -176[rbp], 1
	movzx	edx, BYTE PTR xtra.0[rip+1]
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L8
.L9:
	mov	edx, DWORD PTR -188[rbp]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, edx
	sar	esi, 31
	sub	eax, esi
	mov	ecx, eax
	mov	eax, ecx
	sal	eax, 2
	add	eax, ecx
	add	eax, eax
	mov	ecx, edx
	sub	ecx, eax
	mov	eax, ecx
	add	eax, 48
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -188[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -188[rbp], eax
.L8:
	sub	QWORD PTR -176[rbp], 1
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 88
	je	.L9
	movzx	eax, BYTE PTR xtra.0[rip]
	cmp	al, 122
	je	.L10
	movzx	eax, BYTE PTR xtra.0[rip]
	add	eax, 1
	mov	BYTE PTR xtra.0[rip], al
	jmp	.L11
.L10:
	mov	BYTE PTR xtra.0[rip], 97
	movzx	eax, BYTE PTR xtra.0[rip+1]
	cmp	al, 122
	je	.L12
	movzx	eax, BYTE PTR xtra.0[rip+1]
	add	eax, 1
	mov	BYTE PTR xtra.0[rip+1], al
	jmp	.L11
.L12:
	mov	BYTE PTR xtra.0[rip+1], 97
.L11:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 1
	mov	QWORD PTR -168[rbp], rax
.L19:
	mov	rax, QWORD PTR -176[rbp]
	cmp	rax, QWORD PTR -200[rbp]
	jbe	.L33
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L15
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], 0
	lea	rdx, -160[rbp]
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	stat@PLT
	test	eax, eax
	je	.L16
	mov	eax, 0
	jmp	.L30
.L16:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L18
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 20
	mov	eax, 0
	jmp	.L30
.L18:
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], 47
	jmp	.L29
.L15:
	sub	QWORD PTR -176[rbp], 1
	jmp	.L19
.L33:
	nop
.L29:
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, 384
	mov	esi, 194
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -180[rbp], eax
	cmp	DWORD PTR -180[rbp], 0
	js	.L20
	mov	eax, DWORD PTR -180[rbp]
	jmp	.L30
.L20:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 17
	je	.L21
	mov	eax, 0
	jmp	.L30
.L21:
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR -176[rbp], rax
.L28:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L22
	mov	eax, 0
	jmp	.L30
.L22:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 122
	jne	.L23
	mov	rax, QWORD PTR -176[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -176[rbp], rdx
	mov	BYTE PTR [rax], 97
	jmp	.L28
.L23:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	je	.L25
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], 97
	jmp	.L27
.L25:
	mov	rax, QWORD PTR -176[rbp]
	movzx	eax, BYTE PTR [rax]
	add	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	mov	BYTE PTR [rax], dl
.L27:
	jmp	.L29
.L30:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L31
	call	__stack_chk_fail@PLT
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_zip_mkstemp, .-_zip_mkstemp
	.data
	.type	xtra.0, @object
	.size	xtra.0, 2
xtra.0:
	.ascii	"aa"
	.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	"783527.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_zip_mkstemp
	.syntax unified
	.arm
	.fpu softvfp
	.type	_zip_mkstemp, %function
_zip_mkstemp:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	bl	getpid
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-128]
	str	r3, [fp, #-120]
	b	.L2
.L5:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L3
	ldr	r3, [fp, #-112]
	add	r3, r3, #1
	str	r3, [fp, #-112]
	b	.L4
.L3:
	mov	r3, #0
	str	r3, [fp, #-112]
.L4:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-120]
.L2:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L6
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, .L34+4
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-120]
	strb	r2, [r3]
.L6:
	ldr	r3, [fp, #-112]
	cmp	r3, #6
	ble	.L8
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	bne	.L8
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, .L34+4
	ldrb	r2, [r3, #1]	@ zero_extendqisi2
	ldr	r3, [fp, #-120]
	strb	r2, [r3]
	b	.L8
.L9:
	ldr	r1, [fp, #-116]
	ldr	r3, .L34+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	and	r3, r2, #255
	add	r3, r3, #48
	and	r2, r3, #255
	ldr	r3, [fp, #-120]
	strb	r2, [r3]
	ldr	r3, [fp, #-116]
	ldr	r2, .L34+8
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-116]
.L8:
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #88
	beq	.L9
	ldr	r3, .L34+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	beq	.L10
	ldr	r3, .L34+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L34+4
	strb	r2, [r3]
	b	.L11
.L10:
	ldr	r3, .L34+4
	mov	r2, #97
	strb	r2, [r3]
	ldr	r3, .L34+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	cmp	r3, #122
	beq	.L12
	ldr	r3, .L34+4
	ldrb	r3, [r3, #1]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L34+4
	strb	r2, [r3, #1]
	b	.L11
.L12:
	ldr	r3, .L34+4
	mov	r2, #97
	strb	r2, [r3, #1]
.L11:
	ldr	r3, [fp, #-120]
	add	r3, r3, #1
	str	r3, [fp, #-108]
.L19:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-128]
	cmp	r2, r3
	bls	.L33
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L15
	ldr	r3, [fp, #-120]
	mov	r2, #0
	strb	r2, [r3]
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	stat
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	mov	r3, #0
	b	.L30
.L16:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L18
	bl	__errno_location
	mov	r3, r0
	mov	r2, #20
	str	r2, [r3]
	mov	r3, #0
	b	.L30
.L18:
	ldr	r3, [fp, #-120]
	mov	r2, #47
	strb	r2, [r3]
	b	.L29
.L15:
	ldr	r3, [fp, #-120]
	sub	r3, r3, #1
	str	r3, [fp, #-120]
	b	.L19
.L33:
	nop
.L29:
	mov	r2, #384
	mov	r1, #194
	ldr	r0, [fp, #-128]
	bl	open
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	cmp	r3, #0
	blt	.L20
	ldr	r3, [fp, #-104]
	b	.L30
.L20:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #17
	beq	.L21
	mov	r3, #0
	b	.L30
.L21:
	ldr	r3, [fp, #-108]
	str	r3, [fp, #-120]
.L28:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L22
	mov	r3, #0
	b	.L30
.L22:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #122
	bne	.L23
	ldr	r3, [fp, #-120]
	add	r2, r3, #1
	str	r2, [fp, #-120]
	mov	r2, #97
	strb	r2, [r3]
	b	.L28
.L23:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-120]
	mov	r2, #97
	strb	r2, [r3]
	b	.L27
.L25:
	ldr	r3, [fp, #-120]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-120]
	strb	r2, [r3]
.L27:
	b	.L29
.L30:
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L31
	bl	__stack_chk_fail
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	xtra.5993
	.word	1717986919
	.size	_zip_mkstemp, .-_zip_mkstemp
	.data
	.align	2
	.type	xtra.5993, %object
	.size	xtra.5993, 2
xtra.5993:
	.ascii	"aa"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
