	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_fielddefs ## -- Begin function network_mysqld_proto_get_fielddefs
	.p2align	4, 0x90
_network_mysqld_proto_get_fielddefs:    ## @network_mysqld_proto_get_fielddefs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_CLIENT_PROTOCOL_41@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	(%rdi), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_network_mysqld_proto_skip_network_header
	testq	%rax, %rax
	je	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_2:
	movq	%rbx, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	leaq	-64(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_network_mysqld_proto_peek_lenenc_type
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.4:
	cmpl	$128, -44(%rbp)
	jne	LBB0_2
## %bb.5:
	leaq	-64(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	callq	_network_mysqld_proto_get_lenenc_int
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_2
## %bb.6:
	cmpq	$0, -88(%rbp)
	je	LBB0_2
## %bb.7:
	jle	LBB0_12
## %bb.8:
	movl	%r12d, -68(%rbp)                ## 4-byte Spill
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	-64(%rbp), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r14), %r14
	movq	%r14, %rdi
	callq	_g_assert
	movl	(%r14), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	xorl	%eax, %eax
	callq	_network_mysqld_proto_fielddef_new
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_skip_network_header
	testq	%rax, %rax
	jne	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	-68(%rbp), %edx                 ## 4-byte Reload
	callq	_network_mysqld_proto_get_fielddef
	movq	%rax, %rbx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_g_ptr_array_add
	testq	%rbx, %rbx
	jne	LBB0_1
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	cmpq	-88(%rbp), %r12
	movq	%r15, %rbx
	jl	LBB0_9
LBB0_12:
	movq	8(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.13:
	movl	(%rbx), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_network_mysqld_proto_skip_network_header
	movb	$1, %cl
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	-64(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_network_mysqld_proto_peek_lenenc_type
	testq	%rax, %rax
	setne	%cl
LBB0_15:
	movl	-44(%rbp), %eax
	movq	_NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %eax
	cmovneq	%rsi, %rbx
	testb	%cl, %cl
	cmovneq	%rsi, %rbx
	jmp	LBB0_2
LBB0_16:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_g_ptr_array_add
	jmp	LBB0_1
	.cfi_endproc
                                        ## -- End function
	.comm	_CLIENT_PROTOCOL_41,4,2         ## @CLIENT_PROTOCOL_41
	.comm	_NETWORK_MYSQLD_LENENC_TYPE_EOF,4,2 ## @NETWORK_MYSQLD_LENENC_TYPE_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_network_mysqld_proto_get_fielddefs ; -- Begin function network_mysqld_proto_get_fielddefs
	.p2align	2
_network_mysqld_proto_get_fielddefs:    ; @network_mysqld_proto_get_fielddefs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _CLIENT_PROTOCOL_41@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLIENT_PROTOCOL_41@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	ldr	w8, [x0]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	add	x0, sp, #16
	bl	_network_mysqld_proto_skip_network_header
	mov	x8, x0
	mov	x0, #0
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_2:
	add	x0, sp, #16
	add	x1, sp, #4
	bl	_network_mysqld_proto_peek_lenenc_type
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_1
; %bb.3:
	ldr	w8, [sp, #4]
	cmp	w8, #128
	b.ne	LBB0_1
; %bb.4:
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_network_mysqld_proto_get_lenenc_int
	mov	x8, x0
	mov	x0, #0
	cbnz	x8, LBB0_1
; %bb.5:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_1
; %bb.6:
	cmp	x8, #1
	b.lt	LBB0_11
; %bb.7:
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x19, #8]
	mov	x0, x19
	bl	_g_assert
	ldr	w8, [x19]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	bl	_network_mysqld_proto_fielddef_new
	mov	x22, x0
	add	x0, sp, #16
	bl	_network_mysqld_proto_skip_network_header
	cbnz	x0, LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	x0, sp, #16
	mov	x1, x22
	mov	x2, x21
	bl	_network_mysqld_proto_get_fielddef
	mov	x23, x0
	mov	x0, x20
	mov	x1, x22
	bl	_g_ptr_array_add
	cbnz	x23, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x24, #1
	ldr	x8, [sp, #8]
	cmp	x24, x8
	b.lt	LBB0_8
LBB0_11:
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_15
; %bb.12:
	ldr	w8, [x19]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	add	x0, sp, #16
	bl	_network_mysqld_proto_skip_network_header
	cbz	x0, LBB0_16
; %bb.13:
	mov	w8, #1
	b	LBB0_17
LBB0_14:
	mov	x0, x20
	mov	x1, x22
	bl	_g_ptr_array_add
LBB0_15:
	mov	x0, #0
	b	LBB0_1
LBB0_16:
	add	x0, sp, #16
	add	x1, sp, #4
	bl	_network_mysqld_proto_peek_lenenc_type
	cmp	x0, #0
	cset	w8, ne
LBB0_17:
	ldr	w9, [sp, #4]
Lloh3:
	adrp	x10, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NETWORK_MYSQLD_LENENC_TYPE_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	cset	w9, ne
	orr	w8, w8, w9
	cmp	w8, #0
	csel	x0, xzr, x19, ne
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_CLIENT_PROTOCOL_41,4,2         ; @CLIENT_PROTOCOL_41
	.comm	_NETWORK_MYSQLD_LENENC_TYPE_EOF,4,2 ; @NETWORK_MYSQLD_LENENC_TYPE_EOF
.subsections_via_symbols
