	.file	"851495.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"\nCould not access CD Block 0x%lX"
.LC1:
	.string	"\t\t<dir>"
.LC2:
	.string	"\t%13ld"
.LC3:
	.string	"%9lX (Hex)\n"
	.text
	.globl	dir_rec
	.type	dir_rec, @function
dir_rec:
.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, 2128
	mov	QWORD PTR -2120[rbp], rdi
	mov	DWORD PTR -2124[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -2120[rbp]
	sal	rax, 11
	mov	rcx, rax
	mov	eax, DWORD PTR -2124[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	lseek@PLT
	cmp	rax, -1
	sete	al
	movzx	eax, al
	mov	QWORD PTR -2080[rbp], rax
	cmp	QWORD PTR -2080[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -2120[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2124[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
	mov	DWORD PTR -2104[rbp], 0
	mov	eax, DWORD PTR -2104[rbp]
	mov	DWORD PTR -2100[rbp], eax
	jmp	.L3
.L14:
	mov	BYTE PTR -2105[rbp], 0
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	test	al, al
	jne	.L4
	sub	DWORD PTR -2104[rbp], 1
	mov	DWORD PTR -2100[rbp], 0
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2124[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	read@PLT
.L4:
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 32
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	mov	DWORD PTR -2088[rbp], eax
	mov	DWORD PTR -2096[rbp], 33
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	mov	DWORD PTR -2084[rbp], eax
	mov	eax, DWORD PTR -2088[rbp]
	mov	DWORD PTR -2092[rbp], eax
	mov	edx, DWORD PTR -2100[rbp]
	mov	eax, DWORD PTR -2096[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -2092[rbp]
	add	eax, edx
	sub	eax, 2
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	cmp	al, 59
	jne	.L6
	mov	edx, DWORD PTR -2100[rbp]
	mov	eax, DWORD PTR -2096[rbp]
	add	edx, eax
	mov	eax, DWORD PTR -2092[rbp]
	add	eax, edx
	sub	eax, 1
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	cmp	al, 49
	jne	.L6
	sub	DWORD PTR -2088[rbp], 2
	mov	eax, DWORD PTR -2088[rbp]
	mov	DWORD PTR -2092[rbp], eax
	jmp	.L6
.L10:
	mov	edx, DWORD PTR -2100[rbp]
	mov	eax, DWORD PTR -2096[rbp]
	add	eax, edx
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	test	al, al
	je	.L7
	mov	edx, DWORD PTR -2100[rbp]
	mov	eax, DWORD PTR -2096[rbp]
	add	eax, edx
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	cmp	al, 1
	jne	.L8
	mov	edi, 46
	call	putchar@PLT
	mov	edi, 46
	call	putchar@PLT
	jmp	.L9
.L8:
	mov	edx, DWORD PTR -2100[rbp]
	mov	eax, DWORD PTR -2096[rbp]
	add	eax, edx
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	mov	edi, eax
	call	putchar@PLT
	jmp	.L9
.L7:
	mov	edi, 46
	call	putchar@PLT
	mov	BYTE PTR -2105[rbp], 1
.L9:
	add	DWORD PTR -2096[rbp], 1
.L6:
	mov	eax, DWORD PTR -2092[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -2092[rbp], edx
	test	eax, eax
	jne	.L10
	cmp	DWORD PTR -2088[rbp], 7
	jg	.L11
	mov	edi, 9
	call	putchar@PLT
.L11:
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 13
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	sal	eax, 24
	cdqe
	mov	QWORD PTR -2072[rbp], rax
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 12
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	sal	eax, 16
	cdqe
	add	QWORD PTR -2072[rbp], rax
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 11
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	sal	eax, 8
	cdqe
	add	QWORD PTR -2072[rbp], rax
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 10
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	add	QWORD PTR -2072[rbp], rax
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 25
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	and	eax, 2
	test	eax, eax
	je	.L12
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -2105[rbp], 0
	je	.L13
	mov	rax, QWORD PTR -2072[rbp]
	sar	rax, 11
	sub	eax, 1
	mov	DWORD PTR -2104[rbp], eax
	jmp	.L13
.L12:
	mov	rax, QWORD PTR -2072[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L13:
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 5
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	sal	eax, 24
	cdqe
	mov	QWORD PTR -2120[rbp], rax
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 4
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	sal	eax, 16
	cdqe
	add	QWORD PTR -2120[rbp], rax
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 3
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	sal	eax, 8
	cdqe
	add	QWORD PTR -2120[rbp], rax
	mov	eax, DWORD PTR -2100[rbp]
	add	eax, 2
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	movzx	eax, al
	add	QWORD PTR -2120[rbp], rax
	mov	rax, QWORD PTR -2120[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2084[rbp]
	add	DWORD PTR -2100[rbp], eax
.L3:
	mov	eax, DWORD PTR -2100[rbp]
	cdqe
	movzx	eax, BYTE PTR -2064[rbp+rax]
	test	al, al
	jne	.L14
	cmp	DWORD PTR -2104[rbp], 0
	jne	.L14
	nop
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	dir_rec, .-dir_rec
	.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	"851495.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Could not access CD Block 0x%lX\000"
	.align	2
.LC1:
	.ascii	"\011\011<dir>\000"
	.align	2
.LC2:
	.ascii	"\011%13ld\000"
	.align	2
.LC3:
	.ascii	"%9lX (Hex)\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dir_rec
	.syntax unified
	.arm
	.fpu softvfp
	.type	dir_rec, %function
dir_rec:
	@ args = 0, pretend = 0, frame = 2096
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2096
	str	r0, [fp, #-2096]
	str	r1, [fp, #-2100]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-2096]
	lsl	r3, r3, #11
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-2100]
	bl	lseek
	mov	r3, r0
	cmn	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-2068]
	ldr	r3, [fp, #-2068]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-2096]
	ldr	r0, .L16+4
	bl	printf
	mov	r0, #1
	bl	exit
.L2:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [fp, #-2100]
	bl	read
	mov	r3, #0
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2088]
	str	r3, [fp, #-2084]
	b	.L3
.L14:
	mov	r3, #0
	strb	r3, [fp, #-2089]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2084]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-2088]
	sub	r3, r3, #1
	str	r3, [fp, #-2088]
	mov	r3, #0
	str	r3, [fp, #-2084]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	ldr	r0, [fp, #-2100]
	bl	read
.L4:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #32
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	str	r3, [fp, #-2072]
	mov	r3, #33
	str	r3, [fp, #-2080]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2084]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-2064]
	ldr	r3, [fp, #-2072]
	str	r3, [fp, #-2076]
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2080]
	add	r2, r2, r3
	ldr	r3, [fp, #-2076]
	add	r3, r2, r3
	sub	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	cmp	r3, #59
	bne	.L6
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2080]
	add	r2, r2, r3
	ldr	r3, [fp, #-2076]
	add	r3, r2, r3
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L6
	ldr	r3, [fp, #-2072]
	sub	r3, r3, #2
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2072]
	str	r3, [fp, #-2076]
	b	.L6
.L10:
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2080]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2080]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L8
	mov	r0, #46
	bl	putchar
	mov	r0, #46
	bl	putchar
	b	.L9
.L8:
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2080]
	add	r3, r2, r3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	b	.L9
.L7:
	mov	r0, #46
	bl	putchar
	mov	r3, #1
	strb	r3, [fp, #-2089]
.L9:
	ldr	r3, [fp, #-2080]
	add	r3, r3, #1
	str	r3, [fp, #-2080]
.L6:
	ldr	r3, [fp, #-2076]
	sub	r2, r3, #1
	str	r2, [fp, #-2076]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-2072]
	cmp	r3, #7
	bgt	.L11
	mov	r0, #9
	bl	putchar
.L11:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #13
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	lsl	r3, r3, #24
	str	r3, [fp, #-2060]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #12
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	lsl	r3, r3, #16
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	str	r3, [fp, #-2060]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #11
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-2060]
	add	r3, r2, r3
	str	r3, [fp, #-2060]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #10
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-2060]
	add	r3, r3, r2
	str	r3, [fp, #-2060]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #25
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L12
	ldr	r0, .L16+8
	bl	printf
	ldrb	r3, [fp, #-2089]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-2060]
	asr	r3, r3, #11
	sub	r3, r3, #1
	str	r3, [fp, #-2088]
	b	.L13
.L12:
	ldr	r1, [fp, #-2060]
	ldr	r0, .L16+12
	bl	printf
.L13:
	ldr	r3, [fp, #-2084]
	add	r3, r3, #5
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	lsl	r3, r3, #24
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	lsl	r3, r3, #16
	ldr	r2, [fp, #-2096]
	add	r3, r2, r3
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #3
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-2096]
	add	r3, r2, r3
	str	r3, [fp, #-2096]
	ldr	r3, [fp, #-2084]
	add	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-2052]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-2096]
	add	r3, r3, r2
	str	r3, [fp, #-2096]
	ldr	r1, [fp, #-2096]
	ldr	r0, .L16+16
	bl	printf
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2064]
	add	r3, r2, r3
	str	r3, [fp, #-2084]
.L3:
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2084]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L14
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bne	.L14
	nop
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	dir_rec, .-dir_rec
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
