	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_aio_query               ## -- Begin function create_aio_query
	.p2align	4, 0x90
_create_aio_query:                      ## @create_aio_query
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r14
	movl	$56, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movq	_verbosity@GOTPCREL(%rip), %r13
	cmpl	$2, (%r13)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	movl	(%r12), %r9d
	movq	%rbx, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%r12, %r8
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	$0, 48(%rbx)
	movq	%r14, 40(%rbx)
	movq	%r12, 32(%rbx)
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	xorl	%ecx, %ecx
	xorpd	%xmm0, %xmm0
	movsd	-48(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	movq	%rax, (%rbx)
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %rax
	cmovaq	%rax, %rcx
	movq	$0, 24(%rbx)
	movq	%r15, 16(%rbx)
	movq	%rcx, 8(%rbx)
	cmpl	$2, (%r13)
	jl	LBB0_5
## %bb.3:
	cmpq	%r14, 8(%r14)
	je	LBB0_5
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_5:
	movq	%rbx, %rdi
	callq	_insert_conn_query
	movq	_active_aio_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_tot_aio_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	cmpl	$2, (%r13)
	jl	LBB0_7
## %bb.6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:
	movl	$1, %eax
	addq	$24, %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	"create_query(%p[%d], %p[%d]): Q=%p\n"

	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
L_.str.1:                               ## @.str.1
	.asciz	"!NOTICE! inserting second query to %p\n"

	.comm	_active_aio_queries,4,2         ## @active_aio_queries
	.comm	_tot_aio_queries,4,2            ## @tot_aio_queries
L_.str.2:                               ## @.str.2
	.asciz	"after insert_conn_query()\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_aio_query               ; -- Begin function create_aio_query
	.p2align	2
_create_aio_query:                      ; @create_aio_query
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x21, x2
	fmov	d8, d0
	mov	x22, x1
	mov	x20, x0
	mov	w0, #56
	bl	_zmalloc
	mov	x19, x0
Lloh0:
	adrp	x23, _verbosity@GOTPAGE
Lloh1:
	ldr	x23, [x23, _verbosity@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _stderr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w8, [x20]
	ldr	w9, [x22]
	stp	x9, x19, [sp, #24]
	stp	x8, x22, [sp, #8]
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	stp	x20, xzr, [x19, #40]
	str	x22, [x19, #32]
Lloh7:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_get_utime
	stp	x21, xzr, [x19, #16]
	scvtf	d0, x0
	fadd	d0, d0, d8
	fcvtzs	x8, d0
	fcmp	d8, #0.0
	csel	x8, x8, xzr, gt
	stp	x0, x8, [x19]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_5
; %bb.3:
	ldr	x8, [x20, #8]
	cmp	x8, x20
	b.eq	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_5:
	mov	x0, x19
	bl	_insert_conn_query
Lloh15:
	adrp	x8, _active_aio_queries@GOTPAGE
Lloh16:
	ldr	x8, [x8, _active_aio_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
Lloh17:
	adrp	x10, _tot_aio_queries@GOTPAGE
Lloh18:
	ldr	x10, [x10, _tot_aio_queries@GOTPAGEOFF]
	str	w9, [x8]
	ldr	w8, [x10]
	add	w8, w8, #1
	str	w8, [x10]
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.6:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.2@PAGE
Lloh23:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #128
	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 AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create_query(%p[%d], %p[%d]): Q=%p\n"

	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
l_.str.1:                               ; @.str.1
	.asciz	"!NOTICE! inserting second query to %p\n"

	.comm	_active_aio_queries,4,2         ; @active_aio_queries
	.comm	_tot_aio_queries,4,2            ; @tot_aio_queries
l_.str.2:                               ; @.str.2
	.asciz	"after insert_conn_query()\n"

.subsections_via_symbols
