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

	.comm	_CLOCK_MONOTONIC,4,2            ## @CLOCK_MONOTONIC
	.comm	_history_cq_func,4,2            ## @history_cq_func
	.comm	_pending_http_queries,4,2       ## @pending_http_queries
L_.str.1:                               ## @.str.1
	.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_history_query           ; -- Begin function create_history_query
	.p2align	2
_create_history_query:                  ; @create_history_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
	fmov	d8, d0
	mov	x20, x1
	mov	x21, x0
	mov	w0, #56
	bl	_zmalloc
	mov	x19, x0
Lloh0:
	adrp	x23, _verbosity@GOTPAGE
Lloh1:
	ldr	x23, [x23, _verbosity@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x22, _stderr@GOTPAGE
Lloh3:
	ldr	x22, [x22, _stderr@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x22]
	ldr	w8, [x21]
	ldr	w9, [x20]
	stp	x9, x19, [sp, #24]
	stp	x8, x20, [sp, #8]
	str	x21, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	stp	x21, xzr, [x19, #40]
	str	x20, [x19, #32]
Lloh6:
	adrp	x8, _CLOCK_MONOTONIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CLOCK_MONOTONIC@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_get_utime
Lloh9:
	adrp	x8, _history_cq_func@GOTPAGE
Lloh10:
	ldr	x8, [x8, _history_cq_func@GOTPAGEOFF]
	stp	x8, 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]
Lloh11:
	adrp	x8, _pending_http_queries@GOTPAGE
Lloh12:
	ldr	x8, [x8, _pending_http_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x19
	bl	_insert_conn_query
	ldr	w8, [x23]
	cmp	w8, #2
	b.lt	LBB0_4
; %bb.3:
	ldr	w0, [x22]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_4:
	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	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create_history_query(%p[%d], %p[%d]): Q=%p\n"

	.comm	_CLOCK_MONOTONIC,4,2            ; @CLOCK_MONOTONIC
	.comm	_history_cq_func,4,2            ; @history_cq_func
	.comm	_pending_http_queries,4,2       ; @pending_http_queries
l_.str.1:                               ; @.str.1
	.asciz	"after insert_conn_query()\n"

.subsections_via_symbols
