	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proxy_resultset_rows_iter
_proxy_resultset_rows_iter:             ## @proxy_resultset_rows_iter
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$1, %r13d
	movl	$1, %edi
	callq	_lua_upvalueindex
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_lua_touserdata
	movq	(%rax), %rax
	movq	(%rax), %r12
	movq	8(%r12), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	callq	_g_return_val_if_fail
	movq	8(%rbx), %rax
	movq	%rax, -56(%rbp)
	movl	$0, -64(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_network_mysqld_proto_skip_network_header
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	leaq	-64(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_network_mysqld_proto_peek_lenenc_type
	xorl	%r13d, %r13d
	testq	%rax, %rax
	setne	%r13b
LBB0_2:
	movl	%r13d, %edi
	xorl	$1, %edi
	xorl	%esi, %esi
	callq	_g_return_val_if_fail
	movl	-44(%rbp), %eax
	andl	$-2, %eax
	cmpl	$130, %eax
	je	LBB0_17
## %bb.3:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_lua_newtable
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	jle	LBB0_16
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	addl	4(%rax), %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_lua_pushlstring
	movl	-48(%rbp), %esi
	leaq	-64(%rbp), %rdi
	callq	_network_mysqld_proto_skip
	testl	%eax, %eax
	setne	%r12b
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	%r14, %rdi
	movl	$-2, %esi
	movq	%rbx, %rdx
	callq	_lua_rawseti
	movl	%r12d, %eax
	xorb	$1, %al
	movzbl	%al, %edi
	xorl	%esi, %esi
	callq	_g_return_val_if_fail
	movzbl	%r12b, %r13d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rbx
	jge	LBB0_16
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movb	$1, %r12b
	movb	$1, %r15b
	testl	%r13d, %r13d
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-64(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	callq	_network_mysqld_proto_peek_lenenc_type
	testq	%rax, %rax
	setne	%r15b
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	xorb	$1, %al
	movzbl	%al, %edi
	xorl	%esi, %esi
	callq	_g_return_val_if_fail
	movl	-44(%rbp), %eax
	cmpl	$129, %eax
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$128, %eax
	jne	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	leaq	-64(%rbp), %rdi
	movl	$1, %esi
	callq	_network_mysqld_proto_skip
	movq	%r14, %rdi
	callq	_lua_pushnil
	movl	%r15d, %r12d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	testb	%r15b, %r15b
	jne	LBB0_18
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	callq	_network_mysqld_proto_get_lenenc_int
	testl	%eax, %eax
	jne	LBB0_18
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-48(%rbp), %edx
	movq	-56(%rbp), %rax
	movl	(%rax), %ecx
	cmpl	%ecx, %edx
	jg	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-64(%rbp), %esi
	leal	(%rsi,%rdx), %edi
	cmpl	%ecx, %edi
	jle	LBB0_14
LBB0_18:
	movq	_G_STRLOC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_luaL_error
	movl	%eax, %r15d
	jmp	LBB0_17
LBB0_16:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rax
	movq	(%rax), %rax
	movq	%rax, (%rcx)
	movl	$1, %r15d
LBB0_17:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: row-data is invalid"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proxy_resultset_rows_iter
_proxy_resultset_rows_iter:             ; @proxy_resultset_rows_iter
	.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	x19, x0
	mov	w23, #1
	mov	w0, #1
	bl	_lua_upvalueindex
	mov	x1, x0
	mov	x0, x19
	bl	_lua_touserdata
	ldr	x8, [x0]
	ldr	x21, [x8]
	ldp	x20, x22, [x21]
	cmp	x20, #0
	cset	w0, ne
	mov	w1, #0
	bl	_g_return_val_if_fail
	ldr	x8, [x20, #8]
	str	x8, [sp, #24]
	str	wzr, [sp, #16]
	add	x0, sp, #16
	bl	_network_mysqld_proto_skip_network_header
	cbnz	x0, LBB0_2
; %bb.1:
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_network_mysqld_proto_peek_lenenc_type
	cmp	x0, #0
	cset	w23, ne
LBB0_2:
	eor	w0, w23, #0x1
	mov	w1, #0
	bl	_g_return_val_if_fail
	mov	w0, #0
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffffe
	cmp	w8, #130
	b.eq	LBB0_20
; %bb.3:
	mov	x0, x19
	bl	_lua_newtable
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_18
; %bb.4:
	mov	x20, #0
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	mov	x0, x19
	mov	w1, #-2
	mov	x2, x20
	bl	_lua_rawseti
	eor	w0, w23, #0x1
	mov	w1, #0
	bl	_g_return_val_if_fail
	ldr	x8, [x22]
	cmp	x20, x8
	b.ge	LBB0_18
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w23, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w23, #1
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_network_mysqld_proto_peek_lenenc_type
	cmp	x0, #0
	cset	w23, ne
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	eor	w0, w23, #0x1
	mov	w1, #0
	bl	_g_return_val_if_fail
	ldr	w8, [sp, #12]
	cmp	w8, #129
	b.eq	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	mov	w1, #1
	bl	_network_mysqld_proto_skip
	mov	x0, x19
	bl	_lua_pushnil
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	tbnz	w23, #0, LBB0_19
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_network_mysqld_proto_get_lenenc_int
	cbnz	w0, LBB0_19
; %bb.15:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [sp, #8]
	ldr	x8, [sp, #24]
	ldr	w10, [x8]
	cmp	w2, w10
	b.gt	LBB0_19
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [sp, #16]
	add	w11, w9, w2
	cmp	w11, w10
	b.gt	LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x8, #4]
	add	w1, w9, w8
	mov	x0, x19
	bl	_lua_pushlstring
	ldr	w1, [sp, #8]
	add	x0, sp, #16
	bl	_network_mysqld_proto_skip
	cmp	w0, #0
	cset	w23, ne
	b	LBB0_6
LBB0_18:
	ldr	x8, [x21]
	ldr	x8, [x8]
	str	x8, [x21]
	mov	w0, #1
	b	LBB0_20
LBB0_19:
Lloh0:
	adrp	x8, _G_STRLOC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_STRLOC@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_luaL_error
LBB0_20:
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: row-data is invalid"

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