	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sqls_wakeup
_sqls_wakeup:                           ## @sqls_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
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_2:
	movslq	4(%rbx), %rax
	movq	_conn_wait_net@GOTPCREL(%rip), %r14
	cmpq	%rax, (%r14)
	jne	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_SQLS_FUNC
	movq	%rbx, %rdi
	callq	*(%rax)
	movslq	4(%rbx), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_5
## %bb.4:
	movq	_conn_expect_query@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
LBB0_5:
	cmpq	$0, 32(%rbx)
	jle	LBB0_7
## %bb.6:
	movq	_C_WANTWR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 24(%rbx)
LBB0_7:
	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
	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	"sqls_wakeup for #%d: status=%d\n"

	.comm	_conn_wait_net,8,3              ## @conn_wait_net
	.comm	_conn_expect_query,8,3          ## @conn_expect_query
	.comm	_C_WANTWR,4,2                   ## @C_WANTWR
	.comm	_conn_generation,8,3            ## @conn_generation
	.no_dead_strip	_sqls_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sqls_wakeup
_sqls_wakeup:                           ; @sqls_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
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]
	ldp	w2, w3, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldrsw	x8, [x19, #4]
Lloh8:
	adrp	x20, _conn_wait_net@GOTPAGE
Lloh9:
	ldr	x20, [x20, _conn_wait_net@GOTPAGEOFF]
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_SQLS_FUNC
	ldr	x8, [x0]
	mov	x0, x19
	blr	x8
	ldrsw	x8, [x19, #4]
	ldr	x9, [x20]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
Lloh10:
	adrp	x8, _conn_expect_query@GOTPAGE
Lloh11:
	ldr	x8, [x8, _conn_expect_query@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	str	w8, [x19, #4]
LBB0_5:
	ldr	x8, [x19, #32]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.6:
Lloh13:
	adrp	x8, _C_WANTWR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _C_WANTWR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	orr	w8, w9, w8
	str	w8, [x19, #24]
LBB0_7:
Lloh16:
	adrp	x8, _conn_generation@GOTPAGE
Lloh17:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sqls_wakeup for #%d: status=%d\n"

	.comm	_conn_wait_net,8,3              ; @conn_wait_net
	.comm	_conn_expect_query,8,3          ; @conn_expect_query
	.comm	_C_WANTWR,4,2                   ; @C_WANTWR
	.comm	_conn_generation,8,3            ; @conn_generation
	.no_dead_strip	_sqls_wakeup
.subsections_via_symbols
