	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_stmt_execute_packet ## -- Begin function network_mysqld_proto_get_stmt_execute_packet
	.p2align	4, 0x90
_network_mysqld_proto_get_stmt_execute_packet: ## @network_mysqld_proto_get_stmt_execute_packet
	.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	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	addq	$32, %rsi
	callq	_network_mysqld_proto_get_stmt_execute_packet_stmt_id
	movb	$1, %r13b
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	24(%r14), %rsi
	movq	%r15, %rdi
	callq	_network_mysqld_proto_get_int8
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	testl	%r12d, %r12d
	je	LBB0_8
LBB0_3:
	leal	7(%r12), %eax
	leal	14(%r12), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	movl	%ebx, %edi
	callq	_g_string_sized_new
	movq	%rax, %rcx
	testb	%r13b, %r13b
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_network_mysqld_proto_get_gstring_len
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	leaq	8(%r14), %rbx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_network_mysqld_proto_get_int8
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_10
LBB0_6:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rcx, %rdi
	callq	_g_string_free
	movl	$-1, %r13d
	jmp	LBB0_9
LBB0_7:
	leaq	16(%r14), %rsi
	movq	%r15, %rdi
	callq	_network_mysqld_proto_get_int32
	testq	%rax, %rax
	setne	%r13b
	testl	%r12d, %r12d
	jne	LBB0_3
LBB0_8:
	movzbl	%r13b, %r13d
	negl	%r13d
LBB0_9:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%r13d, %r13d
	cmpq	$0, (%rbx)
	movl	$0, %ecx
	je	LBB0_24
## %bb.11:
	movl	$0, %ecx
	testl	%r12d, %r12d
	jle	LBB0_24
## %bb.12:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	leaq	-44(%rbp), %rsi
	callq	_network_mysqld_proto_get_int16
	testq	%rax, %rax
	jne	LBB0_23
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movzbl	-44(%rbp), %edi
	callq	_network_mysqld_type_new
	testq	%rax, %rax
	je	LBB0_22
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%ebx, %edx
	shrl	$3, %edx
	movl	(%rcx,%rdx,4), %ecx
	movl	%ebx, %edx
	andb	$7, %dl
	movzbl	%dl, %edx
	xorl	%esi, %esi
	btl	%edx, %ecx
	setb	%sil
	movl	%esi, (%rax)
	movl	-44(%rbp), %ecx
	shrl	$15, %ecx
	andl	$1, %ecx
	movl	%ecx, 4(%rax)
	movl	(%r14), %edi
	movq	%rax, %rsi
	callq	_g_ptr_array_add
	incl	%ebx
	cmpl	%r12d, %ebx
	jl	LBB0_13
## %bb.16:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%rbx), %esi
	movl	(%r14), %edi
	callq	_g_ptr_array_index
	xorl	%ecx, %ecx
	cmpl	$0, (%rax)
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_network_mysqld_proto_binary_get_type
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
LBB0_19:                                ##   in Loop: Header=BB0_17 Depth=1
	testl	%ecx, %ecx
	jne	LBB0_24
## %bb.20:                              ##   in Loop: Header=BB0_17 Depth=1
	leal	1(%rbx), %eax
	cmpl	%r12d, %ebx
	movl	%eax, %ebx
	jl	LBB0_17
	jmp	LBB0_24
LBB0_22:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rdi
	callq	_g_critical
LBB0_23:
	movl	$1, %ecx
LBB0_24:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ecx, %ebx
	callq	_g_string_free
	negl	%ebx
	sbbl	%r13d, %r13d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,4,2                       ## @TRUE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: couldn't create type = %d"

	.comm	_G_STRLOC,4,2                   ## @G_STRLOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_stmt_execute_packet ; -- Begin function network_mysqld_proto_get_stmt_execute_packet
	.p2align	2
_network_mysqld_proto_get_stmt_execute_packet: ; @network_mysqld_proto_get_stmt_execute_packet
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x1, x1, #32
	bl	_network_mysqld_proto_get_stmt_execute_packet_stmt_id
	cbnz	x0, LBB0_2
; %bb.1:
	add	x1, x20, #24
	mov	x0, x21
	bl	_network_mysqld_proto_get_int8
	cbz	x0, LBB0_7
LBB0_2:
	mov	w24, #1
	cbz	w19, LBB0_8
LBB0_3:
	add	w8, w19, #7
	add	w9, w19, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w23, w8, #3
	mov	x0, x23
	bl	_g_string_sized_new
	mov	x22, x0
	tbnz	w24, #0, LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	bl	_network_mysqld_proto_get_gstring_len
	cbnz	x0, LBB0_6
; %bb.5:
	add	x23, x20, #8
	mov	x0, x21
	mov	x1, x23
	bl	_network_mysqld_proto_get_int8
	cbz	x0, LBB0_10
LBB0_6:
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_g_string_free
	mov	w0, #-1
	b	LBB0_9
LBB0_7:
	add	x1, x20, #16
	mov	x0, x21
	bl	_network_mysqld_proto_get_int32
	cmp	x0, #0
	cset	w24, ne
	cbnz	w19, LBB0_3
LBB0_8:
	sbfx	w0, w24, #0, #1
LBB0_9:
	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_10:
	mov	w24, #0
	ldr	x8, [x23]
	cbz	x8, LBB0_23
; %bb.11:
	cmp	w19, #1
	b.lt	LBB0_23
; %bb.12:
	mov	w23, #0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #12
	mov	x0, x21
	bl	_network_mysqld_proto_get_int16
	cbnz	x0, LBB0_22
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldrb	w0, [sp, #12]
	bl	_network_mysqld_type_new
	cbz	x0, LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x1, x0
	ldr	x8, [x22]
	lsr	w9, w23, #3
	ldr	w8, [x8, w9, uxtw #2]
	and	w9, w23, #0x7
	lsr	w8, w8, w9
	and	w8, w8, #0x1
	str	w8, [x0]
	ldr	w8, [sp, #12]
	ubfx	w8, w8, #15, #1
	str	w8, [x0, #4]
	ldr	w0, [x20]
	bl	_g_ptr_array_add
	add	w23, w23, #1
	cmp	w23, w19
	b.lt	LBB0_13
; %bb.16:
	mov	w23, #1
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x1, x0
	mov	x0, x21
	bl	_network_mysqld_proto_binary_get_type
	cmp	x0, #0
	cset	w24, ne
	cbnz	w24, LBB0_23
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	add	w8, w23, #1
	cmp	w23, w19
	mov	x23, x8
	b.ge	LBB0_23
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	sub	w1, w23, #1
	ldr	w0, [x20]
	bl	_g_ptr_array_index
	ldr	w8, [x0]
	cbz	w8, LBB0_17
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	w24, #0
	cbz	w24, LBB0_18
	b	LBB0_23
LBB0_21:
Lloh3:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w2, [sp, #12]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_g_critical
LBB0_22:
	mov	w24, #1
LBB0_23:
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_g_string_free
	cmp	w24, #0
	csetm	w0, ne
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,4,2                       ; @TRUE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: couldn't create type = %d"

	.comm	_G_STRLOC,4,2                   ; @G_STRLOC
.subsections_via_symbols
