	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hts_wakeup                     ## -- Begin function 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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rcx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	movq	%rbx, %rdx
	callq	_vkprintf
	movq	%rbx, %rdi
	callq	_HTS_DATA
	movq	%rax, %r14
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	4(%r14), %eax
	movl	%eax, -44(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%rbx), %rax
	movq	_conn_expect_query@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	sete	%cl
	movq	_conn_wait_aio@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	movl	8(%r14), %r15d
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_clear_connection_timeout
	movq	_QF_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 12(%r14)
	jne	LBB0_2
## %bb.1:
	movq	_conn_write_close@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	$-1, 8(%rbx)
LBB0_2:
	movq	16(%r14), %rsi
	movq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	movl	%r15d, %ecx
	callq	_http_return_file
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	negl	%eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_write_http_error
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hts_wakeup (%p, c->status = %d)\n"

	.comm	_conn_expect_query,8,3          ## @conn_expect_query
	.comm	_conn_wait_aio,8,3              ## @conn_wait_aio
	.comm	_QF_KEEPALIVE,4,2               ## @QF_KEEPALIVE
	.comm	_conn_write_close,8,3           ## @conn_write_close
.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, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x3, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	mov	x2, x19
	bl	_vkprintf
	mov	x0, x19
	bl	_HTS_DATA
	mov	x20, x0
	ldr	d0, [x0]
	str	d0, [sp, #8]
	mov	x0, sp
	add	x1, sp, #8
	mov	w2, #8
	bl	_memcpy
	ldr	w21, [x20, #8]
	ldr	x8, [x19]
Lloh2:
	adrp	x22, _conn_expect_query@GOTPAGE
Lloh3:
	ldr	x22, [x22, _conn_expect_query@GOTPAGEOFF]
	ldr	x9, [x22]
	cmp	x8, x9
Lloh4:
	adrp	x9, _conn_wait_aio@GOTPAGE
Lloh5:
	ldr	x9, [x9, _conn_wait_aio@GOTPAGEOFF]
Lloh6:
	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, #12]
Lloh7:
	adrp	x9, _QF_KEEPALIVE@GOTPAGE
Lloh8:
	ldr	x9, [x9, _QF_KEEPALIVE@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _conn_write_close@GOTPAGE
Lloh11:
	ldr	x8, [x8, _conn_write_close@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	w8, #-1
	str	w8, [x19, #8]
LBB0_2:
	ldr	x1, [x20, #16]
	ldr	x2, [sp]
	mov	x0, x19
	mov	x3, x21
	bl	_http_return_file
	tbz	w0, #31, LBB0_4
; %bb.3:
	neg	w1, w0
	mov	x0, x19
	bl	_write_http_error
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hts_wakeup (%p, c->status = %d)\n"

	.comm	_conn_expect_query,8,3          ; @conn_expect_query
	.comm	_conn_wait_aio,8,3              ; @conn_wait_aio
	.comm	_QF_KEEPALIVE,4,2               ; @QF_KEEPALIVE
	.comm	_conn_write_close,8,3           ; @conn_write_close
.subsections_via_symbols
