	.file	"extr_vhost.c_vhost_log_write.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vhost_log_write
	.type	vhost_log_write, @function
vhost_log_write:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	smp_wmb@PLT
	test	ebx, ebx
	je	.L2
	lea	eax, -1[rbx]
	lea	r14, 8[rbp+rax*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	sub	r15, rbx
	je	.L14
	add	rbp, 8
	cmp	rbp, r14
	je	.L2
.L5:
	mov	edi, DWORD PTR 4[rbp]
	mov	rsi, r15
	call	min@PLT
	mov	edi, DWORD PTR 8[r13]
	mov	esi, DWORD PTR 0[rbp]
	mov	rdx, rax
	mov	rbx, rax
	call	log_write@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L15
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	xor	eax, eax
	xor	r12d, r12d
	call	BUG@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, QWORD PTR 0[r13]
	xor	r12d, r12d
	test	rdi, rdi
	je	.L1
	mov	esi, 1
	call	eventfd_signal@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vhost_log_write, .-vhost_log_write
	.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_vhost.c_vhost_log_write.c"
	.text
	.align	2
	.global	vhost_log_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	vhost_log_write, %function
vhost_log_write:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r2
	mov	r8, r0
	mov	r6, r1
	mov	r10, r3
	bl	smp_wmb
	cmp	r7, #0
	beq	.L2
	mov	r5, #0
	add	r9, r6, #4
	b	.L5
.L4:
	cmp	r7, r5
	beq	.L2
.L5:
	mov	r1, r10
	ldr	r0, [r9, r5, lsl #3]
	bl	min
	ldr	r1, [r6, r5, lsl #3]
	mov	r2, r0
	mov	r4, r0
	ldr	r0, [r8, #4]
	bl	log_write
	cmp	r0, #0
	add	r5, r5, #1
	poplt	{r4, r5, r6, r7, r8, r9, r10, pc}
	subs	r10, r10, r4
	bne	.L4
	ldr	r0, [r8]
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r1, #1
	bl	eventfd_signal
	mov	r0, r10
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	bl	BUG
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	vhost_log_write, .-vhost_log_write
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
