	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proxy_client_execute           ## -- Begin function proxy_client_execute
	.p2align	4, 0x90
_proxy_client_execute:                  ## @proxy_client_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_SQLC_DATA
	movq	%rax, %r14
	leaq	36(%r12), %rsi
	leaq	-44(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_nbit_set
	leaq	_proxy_client_execute.buffer(%rip), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_nbit_read_in
	cmpl	$5, %eax
	movzbl	_proxy_client_execute.buffer+4(%rip), %eax
	movl	$-1, %ebx
	cmovgel	%eax, %ebx
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_2
## %bb.1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_fprintf
LBB0_2:
	movq	24(%r12), %r13
	cmpq	%r12, %r13
	je	LBB0_3
## %bb.9:
	movq	_precise_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r12)
	movq	%r12, %rdi
	callq	_stop_forwarding_response
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_28
## %bb.10:
	movl	4(%r14), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_28
## %bb.11:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_25:
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_forward_response
	cmpl	$254, %ebx
	je	LBB0_26
	jmp	LBB0_24
LBB0_3:
	movq	_verbosity@GOTPCREL(%rip), %rbx
	cmpl	$0, (%rbx)
	js	LBB0_8
## %bb.4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_fprintf
	cmpl	$-1, (%rbx)
	jl	LBB0_8
## %bb.5:
	movq	%r12, %rdi
	callq	_dump_connection_buffers
	movq	24(%r12), %rax
	cmpq	%r13, %rax
	je	LBB0_8
## %bb.6:
	movq	(%rax), %rcx
	movq	8(%rax), %rdi
	cmpq	(%rdi), %rcx
	jne	LBB0_8
## %bb.7:
	callq	_dump_connection_buffers
LBB0_8:
	movq	_SKIP_ALL_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_28
LBB0_21:
	movl	(%r14), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_forward_response
	cmpl	$254, %ebx
	jne	LBB0_24
## %bb.22:
	movl	$128, 4(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_28
LBB0_12:
	movl	(%r14), %r13d
	movq	%r12, %rdi
	callq	_SQLC_DATA
	movl	8(%rax), %edx
	andl	$1, %edx
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_forward_response
	cmpl	$255, %ebx
	je	LBB0_26
## %bb.13:
	testl	%ebx, %ebx
	jne	LBB0_19
## %bb.14:
	movq	%r12, %rdi
	callq	_SQLC_DATA
	testb	$1, 8(%rax)
	jne	LBB0_15
LBB0_26:
	movl	$131, 4(%r14)
	jmp	LBB0_27
LBB0_23:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%edi, %edi
	callq	_assert
	jmp	LBB0_24
LBB0_19:
	cmpl	$254, %ebx
	jae	LBB0_18
## %bb.20:
	movl	$129, 4(%r14)
	jmp	LBB0_28
LBB0_15:
	movq	%r12, %rdi
	callq	_SQLC_DATA
	orb	$2, 8(%rax)
	movq	24(%r12), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax), %rcx
	je	LBB0_24
## %bb.16:
	movq	_verbosity@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_18
## %bb.17:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r12), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_18:
	movq	_conn_error@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
LBB0_24:
	cmpl	$131, 4(%r14)
	jne	LBB0_28
LBB0_27:
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_query_complete
LBB0_28:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_21
	.long	L0_0_set_12
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_proxy_client_execute.buffer,8,0 ## @proxy_client_execute.buffer
	.comm	_verbosity,4,2                  ## @verbosity
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"proxy_db_client: op=%d, packet_len=%d, response_state=%d, field_num=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"response received for empty query list? op=%d\n"

	.comm	_SKIP_ALL_BYTES,4,2             ## @SKIP_ALL_BYTES
	.comm	_precise_now,4,2                ## @precise_now
L_.str.2:                               ## @.str.2
	.asciz	"outbound connection %d: nowhere to forward replication stream, closing\n"

	.comm	_conn_error,8,3                 ## @conn_error
L_.str.3:                               ## @.str.3
	.asciz	"unexpected packet from server!\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_proxy_client_execute           ; -- Begin function proxy_client_execute
	.p2align	2
_proxy_client_execute:                  ; @proxy_client_execute
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_SQLC_DATA
	mov	x20, x0
	add	x1, x19, #36
	add	x0, sp, #44
	bl	_nbit_set
Lloh0:
	adrp	x22, _proxy_client_execute.buffer@PAGE
Lloh1:
	add	x22, x22, _proxy_client_execute.buffer@PAGEOFF
	add	x0, sp, #44
	mov	x1, x22
	mov	w2, #8
	bl	_nbit_read_in
	ldrb	w8, [x22, #4]
	cmp	w0, #4
	csinv	w23, w8, wzr, gt
Lloh2:
	adrp	x22, _verbosity@GOTPAGE
Lloh3:
	ldr	x22, [x22, _verbosity@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.1:
Lloh4:
	adrp	x8, _stderr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	w8, w9, [x20]
	stp	x9, x23, [sp, #16]
	mov	x9, x21
	stp	x9, x8, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_2:
	ldr	x24, [x19, #24]
	cmp	x24, x19
	b.eq	LBB0_7
; %bb.3:
Lloh9:
	adrp	x8, _precise_now@GOTPAGE
Lloh10:
	ldr	x8, [x8, _precise_now@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [x19, #32]
	mov	x0, x19
	bl	_stop_forwarding_response
	cbnz	x0, LBB0_28
; %bb.4:
	ldr	w8, [x20, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_28
; %bb.5:
Lloh12:
	adrp	x9, lJTI0_0@PAGE
Lloh13:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_forward_response
	cmp	w23, #254
	b.eq	LBB0_18
	b	LBB0_26
LBB0_7:
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_12
; %bb.8:
Lloh14:
	adrp	x8, _stderr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fprintf
	ldr	w8, [x22]
	cmn	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x0, x19
	bl	_dump_connection_buffers
	ldr	x8, [x19, #24]
	cmp	x8, x24
	b.eq	LBB0_12
; %bb.10:
	ldp	x9, x0, [x8]
	ldr	x8, [x0]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	bl	_dump_connection_buffers
LBB0_12:
Lloh19:
	adrp	x8, _SKIP_ALL_BYTES@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SKIP_ALL_BYTES@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	b	LBB0_29
LBB0_13:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_forward_response
	cmp	w23, #254
	b.ne	LBB0_26
; %bb.14:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x20, #4]
	b	LBB0_29
LBB0_15:
	ldr	w21, [x20]
	mov	x0, x19
	bl	_SQLC_DATA
	ldr	w8, [x0, #8]
	and	w2, w8, #0x1
	mov	x0, x19
	mov	x1, x21
	bl	_forward_response
	cmp	w23, #255
	b.eq	LBB0_18
; %bb.16:
	cbnz	w23, LBB0_20
; %bb.17:
	mov	x0, x19
	bl	_SQLC_DATA
	ldrb	w8, [x0, #8]
	tbnz	w8, #0, LBB0_22
LBB0_18:
	mov	w8, #131
	str	w8, [x20, #4]
	b	LBB0_27
LBB0_19:
Lloh22:
	adrp	x8, _stderr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_fprintf
	mov	w0, #0
	bl	_assert
	b	LBB0_26
LBB0_20:
	cmp	w23, #254
	b.hs	LBB0_25
; %bb.21:
	mov	w0, #0
	mov	w8, #129
	str	w8, [x20, #4]
	b	LBB0_29
LBB0_22:
	mov	x0, x19
	bl	_SQLC_DATA
	ldr	w8, [x0, #8]
	orr	w8, w8, #0x2
	str	w8, [x0, #8]
	ldr	x8, [x19, #24]
	ldp	x8, x9, [x8]
	ldr	x9, [x9]
	cmp	x9, x8
	b.eq	LBB0_26
; %bb.23:
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_25
; %bb.24:
Lloh27:
	adrp	x8, _stderr@GOTPAGE
Lloh28:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh30:
	adrp	x1, l_.str.2@PAGE
Lloh31:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
LBB0_25:
Lloh32:
	adrp	x8, _conn_error@GOTPAGE
Lloh33:
	ldr	x8, [x8, _conn_error@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19, #16]
LBB0_26:
	ldr	w8, [x20, #4]
	cmp	w8, #131
	b.ne	LBB0_28
LBB0_27:
	mov	x0, x19
	mov	w1, #1
	bl	_query_complete
LBB0_28:
	mov	w0, #0
LBB0_29:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_15-LBB0_6)>>2
	.byte	(LBB0_19-LBB0_6)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_proxy_client_execute.buffer,8,0 ; @proxy_client_execute.buffer
	.comm	_verbosity,4,2                  ; @verbosity
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"proxy_db_client: op=%d, packet_len=%d, response_state=%d, field_num=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"response received for empty query list? op=%d\n"

	.comm	_SKIP_ALL_BYTES,4,2             ; @SKIP_ALL_BYTES
	.comm	_precise_now,4,2                ; @precise_now
l_.str.2:                               ; @.str.2
	.asciz	"outbound connection %d: nowhere to forward replication stream, closing\n"

	.comm	_conn_error,8,3                 ; @conn_error
l_.str.3:                               ; @.str.3
	.asciz	"unexpected packet from server!\n"

.subsections_via_symbols
