	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delayed_query_timeout          ## -- Begin function delayed_query_timeout
	.p2align	4, 0x90
_delayed_query_timeout:                 ## @delayed_query_timeout
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
LBB0_2:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.3:
	movq	(%rdi), %rax
	cmpq	(%rbx), %rax
	jne	LBB0_5
## %bb.4:
	callq	_SQLS_DATA
	movq	(%rax), %rax
	movq	_query_wait_target@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_query_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	8(%rbx), %rdi
	callq	_SQLS_DATA
	movq	%r14, (%rax)
LBB0_5:
	movq	_active_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_delete_query
	movq	_waiting_queries@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	_expired_forwarded_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_expired_delayed_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"delayed query %p timed out\n"

	.comm	_query_wait_target,8,3          ## @query_wait_target
	.comm	_query_failed,8,3               ## @query_failed
	.comm	_active_queries,4,2             ## @active_queries
	.comm	_waiting_queries,4,2            ## @waiting_queries
	.comm	_expired_forwarded_queries,4,2  ## @expired_forwarded_queries
	.comm	_expired_delayed_queries,4,2    ## @expired_delayed_queries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delayed_query_timeout          ; -- Begin function delayed_query_timeout
	.p2align	2
_delayed_query_timeout:                 ; @delayed_query_timeout
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_2:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	bl	_SQLS_DATA
	ldr	x8, [x0]
Lloh8:
	adrp	x9, _query_wait_target@GOTPAGE
Lloh9:
	ldr	x9, [x9, _query_wait_target@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
Lloh11:
	adrp	x8, _query_failed@GOTPAGE
Lloh12:
	ldr	x8, [x8, _query_failed@GOTPAGEOFF]
Lloh13:
	ldr	x20, [x8]
	ldr	x0, [x19, #8]
	bl	_SQLS_DATA
	str	x20, [x0]
LBB0_5:
Lloh14:
	adrp	x8, _active_queries@GOTPAGE
Lloh15:
	ldr	x8, [x8, _active_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_delete_query
Lloh16:
	adrp	x8, _waiting_queries@GOTPAGE
Lloh17:
	ldr	x8, [x8, _waiting_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
Lloh18:
	adrp	x8, _expired_forwarded_queries@GOTPAGE
Lloh19:
	ldr	x8, [x8, _expired_forwarded_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh20:
	adrp	x8, _expired_delayed_queries@GOTPAGE
Lloh21:
	ldr	x8, [x8, _expired_delayed_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delayed query %p timed out\n"

	.comm	_query_wait_target,8,3          ; @query_wait_target
	.comm	_query_failed,8,3               ; @query_failed
	.comm	_active_queries,4,2             ; @active_queries
	.comm	_waiting_queries,4,2            ; @waiting_queries
	.comm	_expired_forwarded_queries,4,2  ; @expired_forwarded_queries
	.comm	_expired_delayed_queries,4,2    ; @expired_delayed_queries
.subsections_via_symbols
