	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_history_query           ## -- Begin function delete_history_query
	.p2align	4, 0x90
_delete_history_query:                  ## @delete_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	callq	_fprintf
LBB0_2:
	movq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_qkey_clear_conn
	movq	%rbx, %rdi
	callq	_strlen
	movq	_str_memory@GOTPCREL(%rip), %rcx
	notl	%eax
	addl	%eax, (%rcx)
	movq	%rbx, %rdi
	callq	_dl_strfree
	movq	_pending_http_queries@GOTPCREL(%rip), %rax
	decl	(%rax)
	movq	8(%r14), %rbx
	movl	(%r14), %r15d
	movq	%r14, %rdi
	callq	_delete_conn_query
	cmpl	%r15d, (%rbx)
	jne	LBB0_4
## %bb.3:
	movq	_conn_generation@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	incl	%ecx
	movl	%ecx, (%rax)
	movl	%ecx, (%rbx)
	movq	$0, 8(%rbx)
LBB0_4:
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_zfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"delete_history_query (%p,%p)\n"

	.comm	_str_memory,4,2                 ## @str_memory
	.comm	_pending_http_queries,4,2       ## @pending_http_queries
	.comm	_conn_generation,4,2            ## @conn_generation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_delete_history_query           ; -- Begin function delete_history_query
	.p2align	2
_delete_history_query:                  ; @delete_history_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, x0
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldr	x3, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_2:
	ldr	x20, [x19, #16]
	mov	x0, x20
	bl	_qkey_clear_conn
	mov	x0, x20
	bl	_strlen
Lloh8:
	adrp	x8, _str_memory@GOTPAGE
Lloh9:
	ldr	x8, [x8, _str_memory@GOTPAGEOFF]
	ldr	w9, [x8]
	mvn	w10, w0
	add	w9, w9, w10
	str	w9, [x8]
	mov	x0, x20
	bl	_dl_strfree
Lloh10:
	adrp	x8, _pending_http_queries@GOTPAGE
Lloh11:
	ldr	x8, [x8, _pending_http_queries@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	ldr	x20, [x19, #8]
	ldr	w21, [x19]
	mov	x0, x19
	bl	_delete_conn_query
	ldr	w8, [x20]
	cmp	w8, w21
	b.ne	LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _conn_generation@GOTPAGE
Lloh13:
	ldr	x8, [x8, _conn_generation@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	str	w9, [x20]
	str	xzr, [x20, #8]
LBB0_4:
	mov	x0, x19
	mov	w1, #24
	bl	_zfree
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"delete_history_query (%p,%p)\n"

	.comm	_str_memory,4,2                 ; @str_memory
	.comm	_pending_http_queries,4,2       ; @pending_http_queries
	.comm	_conn_generation,4,2            ; @conn_generation
.subsections_via_symbols
