	.file	"86074615.c"
	.intel_syntax noprefix
	.text
	.globl	Info_temp
	.bss
	.align 32
	.type	Info_temp, @object
	.size	Info_temp, 40
Info_temp:
	.zero	40
	.globl	size_info
	.data
	.align 2
	.type	size_info, @object
	.size	size_info, 2
size_info:
	.value	40
	.globl	Table_temp
	.bss
	.align 32
	.type	Table_temp, @object
	.size	Table_temp, 56
Table_temp:
	.zero	56
	.globl	size_table
	.data
	.align 2
	.type	size_table, @object
	.size	size_table, 2
size_table:
	.value	56
	.text
	.globl	BD_write
	.type	BD_write, @function
BD_write:
.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, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	DWORD PTR -76[rbp], r9d
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	cmp	DWORD PTR -76[rbp], -1
	je	.L4
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	imul	rax, QWORD PTR -72[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L4:
	mov	DWORD PTR -20[rbp], 0
	jmp	.L5
.L7:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	cmp	eax, -1
	jne	.L6
	mov	eax, -1
	jmp	.L3
.L6:
	add	DWORD PTR -20[rbp], 1
.L5:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	jg	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	BD_write, .-BD_write
	.globl	BD_read
	.type	BD_read, @function
BD_read:
.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, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	mov	DWORD PTR -76[rbp], r9d
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], 0
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	cmp	DWORD PTR -76[rbp], -1
	je	.L11
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	imul	rax, QWORD PTR -72[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
.L11:
	mov	DWORD PTR -24[rbp], 0
	jmp	.L12
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 2
	jmp	.L10
.L13:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -16[rbp], rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -24[rbp], 1
.L12:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	cmp	QWORD PTR -72[rbp], rax
	jg	.L14
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	BD_read, .-BD_read
	.section	.rodata
.LC0:
	.string	"rb"
	.text
	.globl	BD_output
	.type	BD_output, @function
BD_output:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	edi, DWORD PTR count.0[rip]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, edi
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	BD_read
	test	eax, eax
	jne	.L16
	mov	eax, DWORD PTR count.0[rip]
	add	eax, 1
	mov	DWORD PTR count.0[rip], eax
	mov	eax, DWORD PTR count.0[rip]
	jmp	.L17
.L16:
	mov	DWORD PTR count.0[rip], 0
	mov	eax, DWORD PTR count.0[rip]
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	BD_output, .-BD_output
	.globl	BD_out
	.type	BD_out, @function
BD_out:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	DWORD PTR -52[rbp], r8d
	mov	edi, DWORD PTR -52[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	r9d, edi
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	BD_read
	test	eax, eax
	je	.L19
	mov	eax, 1
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, -1
	jne	.L21
	mov	eax, 1
	jmp	.L20
.L21:
	mov	eax, 0
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	BD_out, .-BD_out
	.section	.rodata
.LC1:
	.string	"BD"
.LC2:
	.string	"BD/ACS.bin"
.LC3:
	.string	"wb"
	.text
	.globl	BD_check
	.type	BD_check, @function
BD_check:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	esi, 511
	lea	rdi, .LC1[rip]
	call	mkdir@PLT
	mov	QWORD PTR -8[rbp], 0
	lea	rsi, .LC0[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L23
	lea	rsi, .LC3[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	edx, 600
	pxor	xmm1, xmm1
	pxor	xmm0, xmm0
	mov	esi, 0
	mov	edi, 0
	call	BD_in_info
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	BD_check, .-BD_check
	.section	.rodata
.LC5:
	.string	"r+b"
	.text
	.globl	BD_in_info
	.type	BD_in_info, @function
BD_in_info:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	movsd	QWORD PTR -24[rbp], xmm0
	movsd	QWORD PTR -32[rbp], xmm1
	mov	eax, edx
	mov	WORD PTR -36[rbp], ax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR Info_temp[rip], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR Info_temp[rip+8], rax
	movsd	xmm0, QWORD PTR -24[rbp]
	movsd	QWORD PTR Info_temp[rip+16], xmm0
	movsd	xmm0, QWORD PTR -32[rbp]
	movsd	QWORD PTR Info_temp[rip+24], xmm0
	movzx	eax, WORD PTR -36[rbp]
	mov	WORD PTR Info_temp[rip+32], ax
	movzx	eax, WORD PTR size_info[rip]
	movzx	eax, ax
	mov	r9d, -1
	mov	r8, rax
	mov	ecx, 0
	lea	rdx, Info_temp[rip]
	lea	rsi, .LC5[rip]
	lea	rdi, .LC2[rip]
	call	BD_write
	test	eax, eax
	je	.L26
	mov	eax, 3
	jmp	.L27
.L26:
	mov	eax, 0
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	BD_in_info, .-BD_in_info
	.section	.rodata
.LC6:
	.string	"ab"
	.text
	.globl	BD_add
	.type	BD_add, @function
BD_add:
.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, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, -1
	mov	r8, rsi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	BD_write
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	BD_add, .-BD_add
	.globl	BD_change
	.type	BD_change, @function
BD_change:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	DWORD PTR -36[rbp], r8d
	mov	edi, DWORD PTR -36[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r9d, edi
	mov	r8, rsi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	BD_write
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	BD_change, .-BD_change
	.globl	BD_remove
	.type	BD_remove, @function
BD_remove:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	DWORD PTR -76[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], -1
	mov	DWORD PTR -36[rbp], 8
	lea	rax, -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L33
	mov	eax, 1
	jmp	.L38
.L33:
	cmp	DWORD PTR -76[rbp], -1
	je	.L36
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	imul	rax, QWORD PTR -72[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fseek@PLT
	jmp	.L36
.L37:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	putc@PLT
	cmp	eax, -1
	jne	.L36
	mov	eax, -1
	jmp	.L38
.L36:
	mov	eax, DWORD PTR -36[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -36[rbp], edx
	test	eax, eax
	jne	.L37
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L38:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L39
	call	__stack_chk_fail@PLT
.L39:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	BD_remove, .-BD_remove
	.local	count.0
	.comm	count.0,4,4
	.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	"86074615.c"
	.text
	.comm	Info_temp,32,8
	.global	size_info
	.data
	.align	1
	.type	size_info, %object
	.size	size_info, 2
size_info:
	.short	32
	.comm	Table_temp,48,8
	.global	size_table
	.align	1
	.type	size_table, %object
	.size	size_table, 2
size_table:
	.short	48
	.text
	.align	2
	.global	BD_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_write, %function
BD_write:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	ldr	r3, [fp, #8]
	cmn	r3, #1
	beq	.L4
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fseek
.L4:
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L5
.L7:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	putc
	mov	r3, r0
	cmn	r3, #1
	bne	.L6
	mvn	r3, #0
	b	.L3
.L6:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L5:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L7
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	BD_write, .-BD_write
	.align	2
	.global	BD_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_read, %function
BD_read:
	@ args = 8, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L9
	mov	r3, #1
	b	.L10
.L9:
	ldr	r3, [fp, #8]
	cmn	r3, #1
	beq	.L11
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #4]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	fseek
.L11:
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L12
.L14:
	ldr	r0, [fp, #-12]
	bl	getc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L13
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #2
	b	.L10
.L13:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L12:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #4]
	cmp	r2, r3
	blt	.L14
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	BD_read, .-BD_read
	.section	.rodata
	.align	2
.LC0:
	.ascii	"rb\000"
	.text
	.align	2
	.global	BD_output
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_output, %function
BD_output:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, .L18+4
	ldr	r0, [fp, #-8]
	bl	BD_read
	mov	r3, r0
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18
	str	r3, [r2]
	ldr	r3, .L18
	ldr	r3, [r3]
	b	.L17
.L16:
	ldr	r3, .L18
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L18
	ldr	r3, [r3]
.L17:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	count.4816
	.word	.LC0
	.size	BD_output, .-BD_output
	.align	2
	.global	BD_out
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_out, %function
BD_out:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-28]
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r1, .L24
	ldr	r0, [fp, #-16]
	bl	BD_read
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	mov	r3, #1
	b	.L22
.L21:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L23
	mov	r3, #1
	b	.L22
.L23:
	mov	r3, #0
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC0
	.size	BD_out, .-BD_out
	.section	.rodata
	.align	2
.LC1:
	.ascii	"BD\000"
	.align	2
.LC2:
	.ascii	"BD/ACS.bin\000"
	.align	2
.LC3:
	.ascii	"wb\000"
	.text
	.align	2
	.global	BD_check
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_check, %function
BD_check:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r1, .L29
	ldr	r0, .L29+4
	bl	mkdir
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, .L29+8
	ldr	r0, .L29+12
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L27
	ldr	r1, .L29+16
	ldr	r0, .L29+12
	bl	fopen
	mov	r3, #600
	str	r3, [sp, #8]
	mov	r2, #0
	mov	r3, #0
	stm	sp, {r2-r3}
	mov	r2, #0
	mov	r3, #0
	mov	r1, #0
	mov	r0, #0
	bl	BD_in_info
	mov	r3, r0
	b	.L28
.L27:
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, #0
.L28:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	511
	.word	.LC1
	.word	.LC0
	.word	.LC2
	.word	.LC3
	.size	BD_check, .-BD_check
	.section	.rodata
	.align	2
.LC4:
	.ascii	"r+b\000"
	.text
	.align	2
	.global	BD_in_info
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_in_info, %function
BD_in_info:
	@ args = 12, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	ldr	r2, .L34
	str	r3, [r2]
	ldr	r2, .L34
	ldr	r3, [fp, #-12]
	str	r3, [r2, #4]
	ldr	r1, .L34
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [r1, #8]
	str	r3, [r1, #12]
	ldr	r1, .L34
	ldmib	fp, {r2-r3}
	str	r2, [r1, #16]
	str	r3, [r1, #20]
	ldr	r2, .L34
	ldrh	r3, [fp, #12]	@ movhi
	strh	r3, [r2, #24]	@ movhi
	ldr	r3, .L34+4
	ldrh	r3, [r3]
	mov	r2, r3
	mvn	r3, #0
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, .L34+8
	ldr	r0, .L34+12
	bl	BD_write
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	mov	r3, #3
	b	.L33
.L32:
	mov	r3, #0
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	Info_temp
	.word	size_info
	.word	.LC4
	.word	.LC2
	.size	BD_in_info, .-BD_in_info
	.section	.rodata
	.align	2
.LC5:
	.ascii	"ab\000"
	.text
	.align	2
	.global	BD_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_add, %function
BD_add:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	mvn	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, .L38
	ldr	r0, [fp, #-8]
	bl	BD_write
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC5
	.size	BD_add, .-BD_add
	.align	2
	.global	BD_change
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_change, %function
BD_change:
	@ args = 4, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #4]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-20]
	str	r3, [sp]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, .L42
	ldr	r0, [fp, #-8]
	bl	BD_write
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC4
	.size	BD_change, .-BD_change
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	BD_remove
	.syntax unified
	.arm
	.fpu softvfp
	.type	BD_remove, %function
BD_remove:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #4
	str	r3, [fp, #-20]
	sub	r3, fp, #24
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L52+4
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L45
	mov	r3, #1
	b	.L50
.L45:
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	beq	.L48
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-40]
	mul	r2, r3, r2
	ldr	r3, [fp, #-36]
	add	r3, r2, r3
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	fseek
	b	.L48
.L49:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	putc
	mov	r3, r0
	cmn	r3, #1
	bne	.L48
	mvn	r3, #0
	b	.L50
.L48:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L49
	ldr	r0, [fp, #-12]
	bl	fclose
	mov	r3, #0
.L50:
	ldr	r2, .L52
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L51
	bl	__stack_chk_fail
.L51:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L53:
	.align	2
.L52:
	.word	.LC6
	.word	.LC4
	.size	BD_remove, .-BD_remove
	.local	count.4816
	.comm	count.4816,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
