	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hts_wakeup
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_hts_wakeup
	.p2align	4, 0x90
_hts_wakeup:                            ## @hts_wakeup
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_HTS_DATA
	movq	%rax, %r15
	movq	8(%rax), %r13
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$3, (%rax)
	jl	LBB0_5
## %bb.1:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_stderr@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %r14
	leaq	L_.str.1(%rip), %r12
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movq	8(%r13), %rcx
	movq	(%rcx,%r15,8), %rcx
	movq	(%rcx), %rdx
	incq	%r15
	movl	%eax, %eax
	xorl	%ecx, %ecx
	cmpq	%rax, %r15
	sete	%cl
	movsbl	(%rcx,%r14), %ecx
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jl	LBB0_3
LBB0_4:
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_5:
	movq	(%r14), %rax
	movq	_conn_expect_query@GOTPCREL(%rip), %rbx
	cmpq	(%rbx), %rax
	sete	%cl
	movq	_conn_wait_net@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	(%rbx), %rax
	movq	%rax, (%r14)
	movq	%r14, %rdi
	callq	_clear_connection_timeout
	movq	_QF_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_7
## %bb.6:
	movq	_conn_write_close@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movl	$-1, 8(%r14)
LBB0_7:
	movq	%r13, %rdi
	callq	_get_events_http_group
	movq	%rax, %r12
	movq	_conn_generation@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	%rcx, 24(%r14)
	movq	$0, 16(%r14)
	cmpl	$0, (%r13)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx,8), %rcx
	decq	8(%rcx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rcx)
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %rdi
	shrq	$63, %rdi
	xorl	$1, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_assert
	incq	%rbx
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	%r13, %rdi
	callq	_qkey_group_free
	movq	$0, 8(%r15)
	movq	%r14, %rdi
	movq	%r12, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_http_return_history            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hts_wakeup : keys ["

L_.str.1:                               ## @.str.1
	.asciz	"%s%c"

L_.str.2:                               ## @.str.2
	.asciz	",]"

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.comm	_conn_expect_query,8,3          ## @conn_expect_query
	.comm	_conn_wait_net,8,3              ## @conn_wait_net
	.comm	_QF_KEEPALIVE,4,2               ## @QF_KEEPALIVE
	.comm	_conn_write_close,8,3           ## @conn_write_close
	.comm	_conn_generation,8,3            ## @conn_generation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hts_wakeup                     ; -- Begin function hts_wakeup
	.p2align	2
_hts_wakeup:                            ; @hts_wakeup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	bl	_HTS_DATA
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _verbosity@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbosity@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_5
; %bb.1:
Lloh3:
	adrp	x23, _stderr@GOTPAGE
Lloh4:
	ldr	x23, [x23, _stderr@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
Lloh7:
	adrp	x25, l_.str.2@PAGE
Lloh8:
	add	x25, x25, l_.str.2@PAGEOFF
Lloh9:
	adrp	x22, l_.str.1@PAGE
Lloh10:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x21, #8]
	ldr	x9, [x9, x24, lsl #3]
	ldr	w0, [x23]
	ldr	x9, [x9]
	add	x24, x24, #1
	cmp	x24, w8, uxtw
	cinc	x8, x25, eq
	ldrsb	x8, [x8]
	stp	x9, x8, [sp]
	mov	x1, x22
	bl	_fprintf
	ldrsw	x8, [x21]
	cmp	x24, x8
	b.lt	LBB0_3
LBB0_4:
	ldr	w0, [x23]
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_5:
	ldr	x8, [x19]
Lloh13:
	adrp	x22, _conn_expect_query@GOTPAGE
Lloh14:
	ldr	x22, [x22, _conn_expect_query@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
Lloh15:
	adrp	x9, _conn_wait_net@GOTPAGE
Lloh16:
	ldr	x9, [x9, _conn_wait_net@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	x8, [x22]
	str	x8, [x19]
	mov	x0, x19
	bl	_clear_connection_timeout
	ldr	w8, [x20]
Lloh18:
	adrp	x9, _QF_KEEPALIVE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _QF_KEEPALIVE@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.6:
Lloh21:
	adrp	x8, _conn_write_close@GOTPAGE
Lloh22:
	ldr	x8, [x8, _conn_write_close@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w8, #-1
	str	w8, [x19, #8]
LBB0_7:
	mov	x0, x21
	bl	_get_events_http_group
	mov	x22, x0
Lloh24:
	adrp	x8, _conn_generation@GOTPAGE
Lloh25:
	ldr	x8, [x8, _conn_generation@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	stp	xzr, x9, [x19, #16]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x23, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	lsl	x9, x23, #3
	ldr	x10, [x8, x9]
	ldr	x11, [x10, #8]
	sub	x11, x11, #1
	stp	xzr, xzr, [x10, #16]
	str	x11, [x10, #8]
	ldr	x8, [x8, x9]
	ldr	x8, [x8, #8]
	lsr	x8, x8, #63
	eor	w0, w8, #0x1
	bl	_assert
	add	x23, x23, #1
	ldrsw	x8, [x21]
	cmp	x23, x8
	b.lt	LBB0_9
LBB0_10:
	mov	x0, x21
	bl	_qkey_group_free
	str	xzr, [x20, #8]
	mov	x0, x19
	mov	x1, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_http_return_history
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hts_wakeup : keys ["

l_.str.1:                               ; @.str.1
	.asciz	"%s%c"

l_.str.2:                               ; @.str.2
	.asciz	",]"

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.comm	_conn_expect_query,8,3          ; @conn_expect_query
	.comm	_conn_wait_net,8,3              ; @conn_wait_net
	.comm	_QF_KEEPALIVE,4,2               ; @QF_KEEPALIVE
	.comm	_conn_write_close,8,3           ; @conn_write_close
	.comm	_conn_generation,8,3            ; @conn_generation
.subsections_via_symbols
