	.file	"extr_fs.c_atf_fs_mkdtemp.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	atf_fs_mkdtemp
	.type	atf_fs_mkdtemp, @function
atf_fs_mkdtemp:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR S_IRWXU[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	esi, edi
	call	check_umask@PLT
	test	eax, eax
	je	.L8
	mov	rdi, rbp
	mov	rsi, rsp
	call	copy_contents@PLT
	mov	edi, eax
	mov	r12d, eax
	call	atf_is_error@PLT
	test	rax, rax
	je	.L9
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	call	do_mkdtemp@PLT
	mov	edi, eax
	mov	r12d, eax
	call	atf_is_error@PLT
	test	rax, rax
	je	.L11
.L4:
	endbr64
.L3:
	endbr64
	mov	rdi, QWORD PTR [rsp]
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	call	current_umask@PLT
	mov	esi, DWORD PTR atf_fs_stat_dir_type[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	invalid_umask_error@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbp
	call	replace_contents@PLT
	mov	edi, r12d
	call	atf_is_error@PLT
	xor	edi, edi
	test	rax, rax
	sete	dil
	call	INV@PLT
	mov	rdi, QWORD PTR [rsp]
	call	free@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	atf_fs_mkdtemp, .-atf_fs_mkdtemp
	.comm	atf_fs_stat_dir_type,4,4
	.comm	S_IRWXU,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_fs.c_atf_fs_mkdtemp.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	atf_fs_mkdtemp
	.syntax unified
	.arm
	.fpu softvfp
	.type	atf_fs_mkdtemp, %function
atf_fs_mkdtemp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L12
	sub	sp, sp, #12
	ldr	r1, [r3]
	ldr	r3, .L12+4
	mov	r5, r0
	mov	r0, r1
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	check_umask
	cmp	r0, #0
	beq	.L8
	mov	r1, sp
	mov	r0, r5
	bl	copy_contents
	mov	r4, r0
	bl	atf_is_error
	cmp	r0, #0
	beq	.L9
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	ldr	r0, [sp]
	bl	do_mkdtemp
	mov	r4, r0
	bl	atf_is_error
	cmp	r0, #0
	beq	.L11
.L4:
.L3:
	ldr	r0, [sp]
	bl	free
	b	.L1
.L8:
	ldr	r3, .L12+8
	ldr	r4, [r3]
	bl	current_umask
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	invalid_umask_error
	mov	r4, r0
	b	.L1
.L11:
	ldr	r1, [sp]
	mov	r0, r5
	bl	replace_contents
	mov	r0, r4
	bl	atf_is_error
	clz	r0, r0
	lsr	r0, r0, #5
	bl	INV
	ldr	r0, [sp]
	bl	free
	b	.L1
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	S_IRWXU
	.word	.LC0
	.word	atf_fs_stat_dir_type
	.size	atf_fs_mkdtemp, .-atf_fs_mkdtemp
	.comm	atf_fs_stat_dir_type,4,4
	.comm	S_IRWXU,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
