	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function register_long_query
_register_long_query:                   ## @register_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_long_query_buff_ptr@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	decl	%eax
	movq	_SAVED_LONG_QUERIES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	andl	%eax, %ecx
	movl	%ecx, (%r12)
	movq	_CLOCK_MONOTONIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_get_utime
	movq	_last_long_query_utime@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%r12), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_SAVED_LONG_QUERY_BUF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	addl	$-8, %ebx
	cmpl	%r15d, %ebx
	cmovgel	%r15d, %ebx
	movq	_last_long_query_buff@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movslq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	(%r15), %rax
	movslq	(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movslq	%ebx, %rcx
	movq	$0, (%rax,%rcx,8)
	movq	_tot_long_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_long_query_buff_ptr,4,2        ## @long_query_buff_ptr
	.comm	_SAVED_LONG_QUERIES,4,2         ## @SAVED_LONG_QUERIES
	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_last_long_query_utime,8,3      ## @last_long_query_utime
	.comm	_SAVED_LONG_QUERY_BUF_LEN,4,2   ## @SAVED_LONG_QUERY_BUF_LEN
	.comm	_last_long_query_buff,8,3       ## @last_long_query_buff
	.comm	_tot_long_queries,4,2           ## @tot_long_queries
	.no_dead_strip	_register_long_query
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function register_long_query
_register_long_query:                   ; @register_long_query
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _long_query_buff_ptr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _long_query_buff_ptr@GOTPAGEOFF]
	ldr	w8, [x21]
	sub	w8, w8, #1
Lloh2:
	adrp	x9, _SAVED_LONG_QUERIES@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SAVED_LONG_QUERIES@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	sub	w9, w9, #1
	and	w8, w9, w8
	str	w8, [x21]
Lloh5:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_get_utime
Lloh8:
	adrp	x8, _last_long_query_utime@GOTPAGE
Lloh9:
	ldr	x8, [x8, _last_long_query_utime@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldrsw	x9, [x21]
	str	w0, [x8, x9, lsl #2]
Lloh11:
	adrp	x8, _SAVED_LONG_QUERY_BUF_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SAVED_LONG_QUERY_BUF_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	sub	w8, w8, #8
	cmp	w8, w19
	csel	w19, w8, w19, lt
Lloh14:
	adrp	x22, _last_long_query_buff@GOTPAGE
Lloh15:
	ldr	x22, [x22, _last_long_query_buff@GOTPAGEOFF]
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	ldr	x0, [x8, x9, lsl #3]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	ldr	x8, [x8, x9, lsl #3]
	str	xzr, [x8, w19, sxtw #3]
Lloh16:
	adrp	x8, _tot_long_queries@GOTPAGE
Lloh17:
	ldr	x8, [x8, _tot_long_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_long_query_buff_ptr,4,2        ; @long_query_buff_ptr
	.comm	_SAVED_LONG_QUERIES,4,2         ; @SAVED_LONG_QUERIES
	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_last_long_query_utime,8,3      ; @last_long_query_utime
	.comm	_SAVED_LONG_QUERY_BUF_LEN,4,2   ; @SAVED_LONG_QUERY_BUF_LEN
	.comm	_last_long_query_buff,8,3       ; @last_long_query_buff
	.comm	_tot_long_queries,4,2           ; @tot_long_queries
	.no_dead_strip	_register_long_query
.subsections_via_symbols
