	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_append_stmt_execute_packet ## -- Begin function network_mysqld_proto_append_stmt_execute_packet
	.p2align	4, 0x90
_network_mysqld_proto_append_stmt_execute_packet: ## @network_mysqld_proto_append_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r13
	movq	%rdi, %r14
	leal	7(%rbx), %eax
	leal	14(%rbx), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	callq	_g_string_sized_new
	movq	%rax, %r12
	movq	(%rax), %rdi
	movl	8(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%r15d
	cmpl	%r15d, %ebx
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movl	%r15d, %esi
	callq	_g_ptr_array_index
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %ecx
	andb	$7, %cl
	movl	$1, %eax
	shll	%cl, %eax
	movq	(%r12), %rcx
	movl	%r15d, %edx
	shrl	$3, %edx
	orl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_4
LBB0_5:
	movq	_COM_STMT_EXECUTE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r14, %rdi
	callq	_network_mysqld_proto_append_int8
	movl	32(%r13), %esi
	movq	%r14, %rdi
	callq	_network_mysqld_proto_append_int32
	movq	24(%r13), %rsi
	movq	%r14, %rdi
	callq	_network_mysqld_proto_append_int8
	movl	16(%r13), %esi
	movq	%r14, %rdi
	callq	_network_mysqld_proto_append_int32
	movq	%r12, %rdi
	callq	_S
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_g_string_append_len
	movq	8(%r13), %rsi
	movq	%r14, %rdi
	callq	_network_mysqld_proto_append_int8
	cmpq	$0, 8(%r13)
	je	LBB0_15
## %bb.6:
	movq	(%r13), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	callq	_g_ptr_array_index
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_network_mysqld_proto_append_int16
	incl	%ebx
	movq	(%r13), %rdi
	cmpl	(%rdi), %ebx
	jl	LBB0_8
LBB0_9:
	cmpl	$0, (%rdi)
	movl	$0, %eax
	jle	LBB0_16
## %bb.10:
	xorl	%ebx, %ebx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	incl	%ebx
	movq	(%r13), %rdi
	cmpl	(%rdi), %ebx
	jge	LBB0_15
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %esi
	callq	_g_ptr_array_index
	cmpq	$0, (%rax)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_network_mysqld_proto_binary_append_type
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_15:
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COM_STMT_EXECUTE,8,3           ## @COM_STMT_EXECUTE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_append_stmt_execute_packet ; -- Begin function network_mysqld_proto_append_stmt_execute_packet
	.p2align	2
_network_mysqld_proto_append_stmt_execute_packet: ; @network_mysqld_proto_append_stmt_execute_packet
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	add	w8, w2, #7
	add	w9, w2, #14
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	bl	_g_string_sized_new
	mov	x21, x0
	ldr	x0, [x0]
	ldr	w2, [x21, #8]
	mov	w1, #0
	bl	_memset
	cmp	w22, #1
	b.lt	LBB0_5
; %bb.1:
	mov	w23, #0
	mov	w24, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	cmp	w22, w23
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19]
	mov	x1, x23
	bl	_g_ptr_array_index
	ldr	x8, [x0]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w23, #0x7
	lsl	w8, w24, w8
	ldr	x9, [x21]
	lsr	w10, w23, #3
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	orr	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_2
LBB0_5:
Lloh0:
	adrp	x8, _COM_STMT_EXECUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COM_STMT_EXECUTE@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_network_mysqld_proto_append_int8
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_network_mysqld_proto_append_int32
	ldr	x1, [x19, #24]
	mov	x0, x20
	bl	_network_mysqld_proto_append_int8
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_network_mysqld_proto_append_int32
	mov	x0, x21
	bl	_S
	mov	x1, x0
	mov	x0, x20
	bl	_g_string_append_len
	ldr	x1, [x19, #8]
	mov	x0, x20
	bl	_network_mysqld_proto_append_int8
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.6:
	ldr	x0, [x19]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	w21, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_g_ptr_array_index
	ldr	w1, [x0, #8]
	mov	x0, x20
	bl	_network_mysqld_proto_append_int16
	add	w21, w21, #1
	ldr	x0, [x19]
	ldr	w8, [x0]
	cmp	w21, w8
	b.lt	LBB0_8
LBB0_9:
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.10:
	mov	w21, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	w21, w21, #1
	ldr	x0, [x19]
	ldr	w8, [x0]
	cmp	w21, w8
	b.ge	LBB0_15
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x1, x21
	bl	_g_ptr_array_index
	ldr	x8, [x0]
	cbnz	x8, LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x1, x0
	mov	x0, x20
	bl	_network_mysqld_proto_binary_append_type
	cbz	x0, LBB0_11
; %bb.14:
	mov	w0, #-1
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COM_STMT_EXECUTE,8,3           ; @COM_STMT_EXECUTE
.subsections_via_symbols
