	.file	"extr_swap.c_wait_on_bio_chain.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	wait_on_bio_chain, @function
wait_on_bio_chain:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rdi, rdi
	je	.L7
	mov	rbx, QWORD PTR [rdi]
	mov	r14, rdi
	xor	r13d, r13d
	test	rbx, rbx
	jne	.L6
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
.L4:
	mov	rdi, rbp
	call	put_page@PLT
	mov	rdi, r12
	call	bio_put@PLT
	test	rbx, rbx
	je	.L12
.L6:
	mov	r12, rbx
	mov	rbx, QWORD PTR 8[rbx]
	mov	rax, QWORD PTR [r12]
	mov	rbp, QWORD PTR [rax]
	mov	rdi, rbp
	call	wait_on_page_locked@PLT
	mov	rdi, rbp
	call	PageUptodate@PLT
	test	eax, eax
	je	.L5
	mov	rdi, rbp
	call	PageError@PLT
	test	rax, rax
	jne	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	QWORD PTR [r14], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	xor	r13d, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r13d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wait_on_bio_chain, .-wait_on_bio_chain
	.comm	EIO,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_swap.c_wait_on_bio_chain.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wait_on_bio_chain, %function
wait_on_bio_chain:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r7, r0, #0
	moveq	r9, r7
	beq	.L1
	ldr	r4, [r7]
	cmp	r4, #0
	moveq	r9, r4
	beq	.L1
	mov	r9, #0
	ldr	r8, .L13
	b	.L6
.L5:
	ldr	r0, [r8]
	rsb	r9, r0, #0
.L4:
	mov	r0, r5
	bl	put_page
	mov	r0, r6
	bl	bio_put
	cmp	r4, #0
	beq	.L12
.L6:
	ldr	r3, [r4]
	mov	r6, r4
	ldr	r5, [r3]
	ldr	r4, [r4, #4]
	mov	r0, r5
	bl	wait_on_page_locked
	mov	r0, r5
	bl	PageUptodate
	cmp	r0, #0
	beq	.L5
	mov	r0, r5
	bl	PageError
	cmp	r0, #0
	bne	.L5
	b	.L4
.L12:
	str	r4, [r7]
.L1:
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	EIO
	.size	wait_on_bio_chain, .-wait_on_bio_chain
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
