	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqls_parse_execute             ## -- Begin function sqls_parse_execute
	.p2align	4, 0x90
_sqls_parse_execute:                    ## @sqls_parse_execute
	.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	_SQLS_DATA
	movq	%rax, %r15
	leaq	16(%r14), %r13
	movq	%r13, %rdi
	callq	_nbit_total_ready_bytes
	movl	%eax, %r12d
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	testl	%r12d, %r12d
	jle	LBB0_51
## %bb.3:
	leaq	24(%r14), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	_C_STOPREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_C_FAILED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	testl	%eax, 4(%r14)
	jne	LBB0_51
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_conn_reading_query@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	(%r15), %ecx
	testl	%ecx, %ecx
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$3, %r12d
	jbe	LBB0_53
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	leaq	_sqls_parse_execute.psize(%rip), %rsi
	movl	$4, %edx
	callq	_nbit_read_in
	xorl	%edi, %edi
	cmpl	$4, %eax
	sete	%dil
	callq	_assert
	addl	$-4, %r12d
	movl	$1, (%r15)
	movl	_sqls_parse_execute.psize(%rip), %ecx
	movl	%ecx, %eax
	andl	$16777215, %eax                 ## imm = 0xFFFFFF
	movl	%eax, 4(%r15)
	shrl	$24, %ecx
	movl	%ecx, 12(%r15)
	movl	%ecx, 8(%r15)
	movl	16(%r15), %esi
	movl	$1, %ecx
	cmpl	$2, %esi
	jl	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	addl	$4, %eax
	xorl	%edx, %edx
	divl	%esi
	subl	%edx, %esi
	testl	%edx, %edx
	cmovel	%edx, %esi
	movl	%esi, 20(%r15)
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edi, %edi
	cmpl	$1, %ecx
	sete	%dil
	callq	_assert
	movl	4(%r15), %edx
	movl	20(%r15), %ecx
	leal	(%rcx,%rdx), %eax
	subl	%r12d, %eax
	ja	LBB0_52
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	12(%r15), %r8d
	leaq	L_.str.1(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r15), %rax
	movl	4(%r15), %ecx
	movq	_sql_auth_sent@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_20
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$16, %ecx
	jne	LBB0_22
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$204, 12(%r15)
	jne	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r15), %eax
	andl	$14, %eax
	cmpl	$6, %eax
	jne	LBB0_22
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	_sqls_parse_execute.nonce_buff(%rip), %rsi
	movl	$20, %edx
	callq	_read_in
	xorl	%edi, %edi
	cmpl	$20, %eax
	sete	%dil
	callq	_assert
	movq	%r14, %rdi
	callq	_SQLS_FUNC
	movq	%r14, %rdi
	leaq	_sqls_parse_execute.nonce_buff+4(%rip), %rsi
	movl	$16, %edx
	callq	*(%rax)
	cmpl	$1, %eax
	jne	LBB0_50
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r15), %eax
	andl	$-16, %eax
	orl	$10, %eax
	movl	%eax, 32(%r15)
	movq	40(%r14), %rax
	cmpq	$0, (%rax)
	je	LBB0_48
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 48(%r14)
	je	LBB0_48
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 32(%r14)
	setne	%al
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	testl	%ecx, %ecx
	je	LBB0_29
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	callq	_nbit_get_ptr
	movsbl	(%rax), %r12d
	movq	24(%r15), %rax
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	32(%r15), %eax
	testb	$4, %al
	je	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ecx
	andl	$-7, %ecx
	movl	%ecx, 32(%r15)
	testb	$1, %al
	je	LBB0_50
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_sqls_inner_authorise
	testl	%eax, %eax
	js	LBB0_50
## %bb.25:                              ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_41
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	$2, %ecx
	xorl	%r8d, %r8d
	leaq	L_.str.2(%rip), %r9
	pushq	$2
	pushq	$7
	callq	_send_ok_packet
	addq	$16, %rsp
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_sql_auth_ok@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	movl	%ebx, 36(%r15)
	jmp	LBB0_44
LBB0_29:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$-1, %r12d
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rbx
	xorl	%edi, %edi
	movq	_sql_auth_ok@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_assert
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_32:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	24(%r14), %r13d
	movq	_conn_running@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%r14, %rdi
	callq	_SQLS_FUNC
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	*8(%rax)
	movl	24(%r14), %r8d
	movq	_SKIP_ALL_BYTES@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r8d, %r13d
	je	LBB0_35
## %bb.34:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r15), %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	4(%r15), %r9d
	movl	20(%r15), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%r15), %r11d
	movl	(%r14), %edx
	movl	8(%r14), %r10d
	subq	$8, %rsp
	leaq	L_.str.7(%rip), %rsi
	movl	%r13d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	xorl	%eax, %eax
	pushq	%r10
	pushq	%r12
	pushq	%r11
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_fprintf
	addq	$48, %rsp
LBB0_35:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %eax
	movl	20(%r15), %ecx
	leal	(%rax,%rcx), %esi
	addl	$4, %esi
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	%r8d, %r13d
	je	LBB0_39
## %bb.37:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %eax
	addl	%r8d, %eax
	addl	$4, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r13d
	sete	%dil
	callq	_assert
	movl	20(%r15), %esi
LBB0_38:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_advance_skip_read_ptr
LBB0_39:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r14), %eax
	movq	_conn_running@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	%rbx, %r13
	jne	LBB0_45
## %bb.40:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_conn_expect_query@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	jmp	LBB0_45
LBB0_41:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_43:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$1045, %esi                     ## imm = 0x415
	movl	$28000, %edx                    ## imm = 0x6D60
	leaq	L_.str.5(%rip), %rcx
	movl	$6, %r8d
	movl	$2, %r9d
	callq	_send_error_packet
LBB0_44:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%r15), %eax
	movl	20(%r15), %ecx
	leal	(%rax,%rcx), %esi
	addl	$4, %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_advance_skip_read_ptr
	movl	8(%r14), %eax
LBB0_45:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%r15)
	cltq
	movq	_conn_expect_query@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_51
## %bb.46:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nbit_set
	movq	%r13, %rdi
	callq	_nbit_total_ready_bytes
	movl	%eax, %r12d
	testl	%r12d, %r12d
	jg	LBB0_4
	jmp	LBB0_51
LBB0_48:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_49:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	%al, %edi
	callq	_assert
	movq	40(%r14), %rax
	movq	%r14, %rdi
	callq	*(%rax)
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_nbit_set
	movq	%r13, %rdi
	callq	_nbit_total_ready_bytes
	movl	%eax, %r12d
	movl	$0, (%r15)
	movq	_conn_expect_query@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	testl	%r12d, %r12d
	jg	LBB0_4
	jmp	LBB0_51
LBB0_50:
	movq	_conn_error@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r14)
	movl	$-1, 12(%r14)
LBB0_51:
	xorl	%eax, %eax
LBB0_52:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_53:
	movl	$4, %eax
	subl	%r12d, %eax
	jmp	LBB0_52
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_sqls_parse_execute.psize,4,2 ## @sqls_parse_execute.psize
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sqls_parse_execute(%d), bytes=%d\n"

	.comm	_C_FAILED,4,2                   ## @C_FAILED
	.comm	_C_STOPREAD,4,2                 ## @C_STOPREAD
	.comm	_conn_reading_query,4,2         ## @conn_reading_query
L_.str.1:                               ## @.str.1
	.asciz	"client packet ready: len=%d, padding=%d, seq_num=%d\n"

	.comm	_sql_auth_sent,8,3              ## @sql_auth_sent
.zerofill __DATA,__bss,_sqls_parse_execute.nonce_buff,20,4 ## @sqls_parse_execute.nonce_buff
	.comm	_conn_expect_query,8,3          ## @conn_expect_query
	.comm	_conn_error,8,3                 ## @conn_error
L_.str.2:                               ## @.str.2
	.asciz	"Success"

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

	.comm	_sql_auth_ok,8,3                ## @sql_auth_ok
L_.str.4:                               ## @.str.4
	.asciz	"authorization error\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed"

L_.str.6:                               ## @.str.6
	.asciz	"execute, op=%d\n"

	.comm	_conn_running,4,2               ## @conn_running
	.comm	_SKIP_ALL_BYTES,4,2             ## @SKIP_ALL_BYTES
L_.str.7:                               ## @.str.7
	.asciz	"error: in SKIP_ALL_BYTES for connection %d: keep_total=%d != total_bytes=%d, packet_len=%d, packet_padding=%d, packet_state=%d, packet_seq=%d, op=%d, status=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sqls_parse_execute             ; -- Begin function sqls_parse_execute
	.p2align	2
_sqls_parse_execute:                    ; @sqls_parse_execute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_SQLS_DATA
	mov	x20, x0
	add	x21, x19, #16
	mov	x0, x21
	bl	_nbit_total_ready_bytes
	mov	x26, x0
Lloh0:
	adrp	x27, _verbosity@GOTPAGE
Lloh1:
	ldr	x27, [x27, _verbosity@GOTPAGEOFF]
	ldr	w8, [x27]
Lloh2:
	adrp	x25, _stderr@GOTPAGE
Lloh3:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
	cmp	w8, #1
	b.le	LBB0_2
; %bb.1:
	ldr	w0, [x25]
	ldr	w8, [x19]
	stp	x8, x26, [sp]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	cmp	w26, #1
	b.lt	LBB0_49
; %bb.3:
Lloh6:
	adrp	x28, _C_FAILED@GOTPAGE
Lloh7:
	ldr	x28, [x28, _C_FAILED@GOTPAGEOFF]
	add	x24, x19, #24
Lloh8:
	adrp	x22, _conn_expect_query@GOTPAGE
Lloh9:
	ldr	x22, [x22, _conn_expect_query@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #4]
	ldr	w9, [x28]
Lloh10:
	adrp	x10, _C_STOPREAD@GOTPAGE
Lloh11:
	ldr	x10, [x10, _C_STOPREAD@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.ne	LBB0_49
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x8, _conn_reading_query@GOTPAGE
Lloh14:
	ldr	x8, [x8, _conn_reading_query@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x20]
	cbnz	w8, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w26, #3
	b.ls	LBB0_52
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
Lloh16:
	adrp	x23, _sqls_parse_execute.psize@PAGE
Lloh17:
	add	x23, x23, _sqls_parse_execute.psize@PAGEOFF
	mov	x1, x23
	mov	w2, #4
	bl	_nbit_read_in
	cmp	w0, #4
	cset	w0, eq
	bl	_assert
	sub	w26, w26, #4
	mov	w8, #1
	str	w8, [x20]
	ldr	w10, [x23]
	and	w9, w10, #0xffffff
	lsr	w10, w10, #24
	stp	w10, w10, [x20, #8]
	str	w9, [x20, #4]
	ldr	w10, [x20, #16]
	cmp	w10, #2
	b.lt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w9, #4
	udiv	w9, w8, w10
	msub	w8, w9, w10, w8
	sub	w9, w10, w8
	cmp	w8, #0
	csel	w8, wzr, w9, eq
	str	w8, [x20, #20]
	mov	w8, #1
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w8, #1
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20, #4]
	ldr	w9, [x20, #20]
	add	w10, w9, w8
	subs	w0, w10, w26
	b.hi	LBB0_50
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w10, [x27]
	cmp	w10, #2
	b.lt	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	ldr	w10, [x20, #12]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh18:
	adrp	x1, l_.str.1@PAGE
Lloh19:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
Lloh20:
	adrp	x9, _sql_auth_sent@GOTPAGE
Lloh21:
	ldr	x9, [x9, _sql_auth_sent@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x9]
	ldr	w9, [x20, #4]
	cmp	x8, x10
	b.ne	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w9, #16
	b.ne	LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #12]
	cmp	w8, #204
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #32]
	and	w8, w8, #0xe
	cmp	w8, #6
	b.ne	LBB0_22
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
Lloh23:
	adrp	x23, _sqls_parse_execute.nonce_buff@PAGE
Lloh24:
	add	x23, x23, _sqls_parse_execute.nonce_buff@PAGEOFF
	mov	x1, x23
	mov	w2, #20
	bl	_read_in
	cmp	w0, #20
	cset	w0, eq
	bl	_assert
	mov	x0, x19
	bl	_SQLS_FUNC
	ldr	x8, [x0]
	add	x1, x23, #4
	mov	x0, x19
	mov	w2, #16
	blr	x8
	cmp	w0, #1
	b.ne	LBB0_51
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #32]
	mov	w9, #10
	bfxil	w8, w9, #0, #4
	str	w8, [x20, #32]
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	cbz	x8, LBB0_47
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_47
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_48
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w9, LBB0_29
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_nbit_get_ptr
	ldrsb	w26, [x0]
	ldr	x8, [x20, #24]
	b	LBB0_30
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #32]
	tbz	w8, #2, LBB0_24
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	and	w9, w8, #0xfffffff9
	str	w9, [x20, #32]
	tbz	w8, #0, LBB0_51
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_sqls_inner_authorise
	tbnz	w0, #31, LBB0_51
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	cbz	w0, LBB0_41
; %bb.26:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #2
	mov	w4, #0
Lloh25:
	adrp	x5, l_.str.2@PAGE
Lloh26:
	add	x5, x5, l_.str.2@PAGEOFF
	mov	w6, #7
	mov	w7, #2
	bl	_send_ok_packet
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_28
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh29:
	adrp	x8, _sql_auth_ok@GOTPAGE
Lloh30:
	ldr	x8, [x8, _sql_auth_ok@GOTPAGEOFF]
Lloh31:
	ldr	x8, [x8]
	str	x8, [x20, #24]
	str	w26, [x20, #36]
	b	LBB0_44
LBB0_29:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w26, #-1
LBB0_30:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x28
Lloh32:
	adrp	x9, _sql_auth_ok@GOTPAGE
Lloh33:
	ldr	x9, [x9, _sql_auth_ok@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_assert
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	str	x26, [sp]
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_fprintf
LBB0_32:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w28, [x19, #24]
Lloh37:
	adrp	x8, _conn_running@GOTPAGE
Lloh38:
	ldr	x8, [x8, _conn_running@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_SQLS_FUNC
	ldr	x8, [x0, #8]
	mov	x0, x19
	mov	x1, x26
	blr	x8
Lloh40:
	adrp	x8, _SKIP_ALL_BYTES@GOTPAGE
Lloh41:
	ldr	x8, [x8, _SKIP_ALL_BYTES@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x8]
	ldr	w8, [x19, #24]
	cmp	w0, w9
	b.ne	LBB0_36
; %bb.33:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w8
	b.eq	LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	ldr	w9, [x19]
	ldr	w10, [x20, #20]
	ldp	w12, w11, [x20]
	ldr	w13, [x20, #12]
	ldr	w14, [x19, #8]
                                        ; kill: def $w26 killed $w26 killed $x26 def $x26
	stp	x26, x14, [sp, #56]
	stp	x12, x13, [sp, #40]
	stp	x11, x10, [sp, #24]
	stp	x28, x8, [sp, #8]
	str	x9, [sp]
Lloh43:
	adrp	x1, l_.str.7@PAGE
Lloh44:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_fprintf
LBB0_35:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	ldr	w9, [x20, #20]
	add	w8, w8, w9
	add	w1, w8, #4
	b	LBB0_38
LBB0_36:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w28, w8
	b.eq	LBB0_39
; %bb.37:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20, #4]
	add	w8, w8, w9
	add	w8, w8, #4
	cmp	w28, w8
	cset	w0, eq
	bl	_assert
	ldr	w1, [x20, #20]
LBB0_38:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_advance_skip_read_ptr
LBB0_39:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #8]
Lloh45:
	adrp	x9, _conn_running@GOTPAGE
Lloh46:
	ldr	x9, [x9, _conn_running@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
	cmp	w8, w9
	mov	x28, x23
	b.ne	LBB0_45
; %bb.40:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22]
	str	w8, [x19, #8]
	b	LBB0_45
LBB0_41:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	cmp	w8, #2
	b.lt	LBB0_43
; %bb.42:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_fprintf
LBB0_43:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #1045
	mov	w2, #28000
Lloh50:
	adrp	x3, l_.str.5@PAGE
Lloh51:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	w4, #6
	mov	w5, #2
	bl	_send_error_packet
LBB0_44:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	ldr	w9, [x20, #20]
	add	w8, w8, w9
	add	w1, w8, #4
	mov	x0, x24
	bl	_advance_skip_read_ptr
	ldr	w8, [x19, #8]
LBB0_45:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x20]
	ldr	x9, [x22]
	cmp	x9, w8, sxtw
	b.ne	LBB0_49
; %bb.46:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_nbit_set
	mov	x0, x21
	bl	_nbit_total_ready_bytes
	mov	x26, x0
	cmp	w26, #0
	b.gt	LBB0_4
	b	LBB0_49
LBB0_47:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
LBB0_48:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_assert
	ldr	x8, [x19, #40]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	mov	x0, x21
	mov	x1, x24
	bl	_nbit_set
	mov	x0, x21
	bl	_nbit_total_ready_bytes
	mov	x26, x0
	str	wzr, [x20]
	ldr	x8, [x22]
	str	w8, [x19, #8]
	cmp	w26, #0
	b.gt	LBB0_4
LBB0_49:
	mov	w0, #0
LBB0_50:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_51:
	mov	w0, #0
Lloh52:
	adrp	x8, _conn_error@GOTPAGE
Lloh53:
	ldr	x8, [x8, _conn_error@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
	mov	w9, #-1
	stp	w8, w9, [x19, #8]
	b	LBB0_50
LBB0_52:
	mov	w8, #4
	sub	w0, w8, w26
	b	LBB0_50
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_sqls_parse_execute.psize,4,2 ; @sqls_parse_execute.psize
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sqls_parse_execute(%d), bytes=%d\n"

	.comm	_C_FAILED,4,2                   ; @C_FAILED
	.comm	_C_STOPREAD,4,2                 ; @C_STOPREAD
	.comm	_conn_reading_query,4,2         ; @conn_reading_query
l_.str.1:                               ; @.str.1
	.asciz	"client packet ready: len=%d, padding=%d, seq_num=%d\n"

	.comm	_sql_auth_sent,8,3              ; @sql_auth_sent
.zerofill __DATA,__bss,_sqls_parse_execute.nonce_buff,20,0 ; @sqls_parse_execute.nonce_buff
	.comm	_conn_expect_query,8,3          ; @conn_expect_query
	.comm	_conn_error,8,3                 ; @conn_error
l_.str.2:                               ; @.str.2
	.asciz	"Success"

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

	.comm	_sql_auth_ok,8,3                ; @sql_auth_ok
l_.str.4:                               ; @.str.4
	.asciz	"authorization error\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed"

l_.str.6:                               ; @.str.6
	.asciz	"execute, op=%d\n"

	.comm	_conn_running,4,2               ; @conn_running
	.comm	_SKIP_ALL_BYTES,4,2             ; @SKIP_ALL_BYTES
l_.str.7:                               ; @.str.7
	.asciz	"error: in SKIP_ALL_BYTES for connection %d: keep_total=%d != total_bytes=%d, packet_len=%d, packet_padding=%d, packet_state=%d, packet_seq=%d, op=%d, status=%d\n"

.subsections_via_symbols
