	.file	"extr_st.c_read_tape.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Sense: %2x %2x %2x %2x %2x %2x %2x %2x\n"
	.align 8
.LC1:
	.string	"Failed to read %d byte block with %d byte transfer.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"Incorrect block size.\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"ILI but enough data received %ld %d.\n"
	.align 8
.LC4:
	.string	"EOF detected (%d bytes read).\n"
	.align 8
.LC5:
	.string	"EOM detected (%d bytes read).\n"
	.section	.rodata.str1.1
.LC6:
	.string	"Tape error while reading.\n"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"Zero returned for first BLANK CHECK after EOF.\n"
	.text
	.p2align 4
	.type	read_tape, @function
read_tape:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 56
	mov	QWORD PTR -72[rbp], rsi
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR MAX_COMMAND_SIZE[rip]
	mov	r8, rax
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L60:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L60
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L61
	mov	rsi, QWORD PTR -72[rbp]
	mov	r15, rsp
	xor	r9d, r9d
	test	rsi, rsi
	je	.L1
.L67:
	mov	rax, QWORD PTR 8[r12]
	mov	r9d, 1
	lea	rdx, [rax+rax*2]
	mov	rax, QWORD PTR 56[r12]
	lea	r13, [rax+rdx*8]
	mov	rax, QWORD PTR ST_FM_HIT[rip]
	cmp	QWORD PTR 0[r13], rax
	je	.L1
	mov	r14d, DWORD PTR 16[r12]
	mov	r10, QWORD PTR 24[r12]
	test	r14d, r14d
	jne	.L6
	mov	DWORD PTR -80[rbp], esi
	mov	r14d, esi
.L7:
	xor	esi, esi
	mov	edx, r8d
	mov	rdi, r15
	mov	QWORD PTR -88[rbp], r10
	call	memset@PLT
	movzx	eax, BYTE PTR READ_6[rip]
	mov	r10, QWORD PTR -88[rbp]
	mov	BYTE PTR [r15], al
	mov	eax, DWORD PTR 16[r12]
	test	eax, eax
	setne	BYTE PTR 1[r15]
	jne	.L11
	cmp	QWORD PTR 32[r12], 0
	jne	.L62
.L11:
	mov	ecx, DWORD PTR -80[rbp]
	mov	edx, DWORD PTR MAX_RETRIES[rip]
	mov	rsi, r12
	mov	QWORD PTR -88[rbp], r10
	mov	rdi, QWORD PTR [rbx]
	mov	r8d, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	eax, ecx
	sar	eax, 16
	mov	BYTE PTR 2[r15], al
	mov	eax, ecx
	mov	ecx, r14d
	rol	ax, 8
	mov	WORD PTR 3[r15], ax
	mov	rax, QWORD PTR 40[r12]
	mov	rax, QWORD PTR [rax]
	push	1
	push	rdx
	mov	rdx, r15
	mov	r9d, DWORD PTR [rax]
	call	st_do_scsi@PLT
	mov	esi, 1
	mov	rdi, r12
	mov	r15, rax
	call	release_buffering@PLT
	test	r15, r15
	mov	QWORD PTR [rbx], r15
	mov	r10, QWORD PTR -88[rbp]
	pop	r8
	pop	r9
	je	.L63
	cmp	QWORD PTR 8[r10], 0
	mov	QWORD PTR 72[r10], 0
	mov	QWORD PTR 16[r13], 0
	jne	.L64
	mov	r9, QWORD PTR 32[r12]
	mov	ecx, DWORD PTR 8[r13]
	mov	DWORD PTR 16[r10], r14d
	test	r9, r9
	jne	.L65
.L39:
	test	ecx, ecx
	js	.L1
	mov	esi, DWORD PTR 16[r12]
	test	esi, esi
	jne	.L40
	add	ecx, 1
	mov	DWORD PTR 8[r13], ecx
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L66
	lea	rsp, -40[rbp]
	mov	rax, r9
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	cmp	QWORD PTR 48[r12], 0
	je	.L8
	cmp	QWORD PTR try_rdio[rip], 0
	je	.L8
.L9:
	mov	rdi, QWORD PTR -72[rbp]
	mov	r11d, DWORD PTR 80[r10]
	mov	eax, edi
	test	r11d, r11d
	jne	.L10
	mov	eax, DWORD PTR 4[r10]
	cmp	edi, eax
	cmovle	eax, edi
.L10:
	cdq
	idiv	r14d
	mov	DWORD PTR -80[rbp], eax
	imul	r14d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L61:
	or	QWORD PTR -8[rsp+rdx], 0
	xor	r9d, r9d
	mov	rsi, QWORD PTR -72[rbp]
	mov	r15, rsp
	test	rsi, rsi
	jne	.L67
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L65:
	mov	rax, QWORD PTR 24[r12]
	xor	r9d, r9d
	sub	r14d, DWORD PTR 32[rax]
	mov	DWORD PTR 16[r10], r14d
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR 64[r12]
	cmp	QWORD PTR [rax+rdx*8], 0
	je	.L9
	mov	eax, DWORD PTR [r10]
	mov	DWORD PTR -80[rbp], eax
	imul	r14d, eax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L62:
	mov	BYTE PTR 1[r15], 2
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L40:
	mov	eax, DWORD PTR 16[r10]
	cdq
	idiv	esi
	add	eax, ecx
	mov	DWORD PTR 8[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L64:
	mov	rax, QWORD PTR [r15]
	mov	r11, QWORD PTR 24[r12]
	mov	rdi, r12
	mov	QWORD PTR -96[rbp], r10
	lea	rsi, .LC0[rip]
	mov	edx, DWORD PTR 28[rax]
	mov	r9d, DWORD PTR 12[rax]
	mov	QWORD PTR -88[rbp], r11
	mov	r8d, DWORD PTR 8[rax]
	mov	ecx, DWORD PTR 4[rax]
	push	rdx
	mov	edx, DWORD PTR 24[rax]
	push	rdx
	mov	edx, DWORD PTR 20[rax]
	push	rdx
	mov	edx, DWORD PTR 16[rax]
	push	rdx
	mov	edx, DWORD PTR [rax]
	xor	eax, eax
	call	DEBC_printk@PLT
	mov	r11, QWORD PTR -88[rbp]
	add	rsp, 32
	mov	r10, QWORD PTR -96[rbp]
	cmp	QWORD PTR 64[r11], 0
	je	.L14
	mov	rdx, QWORD PTR 40[r11]
	cmp	rdx, QWORD PTR BLANK_CHECK[rip]
	mov	eax, DWORD PTR 24[r11]
	je	.L68
.L15:
	test	eax, eax
	je	.L16
	xor	ecx, ecx
	cmp	QWORD PTR 56[r11], 0
	je	.L17
	mov	ecx, DWORD PTR 48[r11]
.L17:
	cmp	rdx, QWORD PTR MEDIUM_ERROR[rip]
	mov	esi, DWORD PTR SENSE_ILI[rip]
	jne	.L18
	mov	edi, DWORD PTR 16[r12]
	mov	edx, esi
	not	edx
	test	edi, edi
	cmove	ecx, r14d
	and	eax, edx
	mov	DWORD PTR 24[r11], eax
.L18:
	test	esi, eax
	je	.L20
	mov	edx, DWORD PTR 16[r12]
	test	edx, edx
	je	.L69
	mov	rdi, r15
	mov	QWORD PTR -96[rbp], r10
	mov	DWORD PTR -88[rbp], ecx
	call	st_release_request@PLT
	mov	ecx, DWORD PTR -88[rbp]
	cmp	DWORD PTR -80[rbp], ecx
	mov	QWORD PTR [rbx], 0
	mov	r10, QWORD PTR -96[rbp]
	je	.L70
	mov	eax, DWORD PTR -80[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	rdi, r12
	mov	QWORD PTR -80[rbp], r10
	lea	rsi, .LC3[rip]
	sub	eax, ecx
	mov	ecx, DWORD PTR 16[r12]
	imul	ecx, eax
	xor	eax, eax
	mov	DWORD PTR 16[r10], ecx
	call	DEBC_printk@PLT
	mov	eax, DWORD PTR 8[r13]
	mov	r10, QWORD PTR -80[rbp]
	test	eax, eax
	js	.L27
	add	eax, 1
	mov	DWORD PTR 8[r13], eax
.L27:
	mov	esi, DWORD PTR MTBSR[rip]
	mov	edx, 1
	mov	rdi, r12
	mov	QWORD PTR -72[rbp], r10
	call	st_int_ioctl@PLT
	mov	r9, QWORD PTR EIO[rip]
	mov	r10, QWORD PTR -72[rbp]
	neg	r9
	test	rax, rax
	jne	.L1
.L28:
	mov	r11d, DWORD PTR 16[r10]
.L24:
	mov	ecx, DWORD PTR 8[r13]
	mov	r9d, 1
	test	r11d, r11d
	jns	.L39
	mov	DWORD PTR 16[r10], 0
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L63:
	mov	r9, QWORD PTR 8[r10]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	movsx	r9, DWORD PTR 8[r10]
	mov	ecx, DWORD PTR 8[r13]
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L68:
	and	eax, 207
	mov	DWORD PTR 24[r11], eax
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L16:
	xor	eax, eax
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	mov	QWORD PTR -80[rbp], r10
	mov	QWORD PTR -72[rbp], r11
	call	DEBC_printk@PLT
	mov	rax, QWORD PTR ST_FM[rip]
	cmp	QWORD PTR 0[r13], rax
	mov	DWORD PTR 8[r13], -1
	mov	r11, QWORD PTR -72[rbp]
	mov	r10, QWORD PTR -80[rbp]
	je	.L71
.L37:
	mov	r9d, DWORD PTR EIO[rip]
	mov	eax, DWORD PTR 16[r10]
	neg	r9d
	movsx	r9, r9d
	test	eax, eax
	jns	.L1
	mov	DWORD PTR 16[r10], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	test	DWORD PTR SENSE_FMK[rip], eax
	je	.L29
	mov	rax, QWORD PTR ST_FM_HIT[rip]
	cmp	QWORD PTR 0[r13], rax
	jne	.L30
	mov	rax, QWORD PTR ST_EOD_2[rip]
.L30:
	mov	edx, DWORD PTR 16[r12]
	mov	QWORD PTR 0[r13], rax
	test	edx, edx
	je	.L31
	imul	edx, ecx
	sub	r14d, edx
	mov	edx, r14d
.L31:
	mov	DWORD PTR 16[r10], edx
	lea	rsi, .LC4[rip]
	mov	QWORD PTR -72[rbp], r10
.L58:
	mov	rdi, r12
	xor	eax, eax
	call	DEBC_printk@PLT
	mov	r10, QWORD PTR -72[rbp]
	mov	r11d, DWORD PTR 16[r10]
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L29:
	test	DWORD PTR SENSE_EOM[rip], eax
	je	.L28
	mov	rax, QWORD PTR ST_EOM_OK[rip]
	mov	rbx, QWORD PTR ST_FM[rip]
	cmp	QWORD PTR 0[r13], rbx
	jne	.L34
	mov	rax, QWORD PTR ST_EOD_1[rip]
.L34:
	mov	QWORD PTR 0[r13], rax
	mov	eax, DWORD PTR 16[r12]
	test	eax, eax
	je	.L57
	imul	ecx, eax
.L57:
	mov	edx, r14d
	mov	QWORD PTR -72[rbp], r10
	lea	rsi, .LC5[rip]
	sub	edx, ecx
	mov	DWORD PTR 16[r10], edx
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L69:
	mov	r11d, r14d
	sub	r11d, ecx
	test	ecx, ecx
	js	.L72
	mov	DWORD PTR 16[r10], r11d
	jmp	.L24
.L71:
	mov	rax, QWORD PTR BLANK_CHECK[rip]
	cmp	QWORD PTR 40[r11], rax
	jne	.L37
	lea	rsi, .LC7[rip]
	mov	rdi, r12
	xor	eax, eax
	mov	QWORD PTR -72[rbp], r10
	call	DEBC_printk@PLT
	mov	rax, QWORD PTR ST_EOD_2[rip]
	mov	r10, QWORD PTR -72[rbp]
	mov	QWORD PTR 0[r13], rax
	mov	r11d, DWORD PTR 16[r10]
	jmp	.L24
.L72:
	mov	edi, DWORD PTR KERN_NOTICE[rip]
	xor	eax, eax
	mov	r8d, r14d
	mov	ecx, r11d
	lea	rdx, .LC1[rip]
	mov	rsi, r12
	mov	QWORD PTR -72[rbp], r10
	call	st_printk@PLT
	mov	eax, DWORD PTR 8[r13]
	mov	r10, QWORD PTR -72[rbp]
	test	eax, eax
	js	.L23
	add	eax, 1
	mov	DWORD PTR 8[r13], eax
.L23:
	mov	r9, QWORD PTR ENOMEM[rip]
	mov	DWORD PTR 16[r10], 0
	neg	r9
	jmp	.L1
.L70:
	mov	edi, DWORD PTR KERN_NOTICE[rip]
	lea	rdx, .LC2[rip]
	mov	rsi, r12
	xor	eax, eax
	call	st_printk@PLT
	mov	eax, DWORD PTR 8[r13]
	test	eax, eax
	js	.L26
	add	eax, 1
	mov	DWORD PTR 8[r13], eax
.L26:
	mov	esi, DWORD PTR MTBSR[rip]
	mov	edx, 1
	mov	rdi, r12
	call	st_int_ioctl@PLT
	mov	r9, QWORD PTR EIO[rip]
	neg	r9
	jmp	.L1
.L66:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_tape, .-read_tape
	.comm	try_rdio,8,8
	.comm	ST_FM_HIT,8,8
	.comm	ST_FM,8,8
	.comm	ST_EOM_OK,8,8
	.comm	ST_EOD_2,8,8
	.comm	ST_EOD_1,8,8
	.comm	SENSE_ILI,4,4
	.comm	SENSE_FMK,4,4
	.comm	SENSE_EOM,4,4
	.comm	READ_6,1,1
	.comm	MTBSR,4,4
	.comm	MEDIUM_ERROR,8,8
	.comm	MAX_RETRIES,4,4
	.comm	MAX_COMMAND_SIZE,4,4
	.comm	KERN_NOTICE,4,4
	.comm	ENOMEM,8,8
	.comm	EIO,8,8
	.comm	DMA_FROM_DEVICE,4,4
	.comm	BLANK_CHECK,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_st.c_read_tape.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Sense: %2x %2x %2x %2x %2x %2x %2x %2x\012\000"
	.align	2
.LC1:
	.ascii	"Failed to read %d byte block with %d byte transfer."
	.ascii	"\012\000"
	.align	2
.LC2:
	.ascii	"Incorrect block size.\012\000"
	.align	2
.LC3:
	.ascii	"ILI but enough data received %ld %d.\012\000"
	.align	2
.LC4:
	.ascii	"EOF detected (%d bytes read).\012\000"
	.align	2
.LC5:
	.ascii	"EOM detected (%d bytes read).\012\000"
	.align	2
.LC6:
	.ascii	"Tape error while reading.\012\000"
	.align	2
.LC7:
	.ascii	"Zero returned for first BLANK CHECK after EOF.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_tape, %function
read_tape:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	ldr	r3, .L69
	str	r2, [fp, #-48]
	ldr	r10, [r3]
	subs	r5, r1, #0
	add	r3, r10, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L69+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	beq	.L1
	ldr	r2, [r0, #4]
	ldr	r9, [r0, #28]
	add	r2, r2, r2, lsl #1
	lsl	r3, r2, #2
	mov	r4, r0
	str	r3, [fp, #-64]
	ldr	r0, [r9, r3]
	ldr	r3, .L69+8
	ldr	r1, [r3]
	add	r3, r9, r2, lsl #2
	cmp	r0, r1
	moveq	r5, #1
	str	r3, [fp, #-52]
	beq	.L1
	ldr	r2, .L69+12
	ldr	r1, [r4, #8]
	ldrb	r3, [r2]	@ zero_extendqisi2
	cmp	r1, #0
	ldr	r8, [r4, #12]
	add	r6, sp, #24
	str	r3, [fp, #-60]
	bne	.L61
	mov	r2, r10
	mov	r0, r6
	str	r1, [fp, #-56]
	bl	memset
	ldr	r2, [r4, #16]
	ldr	r1, [fp, #-56]
	ldr	r3, [fp, #-60]
	cmp	r2, #0
	moveq	r7, r5
	strb	r3, [r6]
	strb	r1, [r6, #1]
	streq	r5, [fp, #-56]
	bne	.L62
.L36:
	mov	r10, #1
	ldr	r2, .L69+16
	ldr	r0, [r4, #20]
	ldr	ip, [r2]
	asr	r1, r7, #16
	asr	r2, r7, #8
	strb	r2, [r6, #3]
	strb	r7, [r6, #4]
	strb	r1, [r6, #2]
	str	ip, [sp, #8]
	str	r10, [sp, #12]
	ldr	r1, [r0]
	ldr	r2, .L69+20
	ldr	r0, [r1]
	ldr	r1, [r2]
	str	r0, [sp, #4]
	ldr	r0, [fp, #-48]
	str	r1, [sp]
	mov	r2, r6
	mov	r1, r4
	ldr	r3, [fp, #-56]
	ldr	r0, [r0]
	bl	st_do_scsi
	mov	r6, r0
	mov	r1, r10
	mov	r0, r4
	bl	release_buffering
	ldr	r0, [fp, #-48]
	cmp	r6, #0
	ldreq	r5, [r8, #8]
	str	r6, [r0]
	beq	.L1
	mov	r3, #0
	ldr	r2, [r8, #8]
	ldr	r1, [fp, #-52]
	cmp	r2, r3
	str	r3, [r8, #40]
	str	r3, [r1, #8]
	bne	.L63
	ldr	r5, [r4, #16]
	ldr	r3, [fp, #-52]
	cmp	r5, #0
	ldr	r6, [r3, #4]
	ldrne	r3, [r4, #12]
	movne	r5, r2
	ldr	r1, [fp, #-56]
	ldrne	r2, [r3, #20]
	str	r1, [r8, #12]
	subne	r2, r1, r2
	strne	r2, [r8, #12]
.L34:
	cmp	r6, #0
	blt	.L1
	ldr	r1, [r4, #8]
	cmp	r1, #0
	bne	.L35
	ldr	r3, [fp, #-52]
	add	r6, r6, #1
	str	r6, [r3, #4]
.L1:
	ldr	r3, .L69+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L64
	mov	r0, r5
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L61:
	ldr	r2, [r4, #24]
	cmp	r2, #0
	beq	.L4
	ldr	r2, .L69+24
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L4
.L5:
	ldr	r2, [r8, #44]
	cmp	r2, #0
	movne	r0, r5
	bne	.L7
	ldr	r0, [r8, #4]
	cmp	r5, r0
	movlt	r0, r5
.L7:
	str	r1, [fp, #-56]
	bl	__aeabi_idiv
	ldr	r1, [fp, #-56]
	mov	r7, r0
	mul	r3, r0, r1
	str	r3, [fp, #-56]
	b	.L6
.L4:
	ldr	r0, [r4]
	ldr	r2, [r4, #32]
	ldr	r2, [r2, r0, lsl #2]
	cmp	r2, #0
	beq	.L5
	ldr	r7, [r8]
	mul	r3, r7, r1
	str	r3, [fp, #-56]
.L6:
	mov	r2, r10
	mov	r1, #0
	mov	r0, r6
	bl	memset
	mov	r2, #1
	ldr	r3, [fp, #-60]
	strb	r2, [r6, #1]
	strb	r3, [r6]
	b	.L36
.L62:
	mov	r2, #2
	mov	r7, r5
	str	r5, [fp, #-56]
	strb	r2, [r6, #1]
	b	.L36
.L35:
	ldr	r0, [r8, #12]
	bl	__aeabi_idiv
	ldr	r3, [fp, #-52]
	add	r6, r0, r6
	str	r6, [r3, #4]
	b	.L1
.L63:
	ldr	r0, [r6]
	ldr	r10, [r4, #12]
	ldr	r1, [r0, #28]
	ldm	r0, {r2, r3}
	str	r1, [sp, #20]
	ldr	r1, [r0, #24]
	str	r1, [sp, #16]
	ldr	r1, [r0, #20]
	str	r1, [sp, #12]
	ldr	ip, [r0, #16]
	ldr	r1, .L69+28
	str	ip, [sp, #8]
	ldr	ip, [r0, #12]
	str	ip, [sp, #4]
	ldr	ip, [r0, #8]
	mov	r0, r4
	str	ip, [sp]
	bl	DEBC_printk
	ldr	r3, [r10, #36]
	cmp	r3, #0
	beq	.L10
	ldr	r2, .L69+32
	ldr	r0, [r10, #24]
	ldr	r1, [r2]
	ldr	r3, [r10, #16]
	cmp	r0, r1
	andeq	r3, r3, #207
	streq	r3, [r10, #16]
	cmp	r3, #0
	beq	.L12
	ldr	ip, .L69+36
	ldr	r1, [r10, #32]
	ldr	ip, [ip]
	cmp	r1, #0
	ldr	r2, .L69+40
	ldrne	r1, [r10, #28]
	cmp	r0, ip
	ldr	r2, [r2]
	bne	.L14
	ldr	r0, [r4, #8]
	ldr	ip, [fp, #-56]
	cmp	r0, #0
	moveq	r1, ip
	bic	r3, r3, r2
	str	r3, [r10, #16]
.L14:
	tst	r2, r3
	beq	.L16
	ldr	r3, [r4, #8]
	cmp	r3, #0
	beq	.L65
	mov	r0, r6
	str	r1, [fp, #-56]
	bl	st_release_request
	mov	r3, #0
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	cmp	r1, r7
	str	r3, [r2]
	beq	.L66
	ldr	r2, [r4, #8]
	sub	r3, r7, r1
	mul	r3, r2, r3
	ldr	r1, .L69+44
	mov	r2, r5
	str	r3, [r8, #12]
	mov	r0, r4
	bl	DEBC_printk
	ldr	r2, [fp, #-52]
	mov	r0, r4
	ldr	r3, [r2, #4]
	cmp	r3, #0
	addge	r3, r3, #1
	strge	r3, [r2, #4]
	ldr	r3, .L69+48
	mov	r2, #1
	ldr	r1, [r3]
	bl	st_int_ioctl
	cmp	r0, #0
	bne	.L67
.L24:
	ldr	r3, [r8, #12]
.L20:
	cmp	r3, #0
	ldr	r3, [fp, #-52]
	movge	r5, #1
	ldr	r6, [r3, #4]
	movlt	r3, #0
	movlt	r5, #1
	strlt	r3, [r8, #12]
	b	.L34
.L10:
	ldr	r3, [fp, #-52]
	ldr	r5, [r8, #8]
	ldr	r6, [r3, #4]
	b	.L34
.L12:
	ldr	r1, .L69+52
	mov	r0, r4
	bl	DEBC_printk
	mvn	r0, #0
	ldr	r2, [fp, #-64]
	ldr	r3, .L69+56
	ldr	r1, [r9, r2]
	ldr	r3, [r3]
	ldr	r2, [fp, #-52]
	cmp	r1, r3
	str	r0, [r2, #4]
	ldr	r2, .L69+32
	beq	.L68
.L33:
	ldr	r3, [r8, #12]
	ldr	r2, .L69+60
	cmp	r3, #0
	movlt	r3, #0
	ldr	r5, [r2]
	strlt	r3, [r8, #12]
	rsb	r5, r5, #0
	b	.L1
.L16:
	ldr	r2, .L69+64
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L25
	ldr	r2, [fp, #-64]
	ldr	r3, .L69+8
	ldr	r2, [r9, r2]
	ldr	r3, [r3]
	ldr	r0, [fp, #-64]
	cmp	r2, r3
	ldreq	r3, .L69+68
	ldr	r2, [r4, #8]
	ldreq	r3, [r3]
	cmp	r2, #0
	mulne	r2, r1, r2
	str	r3, [r9, r0]
	ldrne	r3, [fp, #-56]
	mov	r0, r4
	subne	r2, r3, r2
	ldr	r1, .L69+72
	str	r2, [r8, #12]
	bl	DEBC_printk
	ldr	r3, [r8, #12]
	b	.L20
.L65:
	ldr	r3, [fp, #-56]
	cmp	r1, #0
	sub	r3, r3, r1
	strge	r3, [r8, #12]
	bge	.L20
	ldr	r1, [fp, #-56]
	ldr	r2, .L69+76
	str	r1, [sp]
	ldr	r0, [r2]
	mov	r1, r4
	ldr	r2, .L69+80
	bl	st_printk
	ldr	r2, [fp, #-52]
	ldr	r3, [r2, #4]
	cmp	r3, #0
	addge	r3, r3, #1
	strge	r3, [r2, #4]
	mov	r2, #0
	ldr	r3, .L69+84
	str	r2, [r8, #12]
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L25:
	ldr	r2, .L69+88
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L24
	ldr	r2, [fp, #-64]
	ldr	r3, .L69+56
	ldr	r2, [r9, r2]
	ldr	r3, [r3]
	ldr	r0, [fp, #-64]
	cmp	r2, r3
	ldr	r2, [r4, #8]
	ldreq	r3, .L69+92
	ldrne	r3, .L69+96
	cmp	r2, #0
	ldr	r3, [r3]
	mulne	r1, r2, r1
	str	r3, [r9, r0]
	ldr	r3, [fp, #-56]
	mov	r0, r4
	sub	r2, r3, r1
	str	r2, [r8, #12]
	ldr	r1, .L69+100
	bl	DEBC_printk
	ldr	r3, [r8, #12]
	b	.L20
.L68:
	ldr	r1, [r10, #24]
	ldr	r3, [r2]
	cmp	r1, r3
	bne	.L33
	ldr	r1, .L69+104
	mov	r0, r4
	bl	DEBC_printk
	ldr	r2, .L69+68
	ldr	r1, [fp, #-64]
	ldr	r2, [r2]
	ldr	r3, [r8, #12]
	str	r2, [r9, r1]
	b	.L20
.L67:
	ldr	r3, .L69+60
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L66:
	ldr	r3, .L69+76
	mov	r1, r4
	ldr	r2, .L69+108
	ldr	r0, [r3]
	bl	st_printk
	ldr	r2, [fp, #-52]
	mov	r0, r4
	ldr	r3, [r2, #4]
	cmp	r3, #0
	addge	r3, r3, #1
	strge	r3, [r2, #4]
	ldr	r3, .L69+48
	mov	r2, #1
	ldr	r1, [r3]
	bl	st_int_ioctl
	ldr	r3, .L69+60
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L64:
	bl	__stack_chk_fail
.L70:
	.align	2
.L69:
	.word	MAX_COMMAND_SIZE
	.word	.LC8
	.word	ST_FM_HIT
	.word	READ_6
	.word	MAX_RETRIES
	.word	DMA_FROM_DEVICE
	.word	try_rdio
	.word	.LC0
	.word	BLANK_CHECK
	.word	MEDIUM_ERROR
	.word	SENSE_ILI
	.word	.LC3
	.word	MTBSR
	.word	.LC6
	.word	ST_FM
	.word	EIO
	.word	SENSE_FMK
	.word	ST_EOD_2
	.word	.LC4
	.word	KERN_NOTICE
	.word	.LC1
	.word	ENOMEM
	.word	SENSE_EOM
	.word	ST_EOD_1
	.word	ST_EOM_OK
	.word	.LC5
	.word	.LC7
	.word	.LC2
	.size	read_tape, .-read_tape
	.comm	try_rdio,4,4
	.comm	ST_FM_HIT,4,4
	.comm	ST_FM,4,4
	.comm	ST_EOM_OK,4,4
	.comm	ST_EOD_2,4,4
	.comm	ST_EOD_1,4,4
	.comm	SENSE_ILI,4,4
	.comm	SENSE_FMK,4,4
	.comm	SENSE_EOM,4,4
	.comm	READ_6,1,1
	.comm	MTBSR,4,4
	.comm	MEDIUM_ERROR,4,4
	.comm	MAX_RETRIES,4,4
	.comm	MAX_COMMAND_SIZE,4,4
	.comm	KERN_NOTICE,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	BLANK_CHECK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
