	.file	"extr_mpssd.c_set_backend_size.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s: can't seek: %s\n"
	.text
	.p2align 4
	.type	set_backend_size, @function
set_backend_size:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edx, DWORD PTR SEEK_END[rip]
	mov	rbx, rdi
	xor	esi, esi
	mov	edi, DWORD PTR 8[rdi]
	call	lseek@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	js	.L9
	cdq
	idiv	DWORD PTR SECTOR_SIZE[rip]
	mov	edi, eax
	test	edx, edx
	je	.L7
	add	edi, 1
.L7:
	mov	DWORD PTR virtblk_dev_page[rip], edi
	call	htole64@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	mov	DWORD PTR virtblk_dev_page[rip], eax
	mov	eax, 1
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 12[rbx]
	lea	rdi, .LC0[rip]
	call	mpsslog@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	set_backend_size, .-set_backend_size
	.comm	virtblk_dev_page,4,4
	.comm	SEEK_END,4,4
	.comm	SECTOR_SIZE,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_mpssd.c_set_backend_size.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s: can't seek: %s\012\000"
	.global	__aeabi_idivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_backend_size, %function
set_backend_size:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L10
	push	{r4, lr}
	mov	r1, #0
	mov	r4, r0
	ldr	r2, [r3]
	ldr	r0, [r0, #8]
	bl	lseek
	cmp	r0, #0
	str	r0, [r4]
	blt	.L9
	ldr	r3, .L10+4
	ldr	r4, .L10+8
	ldr	r1, [r3]
	bl	__aeabi_idivmod
	cmp	r1, #0
	addne	r0, r0, #1
	str	r0, [r4]
	bl	htole64
	mov	r3, r0
	mov	r0, #1
	str	r3, [r4]
	pop	{r4, pc}
.L9:
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #12]
	ldr	r0, .L10+12
	bl	mpsslog
	mov	r0, #0
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	SEEK_END
	.word	SECTOR_SIZE
	.word	virtblk_dev_page
	.word	.LC0
	.size	set_backend_size, .-set_backend_size
	.comm	virtblk_dev_page,4,4
	.comm	SEEK_END,4,4
	.comm	SECTOR_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
