	.file	"extr_pmemcached-engine.c_memcache_wait.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wait for aio..\n"
.LC1:
	.string	"memcache: IN TIMEOUT (%p)\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"WaitAio=0 - no memory to load user metafile, query dropped.\n"
	.text
	.p2align 4
	.globl	memcache_wait
	.type	memcache_wait, @function
memcache_wait:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	DWORD PTR verbosity[rip], 2
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	jg	.L15
.L2:
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR C_INTIMEOUT[rip], eax
	jne	.L16
	cmp	DWORD PTR 16[rbp], 8192
	jg	.L17
	mov	r12d, DWORD PTR WaitAioArrPos[rip]
	test	r12d, r12d
	je	.L6
.L18:
	mov	ebx, 0
	lea	r12, aio_metafile_query_type[rip]
	jle	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rax, QWORD PTR WaitAioArr[rip]
	mov	rdx, r12
	mov	rsi, rbp
	mov	edi, DWORD PTR [rax+rbx*4]
	mov	rax, QWORD PTR .LC3[rip]
	add	rbx, 1
	movq	xmm0, rax
	call	conn_schedule_aio@PLT
	cmp	DWORD PTR WaitAioArrPos[rip], ebx
	jg	.L7
.L8:
	movsd	xmm0, QWORD PTR .LC4[rip]
	mov	rdi, rbp
	mov	r12d, 1
	call	set_connection_timeout@PLT
	xor	eax, eax
	call	WaitAioArrClear@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	or	eax, DWORD PTR C_WANTWR[rip]
	mov	rdi, rbp
	mov	DWORD PTR 0[rbp], eax
	mov	rax, QWORD PTR 8[rbp]
	call	[QWORD PTR [rax]]
	mov	r12d, DWORD PTR WaitAioArrPos[rip]
	test	r12d, r12d
	jne	.L18
.L6:
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	xor	r12d, r12d
	cmp	DWORD PTR verbosity[rip], 1
	jle	.L1
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, rbp
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	fprintf@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	memcache_wait, .-memcache_wait
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	aio_metafile_query_type,4,4
	.comm	WaitAioArrPos,4,4
	.comm	WaitAioArr,8,8
	.comm	C_WANTWR,4,4
	.comm	C_INTIMEOUT,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC3:
	.long	1717986918
	.long	1072064102
	.align 8
.LC4:
	.long	0
	.long	1071644672
	.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_pmemcached-engine.c_memcache_wait.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wait for aio..\012\000"
	.align	2
.LC1:
	.ascii	"memcache: IN TIMEOUT (%p)\012\000"
	.align	2
.LC2:
	.ascii	"WaitAio=0 - no memory to load user metafile, query "
	.ascii	"dropped.\012\000"
	.text
	.align	2
	.global	memcache_wait
	.syntax unified
	.arm
	.fpu softvfp
	.type	memcache_wait, %function
memcache_wait:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L18
	mov	r5, r0
	ldr	r3, [r6]
	sub	sp, sp, #8
	cmp	r3, #2
	bgt	.L14
.L2:
	ldr	r2, .L18+4
	ldr	r3, [r5]
	ldr	r4, [r2]
	ands	r4, r3, r4
	bne	.L15
	ldr	r2, [r5, #8]
	cmp	r2, #8192
	bgt	.L16
	ldr	r8, .L18+8
	ldr	r6, [r8]
	cmp	r6, #0
	beq	.L6
.L17:
	ble	.L8
	ldr	r6, .L18+12
	ldr	r7, .L18+16
	ldr	r10, .L18+20
	ldr	r9, .L18+24
.L7:
	ldr	r1, [r10]
	mov	r3, r7
	ldr	r0, [r1, r4, lsl #2]
	mov	r2, r6
	mov	r1, r5
	str	r9, [sp]
	bl	conn_schedule_aio
	ldr	r3, [r8]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L7
.L8:
	mov	r0, r5
	mov	r2, #0
	ldr	r3, .L18+28
	bl	set_connection_timeout
	mov	r6, #1
	bl	WaitAioArrClear
.L1:
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	ldr	r2, .L18+32
	ldr	r1, [r5, #4]
	ldr	r2, [r2]
	ldr	r8, .L18+8
	orr	r3, r2, r3
	ldr	r1, [r1]
	mov	r0, r5
	str	r3, [r5]
	blx	r1
	ldr	r6, [r8]
	cmp	r6, #0
	bne	.L17
.L6:
	ldr	r3, .L18+36
	ldr	r1, .L18+40
	ldr	r0, [r3]
	bl	fprintf
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	ldr	r3, [r6]
	cmp	r3, #1
	movle	r6, #0
	ble	.L1
	mov	r6, #0
	ldr	r3, .L18+36
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, .L18+44
	bl	fprintf
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	ldr	r3, .L18+36
	ldr	r1, .L18+48
	ldr	r0, [r3]
	bl	fprintf
	b	.L2
.L19:
	.align	2
.L18:
	.word	verbosity
	.word	C_INTIMEOUT
	.word	WaitAioArrPos
	.word	1717986918
	.word	1072064102
	.word	WaitAioArr
	.word	aio_metafile_query_type
	.word	1071644672
	.word	C_WANTWR
	.word	stderr
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	memcache_wait, .-memcache_wait
	.comm	verbosity,4,4
	.comm	stderr,4,4
	.comm	aio_metafile_query_type,4,4
	.comm	WaitAioArrPos,4,4
	.comm	WaitAioArr,4,4
	.comm	C_WANTWR,4,4
	.comm	C_INTIMEOUT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
