	.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	0x3ff199999999999a              ## double 1.1000000000000001
	.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	_WaitAioArrPos@GOTPCREL(%rip), %r13
	cmpl	$0, (%r13)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	_verbosity@GOTPCREL(%rip), %r15
	cmpl	$3, (%r15)
	jl	LBB0_4
## %bb.3:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:
	movl	(%r12), %eax
	movq	_C_INTIMEOUT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.5:
	xorl	%r14d, %r14d
	cmpl	$2, (%r15)
	jl	LBB0_13
## %bb.6:
	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_13
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_14
LBB0_7:
	cmpl	$8193, 16(%r12)                 ## imm = 0x2001
	jl	LBB0_9
## %bb.8:
	movq	_C_WANTWR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%r12)
	movq	8(%r12), %rax
	movq	%r12, %rdi
	callq	*(%rax)
LBB0_9:
	cmpl	$0, (%r13)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	movq	_aio_t@GOTPCREL(%rip), %r15
	movq	_aio_metafile_query_type@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_WaitAioArr@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %edi
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	mulsd	LCPI0_0(%rip), %xmm0
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_conn_schedule_aio
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_11
LBB0_12:
	movq	_aio_t@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movq	%r12, %rdi
	callq	_set_connection_timeout
	movl	$1, %r14d
LBB0_13:
	xorl	%eax, %eax
	callq	_WaitAioArrClear
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WaitAioArrPos,4,2              ## @WaitAioArrPos
	.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	_WaitAioArr,8,3                 ## @WaitAioArr
	.comm	_aio_t,8,3                      ## @aio_t
	.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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
Lloh0:
	adrp	x21, _WaitAioArrPos@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WaitAioArrPos@GOTPAGEOFF]
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x20, _verbosity@GOTPAGE
Lloh3:
	ldr	x20, [x20, _verbosity@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_3:
	ldr	w8, [x19]
Lloh9:
	adrp	x9, _C_INTIMEOUT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _C_INTIMEOUT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.4:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
Lloh12:
	adrp	x8, _stderr@GOTPAGE
Lloh13:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	str	x19, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_6:
	mov	w19, #0
	b	LBB0_14
LBB0_7:
	mov	w19, #0
	b	LBB0_15
LBB0_8:
	ldr	w9, [x19, #16]
	cmp	w9, #2, lsl #12                 ; =8192
	b.le	LBB0_10
; %bb.9:
Lloh17:
	adrp	x9, _C_WANTWR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _C_WANTWR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_10:
	ldr	w8, [x21]
Lloh20:
	adrp	x22, _aio_t@GOTPAGE
Lloh21:
	ldr	x22, [x22, _aio_t@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x23, #0
Lloh22:
	adrp	x24, _WaitAioArr@GOTPAGE
Lloh23:
	ldr	x24, [x24, _WaitAioArr@GOTPAGEOFF]
	mov	x25, #-7378697629483820647
	movk	x25, #39322
	movk	x25, #16369, lsl #48
Lloh24:
	adrp	x20, _aio_metafile_query_type@GOTPAGE
Lloh25:
	ldr	x20, [x20, _aio_metafile_query_type@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	ldr	w0, [x8, x23, lsl #2]
	ldr	d0, [x22]
	fmov	d1, x25
	fmul	d0, d0, d1
	mov	x1, x19
	mov	x2, x20
	bl	_conn_schedule_aio
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_12
LBB0_13:
	ldr	d0, [x22]
	mov	x0, x19
	bl	_set_connection_timeout
	mov	w19, #1
LBB0_14:
	bl	_WaitAioArrClear
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WaitAioArrPos,4,2              ; @WaitAioArrPos
	.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	_WaitAioArr,8,3                 ; @WaitAioArr
	.comm	_aio_t,8,3                      ; @aio_t
	.comm	_aio_metafile_query_type,4,2    ; @aio_metafile_query_type
.subsections_via_symbols
