	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_timeout                  ## -- Begin function query_timeout
	.p2align	4, 0x90
_query_timeout:                         ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rcx
	movl	$1000, %r9d                     ## imm = 0x3E8
	addl	(%rcx), %r9d
	movl	%r9d, (%rcx)
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%rcx), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
	movq	(%rbx), %rcx
LBB0_2:
	movq	%rcx, %rdi
	callq	_assert
	movq	_conn_error@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rcx
	movl	%eax, 28(%rcx)
	movl	$-239, 8(%rcx)
	movq	_C_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rcx)
	movq	16(%rcx), %rdi
	cmpl	$0, (%rdi)
	jne	LBB0_4
## %bb.3:
	callq	_put_event_into_heap
LBB0_4:
	movq	%rbx, %rdi
	callq	_delete_query
	movq	_expired_forwarded_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"query %p of connection %p (fd=%d) timed out, unreliability=%d\n"

	.comm	_conn_error,4,2                 ## @conn_error
	.comm	_C_FAILED,4,2                   ## @C_FAILED
	.comm	_expired_forwarded_queries,4,2  ## @expired_forwarded_queries
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_query_timeout                  ; -- Begin function query_timeout
	.p2align	2
_query_timeout:                         ; @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
	ldr	x3, [x0]
	ldr	w8, [x3]
	add	w5, w8, #1000
	str	w5, [x3]
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]
	ldr	w4, [x3, #4]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
	ldr	x3, [x19]
LBB0_2:
	mov	x0, x3
	bl	_assert
Lloh8:
	adrp	x8, _conn_error@GOTPAGE
Lloh9:
	ldr	x8, [x8, _conn_error@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x19]
	mov	w10, #-239
	str	w10, [x9, #8]
Lloh11:
	adrp	x10, _C_FAILED@GOTPAGE
Lloh12:
	ldr	x10, [x10, _C_FAILED@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	ldr	w11, [x9, #24]
	orr	w10, w11, w10
	stp	w10, w8, [x9, #24]
	ldr	x0, [x9, #16]
	ldr	w8, [x0]
	cbnz	w8, LBB0_4
; %bb.3:
	bl	_put_event_into_heap
LBB0_4:
	mov	x0, x19
	bl	_delete_query
Lloh14:
	adrp	x8, _expired_forwarded_queries@GOTPAGE
Lloh15:
	ldr	x8, [x8, _expired_forwarded_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	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	"query %p of connection %p (fd=%d) timed out, unreliability=%d\n"

	.comm	_conn_error,4,2                 ; @conn_error
	.comm	_C_FAILED,4,2                   ; @C_FAILED
	.comm	_expired_forwarded_queries,4,2  ; @expired_forwarded_queries
.subsections_via_symbols
