	.file	"extr_hash_page.c_open_temp.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/tmp"
.LC1:
	.string	"TMPDIR"
.LC2:
	.string	"%s/_hash.XXXXXX"
	.text
	.p2align 4
	.type	open_temp, @function
open_temp:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rbx, rdi
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAXPATHLEN[rip]
	mov	rcx, rsp
	mov	r13, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L26
.L4:
	xor	eax, eax
	mov	r12, rsp
	call	issetugid@PLT
	test	rax, rax
	je	.L5
.L7:
	lea	rcx, .LC0[rip]
.L6:
	lea	rdx, .LC2[rip]
	mov	esi, r13d
	mov	rdi, r12
	call	snprintf@PLT
	test	eax, eax
	js	.L13
	cmp	r13d, eax
	jle	.L13
	lea	r14, -48[rbp]
	lea	r13, -44[rbp]
	mov	rdi, r14
	call	sigfillset@PLT
	mov	edi, DWORD PTR SIG_BLOCK[rip]
	mov	rdx, r13
	mov	rsi, r14
	call	__libc_sigprocmask@PLT
	mov	esi, DWORD PTR O_CLOEXEC[rip]
	mov	rdi, r12
	call	mkostemp@PLT
	mov	DWORD PTR [rbx], eax
	cmp	eax, -1
	je	.L11
	mov	rdi, r12
	call	unlink@PLT
.L11:
	mov	edi, DWORD PTR SIG_SETMASK[rip]
	xor	edx, edx
	mov	rsi, r13
	call	__libc_sigprocmask@PLT
	xor	eax, eax
	cmp	DWORD PTR [rbx], -1
	sete	al
	neg	eax
.L1:
	mov	rbx, QWORD PTR -40[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L27
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	getenv@PLT
	mov	rcx, rax
	test	rax, rax
	jne	.L6
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L26:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR ENAMETOOLONG[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, -1
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	open_temp, .-open_temp
	.comm	errno,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIG_BLOCK,4,4
	.comm	O_CLOEXEC,4,4
	.comm	MAXPATHLEN,4,4
	.comm	ENAMETOOLONG,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_hash_page.c_open_temp.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/tmp\000"
	.align	2
.LC1:
	.ascii	"TMPDIR\000"
	.align	2
.LC2:
	.ascii	"%s/_hash.XXXXXX\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	open_temp, %function
open_temp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	ldr	r3, .L20
	mov	r5, r0
	ldr	r4, [r3]
	ldr	r3, .L20+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	add	r3, r4, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	bl	issetugid
	cmp	r0, #0
	mov	r6, sp
	beq	.L2
.L4:
	ldr	r3, .L20+8
.L3:
	mov	r1, r4
	mov	r0, r6
	ldr	r2, .L20+12
	bl	snprintf
	cmp	r4, r0
	movgt	r4, #0
	movle	r4, #1
	orrs	r3, r4, r0, lsr #31
	bne	.L17
	sub	r0, fp, #32
	bl	sigfillset
	ldr	r3, .L20+16
	sub	r1, fp, #32
	ldr	r0, [r3]
	sub	r2, fp, #28
	bl	__libc_sigprocmask
	ldr	r3, .L20+20
	mov	r0, r6
	ldr	r1, [r3]
	bl	mkostemp
	cmn	r0, #1
	str	r0, [r5]
	bne	.L18
.L7:
	ldr	r3, .L20+24
	mov	r2, #0
	ldr	r0, [r3]
	sub	r1, fp, #28
	bl	__libc_sigprocmask
	ldr	r0, [r5]
	cmn	r0, #1
	movne	r0, #0
	moveq	r0, #1
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L20+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L18:
	mov	r0, r6
	bl	unlink
	b	.L7
.L2:
	ldr	r0, .L20+28
	bl	getenv
	subs	r3, r0, #0
	bne	.L3
	b	.L4
.L17:
	ldr	r2, .L20+32
	ldr	r3, .L20+36
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	b	.L1
.L19:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	MAXPATHLEN
	.word	.LC3
	.word	.LC0
	.word	.LC2
	.word	SIG_BLOCK
	.word	O_CLOEXEC
	.word	SIG_SETMASK
	.word	.LC1
	.word	ENAMETOOLONG
	.word	errno
	.size	open_temp, .-open_temp
	.comm	errno,4,4
	.comm	SIG_SETMASK,4,4
	.comm	SIG_BLOCK,4,4
	.comm	O_CLOEXEC,4,4
	.comm	MAXPATHLEN,4,4
	.comm	ENAMETOOLONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
