	.file	"extr_xen-blkfront.c_xlbd_reserve_minors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xlbd_reserve_minors, @function
xlbd_reserve_minors:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	ebp, [rdi+rsi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR nr_minors[rip], ebp
	jnb	.L2
	mov	r12d, DWORD PTR GFP_KERNEL[rip]
	mov	edi, ebp
	call	BITS_TO_LONGS@PLT
	lea	edi, 0[0+rax*8]
	mov	esi, r12d
	call	kzalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L14
	lea	rdi, minor_lock[rip]
	call	spin_lock@PLT
	mov	edi, DWORD PTR nr_minors[rip]
	cmp	edi, ebp
	jb	.L15
.L5:
	lea	rdi, minor_lock[rip]
	call	spin_unlock@PLT
	mov	rdi, r12
	call	kfree@PLT
.L2:
	lea	rdi, minor_lock[rip]
	call	spin_lock@PLT
	mov	rdi, QWORD PTR minors[rip]
	mov	edx, ebx
	mov	esi, ebp
	call	find_next_bit@PLT
	cmp	eax, ebp
	jnb	.L16
	mov	r12d, DWORD PTR EBUSY[rip]
	neg	r12d
.L8:
	lea	rdi, minor_lock[rip]
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.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
.L16:
	.cfi_restore_state
	cmp	ebx, ebp
	jnb	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, QWORD PTR minors[rip]
	mov	edi, ebx
	add	ebx, 1
	call	__set_bit@PLT
	cmp	ebp, ebx
	jne	.L7
.L9:
	xor	r12d, r12d
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L14:
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r13, QWORD PTR minors[rip]
	call	BITS_TO_LONGS@PLT
	mov	rsi, QWORD PTR minors[rip]
	mov	rdi, r12
	lea	edx, 0[0+rax*8]
	call	memcpy@PLT
	mov	edi, ebp
	mov	QWORD PTR minors[rip], r12
	mov	r12, r13
	call	BITS_TO_LONGS@PLT
	imul	eax, DWORD PTR BITS_PER_LONG[rip]
	mov	DWORD PTR nr_minors[rip], eax
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	xlbd_reserve_minors, .-xlbd_reserve_minors
	.comm	nr_minors,4,4
	.comm	minors,8,8
	.comm	minor_lock,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	BITS_PER_LONG,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_xen-blkfront.c_xlbd_reserve_minors.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xlbd_reserve_minors, %function
xlbd_reserve_minors:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L20
	add	r5, r0, r1
	ldr	r3, [r8]
	mov	r4, r0
	cmp	r3, r5
	bcc	.L14
	ldr	r6, .L20+4
.L2:
	ldr	r0, .L20+8
	bl	spin_lock
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6]
	bl	find_next_bit
	cmp	r0, r5
	bcs	.L18
	ldr	r3, .L20+12
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L8:
	ldr	r0, .L20+8
	bl	spin_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	mov	r0, r5
	bl	BITS_TO_LONGS
	ldr	r3, .L20+16
	lsl	r0, r0, #2
	ldr	r1, [r3]
	bl	kzalloc
	subs	r7, r0, #0
	beq	.L19
	ldr	r0, .L20+8
	bl	spin_lock
	ldr	r0, [r8]
	ldr	r6, .L20+4
	cmp	r0, r5
	bcc	.L15
.L5:
	ldr	r0, .L20+8
	bl	spin_unlock
	mov	r0, r7
	bl	kfree
	b	.L2
.L18:
	cmp	r4, r5
	bcs	.L9
.L7:
	mov	r0, r4
	ldr	r1, [r6]
	add	r4, r4, #1
	bl	__set_bit
	cmp	r5, r4
	bne	.L7
.L9:
	mov	r4, #0
	b	.L8
.L19:
	ldr	r3, .L20+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r9, [r6]
	bl	BITS_TO_LONGS
	mov	r1, r9
	lsl	r2, r0, #2
	mov	r0, r7
	bl	memcpy
	mov	r0, r5
	str	r7, [r6]
	bl	BITS_TO_LONGS
	ldr	r3, .L20+24
	mov	r7, r9
	ldr	r3, [r3]
	mul	r3, r0, r3
	str	r3, [r8]
	b	.L5
.L21:
	.align	2
.L20:
	.word	nr_minors
	.word	minors
	.word	minor_lock
	.word	EBUSY
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	BITS_PER_LONG
	.size	xlbd_reserve_minors, .-xlbd_reserve_minors
	.comm	nr_minors,4,4
	.comm	minors,4,4
	.comm	minor_lock,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EBUSY,4,4
	.comm	BITS_PER_LONG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
