	.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
	subq	$24, %rsp
	.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, %r13
	leaq	48(%r12), %rsi
	leaq	-60(%rbp), %rbx
	movq	%rbx, %rdi
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	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, %r14d
	cmovgel	%eax, %r14d
	movl	(%r13), %ecx
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movl	$1, %edi
	movl	%r15d, %edx
	movl	%r14d, %r9d
	xorl	%eax, %eax
	callq	_vkprintf
	cmpq	%r12, 40(%r12)
	je	LBB0_1
## %bb.2:
	movq	_precise_now@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 56(%r12)
	movq	%r12, %rdi
	callq	_stop_forwarding_response
	testq	%rax, %rax
	jne	LBB0_36
## %bb.3:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %r13d
	addl	$4, %r13d
	movq	%r12, %rdi
	movl	%r13d, %esi
	callq	_create_data_reader
	movl	4(%rbx), %edx
	addl	$-128, %edx
	cmpl	$3, %edx
	ja	LBB0_4
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rdx,4), %rdx
	addq	%rcx, %rdx
	jmpq	*%rdx
LBB0_25:
	movq	40(%r12), %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	callq	_sql_query_packet
	cmpl	$0, (%rbx)
	jne	LBB0_27
## %bb.26:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %ebx
	callq	_advance_skip_read_ptr
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	sete	%dil
	callq	_assert
	movl	%ebx, %eax
LBB0_27:
	testl	%eax, %eax
	je	LBB0_31
## %bb.28:
	movq	%r12, %rdi
	movl	$-8, %esi
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movl	$-1, %edi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_vkprintf
	movq	_SKIP_ALL_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%ebx, %ebx
	jmp	LBB0_36
LBB0_19:
	movq	40(%r12), %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	callq	_sql_query_packet
	cmpl	$0, (%rbx)
	jne	LBB0_21
## %bb.20:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %ebx
	callq	_advance_skip_read_ptr
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	sete	%dil
	callq	_assert
	movl	%ebx, %eax
LBB0_21:
	testl	%eax, %eax
	je	LBB0_23
## %bb.22:
	movq	%r12, %rdi
	movl	$-7, %esi
	jmp	LBB0_10
LBB0_6:
	movq	40(%r12), %rdi
	movq	%rax, %rbx
	movq	%rax, %rsi
	callq	_sql_query_packet
	cmpl	$0, (%rbx)
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %ebx
	callq	_advance_skip_read_ptr
	xorl	%edi, %edi
	cmpl	%r13d, %eax
	sete	%dil
	callq	_assert
	movl	%ebx, %eax
LBB0_8:
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movq	%r12, %rdi
	movl	$-6, %esi
LBB0_10:
	callq	_fail_connection
	movq	_cr_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
	xorl	%ebx, %ebx
	jmp	LBB0_36
LBB0_29:
	leaq	L_.str.4(%rip), %rsi
	movl	$-1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
	xorl	%edi, %edi
	callq	_assert
	xorl	%ebx, %ebx
LBB0_30:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpl	$131, 4(%rax)
	jne	LBB0_36
	jmp	LBB0_33
LBB0_31:
	cmpl	$254, %r14d
	movl	$0, %ebx
	jne	LBB0_30
	jmp	LBB0_32
LBB0_23:
	cmpl	$254, %r14d
	movl	$0, %ebx
	jne	LBB0_30
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$128, 4(%rax)
	jmp	LBB0_36
LBB0_11:
	cmpl	$255, %r14d
	movl	$0, %ebx
	je	LBB0_32
## %bb.12:
	testl	%r14d, %r14d
	jne	LBB0_16
## %bb.13:
	movq	%r12, %rdi
	callq	_SQLC_DATA
	testb	$1, 8(%rax)
	jne	LBB0_14
LBB0_32:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$131, 4(%rax)
LBB0_33:
	movq	40(%r12), %rdi
	callq	_sql_query_done
	testl	%eax, %eax
	je	LBB0_35
## %bb.34:
	movq	%r12, %rdi
	movl	$-9, %esi
	callq	_fail_connection
	movq	_cr_failed@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r12)
	jmp	LBB0_36
LBB0_35:
	sarl	(%r12)
	movq	_conn_ready@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movq	(%r15), %rax
	subq	8(%r12), %rax
	movq	%rax, 16(%r12)
	movq	%r12, %rdi
	callq	_sqlp_becomes_ready
	jmp	LBB0_36
LBB0_16:
	cmpl	$254, %r14d
	jae	LBB0_17
## %bb.18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$129, 4(%rax)
	jmp	LBB0_36
LBB0_14:
	leaq	L_.str.2(%rip), %rdi
	callq	_dl_unreachable
	movq	%r12, %rdi
	callq	_SQLC_DATA
	orb	$2, 8(%rax)
	movq	40(%r12), %rax
	movq	8(%rax), %rcx
	movl	(%rcx), %ecx
	cmpl	(%rax), %ecx
	je	LBB0_30
## %bb.15:
	movl	52(%r12), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_vkprintf
LBB0_17:
	movq	_conn_error@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	jmp	LBB0_30
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_19
	.long	L0_0_set_6
	.long	L0_0_set_29
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_proxy_client_execute.buffer,8,0 ## @proxy_client_execute.buffer
	.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,8,3                ## @precise_now
	.comm	_cr_failed,8,3                  ## @cr_failed
L_.str.2:                               ## @.str.2
	.asciz	"looks like unused code"

L_.str.3:                               ## @.str.3
	.asciz	"outbound connection %d: nowhere to forward replication stream, closing\n"

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

	.comm	_conn_ready,8,3                 ## @conn_ready
.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, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x1
	mov	x19, x0
	bl	_SQLC_DATA
	mov	x20, x0
	add	x21, x19, #48
	add	x0, sp, #44
	mov	x1, x21
	bl	_nbit_set
Lloh0:
	adrp	x23, _proxy_client_execute.buffer@PAGE
Lloh1:
	add	x23, x23, _proxy_client_execute.buffer@PAGEOFF
	add	x0, sp, #44
	mov	x1, x23
	mov	w2, #8
	bl	_nbit_read_in
	ldrb	w8, [x23, #4]
	cmp	w0, #4
	csinv	w26, w8, wzr, gt
	ldp	w8, w9, [x20]
	stp	x9, x26, [sp, #16]
	stp	x22, x8, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
	ldr	x8, [x19, #40]
	cmp	x8, x19
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x25, _precise_now@GOTPAGE
Lloh5:
	ldr	x25, [x25, _precise_now@GOTPAGEOFF]
	ldr	x8, [x25]
	str	x8, [x19, #56]
	mov	x0, x19
	bl	_stop_forwarding_response
	cbz	x0, LBB0_4
LBB0_2:
	mov	w0, #0
	b	LBB0_30
LBB0_3:
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #-1
	bl	_vkprintf
Lloh8:
	adrp	x8, _SKIP_ALL_BYTES@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SKIP_ALL_BYTES@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	b	LBB0_30
LBB0_4:
	ldr	w8, [x20]
	add	w22, w8, #4
	mov	x0, x19
	mov	x1, x22
	bl	_create_data_reader
	ldr	w8, [x20, #4]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_2
; %bb.5:
	mov	x23, x0
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	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	x0, [x19, #40]
	mov	x1, x23
	bl	_sql_query_packet
	mov	x24, x0
	ldr	w8, [x23]
	cbnz	w8, LBB0_8
; %bb.7:
	mov	x0, x21
	mov	x1, x22
	bl	_advance_skip_read_ptr
	cmp	w0, w22
	cset	w0, eq
	bl	_assert
LBB0_8:
	cbz	w24, LBB0_20
; %bb.9:
	mov	x0, x19
	mov	w1, #-8
	b	LBB0_29
LBB0_10:
	ldr	x0, [x19, #40]
	mov	x1, x23
	bl	_sql_query_packet
	mov	x24, x0
	ldr	w8, [x23]
	cbnz	w8, LBB0_12
; %bb.11:
	mov	x0, x21
	mov	x1, x22
	bl	_advance_skip_read_ptr
	cmp	w0, w22
	cset	w0, eq
	bl	_assert
LBB0_12:
	cbz	w24, LBB0_21
; %bb.13:
	mov	x0, x19
	mov	w1, #-7
	b	LBB0_29
LBB0_14:
	ldr	x0, [x19, #40]
	mov	x1, x23
	bl	_sql_query_packet
	mov	x24, x0
	ldr	w8, [x23]
	cbnz	w8, LBB0_16
; %bb.15:
	mov	x0, x21
	mov	x1, x22
	bl	_advance_skip_read_ptr
	cmp	w0, w22
	cset	w0, eq
	bl	_assert
LBB0_16:
	cbz	w24, LBB0_23
; %bb.17:
	mov	x0, x19
	mov	w1, #-6
	b	LBB0_29
LBB0_18:
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w0, #-1
	bl	_vkprintf
	mov	w0, #0
	bl	_assert
LBB0_19:
	ldr	w8, [x20, #4]
	cmp	w8, #131
	b.ne	LBB0_2
	b	LBB0_27
LBB0_20:
	cmp	w26, #254
	b.ne	LBB0_19
	b	LBB0_26
LBB0_21:
	cmp	w26, #254
	b.ne	LBB0_19
; %bb.22:
	mov	w0, #0
	mov	w8, #128
	str	w8, [x20, #4]
	b	LBB0_30
LBB0_23:
	cmp	w26, #255
	b.eq	LBB0_26
; %bb.24:
	cbnz	w26, LBB0_32
; %bb.25:
	mov	x0, x19
	bl	_SQLC_DATA
	ldrb	w8, [x0, #8]
	tbnz	w8, #0, LBB0_34
LBB0_26:
	mov	w8, #131
	str	w8, [x20, #4]
LBB0_27:
	ldr	x0, [x19, #40]
	bl	_sql_query_done
	cbz	w0, LBB0_31
; %bb.28:
	mov	x0, x19
	mov	w1, #-9
LBB0_29:
	bl	_fail_connection
	mov	w0, #0
Lloh15:
	adrp	x8, _cr_failed@GOTPAGE
Lloh16:
	ldr	x8, [x8, _cr_failed@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	str	x8, [x19, #32]
LBB0_30:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_31:
	ldr	w8, [x19]
	asr	w8, w8, #1
	str	w8, [x19]
Lloh18:
	adrp	x8, _conn_ready@GOTPAGE
Lloh19:
	ldr	x8, [x8, _conn_ready@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	ldr	x9, [x25]
	ldr	x10, [x19, #8]
	sub	x9, x9, x10
	stp	x9, x8, [x19, #16]
	mov	x0, x19
	bl	_sqlp_becomes_ready
	b	LBB0_2
LBB0_32:
	cmp	w26, #254
	b.hs	LBB0_36
; %bb.33:
	mov	w0, #0
	mov	w8, #129
	str	w8, [x20, #4]
	b	LBB0_30
LBB0_34:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dl_unreachable
	mov	x0, x19
	bl	_SQLC_DATA
	ldr	w8, [x0, #8]
	orr	w8, w8, #0x2
	str	w8, [x0, #8]
	ldr	x8, [x19, #40]
	ldr	x9, [x8, #8]
	ldr	w9, [x9]
	ldr	w8, [x8]
	cmp	w9, w8
	b.eq	LBB0_19
; %bb.35:
	ldr	w8, [x19, #52]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_vkprintf
LBB0_36:
Lloh25:
	adrp	x8, _conn_error@GOTPAGE
Lloh26:
	ldr	x8, [x8, _conn_error@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	b	LBB0_19
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
	.byte	(LBB0_18-LBB0_6)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_proxy_client_execute.buffer,8,0 ; @proxy_client_execute.buffer
	.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,8,3                ; @precise_now
	.comm	_cr_failed,8,3                  ; @cr_failed
l_.str.2:                               ; @.str.2
	.asciz	"looks like unused code"

l_.str.3:                               ; @.str.3
	.asciz	"outbound connection %d: nowhere to forward replication stream, closing\n"

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

	.comm	_conn_ready,8,3                 ; @conn_ready
.subsections_via_symbols
