	.file	"extr_ctl_backend_block.c_ctl_be_block_unmap_dev_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ctl_be_block_unmap_dev_range, @function
ctl_be_block_unmap_dev_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR 16[rdi]
	mov	DWORD PTR 12[rsp], r8d
	lea	rdx, 28[rsp]
	lea	rsi, 32[rsp]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	devvn_refthread@PLT
	mov	r15, QWORD PTR LONG_MAX[rip]
	mov	r14, rax
	mov	rax, r15
	cqo
	idiv	QWORD PTR 8[r12]
	sub	r15, rdx
	mov	QWORD PTR [rsp], r15
	test	rbx, rbx
	jle	.L9
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	setne	BYTE PTR 12[rsp]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rdi, r15
	call	[QWORD PTR [r14]]
	test	rbx, rbx
	jle	.L9
.L8:
	xor	eax, eax
	call	g_alloc_bio@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdi, rbx
	mov	r15, rax
	mov	eax, DWORD PTR BIO_DELETE[rip]
	mov	QWORD PTR 48[r15], rbp
	mov	DWORD PTR 64[r15], eax
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR 56[r15], rax
	call	MIN@PLT
	mov	QWORD PTR 40[r15], 0
	mov	rdi, r12
	mov	rcx, rax
	mov	QWORD PTR [r15], rax
	mov	rax, QWORD PTR ctl_be_block_biodone@GOTPCREL[rip]
	mov	QWORD PTR 24[r15], r13
	sub	rbx, rcx
	mov	QWORD PTR 32[r15], rax
	mov	rax, rbp
	add	rbp, rcx
	cqo
	idiv	QWORD PTR 8[r12]
	mov	QWORD PTR 16[r15], rax
	call	mtx_lock@PLT
	add	DWORD PTR 4[r13], 1
	test	rbx, rbx
	jne	.L5
	cmp	BYTE PTR 12[rsp], 0
	je	.L5
	mov	DWORD PTR 0[r13], 1
.L5:
	mov	rdi, r12
	call	mtx_unlock@PLT
	test	r14, r14
	jne	.L20
	mov	eax, DWORD PTR ENXIO[rip]
	mov	rdi, r15
	mov	DWORD PTR 8[r15], eax
	call	ctl_be_block_biodone@PLT
	test	rbx, rbx
	jg	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	test	r14, r14
	je	.L1
	mov	esi, DWORD PTR 28[rsp]
	mov	rdi, QWORD PTR 32[rsp]
	call	dev_relthread@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L21
	add	rsp, 56
	.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
.L21:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ctl_be_block_unmap_dev_range, .-ctl_be_block_unmap_dev_range
	.comm	LONG_MAX,8,8
	.comm	ENXIO,4,4
	.comm	BIO_DELETE,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_ctl_backend_block.c_ctl_be_block_unmap_dev_range.c"
	.text
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctl_be_block_unmap_dev_range, %function
ctl_be_block_unmap_dev_range:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r3
	sub	sp, sp, #28
	ldr	r3, .L19
	mov	r7, r0
	mov	r6, r1
	mov	r5, r2
	add	r1, sp, #12
	add	r2, sp, #16
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	devvn_refthread
	ldr	r3, .L19+4
	mov	r8, r0
	ldr	r9, [r3]
	ldr	r1, [r7, #4]
	mov	r0, r9
	bl	__aeabi_idivmod
	cmp	r4, #0
	sub	r3, r9, r1
	str	r3, [sp]
	ble	.L9
	ldr	r3, [sp, #64]
	ldr	fp, .L19+8
	subs	r3, r3, #0
	movne	r3, #1
	str	r3, [sp, #4]
	b	.L8
.L17:
	mov	r0, r9
	ldr	r3, [r8]
	blx	r3
	cmp	r4, #0
	ble	.L9
.L8:
	bl	g_alloc_bio
	ldr	r2, [sp, #12]
	ldr	r1, [fp]
	mov	r9, r0
	str	r2, [r0, #28]
	str	r5, [r0, #24]
	str	r1, [r0, #32]
	mov	r0, r4
	ldr	r1, [sp]
	bl	MIN
	mov	r3, #0
	str	r3, [r9, #20]
	ldr	r3, .L19+12
	ldr	r1, [r7, #4]
	str	r3, [r9, #16]
	mov	r10, r0
	str	r0, [r9]
	str	r6, [r9, #12]
	mov	r0, r5
	bl	__aeabi_idiv
	sub	r4, r4, r10
	str	r0, [r9, #8]
	mov	r0, r7
	bl	mtx_lock
	cmp	r4, #0
	ldr	r0, [sp, #4]
	movne	r0, #0
	cmp	r0, #0
	movne	r3, #1
	ldr	r1, [r6, #4]
	strne	r3, [r6]
	add	r1, r1, #1
	mov	r0, r7
	str	r1, [r6, #4]
	bl	mtx_unlock
	cmp	r8, #0
	add	r5, r5, r10
	bne	.L17
	ldr	r3, .L19+16
	mov	r0, r9
	ldr	r2, [r3]
	str	r2, [r9, #4]
	bl	ctl_be_block_biodone
	cmp	r4, #0
	bgt	.L8
.L9:
	cmp	r8, #0
	beq	.L1
	ldr	r1, [sp, #16]
	ldr	r0, [sp, #12]
	bl	dev_relthread
.L1:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	LONG_MAX
	.word	BIO_DELETE
	.word	ctl_be_block_biodone
	.word	ENXIO
	.size	ctl_be_block_unmap_dev_range, .-ctl_be_block_unmap_dev_range
	.comm	LONG_MAX,4,4
	.comm	ENXIO,4,4
	.comm	BIO_DELETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
