	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movsd	%xmm0, -64(%rbp)                ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r13
	movl	$56, %edi
	callq	_zmalloc
	movq	%rax, %rbx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_HTS_DATA
	movq	(%rax), %rax
	movq	(%rax), %r14
	movq	%r12, %rdi
	callq	_HTS_DATA
	movq	(%rax), %rax
	movq	(%rax), %r9
	movl	(%r12), %r10d
	subq	$8, %rsp
	leaq	L_.str.1(%rip), %rsi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	xorl	%eax, %eax
	pushq	%rbx
	pushq	%r10
	pushq	%r12
	callq	_fprintf
	addq	$32, %rsp
LBB0_2:
	movq	$0, 48(%rbx)
	movq	%r13, 40(%rbx)
	movq	%r12, 32(%rbx)
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_mytime
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_strlen
	movq	_str_memory@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	addl	%edx, %eax
	incl	%eax
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	callq	_dl_strdup
	movl	%eax, 24(%rbx)
	movq	_history_cq_func@GOTPCREL(%rip), %rax
	movq	%rax, 16(%rbx)
	xorpd	%xmm0, %xmm0
	movsd	-64(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	ucomisd	%xmm0, %xmm1
	jbe	LBB0_4
## %bb.3:
	xorps	%xmm0, %xmm0
	cvtsi2sdq	(%rbx), %xmm0
	addsd	%xmm1, %xmm0
	cvttsd2si	%xmm0, %r14
LBB0_4:
	movq	%r14, 8(%rbx)
	movq	_pending_http_queries@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rdi
	callq	_insert_conn_query
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_6
## %bb.5:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movl	$1, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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	"OPPA\n"

L_.str.1:                               ## @.str.1
	.asciz	"create_history_query (%p[%s], key = %p[%s], %p[%d]): q=%p\n"

	.comm	_str_memory,4,2                 ## @str_memory
	.comm	_history_cq_func,4,2            ## @history_cq_func
	.comm	_pending_http_queries,4,2       ## @pending_http_queries
L_.str.2:                               ## @.str.2
	.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, #176
	.cfi_def_cfa_offset 176
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	mov	x21, x3
	mov	x19, x2
	fmov	d8, d0
	mov	x22, x1
	mov	x23, x0
	mov	w0, #56
	bl	_zmalloc
	mov	x20, x0
Lloh0:
	adrp	x26, _verbosity@GOTPAGE
Lloh1:
	ldr	x26, [x26, _verbosity@GOTPAGEOFF]
	ldr	w8, [x26]
Lloh2:
	adrp	x25, _stderr@GOTPAGE
Lloh3:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
	ldr	w0, [x25]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w24, [x25]
	ldr	x27, [x23]
	mov	x0, x22
	bl	_HTS_DATA
	ldr	x8, [x0]
	ldr	x28, [x8]
	mov	x0, x22
	bl	_HTS_DATA
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	w9, [x22]
	stp	x9, x20, [sp, #40]
	stp	x8, x22, [sp, #24]
	stp	x27, x28, [sp, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	str	x23, [sp]
	mov	x0, x24
	bl	_fprintf
LBB0_2:
	stp	x23, xzr, [x20, #40]
	str	x22, [x20, #32]
	bl	_mytime
	str	x0, [x20]
	mov	x0, x21
	bl	_strlen
Lloh8:
	adrp	x8, _str_memory@GOTPAGE
Lloh9:
	ldr	x8, [x8, _str_memory@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w0, w9
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x21
	bl	_dl_strdup
	mov	x8, #0
	str	w0, [x20, #24]
Lloh10:
	adrp	x9, _history_cq_func@GOTPAGE
Lloh11:
	ldr	x9, [x9, _history_cq_func@GOTPAGEOFF]
	str	x9, [x20, #16]
	fcmp	d8, #0.0
	b.le	LBB0_4
; %bb.3:
	ldr	d0, [x20]
	scvtf	d0, d0
	fadd	d0, d0, d8
	fcvtzs	x8, d0
LBB0_4:
	str	x8, [x20, #8]
Lloh12:
	adrp	x8, _pending_http_queries@GOTPAGE
Lloh13:
	ldr	x8, [x8, _pending_http_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	bl	_insert_conn_query
	ldr	w8, [x26]
	cmp	w8, #2
	b.lt	LBB0_6
; %bb.5:
	ldr	w0, [x25]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_6:
	str	x20, [x19]
	mov	w0, #1
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OPPA\n"

l_.str.1:                               ; @.str.1
	.asciz	"create_history_query (%p[%s], key = %p[%s], %p[%d]): q=%p\n"

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

.subsections_via_symbols
