	.file	"1092790.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/tmp/testdir"
.LC1:
	.string	"the_stack_data/1092790.c"
.LC2:
	.string	"ret == 0"
.LC3:
	.string	"/tmp/testdir/output.txt"
.LC4:
	.string	"fd != -1"
.LC5:
	.string	"pos == SIZE - 1"
.LC6:
	.string	""
.LC7:
	.string	"ret == 1"
.LC8:
	.string	"st.st_size == SIZE"
.LC9:
	.string	"ret == -1"
.LC10:
	.string	"S_ISDIR(st.st_mode)"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 493
	lea	rdi, .LC0[rip]
	call	mkdir@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L2
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 21
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L2:
	mov	edx, 438
	mov	esi, 65
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], -1
	jne	.L3
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 24
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L3:
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 0
	mov	esi, 499
	mov	edi, eax
	call	lseek@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 499
	je	.L4
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 27
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L4:
	mov	eax, DWORD PTR -172[rbp]
	mov	edx, 1
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 1
	je	.L5
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 30
	lea	rsi, .LC1[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L5:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L6
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 33
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L6:
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, 500
	je	.L7
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 34
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L7:
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L8
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 37
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L8:
	mov	esi, 4
	lea	rdi, .LC3[rip]
	call	access@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L9
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 40
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L9:
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	stat@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L10
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 43
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L10:
	mov	rax, QWORD PTR -112[rbp]
	cmp	rax, 500
	je	.L11
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 44
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L11:
	lea	rdi, .LC3[rip]
	call	unlink@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L12
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 47
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L12:
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	call	stat@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], -1
	je	.L13
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 50
	lea	rsi, .LC1[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L13:
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	stat@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L14
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 53
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L14:
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	je	.L15
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 54
	lea	rsi, .LC1[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L15:
	lea	rdi, .LC0[rip]
	call	rmdir@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], 0
	je	.L16
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 57
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L16:
	lea	rax, -160[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	call	stat@PLT
	mov	DWORD PTR -176[rbp], eax
	cmp	DWORD PTR -176[rbp], -1
	je	.L17
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 60
	lea	rsi, .LC1[rip]
	lea	rdi, .LC9[rip]
	call	__assert_fail@PLT
.L17:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L19
	call	__stack_chk_fail@PLT
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.section	.rodata
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.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	"1092790.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/testdir\000"
	.align	2
.LC1:
	.ascii	"the_stack_data/1092790.c\000"
	.align	2
.LC2:
	.ascii	"ret == 0\000"
	.align	2
.LC3:
	.ascii	"/tmp/testdir/output.txt\000"
	.align	2
.LC4:
	.ascii	"fd != -1\000"
	.align	2
.LC5:
	.ascii	"pos == SIZE - 1\000"
	.align	2
.LC6:
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	"ret == 1\000"
	.align	2
.LC8:
	.ascii	"st.st_size == SIZE\000"
	.align	2
.LC9:
	.ascii	"ret == -1\000"
	.align	2
.LC10:
	.ascii	"S_ISDIR(st.st_mode)\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L20+4
	ldr	r0, .L20+8
	bl	mkdir
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L20+12
	mov	r2, #21
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L2:
	ldr	r2, .L20+24
	mov	r1, #65
	ldr	r0, .L20+28
	bl	open
	str	r0, [fp, #-108]
	ldr	r3, [fp, #-108]
	cmn	r3, #1
	bne	.L3
	ldr	r3, .L20+12
	mov	r2, #24
	ldr	r1, .L20+16
	ldr	r0, .L20+32
	bl	__assert_fail
.L3:
	mov	r2, #0
	ldr	r1, .L20+36
	ldr	r0, [fp, #-108]
	bl	lseek
	str	r0, [fp, #-104]
	ldr	r3, [fp, #-104]
	ldr	r2, .L20+36
	cmp	r3, r2
	beq	.L4
	ldr	r3, .L20+12
	mov	r2, #27
	ldr	r1, .L20+16
	ldr	r0, .L20+40
	bl	__assert_fail
.L4:
	mov	r2, #1
	ldr	r1, .L20+44
	ldr	r0, [fp, #-108]
	bl	write
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #1
	beq	.L5
	ldr	r3, .L20+12
	mov	r2, #30
	ldr	r1, .L20+16
	ldr	r0, .L20+48
	bl	__assert_fail
.L5:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, [fp, #-108]
	bl	fstat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L6
	ldr	r3, .L20+12
	mov	r2, #33
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L6:
	ldr	r3, [fp, #-56]
	cmp	r3, #500
	beq	.L7
	ldr	r3, .L20+12
	mov	r2, #34
	ldr	r1, .L20+16
	ldr	r0, .L20+52
	bl	__assert_fail
.L7:
	ldr	r0, [fp, #-108]
	bl	close
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L8
	ldr	r3, .L20+12
	mov	r2, #37
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L8:
	mov	r1, #4
	ldr	r0, .L20+28
	bl	access
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L20+12
	mov	r2, #40
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L9:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L20+28
	bl	stat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L10
	ldr	r3, .L20+12
	mov	r2, #43
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L10:
	ldr	r3, [fp, #-56]
	cmp	r3, #500
	beq	.L11
	ldr	r3, .L20+12
	mov	r2, #44
	ldr	r1, .L20+16
	ldr	r0, .L20+52
	bl	__assert_fail
.L11:
	ldr	r0, .L20+28
	bl	unlink
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L20+12
	mov	r2, #47
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L12:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L20+28
	bl	stat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	beq	.L13
	ldr	r3, .L20+12
	mov	r2, #50
	ldr	r1, .L20+16
	ldr	r0, .L20+56
	bl	__assert_fail
.L13:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L20+8
	bl	stat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L14
	ldr	r3, .L20+12
	mov	r2, #53
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L14:
	ldr	r3, [fp, #-84]
	and	r3, r3, #61440
	cmp	r3, #16384
	beq	.L15
	ldr	r3, .L20+12
	mov	r2, #54
	ldr	r1, .L20+16
	ldr	r0, .L20+60
	bl	__assert_fail
.L15:
	ldr	r0, .L20+8
	bl	rmdir
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L20+12
	mov	r2, #57
	ldr	r1, .L20+16
	ldr	r0, .L20+20
	bl	__assert_fail
.L16:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L20+8
	bl	stat
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	beq	.L17
	ldr	r3, .L20+12
	mov	r2, #60
	ldr	r1, .L20+16
	ldr	r0, .L20+56
	bl	__assert_fail
.L17:
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC11
	.word	493
	.word	.LC0
	.word	__PRETTY_FUNCTION__.5157
	.word	.LC1
	.word	.LC2
	.word	438
	.word	.LC3
	.word	.LC4
	.word	499
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5157, %object
	.size	__PRETTY_FUNCTION__.5157, 5
__PRETTY_FUNCTION__.5157:
	.ascii	"main\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
