	.file	"extr_st.c_partition_tape.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Can't read partition mode page.\n"
	.align 8
.LC1:
	.string	"Partition page length is %d bytes.\n"
	.align 8
.LC2:
	.string	"Formatting tape with one partition.\n"
	.align 8
.LC3:
	.string	"psd_cnt %d, max.parts %d, nbr_parts %d\n"
	.align 8
.LC4:
	.string	"Formatting tape with two partitions (%i = %d MB).\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"Partitioning of tape failed.\n"
	.text
	.p2align 4
	.type	partition_tape, @function
partition_tape:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, esi
	xor	edx, edx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR 8[rdi]
	mov	esi, DWORD PTR PART_PAGE[rip]
	mov	r14, QWORD PTR SCSI_3[rip]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR PP_MSK_PSUM_MB[rip]
	mov	DWORD PTR 24[rsp], eax
	call	read_mode_page@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L63
	mov	r11d, 1
	test	r15d, r15d
	js	.L64
.L4:
	mov	rax, QWORD PTR 0[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	mov	DWORD PTR 12[rsp], r11d
	mov	r12, QWORD PTR [rax]
	mov	rax, QWORD PTR MH_OFF_BDESCS_LENGTH[rip]
	movzx	ebx, BYTE PTR [r12+rax]
	movzx	eax, BYTE PTR MODE_HEADER_LENGTH[rip]
	add	ebx, eax
	mov	eax, DWORD PTR MP_OFF_PAGE_LENGTH[rip]
	add	eax, ebx
	cdqe
	movzx	edx, BYTE PTR [r12+rax]
	xor	eax, eax
	add	edx, 2
	call	DEBC_printk@PLT
	mov	eax, DWORD PTR MP_OFF_PAGE_LENGTH[rip]
	mov	r11d, DWORD PTR 12[rsp]
	movzx	edx, BYTE PTR PART_PAGE_FIXED_LENGTH[rip]
	add	eax, ebx
	cdqe
	movzx	eax, BYTE PTR [r12+rax]
	add	eax, 2
	sub	eax, edx
	mov	ecx, eax
	shr	ecx, 31
	add	eax, ecx
	sar	eax
	cmp	QWORD PTR [rsp], r14
	mov	r10d, eax
	jge	.L65
	mov	DWORD PTR [rsp], 0
.L5:
	cmp	r15d, 65534
	jg	.L10
.L9:
	test	r11d, r11d
	jne	.L11
	cmp	r10d, 1
	jg	.L11
.L10:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L65:
	.cfi_restore_state
	mov	ecx, DWORD PTR PP_OFF_FLAGS[rip]
	add	ecx, ebx
	movsx	rcx, ecx
	movzx	ecx, BYTE PTR [r12+rcx]
	mov	esi, ecx
	and	sil, BYTE PTR PP_MSK_POFM[rip]
	setne	dil
	setne	r8b
	movzx	edi, dil
	test	r15d, r15d
	jne	.L6
	test	r8b, r8b
	jne	.L66
.L6:
	test	sil, sil
	mov	r10d, 2
	cmove	r10d, eax
	movzx	eax, BYTE PTR PP_MSK_PSUM_UNITS[rip]
	and	ecx, eax
	cmp	cl, al
	jne	.L8
	cmp	r15d, 999
	jle	.L8
	imul	ecx, r15d, 652835029
	ror	ecx, 3
	cmp	ecx, 4294967
	jbe	.L67
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 24[rsp]
	cmp	DWORD PTR PP_MSK_PSUM_MB[rip], esi
	je	.L68
	mov	DWORD PTR [rsp], r13d
	mov	r13d, edi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L64:
	neg	r15d
	xor	r11d, r11d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	add	edx, ebx
	movsx	r14, edx
	lea	r9, [r12+r14]
	cmp	r11d, 1
	je	.L69
.L12:
	mov	eax, DWORD PTR PP_OFF_NBR_ADD_PARTS[rip]
	mov	rdi, r9
	xor	esi, esi
	mov	DWORD PTR 28[rsp], r11d
	mov	QWORD PTR 16[rsp], r9
	add	eax, ebx
	mov	DWORD PTR 12[rsp], r10d
	cdqe
	movzx	edx, BYTE PTR [r12+rax]
	add	edx, edx
	movzx	edx, dl
	call	memset@PLT
	mov	eax, DWORD PTR PP_OFF_NBR_ADD_PARTS[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR PP_OFF_MAX_ADD_PARTS[rip]
	mov	r10d, DWORD PTR 12[rsp]
	lea	rsi, .LC3[rip]
	add	eax, ebx
	add	edx, ebx
	cdqe
	movsx	rdx, edx
	movzx	ecx, BYTE PTR [r12+rdx]
	movzx	r8d, BYTE PTR [r12+rax]
	mov	edx, r10d
	xor	eax, eax
	call	DEBC_printk@PLT
	test	r15d, r15d
	mov	r10d, DWORD PTR 12[rsp]
	mov	r9, QWORD PTR 16[rsp]
	mov	r11d, DWORD PTR 28[rsp]
	je	.L70
	mov	eax, r15d
	movzx	eax, ah
	mov	BYTE PTR [r9], al
	mov	BYTE PTR 1[r12+r14], r15b
	test	r11d, r11d
	jne	.L17
	mov	BYTE PTR 3[r12+r14], -1
	mov	BYTE PTR 2[r12+r14], -1
.L17:
	movsx	rax, ebx
	mov	BYTE PTR 3[r12+rax], 1
	mov	eax, DWORD PTR MP_OFF_PAGE_LENGTH[rip]
	add	eax, ebx
	cdqe
	add	rax, r12
	cmp	BYTE PTR [rax], 7
	ja	.L18
	mov	BYTE PTR [rax], 8
.L18:
	mov	eax, DWORD PTR [rsp]
	mov	DWORD PTR 12[rsp], r10d
	test	eax, eax
	je	.L19
	imul	ecx, r15d, 1000
	mov	edx, r11d
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, .LC4[rip]
	call	DEBC_printk@PLT
.L61:
	mov	eax, DWORD PTR PP_OFF_PART_UNITS[rip]
	add	eax, ebx
	cdqe
	mov	BYTE PTR [r12+rax], 0
	mov	eax, DWORD PTR PP_OFF_RESERVED[rip]
	add	eax, ebx
	cdqe
	mov	BYTE PTR [r12+rax], 0
	mov	r10d, DWORD PTR 12[rsp]
.L16:
	mov	edx, DWORD PTR PP_OFF_FLAGS[rip]
	movzx	edi, BYTE PTR [rsp]
	add	edx, ebx
	movsx	rdx, edx
	add	rdx, r12
	movzx	eax, BYTE PTR [rdx]
	and	eax, 7
	or	al, BYTE PTR PP_BIT_IDP[rip]
	or	al, BYTE PTR 24[rsp]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR PP_OFF_PART_UNITS[rip]
	add	eax, ebx
	cdqe
	mov	BYTE PTR [r12+rax], dil
.L21:
	add	ebx, DWORD PTR MP_OFF_PAGE_LENGTH[rip]
	lea	r10d, 6[r10+r10]
	mov	edx, 1
	mov	rdi, rbp
	movsx	rbx, ebx
	mov	BYTE PTR [r12+rbx], r10b
	mov	esi, DWORD PTR PART_PAGE[rip]
	call	write_mode_page@PLT
	test	eax, eax
	jne	.L59
	and	r13d, 1
	je	.L22
	mov	esi, 1
	mov	rdi, rbp
	call	format_medium@PLT
.L22:
	test	eax, eax
	je	.L1
.L59:
	mov	edi, DWORD PTR KERN_INFO[rip]
	mov	rsi, rbp
	lea	rdx, .LC5[rip]
	call	st_printk@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	DEBC_printk@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L70:
	.cfi_restore_state
	mov	eax, DWORD PTR PP_OFF_NBR_ADD_PARTS[rip]
	add	eax, ebx
	cdqe
	mov	BYTE PTR [r12+rax], 0
	mov	eax, DWORD PTR PP_OFF_MAX_ADD_PARTS[rip]
	add	eax, ebx
	cdqe
	movzx	eax, BYTE PTR [r12+rax]
	cmp	eax, r10d
	jl	.L15
	mov	eax, DWORD PTR MP_OFF_PAGE_LENGTH[rip]
	add	eax, ebx
	cdqe
	mov	BYTE PTR [r12+rax], 6
.L15:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	mov	DWORD PTR 12[rsp], r10d
	call	DEBC_printk@PLT
	jmp	.L61
	.p2align 4,,10
	.p2align 3
.L66:
	mov	rdi, rbp
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	DEBC_printk@PLT
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	format_medium@PLT
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	xor	eax, eax
	mov	ecx, r15d
	mov	edx, r11d
	mov	rdi, rbp
	lea	rsi, .LC4[rip]
	call	DEBC_printk@PLT
	mov	eax, DWORD PTR PP_OFF_PART_UNITS[rip]
	mov	r10d, DWORD PTR 12[rsp]
	add	eax, ebx
	cdqe
	mov	BYTE PTR [r12+rax], 0
	mov	eax, DWORD PTR PP_OFF_RESERVED[rip]
	add	eax, ebx
	cmp	r15d, 1
	cdqe
	mov	BYTE PTR [r12+rax], 0
	jne	.L16
	mov	eax, DWORD PTR PP_OFF_FLAGS[rip]
	add	eax, ebx
	cdqe
	add	rax, r12
	movzx	edx, BYTE PTR [rax]
	and	edx, 31
	or	dl, BYTE PTR PP_BIT_FDP[rip]
	mov	BYTE PTR [rax], dl
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L68:
	cmp	r15d, 65533
	jle	.L27
	mov	r9d, r15d
	mov	DWORD PTR 24[rsp], eax
	mov	r13d, edi
	imul	r9, r9, 274877907
	mov	DWORD PTR [rsp], 9
	shr	r9, 38
	mov	r15, r9
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L69:
	mov	eax, DWORD PTR PP_OFF_MAX_ADD_PARTS[rip]
	add	eax, ebx
	cdqe
	movzx	eax, BYTE PTR [r12+rax]
	cmp	al, 1
	jne	.L28
	cmp	eax, r10d
	jge	.L12
.L28:
	add	edx, 2
	mov	BYTE PTR 1[r12+r14], -1
	movsx	r14, edx
	mov	BYTE PTR [r9], -1
	lea	r9, [r12+r14]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L27:
	mov	DWORD PTR [rsp], r13d
	mov	r13d, edi
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L67:
	mov	r9d, r15d
	movzx	esi, al
	mov	r13d, 9
	imul	r9, r9, 274877907
	mov	DWORD PTR 24[rsp], esi
	shr	r9, 38
	mov	r15, r9
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	partition_tape, .-partition_tape
	.comm	SCSI_3,8,8
	.comm	PP_OFF_RESERVED,4,4
	.comm	PP_OFF_PART_UNITS,4,4
	.comm	PP_OFF_NBR_ADD_PARTS,4,4
	.comm	PP_OFF_MAX_ADD_PARTS,4,4
	.comm	PP_OFF_FLAGS,4,4
	.comm	PP_MSK_PSUM_UNITS,1,1
	.comm	PP_MSK_PSUM_MB,4,4
	.comm	PP_MSK_POFM,1,1
	.comm	PP_BIT_IDP,4,4
	.comm	PP_BIT_FDP,1,1
	.comm	PART_PAGE_FIXED_LENGTH,1,1
	.comm	PART_PAGE,4,4
	.comm	MP_OFF_PAGE_LENGTH,4,4
	.comm	MODE_HEADER_LENGTH,1,1
	.comm	MH_OFF_BDESCS_LENGTH,8,8
	.comm	KERN_INFO,4,4
	.comm	EIO,4,4
	.comm	EINVAL,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_st.c_partition_tape.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Can't read partition mode page.\012\000"
	.align	2
.LC1:
	.ascii	"Partition page length is %d bytes.\012\000"
	.align	2
.LC2:
	.ascii	"Formatting tape with one partition.\012\000"
	.align	2
.LC3:
	.ascii	"psd_cnt %d, max.parts %d, nbr_parts %d\012\000"
	.align	2
.LC4:
	.ascii	"Formatting tape with two partitions (%i = %d MB).\012"
	.ascii	"\000"
	.align	2
.LC5:
	.ascii	"Partitioning of tape failed.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	partition_tape, %function
partition_tape:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L51
	ldr	r10, .L51+4
	ldr	lr, [r0, #4]
	ldr	ip, .L51+8
	mov	r5, r1
	ldr	r1, [r3]
	ldr	r3, [r10]
	sub	sp, sp, #36
	mov	r2, #0
	str	r3, [sp, #20]
	mov	r6, r0
	ldr	r4, [lr]
	ldr	fp, [ip]
	bl	read_mode_page
	subs	r3, r0, #0
	str	r3, [sp, #8]
	bne	.L44
	cmp	r5, #0
	movge	r3, #1
	ldrlt	r3, [sp, #8]
	ldr	r2, [r6]
	str	r3, [sp, #12]
	ldr	r3, .L51+12
	ldr	r8, [r2]
	ldr	r2, [r3]
	ldr	r3, .L51+16
	ldrb	r2, [r8, r2]	@ zero_extendqisi2
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r9, .L51+20
	add	r3, r2, r3
	mov	r2, r3
	str	r3, [sp, #16]
	ldr	r3, [r9]
	add	r7, r8, r2
	ldrb	r2, [r7, r3]	@ zero_extendqisi2
	mov	r0, r6
	add	r2, r2, #2
	ldr	r1, .L51+24
	rsblt	r5, r5, #0
	bl	DEBC_printk
	ldr	r3, [r9]
	ldr	r2, .L51+28
	ldrb	r3, [r7, r3]	@ zero_extendqisi2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, #2
	sub	r3, r3, r2
	cmp	r4, fp
	add	r3, r3, r3, lsr #31
	asr	r4, r3, #1
	bge	.L45
	mov	r3, #0
	str	r3, [sp, #24]
.L5:
	ldr	r3, .L51+32
	cmp	r5, r3
	bgt	.L10
.L9:
	ldr	r3, [sp, #12]
	eor	r3, r3, #1
	cmp	r4, #1
	movgt	r3, #0
	andle	r3, r3, #1
	cmp	r3, #0
	bne	.L10
	ldr	r3, [sp, #16]
	add	r2, r2, r3
	ldr	r3, [sp, #12]
	add	r10, r8, r2
	cmp	r3, #1
	ldr	r3, .L51+36
	str	r3, [sp, #28]
	bne	.L12
	ldr	r3, [r3]
	ldrb	r3, [r7, r3]	@ zero_extendqisi2
	cmp	r3, r4
	cmpge	r3, #1
	mvnne	r3, #0
	addne	r2, r2, #2
	strbne	r3, [r10, #1]
	strbne	r3, [r10]
	addne	r10, r8, r2
.L12:
	ldr	fp, .L51+40
	mov	r1, #0
	ldr	r3, [fp]
	mov	r0, r10
	ldrb	r2, [r7, r3]	@ zero_extendqisi2
	lsl	r2, r2, #1
	and	r2, r2, #254
	bl	memset
	ldr	r2, [fp]
	ldr	r3, [sp, #28]
	ldrb	r1, [r7, r2]	@ zero_extendqisi2
	ldr	r3, [r3]
	mov	r2, r4
	ldrb	r3, [r7, r3]	@ zero_extendqisi2
	mov	r0, r6
	str	r1, [sp]
	ldr	r1, .L51+44
	bl	DEBC_printk
	cmp	r5, #0
	beq	.L46
	ldr	r3, [sp, #12]
	strb	r5, [r10, #1]
	cmp	r3, #0
	asr	r3, r5, #8
	strb	r3, [r10]
	mvneq	r3, #0
	strbeq	r3, [r10, #3]
	strbeq	r3, [r10, #2]
	mov	r3, #1
	strb	r3, [r7, #3]
	ldr	r3, [r9]
	ldr	r2, [sp, #16]
	add	r3, r2, r3
	ldrb	r2, [r8, r3]	@ zero_extendqisi2
	cmp	r2, #7
	movls	r2, #8
	strbls	r2, [r8, r3]
	ldr	r3, [sp, #24]
	cmp	r3, #0
	beq	.L18
	rsb	r3, r5, r5, lsl #5
	add	r3, r5, r3, lsl #2
	mov	r0, r6
	ldr	r2, [sp, #12]
	ldr	r1, .L51+48
	lsl	r3, r3, #3
	bl	DEBC_printk
.L42:
	mov	r3, #0
	ldr	r2, .L51+52
	ldr	r1, .L51+56
	ldr	r0, [r2]
	strb	r3, [r7, r0]
	ldr	r1, [r1]
	strb	r3, [r7, r1]
.L15:
	ldr	r3, .L51+60
	ldr	r1, .L51+64
	ldr	r0, [r3]
	ldr	r1, [r1]
	ldr	r3, [sp, #16]
	add	r1, r3, r1
	ldrb	r3, [r8, r1]	@ zero_extendqisi2
	and	r3, r3, #7
	orr	r3, r3, r0
	ldr	r0, [sp, #20]
	orr	r3, r3, r0
	strb	r3, [r8, r1]
	ldr	r3, [r2]
	ldr	r2, [sp, #24]
	strb	r2, [r7, r3]
.L20:
	ldr	r3, [r9]
	add	r4, r4, #3
	lsl	r4, r4, #1
	strb	r4, [r7, r3]
	ldr	r3, .L51
	mov	r2, #1
	ldr	r1, [r3]
	mov	r0, r6
	bl	write_mode_page
	cmp	r0, #0
	ldr	r3, [sp, #8]
	movne	r3, #0
	andeq	r3, r3, #1
	cmp	r3, #0
	bne	.L47
.L21:
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L51+68
	mov	r1, r6
	ldr	r0, [r3]
	ldr	r2, .L51+72
	bl	st_printk
	ldr	r3, .L51+76
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L45:
	ldr	r3, .L51+64
	ldr	r1, .L51+80
	ldr	r3, [r3]
	ldrb	r1, [r1]	@ zero_extendqisi2
	ldrb	r3, [r7, r3]	@ zero_extendqisi2
	ands	r1, r3, r1
	movne	r0, #1
	moveq	r0, #0
	cmp	r5, #0
	moveq	ip, r0
	movne	ip, #0
	cmp	ip, #0
	bne	.L48
	ldr	ip, .L51+84
	cmp	r1, #0
	ldrb	r1, [ip]	@ zero_extendqisi2
	movne	r4, #2
	bic	r3, r1, r3
	cmp	r5, #1000
	cmpge	r3, #0
	beq	.L49
.L8:
	ldr	r3, [r10]
	ldr	ip, [sp, #20]
	cmp	r3, ip
	beq	.L50
	ldr	r3, [sp, #8]
	str	r0, [sp, #8]
	str	r3, [sp, #24]
	ldr	r3, .L51+32
	cmp	r5, r3
	ble	.L9
.L10:
	ldr	r3, .L51+88
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L44:
	mov	r0, r6
	ldr	r1, .L51+92
	bl	DEBC_printk
	ldr	r0, [sp, #8]
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L46:
	ldr	r3, [fp]
	mov	r0, r6
	strb	r5, [r7, r3]
	ldr	r3, [sp, #28]
	ldr	r1, .L51+96
	ldr	r3, [r3]
	ldrb	r3, [r7, r3]	@ zero_extendqisi2
	cmp	r3, r4
	movge	r2, #6
	ldrge	r3, [r9]
	strbge	r2, [r7, r3]
	bl	DEBC_printk
	b	.L42
.L18:
	mov	r3, r5
	ldr	r2, [sp, #12]
	ldr	r1, .L51+48
	mov	r0, r6
	bl	DEBC_printk
	ldr	r2, .L51+52
	ldr	r0, [sp, #24]
	ldr	r1, [r2]
	ldr	r3, .L51+56
	strb	r0, [r7, r1]
	ldr	r3, [r3]
	cmp	r5, #1
	strb	r0, [r7, r3]
	bne	.L15
	ldr	r2, .L51+100
	ldr	r3, .L51+64
	ldrb	r1, [r2]	@ zero_extendqisi2
	ldr	r3, [r3]
	ldr	r2, [sp, #16]
	add	r3, r2, r3
	ldrb	r2, [r8, r3]	@ zero_extendqisi2
	and	r2, r2, #31
	orr	r2, r2, r1
	strb	r2, [r8, r3]
	b	.L20
.L50:
	ldr	r3, .L51+104
	cmp	r5, r3
	ble	.L26
	ldr	r3, .L51+108
	str	r1, [sp, #20]
	umull	r1, r5, r3, r5
	mov	r3, #9
	str	r0, [sp, #8]
	lsr	r5, r5, #6
	str	r3, [sp, #24]
	b	.L5
.L47:
	mov	r1, #1
	mov	r0, r6
	bl	format_medium
	b	.L21
.L48:
	mov	r0, r6
	ldr	r1, .L51+96
	bl	DEBC_printk
	mov	r0, r6
	mov	r1, #0
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	format_medium
.L26:
	ldr	r3, [sp, #8]
	str	r0, [sp, #8]
	str	r3, [sp, #24]
	b	.L9
.L49:
	ldr	r3, .L51+112
	ldr	ip, .L51+116
	mul	r3, r5, r3
	cmp	ip, r3, ror #3
	bcc	.L8
	mov	r3, #9
	str	r3, [sp, #8]
	ldr	r3, .L51+108
	str	r1, [sp, #20]
	umull	ip, r5, r3, r5
	lsr	r5, r5, #6
	b	.L8
.L52:
	.align	2
.L51:
	.word	PART_PAGE
	.word	PP_MSK_PSUM_MB
	.word	SCSI_3
	.word	MH_OFF_BDESCS_LENGTH
	.word	MODE_HEADER_LENGTH
	.word	MP_OFF_PAGE_LENGTH
	.word	.LC1
	.word	PART_PAGE_FIXED_LENGTH
	.word	65534
	.word	PP_OFF_MAX_ADD_PARTS
	.word	PP_OFF_NBR_ADD_PARTS
	.word	.LC3
	.word	.LC4
	.word	PP_OFF_PART_UNITS
	.word	PP_OFF_RESERVED
	.word	PP_BIT_IDP
	.word	PP_OFF_FLAGS
	.word	KERN_INFO
	.word	.LC5
	.word	EIO
	.word	PP_MSK_POFM
	.word	PP_MSK_PSUM_UNITS
	.word	EINVAL
	.word	.LC0
	.word	.LC2
	.word	PP_BIT_FDP
	.word	65533
	.word	274877907
	.word	652835029
	.word	4294967
	.size	partition_tape, .-partition_tape
	.comm	SCSI_3,4,4
	.comm	PP_OFF_RESERVED,4,4
	.comm	PP_OFF_PART_UNITS,4,4
	.comm	PP_OFF_NBR_ADD_PARTS,4,4
	.comm	PP_OFF_MAX_ADD_PARTS,4,4
	.comm	PP_OFF_FLAGS,4,4
	.comm	PP_MSK_PSUM_UNITS,1,1
	.comm	PP_MSK_PSUM_MB,4,4
	.comm	PP_MSK_POFM,1,1
	.comm	PP_BIT_IDP,4,4
	.comm	PP_BIT_FDP,1,1
	.comm	PART_PAGE_FIXED_LENGTH,1,1
	.comm	PART_PAGE,4,4
	.comm	MP_OFF_PAGE_LENGTH,4,4
	.comm	MODE_HEADER_LENGTH,1,1
	.comm	MH_OFF_BDESCS_LENGTH,4,4
	.comm	KERN_INFO,4,4
	.comm	EIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
