	.file	"extr_tape_std.c_tape_std_mtbsf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	tape_std_mtbsf
	.type	tape_std_mtbsf, @function
tape_std_mtbsf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	lea	edi, 2[rsi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	call	tape_alloc_request@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR TO_BSF[rip]
	mov	ecx, DWORD PTR 0[r13]
	mov	edx, 1
	mov	esi, DWORD PTR MODE_SET_DB[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	DWORD PTR 4[rbp], eax
	call	tape_ccw_cc@PLT
	mov	esi, DWORD PTR BACKSPACEFILE[rip]
	mov	edx, r12d
	mov	rdi, rax
	call	tape_ccw_repeat@PLT
	mov	esi, DWORD PTR NOP[rip]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rax
	call	tape_ccw_end@PLT
	mov	rsi, rbp
	mov	rdi, r13
	call	tape_do_io_free@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	esi, DWORD PTR MTFSR[rip]
	mov	rdi, r13
	mov	edx, 1
	call	tape_mtop@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	test	eax, eax
	cmovle	r12d, eax
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	tape_std_mtbsf, .-tape_std_mtbsf
	.comm	TO_BSF,4,4
	.comm	NOP,4,4
	.comm	MTFSR,4,4
	.comm	MODE_SET_DB,4,4
	.comm	BACKSPACEFILE,4,4
	.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_tape_std.c_tape_std_mtbsf.c"
	.text
	.align	2
	.global	tape_std_mtbsf
	.syntax unified
	.arm
	.fpu softvfp
	.type	tape_std_mtbsf, %function
tape_std_mtbsf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r7, r0
	mov	r1, #0
	add	r0, r6, #2
	bl	tape_alloc_request
	mov	r4, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L6
	ldr	r3, .L7
	ldr	r2, .L7+4
	ldr	r3, [r3]
	ldr	r1, [r2]
	str	r3, [r4, #4]
	mov	r2, #1
	ldr	r3, [r7]
	ldr	r0, [r4]
	bl	tape_ccw_cc
	ldr	r3, .L7+8
	mov	r2, r6
	ldr	r1, [r3]
	bl	tape_ccw_repeat
	ldr	r2, .L7+12
	mov	r3, r5
	ldr	r1, [r2]
	mov	r2, r5
	bl	tape_ccw_end
	mov	r1, r4
	mov	r0, r7
	bl	tape_do_io_free
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L7+16
	mov	r0, r7
	mov	r2, #1
	ldr	r1, [r3]
	bl	tape_mtop
	and	r0, r0, r0, asr #31
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	PTR_ERR
.L8:
	.align	2
.L7:
	.word	TO_BSF
	.word	MODE_SET_DB
	.word	BACKSPACEFILE
	.word	NOP
	.word	MTFSR
	.size	tape_std_mtbsf, .-tape_std_mtbsf
	.comm	TO_BSF,4,4
	.comm	NOP,4,4
	.comm	MTFSR,4,4
	.comm	MODE_SET_DB,4,4
	.comm	BACKSPACEFILE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
