	.file	"87723.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"."
.LC1:
	.string	"failed to open target dir"
	.text
	.globl	main
	.type	main, @function
main:
.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, 1088
	mov	DWORD PTR -1076[rbp], edi
	mov	QWORD PTR -1088[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1060[rbp], -1
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	cmp	DWORD PTR -1076[rbp], 0
	jle	.L2
	mov	eax, DWORD PTR -1076[rbp]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -1088[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1060[rbp], eax
	jmp	.L3
.L2:
	mov	edx, 0
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -1060[rbp], eax
.L3:
	cmp	DWORD PTR -1060[rbp], -1
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L11
.L4:
	lea	rcx, -1040[rbp]
	mov	eax, DWORD PTR -1060[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -1052[rbp], eax
	lea	rax, -1040[rbp]
	mov	QWORD PTR -1048[rbp], rax
	mov	DWORD PTR -1056[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -1056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR -1056[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	rax, QWORD PTR -1048[rbp]
	add	rax, rdx
	add	rax, 8
	mov	rdi, rax
	call	puts@PLT
.L7:
	add	DWORD PTR -1056[rbp], 1
.L6:
	mov	eax, DWORD PTR -1056[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -1052[rbp]
	cdqe
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 5
	cmp	rcx, rax
	jb	.L8
	cmp	DWORD PTR -1052[rbp], 1023
	jle	.L14
	jmp	.L4
.L14:
	nop
	mov	eax, DWORD PTR -1060[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L11:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-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	"87723.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	".\000"
	.align	2
.LC1:
	.ascii	"failed to open target dir\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1056]
	str	r1, [fp, #-1060]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-1048]
	mov	r3, #0
	str	r3, [fp, #-1032]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1056]
	cmp	r3, #0
	ble	.L2
	ldr	r3, [fp, #-1056]
	sub	r3, r3, #-1073741823
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1060]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-1048]
	b	.L3
.L2:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, .L15+4
	bl	open
	str	r0, [fp, #-1048]
.L3:
	ldr	r3, [fp, #-1048]
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L15+8
	bl	puts
	mov	r3, #0
	b	.L11
.L4:
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-1048]
	bl	read
	str	r0, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1044]
	b	.L6
.L8:
	ldr	r2, [fp, #-1044]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-1036]
	add	r3, r3, r2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-1044]
	mov	r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r2
	lsl	r3, r3, #2
	mov	r2, r3
	ldr	r3, [fp, #-1036]
	add	r3, r3, r2
	add	r3, r3, #4
	mov	r0, r3
	bl	puts
.L7:
	ldr	r3, [fp, #-1044]
	add	r3, r3, #1
	str	r3, [fp, #-1044]
.L6:
	ldr	r3, [fp, #-1040]
	ldr	r2, .L15+12
	umull	r1, r3, r2, r3
	lsr	r2, r3, #3
	ldr	r3, [fp, #-1044]
	cmp	r2, r3
	bhi	.L8
	ldr	r3, [fp, #-1040]
	cmp	r3, #1024
	blt	.L14
	b	.L4
.L14:
	nop
	ldr	r0, [fp, #-1048]
	bl	close
	mov	r3, #0
.L11:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC2
	.word	.LC0
	.word	.LC1
	.word	954437177
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
