	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_com_query_result ## -- Begin function network_mysqld_proto_get_com_query_result
	.p2align	4, 0x90
_network_mysqld_proto_get_com_query_result: ## @network_mysqld_proto_get_com_query_result
	.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	(%rsi), %eax
	xorl	%r15d, %r15d
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_39
## %bb.1:
	movl	%ecx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r13
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_network_mysqld_proto_peek_int8
	testl	%eax, %eax
	jne	LBB0_38
## %bb.13:
	movl	-44(%rbp), %eax
	leal	-133(%rax), %ecx
	cmpl	$2, %ecx
	jb	LBB0_25
## %bb.14:
	cmpl	$135, %eax
	je	LBB0_32
## %bb.15:
	cmpl	$136, %eax
	jne	LBB0_26
## %bb.16:
	movq	8(%r13), %rax
	cmpl	$9, (%rax)
	jne	LBB0_39
## %bb.17:
	xorl	%eax, %eax
	callq	_network_mysqld_eof_packet_new
	movq	%rax, %r12
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_network_mysqld_proto_get_eof_packet
	testl	%eax, %eax
	je	LBB0_42
## %bb.18:
	movq	%r12, %rdi
	jmp	LBB0_31
LBB0_4:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_network_mysqld_proto_get_int8
	movl	$-1, %r15d
	testl	%eax, %eax
	jne	LBB0_39
## %bb.5:
	movl	-44(%rbp), %edx
	movl	$1, %r15d
	cmpl	$133, %edx
	je	LBB0_39
## %bb.6:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_37
LBB0_7:
	movq	8(%r13), %rax
	movl	(%rax), %eax
	cmpl	(%r13), %eax
	jne	LBB0_39
## %bb.8:
	movl	$129, (%r14)
	movl	$1, %r15d
	jmp	LBB0_39
LBB0_9:
	movq	%rdx, %rbx
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_network_mysqld_proto_peek_int8
	testl	%eax, %eax
	jne	LBB0_38
## %bb.19:
	movl	$-133, %eax
	addl	-44(%rbp), %eax
	cmpl	$3, %eax
	ja	LBB0_33
## %bb.20:
	leaq	LJTI0_1(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_21:
	movq	%rbx, %rdi
	callq	_update_charset
	movl	$133, 4(%r14)
	xorl	%eax, %eax
	callq	_network_mysqld_ok_packet_new
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_network_mysqld_proto_get_ok_packet
	testl	%eax, %eax
	je	LBB0_41
## %bb.22:
	movq	%rbx, %rdi
	callq	_network_mysqld_ok_packet_free
	jmp	LBB0_38
LBB0_11:
	leaq	-44(%rbp), %rsi
	movq	%r13, %rdi
	callq	_network_mysqld_proto_peek_int8
	testl	%eax, %eax
	jne	LBB0_38
## %bb.23:
	movl	-44(%rbp), %edx
	leal	-133(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_27
## %bb.24:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_37
LBB0_25:
	testl	%r12d, %r12d
	je	LBB0_39
LBB0_26:
	incl	20(%r14)
	movq	8(%r13), %rax
	movl	(%rax), %eax
	addl	%eax, 16(%r14)
	jmp	LBB0_39
LBB0_27:
	cmpl	$136, %edx
	jne	LBB0_39
## %bb.28:
	movq	8(%r13), %rax
	cmpl	$9, (%rax)
	jne	LBB0_40
## %bb.29:
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_network_mysqld_eof_packet_new
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_network_mysqld_proto_get_eof_packet
	testl	%eax, %eax
	je	LBB0_46
## %bb.30:
	movq	%rbx, %rdi
LBB0_31:
	callq	_network_mysqld_eof_packet_free
	jmp	LBB0_38
LBB0_32:
	movl	$1, %r15d
	jmp	LBB0_39
LBB0_33:
	movabsq	$571230650500, %rax             ## imm = 0x8500000084
	movq	%rax, (%r14)
	jmp	LBB0_39
LBB0_34:
	movl	$130, (%r14)
	movl	$1, %r15d
	jmp	LBB0_39
LBB0_35:
	movl	$135, 4(%r14)
	movl	$1, %r15d
	jmp	LBB0_39
LBB0_36:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	$136, %edx
LBB0_37:
	callq	_g_critical
LBB0_38:
	movl	$-1, %r15d
LBB0_39:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_40:
	movl	$128, (%r14)
	jmp	LBB0_39
LBB0_41:
	movl	(%rbx), %eax
	movq	_SERVER_MORE_RESULTS_EXISTS@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sete	%r15b
	movl	%eax, 8(%r14)
	movl	12(%rbx), %eax
	movl	%eax, 24(%r14)
	movl	8(%rbx), %eax
	movl	%eax, 36(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 32(%r14)
	movl	$0, 12(%r14)
	movl	%r12d, 28(%r14)
	movq	%rbx, %rdi
	callq	_network_mysqld_ok_packet_free
	jmp	LBB0_39
LBB0_42:
	movl	$1, 12(%r14)
	movl	8(%r14), %eax
	testl	$4096, %eax                     ## imm = 0x1000
	jne	LBB0_44
## %bb.43:
	movl	(%r12), %eax
	movl	%eax, 8(%r14)
LBB0_44:
	movl	4(%r12), %ecx
	movl	%ecx, 24(%r14)
	movq	_SERVER_MORE_RESULTS_EXISTS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_47
## %bb.45:
	movl	$131, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_48
LBB0_46:
	movl	$128, (%r14)
	movl	(%rbx), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_network_mysqld_eof_packet_free
	jmp	LBB0_39
LBB0_47:
	movl	$1, %r15d
LBB0_48:
	movq	%r12, %rdi
	callq	_network_mysqld_eof_packet_free
	jmp	LBB0_39
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_11
.set L0_1_set_21, LBB0_21-LJTI0_1
.set L0_1_set_34, LBB0_34-LJTI0_1
.set L0_1_set_35, LBB0_35-LJTI0_1
.set L0_1_set_36, LBB0_36-LJTI0_1
LJTI0_1:
	.long	L0_1_set_21
	.long	L0_1_set_34
	.long	L0_1_set_35
	.long	L0_1_set_36
	.end_data_region
                                        ## -- End function
	.comm	_SERVER_MORE_RESULTS_EXISTS,4,2 ## @SERVER_MORE_RESULTS_EXISTS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: COM_QUERY packet should not be (EOF), got: 0x%02x"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
L_.str.1:                               ## @.str.1
	.asciz	"%s: COM_QUERY should not be (OK|NULL|ERR), got: 0x%02x"

L_.str.2:                               ## @.str.2
	.asciz	"%s: COM_QUERY,should be (OK), got: 0x%02x"

	.comm	_SERVER_PS_OUT_PARAMS,4,2       ## @SERVER_PS_OUT_PARAMS
	.comm	_SERVER_STATUS_CURSOR_EXISTS,4,2 ## @SERVER_STATUS_CURSOR_EXISTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function network_mysqld_proto_get_com_query_result
lCPI0_0:
	.long	132                             ; 0x84
	.long	133                             ; 0x85
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_network_mysqld_proto_get_com_query_result
	.p2align	2
_network_mysqld_proto_get_com_query_result: ; @network_mysqld_proto_get_com_query_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_31
; %bb.1:
	mov	x22, x3
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	add	x1, sp, #12
	mov	x0, x21
	bl	_network_mysqld_proto_peek_int8
	cbnz	w0, LBB0_37
; %bb.3:
	ldr	w8, [sp, #12]
	sub	w9, w8, #133
	cmp	w9, #2
	b.lo	LBB0_24
; %bb.4:
	cmp	w8, #135
	b.eq	LBB0_11
; %bb.5:
	cmp	w8, #136
	b.ne	LBB0_25
; %bb.6:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cmp	w8, #9
	b.ne	LBB0_31
; %bb.7:
	bl	_network_mysqld_eof_packet_new
	mov	x22, x0
	mov	x0, x21
	mov	x1, x22
	bl	_network_mysqld_proto_get_eof_packet
	cbz	w0, LBB0_41
; %bb.8:
	mov	x0, x22
	b	LBB0_30
LBB0_9:
	add	x1, sp, #12
	mov	x0, x21
	bl	_network_mysqld_proto_get_int8
	cbnz	w0, LBB0_37
; %bb.10:
	ldr	w2, [sp, #12]
	cmp	w2, #133
	b.ne	LBB0_23
LBB0_11:
	mov	w20, #1
	b	LBB0_38
LBB0_12:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	ldr	w9, [x21]
	cmp	w8, w9
	b.ne	LBB0_31
; %bb.13:
	mov	w8, #129
LBB0_14:
	str	w8, [x19]
	mov	w20, #1
	b	LBB0_38
LBB0_15:
	mov	x20, x2
	add	x1, sp, #12
	mov	x0, x21
	bl	_network_mysqld_proto_peek_int8
	cbnz	w0, LBB0_37
; %bb.16:
	ldr	w8, [sp, #12]
	sub	w8, w8, #133
	cmp	w8, #3
	b.hi	LBB0_32
; %bb.17:
Lloh2:
	adrp	x9, lJTI0_1@PAGE
Lloh3:
	add	x9, x9, lJTI0_1@PAGEOFF
	adr	x10, LBB0_18
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_18:
	mov	x0, x20
	bl	_update_charset
	mov	w8, #133
	str	w8, [x19, #4]
	bl	_network_mysqld_ok_packet_new
	mov	x23, x0
	mov	x0, x21
	mov	x1, x23
	bl	_network_mysqld_proto_get_ok_packet
	cbz	w0, LBB0_40
; %bb.19:
	mov	x0, x23
	bl	_network_mysqld_ok_packet_free
	b	LBB0_37
LBB0_20:
	add	x1, sp, #12
	mov	x0, x21
	bl	_network_mysqld_proto_peek_int8
	cbnz	w0, LBB0_37
; %bb.21:
	ldr	w2, [sp, #12]
	sub	w8, w2, #133
	cmp	w8, #3
	b.hs	LBB0_26
; %bb.22:
Lloh4:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh5:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_36
LBB0_23:
Lloh9:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh10:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_36
LBB0_24:
	cbz	w22, LBB0_31
LBB0_25:
	mov	w20, #0
	ldr	x8, [x21, #8]
	ldr	d0, [x19, #16]
	movi.2s	v1, #1
	ld1.s	{ v1 }[0], [x8]
	add.2s	v0, v0, v1
	str	d0, [x19, #16]
	b	LBB0_38
LBB0_26:
	cmp	w2, #136
	b.ne	LBB0_31
; %bb.27:
	ldr	x8, [x21, #8]
	ldr	w8, [x8]
	cmp	w8, #9
	b.ne	LBB0_39
; %bb.28:
	bl	_network_mysqld_eof_packet_new
	mov	x20, x0
	mov	x0, x21
	mov	x1, x20
	bl	_network_mysqld_proto_get_eof_packet
	cbz	w0, LBB0_45
; %bb.29:
	mov	x0, x20
LBB0_30:
	bl	_network_mysqld_eof_packet_free
	b	LBB0_37
LBB0_31:
	mov	w20, #0
	b	LBB0_38
LBB0_32:
	mov	w20, #0
Lloh14:
	adrp	x8, lCPI0_0@PAGE
Lloh15:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	b	LBB0_38
LBB0_33:
	mov	w8, #130
	b	LBB0_14
LBB0_34:
	mov	w8, #135
	str	w8, [x19, #4]
	mov	w20, #1
	b	LBB0_38
LBB0_35:
Lloh16:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x0, l_.str@PAGE
Lloh20:
	add	x0, x0, l_.str@PAGEOFF
	mov	w2, #136
LBB0_36:
	bl	_g_critical
LBB0_37:
	mov	w20, #-1
LBB0_38:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_39:
	mov	w20, #0
	mov	w8, #128
	str	w8, [x19]
	b	LBB0_38
LBB0_40:
	ldr	w8, [x23]
Lloh21:
	adrp	x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGE
Lloh22:
	ldr	x9, [x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w20, eq
	str	w8, [x19, #8]
	ldr	w8, [x23, #12]
	str	w8, [x19, #24]
	ldur	d0, [x23, #4]
	str	d0, [x19, #32]
	str	wzr, [x19, #12]
	str	w22, [x19, #28]
	mov	x0, x23
	bl	_network_mysqld_ok_packet_free
	b	LBB0_38
LBB0_41:
	mov	w8, #1
	str	w8, [x19, #12]
	ldr	w8, [x19, #8]
	tbnz	w8, #12, LBB0_43
; %bb.42:
	ldr	w8, [x22]
	str	w8, [x19, #8]
LBB0_43:
	ldr	w9, [x22, #4]
	str	w9, [x19, #24]
Lloh24:
	adrp	x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _SERVER_MORE_RESULTS_EXISTS@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_46
; %bb.44:
	mov	w20, #0
	mov	w8, #131
	str	w8, [x19]
	b	LBB0_47
LBB0_45:
	mov	w8, #128
	str	w8, [x19]
	ldr	w8, [x20]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_network_mysqld_eof_packet_free
	mov	w20, #0
	b	LBB0_38
LBB0_46:
	mov	w20, #1
LBB0_47:
	mov	x0, x22
	bl	_network_mysqld_eof_packet_free
	b	LBB0_38
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_12-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
lJTI0_1:
	.byte	(LBB0_18-LBB0_18)>>2
	.byte	(LBB0_33-LBB0_18)>>2
	.byte	(LBB0_34-LBB0_18)>>2
	.byte	(LBB0_35-LBB0_18)>>2
                                        ; -- End function
	.comm	_SERVER_MORE_RESULTS_EXISTS,4,2 ; @SERVER_MORE_RESULTS_EXISTS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: COM_QUERY packet should not be (EOF), got: 0x%02x"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
l_.str.1:                               ; @.str.1
	.asciz	"%s: COM_QUERY should not be (OK|NULL|ERR), got: 0x%02x"

l_.str.2:                               ; @.str.2
	.asciz	"%s: COM_QUERY,should be (OK), got: 0x%02x"

	.comm	_SERVER_PS_OUT_PARAMS,4,2       ; @SERVER_PS_OUT_PARAMS
	.comm	_SERVER_STATUS_CURSOR_EXISTS,4,2 ; @SERVER_STATUS_CURSOR_EXISTS
.subsections_via_symbols
