	.file	"extr_g_mirror.c_g_mirror_request_round_robin.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Sending request."
	.text
	.p2align 4
	.type	g_mirror_request_round_robin, @function
g_mirror_request_round_robin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	g_mirror_get_disk@PLT
	test	rax, rax
	je	.L10
	mov	rdi, rbp
	mov	rbx, rax
	call	g_clone_bio@PLT
	mov	r12, rax
	test	rax, rax
	je	.L11
	mov	rbp, QWORD PTR [rbx]
	mov	eax, DWORD PTR g_mirror_done[rip]
	mov	rsi, r12
	mov	edi, 3
	lea	rdx, .LC0[rip]
	mov	DWORD PTR 16[r12], eax
	mov	rax, QWORD PTR 16[rbp]
	mov	QWORD PTR 8[r12], rax
	call	G_MIRROR_LOGREQ@PLT
	mov	ecx, DWORD PTR 0[rbp]
	movsx	rsi, DWORD PTR 8[rbp]
	xor	edi, edi
	test	ecx, ecx
	jle	.L6
	mov	edx, DWORD PTR 4[rbp]
	test	edx, edx
	setg	dl
	xor	edi, edi
	test	esi, esi
	setg	dil
	and	edi, edx
.L6:
	call	KASSERT@PLT
	add	DWORD PTR 12[rbp], 1
	mov	rsi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	g_io_request@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	rsi, QWORD PTR 0[rbp]
	test	rsi, rsi
	jne	.L5
	mov	rsi, QWORD PTR ENOMEM[rip]
	mov	QWORD PTR 0[rbp], rsi
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	g_io_deliver@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rsi, QWORD PTR 0[rbp]
	test	rsi, rsi
	jne	.L5
	mov	rsi, QWORD PTR ENXIO[rip]
	mov	rdi, rbp
	mov	QWORD PTR 0[rbp], rsi
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	g_io_deliver@PLT
	.cfi_endproc
.LFE0:
	.size	g_mirror_request_round_robin, .-g_mirror_request_round_robin
	.comm	g_mirror_done,4,4
	.comm	ENXIO,8,8
	.comm	ENOMEM,8,8
	.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_g_mirror.c_g_mirror_request_round_robin.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Sending request.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	g_mirror_request_round_robin, %function
g_mirror_request_round_robin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	g_mirror_get_disk
	subs	r6, r0, #0
	beq	.L12
	mov	r0, r4
	bl	g_clone_bio
	subs	r5, r0, #0
	beq	.L13
	ldr	r4, [r6]
	ldr	r3, .L15
	ldr	r2, [r4, #16]
	ldr	r3, [r3]
	mov	r1, r5
	stmib	r5, {r2, r3}
	mov	r0, #3
	ldr	r2, .L15+4
	bl	G_MIRROR_LOGREQ
	ldr	r3, [r4]
	cmp	r3, #0
	ble	.L14
	ldr	r3, [r4, #4]
	ldr	r1, [r4, #8]
	cmp	r3, #0
	ble	.L7
	cmp	r1, #0
	movgt	r0, #1
	bgt	.L8
.L7:
	mov	r0, #0
.L8:
	bl	KASSERT
	ldr	r3, [r4, #12]
	mov	r0, r5
	add	r3, r3, #1
	mov	r1, r4
	str	r3, [r4, #12]
	pop	{r4, r5, r6, lr}
	b	g_io_request
.L13:
	ldr	r1, [r4]
	cmp	r1, #0
	ldreq	r3, .L15+8
	ldreq	r1, [r3]
	streq	r1, [r4]
.L5:
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	b	g_io_deliver
.L12:
	ldr	r1, [r4]
	cmp	r1, #0
	bne	.L5
	ldr	r3, .L15+12
	mov	r0, r4
	ldr	r1, [r3]
	str	r1, [r4]
	pop	{r4, r5, r6, lr}
	b	g_io_deliver
.L14:
	ldr	r1, [r4, #8]
	b	.L7
.L16:
	.align	2
.L15:
	.word	g_mirror_done
	.word	.LC0
	.word	ENOMEM
	.word	ENXIO
	.size	g_mirror_request_round_robin, .-g_mirror_request_round_robin
	.comm	g_mirror_done,4,4
	.comm	ENXIO,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
