	.file	"349255.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"b:c:r:"
.LC1:
	.string	"%s: invalid option -%c\n"
	.align 8
.LC2:
	.string	"Usage: %s [-b base] [-c count] [-r delay] file\n"
.LC3:
	.string	"could not open %s, %s\n"
.LC4:
	.string	"%08x: "
.LC5:
	.string	"%02x "
.LC6:
	.string	"s %x\n"
	.align 8
.LC7:
	.string	"Read error on %s, offset %d len %d, %s\n"
.LC8:
	.string	"sum %x\n"
	.text
	.globl	hd_main
	.type	hd_main, @function
hd_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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 80
	mov	DWORD PTR -4164[rbp], edi
	mov	QWORD PTR -4176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4128[rbp], 0
	mov	DWORD PTR -4152[rbp], 0
	mov	DWORD PTR -4140[rbp], -1
	mov	DWORD PTR -4136[rbp], 0
	mov	DWORD PTR -4132[rbp], 0
.L8:
	mov	rcx, QWORD PTR -4176[rbp]
	mov	eax, DWORD PTR -4164[rbp]
	lea	rdx, .LC0[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -4124[rbp], eax
	cmp	DWORD PTR -4124[rbp], -1
	je	.L28
	cmp	DWORD PTR -4124[rbp], 114
	je	.L4
	cmp	DWORD PTR -4124[rbp], 114
	jg	.L8
	cmp	DWORD PTR -4124[rbp], 99
	je	.L6
	cmp	DWORD PTR -4124[rbp], 99
	jg	.L8
	cmp	DWORD PTR -4124[rbp], 63
	je	.L7
	cmp	DWORD PTR -4124[rbp], 98
	jne	.L8
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -4140[rbp], eax
	jmp	.L5
.L6:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -4136[rbp], eax
	jmp	.L5
.L4:
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR -4132[rbp], eax
	jmp	.L5
.L7:
	mov	ecx, DWORD PTR optopt[rip]
	mov	rax, QWORD PTR -4176[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	jmp	.L8
.L28:
	nop
	mov	eax, DWORD PTR optind[rip]
	add	eax, 1
	cmp	DWORD PTR -4164[rbp], eax
	je	.L9
	mov	rax, QWORD PTR -4176[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -4120[rbp], eax
	cmp	DWORD PTR -4120[rbp], 0
	jns	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, rdx
	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, 1
	jmp	.L24
.L10:
	cmp	DWORD PTR -4140[rbp], 0
	js	.L12
	mov	eax, DWORD PTR -4140[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -4120[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	lseek@PLT
	mov	eax, DWORD PTR -4140[rbp]
	mov	DWORD PTR -4152[rbp], eax
.L12:
	mov	DWORD PTR -4148[rbp], 0
	mov	DWORD PTR -4144[rbp], 0
.L22:
	mov	DWORD PTR -4160[rbp], 4096
	cmp	DWORD PTR -4136[rbp], 0
	jle	.L13
	mov	edx, DWORD PTR -4140[rbp]
	mov	eax, DWORD PTR -4136[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -4152[rbp]
	cmp	DWORD PTR -4160[rbp], eax
	jle	.L13
	mov	edx, DWORD PTR -4140[rbp]
	mov	eax, DWORD PTR -4136[rbp]
	add	eax, edx
	sub	eax, DWORD PTR -4152[rbp]
	mov	DWORD PTR -4160[rbp], eax
.L13:
	mov	eax, DWORD PTR -4160[rbp]
	movsx	rdx, eax
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4120[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4116[rbp], eax
	mov	DWORD PTR -4156[rbp], 0
	jmp	.L14
.L18:
	mov	eax, DWORD PTR -4156[rbp]
	and	eax, 15
	test	eax, eax
	jne	.L15
	mov	edx, DWORD PTR -4152[rbp]
	mov	eax, DWORD PTR -4156[rbp]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	eax, DWORD PTR -4156[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	eax, al
	add	DWORD PTR -4144[rbp], eax
	mov	eax, DWORD PTR -4156[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	eax, al
	add	DWORD PTR -4148[rbp], eax
	mov	eax, DWORD PTR -4156[rbp]
	cdqe
	movzx	eax, BYTE PTR -4112[rbp+rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4156[rbp]
	and	eax, 15
	cmp	eax, 15
	je	.L16
	mov	eax, DWORD PTR -4116[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4156[rbp], eax
	jne	.L17
.L16:
	mov	eax, DWORD PTR -4144[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4144[rbp], 0
.L17:
	add	DWORD PTR -4156[rbp], 1
.L14:
	mov	eax, DWORD PTR -4156[rbp]
	cmp	eax, DWORD PTR -4116[rbp]
	jl	.L18
	cmp	DWORD PTR -4116[rbp], 0
	jg	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -4176[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR -4160[rbp]
	mov	edx, DWORD PTR -4152[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L24
.L19:
	mov	eax, DWORD PTR -4116[rbp]
	add	DWORD PTR -4152[rbp], eax
	mov	edx, DWORD PTR -4140[rbp]
	mov	eax, DWORD PTR -4136[rbp]
	add	eax, edx
	cmp	DWORD PTR -4152[rbp], eax
	je	.L29
	jmp	.L22
.L29:
	nop
	mov	eax, DWORD PTR -4148[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -4132[rbp], 0
	je	.L23
	mov	eax, DWORD PTR -4132[rbp]
	mov	edi, eax
	call	sleep@PLT
.L23:
	cmp	DWORD PTR -4132[rbp], 0
	jne	.L10
	mov	eax, 0
.L24:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	hd_main, .-hd_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	"349255.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"b:c:r:\000"
	.align	2
.LC1:
	.ascii	"%s: invalid option -%c\012\000"
	.align	2
.LC2:
	.ascii	"Usage: %s [-b base] [-c count] [-r delay] file\012\000"
	.align	2
.LC3:
	.ascii	"could not open %s, %s\012\000"
	.align	2
.LC4:
	.ascii	"%08x: \000"
	.align	2
.LC5:
	.ascii	"%02x \000"
	.align	2
.LC6:
	.ascii	"s %x\012\000"
	.align	2
.LC7:
	.ascii	"Read error on %s, offset %d len %d, %s\012\000"
	.align	2
.LC8:
	.ascii	"sum %x\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hd_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	hd_main, %function
hd_main:
	@ args = 0, pretend = 0, frame = 4160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #4160
	sub	sp, sp, #8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-64]
	ldr	r3, .L30
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mvn	r3, #0
	str	r3, [r2, #-32]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-28]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-24]
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, .L30+4
	ldr	r1, [r1, #-64]
	ldr	r0, [r3, #-60]
	bl	getopt
	str	r0, [r4, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmn	r3, #1
	beq	.L28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #114
	beq	.L4
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #114
	bgt	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #99
	beq	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #99
	bgt	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #63
	beq	.L7
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #98
	bne	.L8
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [r4, #-32]
	b	.L5
.L6:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [r4, #-28]
	b	.L5
.L4:
	ldr	r3, .L30+8
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	str	r0, [r4, #-24]
	b	.L5
.L7:
	ldr	r3, .L30+12
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	ldr	r2, [r3]
	ldr	r3, .L30+16
	ldr	r3, [r3]
	ldr	r1, .L30+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	b	.L8
.L28:
	nop
	ldr	r3, .L30+24
	ldr	r3, [r3]
	add	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-60]
	cmp	r2, r3
	beq	.L9
	ldr	r3, .L30+12
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-64]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L30+28
	bl	fprintf
	mov	r0, #1
	bl	exit
.L9:
	ldr	r3, .L30+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r4, r2
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L30+12
	ldr	r4, [r3]
	ldr	r3, .L30+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L30+32
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L24
.L10:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	blt	.L12
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, #0
	ldr	r1, [r1, #-32]
	ldr	r0, [r3, #-12]
	bl	lseek
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-32]
	str	r3, [r2, #-44]
.L12:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-36]
.L22:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #4096
	str	r3, [r2, #-52]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	ble	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-32]
	ldr	r3, [r3, #-28]
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	sub	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-52]
	cmp	r2, r3
	ble	.L13
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-32]
	ldr	r3, [r3, #-28]
	add	r2, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-44]
	sub	r3, r2, r3
	str	r3, [r1, #-52]
.L13:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-52]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-12]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-48]
	b	.L14
.L18:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	and	r3, r3, #15
	cmp	r3, #0
	bne	.L15
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r3, [r3, #-48]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L30+36
	bl	printf
.L15:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-36]
	add	r3, r3, r1
	str	r3, [r2, #-36]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-40]
	add	r3, r3, r1
	str	r3, [r2, #-40]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L30+40
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	and	r3, r3, #15
	cmp	r3, #15
	beq	.L16
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-48]
	cmp	r2, r3
	bne	.L17
.L16:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-36]
	ldr	r0, .L30+44
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-36]
.L17:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	str	r3, [r2, #-48]
.L14:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-48]
	ldr	r3, [r3, #-8]
	cmp	r2, r3
	blt	.L18
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bgt	.L19
	ldr	r3, .L30+24
	ldr	r3, [r3]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-64]
	add	r3, r2, r3
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	str	r3, [sp]
	ldr	r3, [r1, #-52]
	ldr	r2, [r2, #-44]
	mov	r1, r4
	ldr	r0, .L30+48
	bl	printf
	mov	r3, #1
	b	.L24
.L19:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-44]
	ldr	r3, [r3, #-8]
	add	r3, r2, r3
	str	r3, [r1, #-44]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-32]
	ldr	r3, [r3, #-28]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-44]
	cmp	r2, r3
	beq	.L29
	b	.L22
.L29:
	nop
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, [r3, #-40]
	ldr	r0, .L30+52
	bl	printf
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	beq	.L23
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	mov	r0, r3
	bl	sleep
.L23:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-24]
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
.L24:
	ldr	r2, .L30
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L31:
	.align	2
.L30:
	.word	.LC9
	.word	.LC0
	.word	optarg
	.word	stderr
	.word	optopt
	.word	.LC1
	.word	optind
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	hd_main, .-hd_main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
