	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function complete_long_query
_complete_long_query:                   ## @complete_long_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movq	_last_long_query_utime@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_long_query_buff_ptr@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	subq	(%rcx,%rsi,8), %rax
	movq	_last_long_query_time@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, (%rcx,%rsi,8)
	movq	(%rdx), %rax
	movq	(%rcx,%rax,8), %rsi
	movq	_tot_long_queries_time@GOTPCREL(%rip), %rcx
	addl	%esi, (%rcx)
	movq	_last_long_query_found@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%ebx, (%rcx,%rax,4)
	movq	_verbosity@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jg	LBB0_2
## %bb.1:
	movq	_log_long_queries@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	jne	LBB0_2
## %bb.6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movl	(%r14), %edx
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %edx
LBB0_5:
	movq	_last_long_query_buff@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %r8d
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %ecx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_last_long_query_utime,8,3      ## @last_long_query_utime
	.comm	_long_query_buff_ptr,8,3        ## @long_query_buff_ptr
	.comm	_last_long_query_time,8,3       ## @last_long_query_time
	.comm	_tot_long_queries_time,4,2      ## @tot_long_queries_time
	.comm	_last_long_query_found,8,3      ## @last_long_query_found
	.comm	_verbosity,8,3                  ## @verbosity
	.comm	_log_long_queries,8,3           ## @log_long_queries
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%.6lf %d (%d) %s\n"

	.comm	_last_long_query_buff,8,3       ## @last_long_query_buff
	.no_dead_strip	_complete_long_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function complete_long_query
_complete_long_query:                   ; @complete_long_query
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_get_utime
Lloh3:
	adrp	x8, _last_long_query_utime@GOTPAGE
Lloh4:
	ldr	x8, [x8, _last_long_query_utime@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _long_query_buff_ptr@GOTPAGE
Lloh7:
	ldr	x9, [x9, _long_query_buff_ptr@GOTPAGEOFF]
	ldr	x10, [x9]
	lsl	x10, x10, #3
	ldr	x8, [x8, x10]
	sub	x8, x0, x8
Lloh8:
	adrp	x11, _last_long_query_time@GOTPAGE
Lloh9:
	ldr	x11, [x11, _last_long_query_time@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	str	x8, [x11, x10]
	ldr	x8, [x9]
	ldr	x1, [x11, x8, lsl #3]
Lloh11:
	adrp	x9, _tot_long_queries_time@GOTPAGE
Lloh12:
	ldr	x9, [x9, _tot_long_queries_time@GOTPAGEOFF]
	ldr	w10, [x9]
	add	w10, w10, w1
	str	w10, [x9]
Lloh13:
	adrp	x9, _last_long_query_found@GOTPAGE
Lloh14:
	ldr	x9, [x9, _last_long_query_found@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	str	w19, [x9, x8, lsl #2]
Lloh16:
	adrp	x9, _verbosity@GOTPAGE
Lloh17:
	ldr	x9, [x9, _verbosity@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, #0
	b.gt	LBB0_3
; %bb.1:
Lloh19:
	adrp	x9, _log_long_queries@GOTPAGE
Lloh20:
	ldr	x9, [x9, _log_long_queries@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cbnz	x9, LBB0_3
; %bb.2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	cbz	x20, LBB0_5
; %bb.4:
	ldr	w2, [x20]
	b	LBB0_6
LBB0_5:
	mov	w2, #-1
LBB0_6:
Lloh22:
	adrp	x9, _last_long_query_buff@GOTPAGE
Lloh23:
	ldr	x9, [x9, _last_long_query_buff@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	ldr	w4, [x9, x8, lsl #2]
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kprintf
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_last_long_query_utime,8,3      ; @last_long_query_utime
	.comm	_long_query_buff_ptr,8,3        ; @long_query_buff_ptr
	.comm	_last_long_query_time,8,3       ; @last_long_query_time
	.comm	_tot_long_queries_time,4,2      ; @tot_long_queries_time
	.comm	_last_long_query_found,8,3      ; @last_long_query_found
	.comm	_verbosity,8,3                  ; @verbosity
	.comm	_log_long_queries,8,3           ; @log_long_queries
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%.6lf %d (%d) %s\n"

	.comm	_last_long_query_buff,8,3       ; @last_long_query_buff
	.no_dead_strip	_complete_long_query
.subsections_via_symbols
