	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function memcache_wait
LCPI0_0:
	.quad	0x3fe6666666666666              ## double 0.69999999999999996
LCPI0_1:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_memcache_wait
	.p2align	4, 0x90
_memcache_wait:                         ## @memcache_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	_verbosity@GOTPCREL(%rip), %rbx
	cmpl	$3, (%rbx)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movl	(%r12), %eax
	movq	_C_INTIMEOUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.3:
	xorl	%r14d, %r14d
	cmpl	$2, (%rbx)
	jl	LBB0_12
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r14d, %r14d
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_12
LBB0_5:
	cmpl	$8193, 16(%r12)                 ## imm = 0x2001
	jl	LBB0_7
## %bb.6:
	movq	_C_WANTWR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	8(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
LBB0_7:
	movq	_WaitAioArrPos@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	je	LBB0_13
## %bb.8:
	jle	LBB0_11
## %bb.9:
	xorl	%ebx, %ebx
	movq	_WaitAioArr@GOTPCREL(%rip), %r13
	movq	_aio_metafile_query_type@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	movq	%r12, %rsi
	movsd	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%r14, %rdx
	callq	_conn_schedule_aio
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_10
LBB0_11:
	movsd	LCPI0_1(%rip), %xmm0            ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_set_connection_timeout
	xorl	%eax, %eax
	callq	_WaitAioArrClear
	movl	$1, %r14d
	jmp	LBB0_12
LBB0_13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait for aio..\n"

	.comm	_C_INTIMEOUT,4,2                ## @C_INTIMEOUT
L_.str.1:                               ## @.str.1
	.asciz	"memcache: IN TIMEOUT (%p)\n"

	.comm	_C_WANTWR,4,2                   ## @C_WANTWR
	.comm	_WaitAioArrPos,4,2              ## @WaitAioArrPos
L_.str.2:                               ## @.str.2
	.asciz	"WaitAio=0 - no memory to load user metafile, query dropped.\n"

	.comm	_WaitAioArr,8,3                 ## @WaitAioArr
	.comm	_aio_metafile_query_type,4,2    ## @aio_metafile_query_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_memcache_wait                  ; -- Begin function memcache_wait
	.p2align	2
_memcache_wait:                         ; @memcache_wait
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x20, _verbosity@GOTPAGE
Lloh1:
	ldr	x20, [x20, _verbosity@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	w8, [x19]
Lloh7:
	adrp	x9, _C_INTIMEOUT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _C_INTIMEOUT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_14
; %bb.4:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_5:
	ldr	w9, [x19, #16]
	cmp	w9, #2, lsl #12                 ; =8192
	b.le	LBB0_7
; %bb.6:
Lloh15:
	adrp	x9, _C_WANTWR@GOTPAGE
Lloh16:
	ldr	x9, [x9, _C_WANTWR@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_7:
Lloh18:
	adrp	x21, _WaitAioArrPos@GOTPAGE
Lloh19:
	ldr	x21, [x21, _WaitAioArrPos@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_12
; %bb.8:
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.9:
	mov	x22, #0
Lloh20:
	adrp	x23, _WaitAioArr@GOTPAGE
Lloh21:
	ldr	x23, [x23, _WaitAioArr@GOTPAGEOFF]
Lloh22:
	adrp	x20, _aio_metafile_query_type@GOTPAGE
Lloh23:
	ldr	x20, [x20, _aio_metafile_query_type@GOTPAGEOFF]
	mov	x24, #7378697629483820646
	movk	x24, #16358, lsl #48
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x22, lsl #2]
	fmov	d0, x24
	mov	x1, x19
	mov	x2, x20
	bl	_conn_schedule_aio
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_10
LBB0_11:
	fmov	d0, #0.50000000
	mov	x0, x19
	bl	_set_connection_timeout
	bl	_WaitAioArrClear
	mov	w0, #1
	b	LBB0_15
LBB0_12:
Lloh24:
	adrp	x8, _stderr@GOTPAGE
Lloh25:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_13:
	bl	_fprintf
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait for aio..\n"

	.comm	_C_INTIMEOUT,4,2                ; @C_INTIMEOUT
l_.str.1:                               ; @.str.1
	.asciz	"memcache: IN TIMEOUT (%p)\n"

	.comm	_C_WANTWR,4,2                   ; @C_WANTWR
	.comm	_WaitAioArrPos,4,2              ; @WaitAioArrPos
l_.str.2:                               ; @.str.2
	.asciz	"WaitAio=0 - no memory to load user metafile, query dropped.\n"

	.comm	_WaitAioArr,8,3                 ; @WaitAioArr
	.comm	_aio_metafile_query_type,4,2    ; @aio_metafile_query_type
.subsections_via_symbols
