	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_statsx_engine_wakeup           ## -- Begin function statsx_engine_wakeup
	.p2align	4, 0x90
_statsx_engine_wakeup:                  ## @statsx_engine_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_MCS_DATA
	movq	%rax, %r14
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdx
	callq	_fprintf
LBB0_2:
	movq	_conn_generation@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	incq	%rcx
	movq	%rcx, (%rax)
	movq	%rcx, 32(%rbx)
	movq	$0, 24(%rbx)
	movq	_conn_reading_query@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	(%r14), %rax
	movq	_mct_get_resume@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	%rbx, %rdi
	callq	_clear_connection_timeout
	cmpq	$0, 8(%rbx)
	jle	LBB0_4
## %bb.3:
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_4:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	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	"statsx_engine_wakeup (%p)\n"

	.comm	_conn_generation,8,3            ## @conn_generation
	.comm	_conn_reading_query,4,2         ## @conn_reading_query
	.comm	_mct_get_resume,8,3             ## @mct_get_resume
	.comm	_C_WANTWR,4,2                   ## @C_WANTWR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_statsx_engine_wakeup           ; -- Begin function statsx_engine_wakeup
	.p2align	2
_statsx_engine_wakeup:                  ; @statsx_engine_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
	bl	_MCS_DATA
	mov	x20, 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]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_fprintf
LBB0_2:
Lloh8:
	adrp	x8, _conn_generation@GOTPAGE
Lloh9:
	ldr	x8, [x8, _conn_generation@GOTPAGEOFF]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	stp	xzr, x9, [x19, #24]
Lloh10:
	adrp	x8, _conn_reading_query@GOTPAGE
Lloh11:
	ldr	x8, [x8, _conn_reading_query@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	ldr	x8, [x20]
Lloh13:
	adrp	x9, _mct_get_resume@GOTPAGE
Lloh14:
	ldr	x9, [x9, _mct_get_resume@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_clear_connection_timeout
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.3:
Lloh16:
	adrp	x8, _C_WANTWR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _C_WANTWR@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"statsx_engine_wakeup (%p)\n"

	.comm	_conn_generation,8,3            ; @conn_generation
	.comm	_conn_reading_query,4,2         ; @conn_reading_query
	.comm	_mct_get_resume,8,3             ; @mct_get_resume
	.comm	_C_WANTWR,4,2                   ; @C_WANTWR
.subsections_via_symbols
