	.file	"737239.c"
	.intel_syntax noprefix
	.text
	.local	_argv_0
	.comm	_argv_0,8,8
	.local	_file
	.comm	_file,8,8
	.section	.rodata
.LC0:
	.string	"%s: %s: %s\n"
	.text
	.globl	doit
	.type	doit, @function
doit:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	DWORD PTR -4132[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L5:
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4132[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -4120[rbp], rax
	cmp	QWORD PTR -4120[rbp], 0
	je	.L8
	cmp	QWORD PTR -4120[rbp], 0
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	rcx, QWORD PTR _file[rip]
	mov	rdx, QWORD PTR _argv_0[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L1
.L4:
	mov	rdx, QWORD PTR -4120[rbp]
	lea	rax, -4112[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	jmp	.L5
.L8:
	nop
.L1:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	doit, .-doit
	.section	.rodata
.LC1:
	.string	"stdin"
.LC2:
	.string	"-"
.LC3:
	.string	"%s: %s: Is a directory\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -172[rbp], 0
	mov	rax, QWORD PTR -192[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR _argv_0[rip], rax
	cmp	DWORD PTR -180[rbp], 1
	jne	.L10
	lea	rax, .LC1[rip]
	mov	QWORD PTR _file[rip], rax
	mov	edi, 0
	call	doit
.L10:
	mov	DWORD PTR -168[rbp], 1
	jmp	.L11
.L17:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L12
	lea	rax, .LC1[rip]
	mov	QWORD PTR _file[rip], rax
	mov	edi, 0
	call	doit
	jmp	.L16
.L12:
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR _file[rip], rax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -164[rbp], eax
	cmp	DWORD PTR -164[rbp], 0
	jns	.L14
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -172[rbp], 1
	jmp	.L16
.L14:
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fstat@PLT
	mov	eax, DWORD PTR -136[rbp]
	and	eax, 61440
	cmp	eax, 16384
	jne	.L15
	mov	eax, DWORD PTR -168[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -192[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -192[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -172[rbp], 1
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	doit
	mov	eax, DWORD PTR -164[rbp]
	mov	edi, eax
	call	close@PLT
.L16:
	add	DWORD PTR -168[rbp], 1
.L11:
	mov	eax, DWORD PTR -168[rbp]
	cmp	eax, DWORD PTR -180[rbp]
	jl	.L17
	mov	eax, DWORD PTR -172[rbp]
	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
.LFE1:
	.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	"737239.c"
	.text
	.local	_argv_0
	.comm	_argv_0,4,4
	.local	_file
	.comm	_file,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %s: %s\012\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	doit
	.syntax unified
	.arm
	.fpu softvfp
	.type	doit, %function
doit:
	@ args = 0, pretend = 0, frame = 4112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #4096
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #20
	str	r0, [r3, #-12]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #20
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #20
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #20
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	beq	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L9+4
	ldr	r4, [r3]
	ldr	r3, .L9+8
	ldr	r5, [r3]
	ldr	r3, .L9+12
	ldr	r6, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L9+16
	mov	r0, r4
	bl	fprintf
	b	.L1
.L4:
	sub	r3, fp, #4096
	sub	r3, r3, #20
	ldr	r2, [r3, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #20
	sub	r3, r3, #4
	mov	r1, r3
	mov	r0, #1
	bl	write
	b	.L5
.L8:
	nop
.L1:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.word	stderr
	.word	_argv_0
	.word	_file
	.word	.LC0
	.size	doit, .-doit
	.section	.rodata
	.align	2
.LC2:
	.ascii	"stdin\000"
	.align	2
.LC3:
	.ascii	"-\000"
	.align	2
.LC4:
	.ascii	"%s: %s: Is a directory\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #132
	str	r0, [fp, #-136]
	str	r1, [fp, #-140]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-140]
	ldr	r3, [r3]
	ldr	r2, .L22+4
	str	r3, [r2]
	ldr	r3, [fp, #-136]
	cmp	r3, #1
	bne	.L12
	ldr	r3, .L22+8
	ldr	r2, .L22+12
	str	r2, [r3]
	mov	r0, #0
	bl	doit
.L12:
	mov	r3, #1
	str	r3, [fp, #-124]
	b	.L13
.L19:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L22+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L22+8
	ldr	r2, .L22+12
	str	r2, [r3]
	mov	r0, #0
	bl	doit
	b	.L18
.L14:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L22+8
	str	r3, [r2]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L16
	ldr	r3, .L22+20
	ldr	r4, [r3]
	ldr	r3, [fp, #-140]
	ldr	r5, [r3]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r6, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L22+24
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-128]
	b	.L18
.L16:
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, [fp, #-120]
	bl	fstat
	ldr	r3, [fp, #-100]
	and	r3, r3, #61440
	cmp	r3, #16384
	bne	.L17
	ldr	r3, .L22+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-140]
	ldr	r1, [r3]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-140]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r1
	ldr	r1, .L22+28
	bl	fprintf
	ldr	r0, [fp, #-120]
	bl	close
	mov	r3, #1
	str	r3, [fp, #-128]
	b	.L18
.L17:
	ldr	r0, [fp, #-120]
	bl	doit
	ldr	r0, [fp, #-120]
	bl	close
.L18:
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L13:
	ldr	r2, [fp, #-124]
	ldr	r3, [fp, #-136]
	cmp	r2, r3
	blt	.L19
	ldr	r3, [fp, #-128]
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	_argv_0
	.word	_file
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC0
	.word	.LC4
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
