	.file	"extr_drbd_receiver.c___drbd_alloc_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__drbd_alloc_pages, @function
__drbd_alloc_pages:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	DWORD PTR drbd_pp_vacant[rip], esi
	jnb	.L15
	test	esi, esi
	je	.L13
.L8:
	xor	ebx, ebx
	xor	r12d, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, rbp
	mov	rdi, rax
	add	ebx, 1
	call	set_page_private@PLT
	cmp	r13d, ebx
	jbe	.L16
.L6:
	mov	edi, DWORD PTR GFP_TRY[rip]
	mov	rbp, r12
	call	alloc_page@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L17
	test	rbp, rbp
	jne	.L10
.L13:
	xor	r12d, r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
	je	.L1
.L7:
	xor	esi, esi
	mov	rdi, r12
	call	page_chain_tail@PLT
	lea	rdi, drbd_pp_lock[rip]
	mov	r13, rax
	call	spin_lock@PLT
	mov	rdx, r13
	mov	rsi, r12
	lea	rdi, drbd_pp_pool[rip]
	call	page_chain_add@PLT
	lea	rdi, drbd_pp_lock[rip]
	add	DWORD PTR drbd_pp_vacant[rip], ebx
	call	spin_unlock@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, drbd_pp_lock[rip]
	call	spin_lock@PLT
	mov	esi, r13d
	lea	rdi, drbd_pp_pool[rip]
	call	page_chain_del@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	lea	rdi, drbd_pp_lock[rip]
	sub	DWORD PTR drbd_pp_vacant[rip], r13d
	call	spin_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L10:
	.cfi_restore_state
	mov	r12, rbp
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, drbd_pp_lock[rip]
	call	spin_unlock@PLT
	test	r13d, r13d
	jne	.L8
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	__drbd_alloc_pages, .-__drbd_alloc_pages
	.comm	drbd_pp_vacant,4,4
	.comm	drbd_pp_pool,4,4
	.comm	drbd_pp_lock,4,4
	.comm	GFP_TRY,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_drbd_receiver.c___drbd_alloc_pages.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__drbd_alloc_pages, %function
__drbd_alloc_pages:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L17
	mov	r6, r1
	ldr	r3, [r8]
	cmp	r3, r1
	bcs	.L14
	cmp	r1, #0
	beq	.L9
.L8:
	mov	r4, #0
	ldr	r7, .L17+4
	mov	r5, r4
	b	.L6
.L16:
	add	r4, r4, #1
	bl	set_page_private
	cmp	r6, r4
	bls	.L15
.L6:
	ldr	r0, [r7]
	bl	alloc_page
	mov	r1, r5
	subs	r5, r0, #0
	bne	.L16
	cmp	r1, #0
	bne	.L10
.L9:
	mov	r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	beq	.L1
.L7:
	mov	r1, #0
	mov	r0, r5
	bl	page_chain_tail
	mov	r6, r0
	ldr	r0, .L17+8
	bl	spin_lock
	mov	r1, r5
	mov	r5, #0
	mov	r2, r6
	ldr	r0, .L17+12
	bl	page_chain_add
	ldr	r3, [r8]
	ldr	r0, .L17+8
	add	r4, r3, r4
	str	r4, [r8]
	bl	spin_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, .L17+8
	bl	spin_lock
	mov	r1, r6
	ldr	r0, .L17+12
	bl	page_chain_del
	subs	r5, r0, #0
	beq	.L3
	ldr	r3, [r8]
	ldr	r0, .L17+8
	sub	r6, r3, r6
	str	r6, [r8]
	bl	spin_unlock
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r5, r1
	b	.L7
.L3:
	ldr	r0, .L17+8
	bl	spin_unlock
	cmp	r6, #0
	bne	.L8
	b	.L9
.L18:
	.align	2
.L17:
	.word	drbd_pp_vacant
	.word	GFP_TRY
	.word	drbd_pp_lock
	.word	drbd_pp_pool
	.size	__drbd_alloc_pages, .-__drbd_alloc_pages
	.comm	drbd_pp_vacant,4,4
	.comm	drbd_pp_pool,4,4
	.comm	drbd_pp_lock,4,4
	.comm	GFP_TRY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
