	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_merge_rows                     ## -- Begin function merge_rows
	.p2align	4, 0x90
_merge_rows:                            ## @merge_rows
	.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
	cmpl	$0, 16(%rsi)
	je	LBB0_16
## %bb.1:
	movq	%rdi, %r13
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_16
## %bb.2:
	movq	%rsi, %rbx
	cmpq	$0, 8(%rsi)
	jne	LBB0_16
## %bb.3:
	xorl	%eax, %eax
	callq	_proxy_resultset_new
	movq	%rax, %r14
	movq	8(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%r14)
	movq	8(%rbx), %rax
	movq	%rax, 24(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 20(%r14)
	movl	(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_parse_resultset_fields
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %r15
	testq	%r15, %r15
	je	LBB0_15
## %bb.4:
	leaq	-72(%rbp), %rbx
	leaq	-48(%rbp), %r12
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movq	8(%r15), %rax
	movq	%rax, -64(%rbp)
	movq	$0, -72(%rbp)
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_skip_network_header
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_network_mysqld_proto_peek_lenenc_type
	movl	-48(%rbp), %eax
	andl	$-2, %eax
	cmpl	$130, %eax
	je	LBB0_15
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	callq	_g_ptr_array_new
	movq	%rax, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %r13
	testq	%r13, %r13
	jg	LBB0_7
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rax
	movq	8(%rax), %rdi
	movq	%r14, %rsi
	callq	_g_ptr_array_add
	movq	(%r13), %rax
	movq	8(%rax), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rax), %rcx
	jge	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r15), %r15
	testq	%r15, %r15
	jne	LBB0_5
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=2
	movl	$1, %esi
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	callq	_network_mysqld_proto_skip
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=2
	decq	%r13
	je	LBB0_13
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_network_mysqld_proto_peek_lenenc_type
	movl	-48(%rbp), %eax
	cmpl	$128, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=2
	cmpl	$129, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	leaq	-44(%rbp), %rsi
	callq	_network_mysqld_proto_get_lenenc_int
	movq	-72(%rbp), %rdi
	movq	-64(%rbp), %rax
	addq	(%rax), %rdi
	movl	-44(%rbp), %esi
	callq	_g_strndup
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_g_ptr_array_add
	movl	-44(%rbp), %esi
	jmp	LBB0_11
LBB0_15:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_proxy_resultset_free
LBB0_16:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_merge_rows                     ; -- Begin function merge_rows
	.p2align	2
_merge_rows:                            ; @merge_rows
	.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
	ldr	w8, [x1, #16]
	cbz	w8, LBB0_15
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.2:
	mov	x21, x1
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_15
; %bb.3:
	bl	_proxy_resultset_new
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	str	x8, [x0, #32]
	ldr	x8, [x21, #8]
	str	x8, [x0, #24]
	ldr	d0, [x21]
	str	d0, [x0, #16]
	bl	_parse_resultset_fields
	ldr	x22, [x20, #8]
	cbz	x22, LBB0_14
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x8, [x22, #8]
	stp	xzr, x8, [sp, #16]
	add	x0, sp, #16
	bl	_network_mysqld_proto_skip_network_header
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_network_mysqld_proto_peek_lenenc_type
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfffffffe
	cmp	w8, #130
	b.eq	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_g_ptr_array_new
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x23, [x8]
	cmp	x23, #1
	b.ge	LBB0_11
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	mov	x1, x21
	bl	_g_ptr_array_add
	ldr	x8, [x19]
	ldp	x8, x9, [x8]
	ldr	x9, [x9]
	cmp	x9, x8
	b.ge	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x22, [x22]
	cbnz	x22, LBB0_4
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_11 Depth=2
	mov	w1, #1
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=2
	add	x0, sp, #16
	bl	_network_mysqld_proto_skip
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	subs	x23, x23, #1
	b.eq	LBB0_6
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #16
	add	x1, sp, #12
	bl	_network_mysqld_proto_peek_lenenc_type
	ldr	w8, [sp, #12]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_network_mysqld_proto_get_lenenc_int
	ldp	x9, x8, [sp, #16]
	ldr	x8, [x8]
	add	x0, x9, x8
	ldr	w1, [sp, #8]
	bl	_g_strndup
	mov	x1, x0
	mov	x0, x21
	bl	_g_ptr_array_add
	ldr	w1, [sp, #8]
	b	LBB0_9
LBB0_14:
	mov	x0, x20
	bl	_proxy_resultset_free
LBB0_15:
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
