	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hts_std_wakeup                 ## -- Begin function hts_std_wakeup
	.p2align	4, 0x90
_hts_std_wakeup:                        ## @hts_std_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_conn_wait_net@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_conn_wait_aio@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movq	_conn_expect_query@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_HTS_FUNC
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_3:
	cmpq	$0, 32(%rbx)
	jle	LBB0_5
## %bb.4:
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_5:
	movq	_conn_generation@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	%rcx, 16(%rbx)
	movq	$0, 8(%rbx)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conn_wait_net,8,3              ## @conn_wait_net
	.comm	_conn_wait_aio,8,3              ## @conn_wait_aio
	.comm	_conn_expect_query,8,3          ## @conn_expect_query
	.comm	_C_WANTWR,4,2                   ## @C_WANTWR
	.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_std_wakeup                 ; -- Begin function hts_std_wakeup
	.p2align	2
_hts_std_wakeup:                        ; @hts_std_wakeup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _conn_wait_net@GOTPAGE
Lloh1:
	ldr	x9, [x9, _conn_wait_net@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _conn_wait_aio@GOTPAGE
Lloh4:
	ldr	x10, [x10, _conn_wait_aio@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _conn_expect_query@GOTPAGE
Lloh7:
	ldr	x8, [x8, _conn_expect_query@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19]
	mov	x0, x19
	bl	_HTS_FUNC
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
LBB0_2:
	ldr	x8, [x19, #32]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
Lloh9:
	adrp	x8, _C_WANTWR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _C_WANTWR@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_4:
Lloh12:
	adrp	x8, _conn_generation@GOTPAGE
Lloh13:
	ldr	x8, [x8, _conn_generation@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	stp	xzr, x9, [x19, #8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_conn_wait_net,8,3              ; @conn_wait_net
	.comm	_conn_wait_aio,8,3              ; @conn_wait_aio
	.comm	_conn_expect_query,8,3          ; @conn_expect_query
	.comm	_C_WANTWR,4,2                   ; @C_WANTWR
	.comm	_conn_generation,8,3            ; @conn_generation
.subsections_via_symbols
