	.file	"extr_lpt.c_ubifs_calc_lpt_geom.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"too few LPT LEBs"
.LC1:
	.string	"LPT ltab too big"
	.text
	.p2align 4
	.globl	ubifs_calc_lpt_geom
	.type	ubifs_calc_lpt_geom, @function
ubifs_calc_lpt_geom:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	call	do_calc_lpt_geom@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 8[rbp]
	add	eax, eax
	cdqe
	lea	rdi, -1[rsi+rax]
	call	div_u64@PLT
	cmp	DWORD PTR 16[rbp], eax
	jl	.L7
	mov	rax, QWORD PTR 8[rbp]
	cmp	QWORD PTR 24[rbp], rax
	jg	.L8
	mov	eax, DWORD PTR 32[rbp]
	mov	DWORD PTR 36[rbp], eax
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	ubifs_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbp
	lea	rsi, .LC1[rip]
	call	ubifs_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	ubifs_calc_lpt_geom, .-ubifs_calc_lpt_geom
	.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_lpt.c_ubifs_calc_lpt_geom.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"too few LPT LEBs\000"
	.align	2
.LC1:
	.ascii	"LPT ltab too big\000"
	.text
	.align	2
	.global	ubifs_calc_lpt_geom
	.syntax unified
	.arm
	.fpu softvfp
	.type	ubifs_calc_lpt_geom, %function
ubifs_calc_lpt_geom:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	do_calc_lpt_geom
	ldm	r4, {r0, r1}
	sub	r3, r1, #1
	add	r0, r3, r0, lsl #1
	bl	div_u64
	ldr	r3, [r4, #8]
	cmp	r3, r0
	blt	.L7
	ldr	r2, [r4, #12]
	ldr	r3, [r4, #4]
	cmp	r2, r3
	bgt	.L8
	ldr	r3, [r4, #16]
	mov	r0, #0
	str	r3, [r4, #20]
	pop	{r4, pc}
.L7:
	mov	r0, r4
	ldr	r1, .L9
	bl	ubifs_err
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L8:
	mov	r0, r4
	ldr	r1, .L9+8
	bl	ubifs_err
	ldr	r3, .L9+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.size	ubifs_calc_lpt_geom, .-ubifs_calc_lpt_geom
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
