	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_store_result              ## -- Begin function ecpg_store_result
	.p2align	4, 0x90
_ecpg_store_result:                     ## @ecpg_store_result
	.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	%rcx, %r13
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_PQntuples
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %esi
	callq	_PQftype
	movl	%eax, %edi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_ecpg_is_type_an_array
	movl	%eax, %ebx
	movq	_ECPG_ARRAY_ERROR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jne	LBB0_4
## %bb.1:
	movl	8(%r12), %edi
	movq	_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %edx
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_4:
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	_ECPG_ARRAY_NONE@GOTPCREL(%rip), %rax
	movl	(%r13), %ecx
	cmpl	(%rax), %ebx
	jne	LBB0_13
## %bb.5:
	testl	%ecx, %ecx
	movq	%r14, %r12
	jle	LBB0_7
## %bb.6:
	cmpl	%ecx, %r12d
	jg	LBB0_9
LBB0_7:
	movl	4(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_15
## %bb.8:
	cmpl	%eax, %r12d
	jle	LBB0_15
LBB0_9:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_ecpg_log
	movl	4(%rbx), %edi
	movl	8(%rbx), %ebx
	callq	_INFORMIX_MODE
	testq	%rax, %rax
	jne	LBB0_10
## %bb.11:
	movq	_ECPG_TOO_MANY_MATCHES@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_13:
	testl	%ecx, %ecx
	movq	%r14, %r12
	je	LBB0_14
LBB0_16:
	cmpl	$0, 8(%r13)
	jne	LBB0_43
	jmp	LBB0_17
LBB0_10:
	movq	_ECPG_INFORMIX_SUBSELECT_NOT_ONE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	_ECPG_SQLSTATE_CARDINALITY_VIOLATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%ebx, %edi
LBB0_3:
	xorl	%ecx, %ecx
	callq	_ecpg_raise
LBB0_67:
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	_ECPG_NO_ARRAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECPG_SQLSTATE_DATATYPE_MISMATCH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_15:
	testl	%ecx, %ecx
	jne	LBB0_16
LBB0_17:
	cmpq	$0, 16(%r13)
	jne	LBB0_43
## %bb.18:
	movq	%r15, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_PQfformat
	testl	%eax, %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	je	LBB0_21
## %bb.19:
	testl	%r12d, %r12d
	jle	LBB0_20
## %bb.39:
	movl	%r14d, %eax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	movl	%eax, %r12d
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_PQgetlength
	addl	%eax, %r14d
	incl	%ebx
	cmpl	%ebx, -56(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_40
	jmp	LBB0_41
LBB0_21:
	movl	24(%r13), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_22
## %bb.24:
	cmpl	$0, 8(%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_31
## %bb.25:
	cmpl	$0, (%r13)
	je	LBB0_26
LBB0_31:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	$0, 8(%r13)
	movq	%r12, %rbx
	testl	%r12d, %r12d
	jle	LBB0_32
## %bb.33:
	movl	%eax, %r15d
	xorl	%r12d, %r12d
	jmp	LBB0_34
LBB0_36:                                ##   in Loop: Header=BB0_34 Depth=1
	incl	%r12d
	cmpl	%r12d, %ebx
	je	LBB0_37
LBB0_34:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movl	%r15d, %edx
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_strlen
	movl	8(%r13), %r14d
	cmpl	%r14d, %eax
	jl	LBB0_36
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=1
	incl	%eax
	movl	%eax, 8(%r13)
	movl	%eax, %r14d
	jmp	LBB0_36
LBB0_20:
	xorl	%r14d, %r14d
	jmp	LBB0_41
LBB0_22:
	cmpl	$128, %eax
	jne	LBB0_38
## %bb.23:
	movl	8(%r13), %r14d
	addl	$4, %r14d
	imull	%r12d, %r14d
	jmp	LBB0_41
LBB0_38:
	movl	28(%r13), %r14d
	imull	%r12d, %r14d
	jmp	LBB0_41
LBB0_32:
	xorl	%r14d, %r14d
LBB0_37:
	imull	28(%r13), %r14d
	movl	%r14d, 28(%r13)
	imull	%ebx, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_41:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	8(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movq	%rdx, %r12
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_ecpg_log
	movl	8(%rbx), %esi
	movl	%r14d, %edi
	xorl	%r14d, %r14d
	callq	_ecpg_auto_alloc
	movq	%rax, 16(%r13)
	testq	%rax, %rax
	je	LBB0_67
## %bb.42:
	movq	64(%r13), %rcx
	movq	%rax, (%rcx)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
LBB0_43:
	cmpl	$0, 4(%r13)
	je	LBB0_45
## %bb.44:
	cmpq	$0, 32(%r13)
	jne	LBB0_50
LBB0_45:
	cmpq	$0, 40(%r13)
	je	LBB0_46
LBB0_50:
	movl	8(%r13), %r10d
	testl	%r10d, %r10d
	jne	LBB0_60
## %bb.51:
	cmpl	$0, (%r13)
	jne	LBB0_60
## %bb.52:
	movl	$-129, %ecx
	addl	24(%r13), %ecx
	cmpl	$2, %ecx
	ja	LBB0_60
## %bb.53:
	movq	16(%r13), %rcx
	movl	$1, %r14d
	testl	%r12d, %r12d
	jle	LBB0_59
## %bb.54:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	leaq	(%rcx,%rax,8), %rbx
	addq	$8, %rbx
	xorl	%r14d, %r14d
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_strlen
	movl	%eax, %r12d
	incl	%r12d
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %ecx
	movl	24(%r13), %r8d
	movl	52(%r13), %r9d
	movl	48(%r13), %r10d
	movl	(%rdx), %eax
	movl	4(%rdx), %r11d
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	pushq	%rax
	pushq	%r11
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	pushq	$0
	pushq	%r12
	pushq	40(%r13)
	pushq	%rbx
	callq	_ecpg_get_data
	addq	$64, %rsp
	testl	%eax, %eax
	je	LBB0_56
## %bb.57:                              ##   in Loop: Header=BB0_55 Depth=1
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, (%rcx)
	movslq	%r12d, %rax
	addq	%rax, %rbx
	addq	$8, %rcx
	incl	%r14d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	cmpl	%r12d, %r14d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jl	LBB0_55
## %bb.58:
	movl	$1, %r14d
LBB0_59:
	movq	$0, (%rcx)
	jmp	LBB0_67
LBB0_60:
	testl	%r12d, %r12d
	jle	LBB0_61
## %bb.62:
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_63:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r12), %esi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	8(%rdx), %ecx
	movl	24(%r13), %r8d
	movl	52(%r13), %r9d
	movl	28(%r13), %r11d
	movl	48(%r13), %r14d
	movl	(%rdx), %eax
	movl	4(%rdx), %ebx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %edx
	pushq	%rax
	pushq	%rbx
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	pushq	%r14
	pushq	%r11
	pushq	%r10
	pushq	40(%r13)
	pushq	16(%r13)
	callq	_ecpg_get_data
	addq	$64, %rsp
	testl	%eax, %eax
	je	LBB0_66
## %bb.64:                              ##   in Loop: Header=BB0_63 Depth=1
	cmpl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_66
## %bb.65:                              ##   in Loop: Header=BB0_63 Depth=1
	movl	8(%r13), %r10d
	incl	%r12d
	jmp	LBB0_63
LBB0_66:
	xorl	%r14d, %r14d
	testl	%eax, %eax
	setne	%r14b
	jmp	LBB0_67
LBB0_61:
	movl	$1, %r14d
	jmp	LBB0_67
LBB0_46:
	cmpq	$0, 56(%r13)
	je	LBB0_50
## %bb.47:
	movl	48(%r13), %edi
	imull	%r12d, %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %esi
	callq	_ecpg_auto_alloc
	movq	%rax, 40(%r13)
	testq	%rax, %rax
	je	LBB0_48
## %bb.49:
	movq	56(%r13), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_50
LBB0_48:
	xorl	%r14d, %r14d
	jmp	LBB0_67
LBB0_56:
	xorl	%r14d, %r14d
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	$0, (%rcx)
	jmp	LBB0_67
LBB0_26:
	testl	%r12d, %r12d
	jle	LBB0_27
## %bb.28:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_PQgetvalue
	movl	%eax, %edi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	incl	%ebx
	incl	%r14d
	cmpl	%r14d, -56(%rbp)                ## 4-byte Folded Reload
	jne	LBB0_29
	jmp	LBB0_30
LBB0_27:
	xorl	%ebx, %ebx
LBB0_30:
	imull	28(%r13), %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rbx,%rax,8), %r14d
	addl	$8, %r14d
	jmp	LBB0_41
	.cfi_endproc
                                        ## -- End function
	.comm	_ECPG_ARRAY_ERROR,4,2           ## @ECPG_ARRAY_ERROR
	.comm	_ECPG_OUT_OF_MEMORY,4,2         ## @ECPG_OUT_OF_MEMORY
	.comm	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY,4,2 ## @ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY
	.comm	_ECPG_ARRAY_NONE,4,2            ## @ECPG_ARRAY_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ecpg_store_result on line %d: incorrect number of matches; %d don't fit into array of %ld\n"

	.comm	_ECPG_INFORMIX_SUBSELECT_NOT_ONE,4,2 ## @ECPG_INFORMIX_SUBSELECT_NOT_ONE
	.comm	_ECPG_TOO_MANY_MATCHES,4,2      ## @ECPG_TOO_MANY_MATCHES
	.comm	_ECPG_SQLSTATE_CARDINALITY_VIOLATION,4,2 ## @ECPG_SQLSTATE_CARDINALITY_VIOLATION
	.comm	_ECPG_NO_ARRAY,4,2              ## @ECPG_NO_ARRAY
	.comm	_ECPG_SQLSTATE_DATATYPE_MISMATCH,4,2 ## @ECPG_SQLSTATE_DATATYPE_MISMATCH
L_.str.1:                               ## @.str.1
	.asciz	"ecpg_store_result on line %d: allocating memory for %d tuples\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_store_result              ; -- Begin function ecpg_store_result
	.p2align	2
_ecpg_store_result:                     ; @ecpg_store_result
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x19, x2
	mov	x22, x1
	mov	x23, x0
	bl	_PQntuples
	mov	x20, x0
	mov	x0, x23
	mov	x1, x22
	bl	_PQftype
	mov	x1, x19
	mov	x2, x21
	bl	_ecpg_is_type_an_array
Lloh0:
	adrp	x8, _ECPG_ARRAY_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ECPG_ARRAY_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
LBB0_2:
	ldr	w2, [x8]
	b	LBB0_9
LBB0_3:
	mov	x24, x0
Lloh8:
	adrp	x8, _ECPG_ARRAY_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ECPG_ARRAY_NONE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x8]
	ldr	w8, [x21]
	cmp	w0, w9
	b.ne	LBB0_11
; %bb.4:
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.5:
	cmp	w20, w8
	b.gt	LBB0_8
LBB0_6:
	ldr	w9, [x21, #4]
	cmp	w9, #1
	b.lt	LBB0_14
; %bb.7:
	cmp	w20, w9
	b.le	LBB0_14
LBB0_8:
	ldr	w1, [x19, #8]
	str	x8, [sp]
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x20
	bl	_ecpg_log
	ldp	w0, w20, [x19, #4]
	bl	_INFORMIX_MODE
Lloh13:
	adrp	x8, _ECPG_INFORMIX_SUBSELECT_NOT_ONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ECPG_INFORMIX_SUBSELECT_NOT_ONE@GOTPAGEOFF]
Lloh15:
	adrp	x9, _ECPG_TOO_MANY_MATCHES@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ECPG_TOO_MANY_MATCHES@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _ECPG_SQLSTATE_CARDINALITY_VIOLATION@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ECPG_SQLSTATE_CARDINALITY_VIOLATION@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x20
LBB0_9:
	mov	x3, #0
	bl	_ecpg_raise
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	cbz	w8, LBB0_13
LBB0_12:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_37
	b	LBB0_15
LBB0_13:
	ldr	w0, [x19, #8]
Lloh20:
	adrp	x8, _ECPG_NO_ARRAY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ECPG_NO_ARRAY@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _ECPG_SQLSTATE_DATATYPE_MISMATCH@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ECPG_SQLSTATE_DATATYPE_MISMATCH@GOTPAGEOFF]
	b	LBB0_2
LBB0_14:
	cbnz	w8, LBB0_12
LBB0_15:
	ldr	x8, [x21, #16]
	cbnz	x8, LBB0_37
; %bb.16:
	mov	x0, x23
	mov	x1, x22
	bl	_PQfformat
	cbz	w0, LBB0_20
; %bb.17:
	cmp	w20, #1
	b.lt	LBB0_28
; %bb.18:
	mov	w26, #0
	mov	w25, #0
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x26
	mov	x2, x22
	bl	_PQgetlength
	add	w25, w25, w0
	add	w26, w26, #1
	cmp	w20, w26
	b.ne	LBB0_19
	b	LBB0_35
LBB0_20:
	ldr	w8, [x21, #24]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_29
; %bb.21:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_23
; %bb.22:
	ldr	w8, [x21]
	cbz	w8, LBB0_59
LBB0_23:
	str	wzr, [x21, #8]
	cmp	w20, #1
	b.lt	LBB0_32
; %bb.24:
	mov	w25, #0
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_26 Depth=1
	add	w25, w25, #1
	cmp	w20, w25
	b.eq	LBB0_33
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_PQgetvalue
	bl	_strlen
	ldr	w8, [x21, #8]
	cmp	w0, w8
	b.lt	LBB0_25
; %bb.27:                               ;   in Loop: Header=BB0_26 Depth=1
	add	w8, w0, #1
	str	w8, [x21, #8]
	b	LBB0_25
LBB0_28:
	mov	w25, #0
	b	LBB0_35
LBB0_29:
	cmp	w8, #128
	b.ne	LBB0_31
; %bb.30:
	ldr	w8, [x21, #8]
	add	w8, w8, #4
	b	LBB0_34
LBB0_31:
	ldr	w8, [x21, #28]
	b	LBB0_34
LBB0_32:
	mov	w8, #0
LBB0_33:
	ldr	w9, [x21, #28]
	mul	w8, w9, w8
	str	w8, [x21, #28]
LBB0_34:
	mul	w25, w8, w20
LBB0_35:
	ldr	w1, [x19, #8]
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_ecpg_log
	ldr	w1, [x19, #8]
	mov	x0, x25
	bl	_ecpg_auto_alloc
	str	x0, [x21, #16]
	cbz	x0, LBB0_10
; %bb.36:
	ldr	x8, [x21, #64]
	str	x0, [x8]
LBB0_37:
	ldr	w8, [x21, #4]
	cbz	w8, LBB0_39
; %bb.38:
	ldr	x8, [x21, #32]
	cbnz	x8, LBB0_40
LBB0_39:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_56
LBB0_40:
	ldr	w8, [x21, #8]
	cbnz	w8, LBB0_49
; %bb.41:
	ldr	w9, [x21]
	cbnz	w9, LBB0_49
; %bb.42:
	ldr	w9, [x21, #24]
	sub	w9, w9, #129
	cmp	w9, #2
	b.hi	LBB0_49
; %bb.43:
	ldr	x27, [x21, #16]
	cmp	w20, #1
	b.lt	LBB0_47
; %bb.44:
	mov	w25, #0
	add	w8, w20, #1
	add	x26, x27, w8, uxtw #3
LBB0_45:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_PQgetvalue
	bl	_strlen
	add	w28, w0, #1
	ldp	w9, w3, [x19, #4]
	ldr	w4, [x21, #24]
	ldr	x7, [x21, #40]
	ldp	w8, w5, [x21, #48]
	ldr	w10, [x19]
	stp	w9, w10, [sp, #16]
	stp	w8, w24, [sp, #8]
	stp	w28, wzr, [sp]
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	mov	x6, x26
	bl	_ecpg_get_data
	cbz	w0, LBB0_48
; %bb.46:                               ;   in Loop: Header=BB0_45 Depth=1
	str	x26, [x27], #8
	add	x26, x26, w28, sxtw
	add	w25, w25, #1
	cmp	w25, w20
	b.lt	LBB0_45
LBB0_47:
	mov	w0, #1
LBB0_48:
	str	xzr, [x27]
	b	LBB0_10
LBB0_49:
	cmp	w20, #1
	b.lt	LBB0_55
; %bb.50:
	mov	w25, #1
LBB0_51:                                ; =>This Inner Loop Header: Depth=1
	sub	w1, w25, #1
	ldp	w11, w3, [x19, #4]
	ldr	x6, [x21, #16]
	ldr	x7, [x21, #40]
	ldp	w4, w9, [x21, #24]
	ldp	w10, w5, [x21, #48]
	ldr	w12, [x19]
	stp	w11, w12, [sp, #16]
	stp	w10, w24, [sp, #8]
	stp	w8, w9, [sp]
	mov	x0, x23
	mov	x2, x22
	bl	_ecpg_get_data
	cbz	w0, LBB0_54
; %bb.52:                               ;   in Loop: Header=BB0_51 Depth=1
	cmp	w25, w20
	b.ge	LBB0_54
; %bb.53:                               ;   in Loop: Header=BB0_51 Depth=1
	ldr	w8, [x21, #8]
	add	w25, w25, #1
	b	LBB0_51
LBB0_54:
	cmp	w0, #0
	cset	w0, ne
	b	LBB0_10
LBB0_55:
	mov	w0, #1
	b	LBB0_10
LBB0_56:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_40
; %bb.57:
	ldr	w8, [x21, #48]
	mul	w0, w8, w20
	ldr	w1, [x19, #8]
	bl	_ecpg_auto_alloc
	str	x0, [x21, #40]
	cbz	x0, LBB0_10
; %bb.58:
	ldr	x8, [x21, #56]
	str	x0, [x8]
	b	LBB0_40
LBB0_59:
	cmp	w20, #1
	b.lt	LBB0_62
; %bb.60:
	mov	w25, #0
	mov	w26, #0
LBB0_61:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x25
	mov	x2, x22
	bl	_PQgetvalue
	bl	_strlen
	add	w8, w26, w0
	add	w26, w8, #1
	add	w25, w25, #1
	cmp	w20, w25
	b.ne	LBB0_61
	b	LBB0_63
LBB0_62:
	mov	w26, #0
LBB0_63:
	ldr	w8, [x21, #28]
	mul	w8, w8, w26
	add	w8, w8, w20, lsl #3
	add	w25, w8, #8
	b	LBB0_35
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ECPG_ARRAY_ERROR,4,2           ; @ECPG_ARRAY_ERROR
	.comm	_ECPG_OUT_OF_MEMORY,4,2         ; @ECPG_OUT_OF_MEMORY
	.comm	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY,4,2 ; @ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY
	.comm	_ECPG_ARRAY_NONE,4,2            ; @ECPG_ARRAY_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ecpg_store_result on line %d: incorrect number of matches; %d don't fit into array of %ld\n"

	.comm	_ECPG_INFORMIX_SUBSELECT_NOT_ONE,4,2 ; @ECPG_INFORMIX_SUBSELECT_NOT_ONE
	.comm	_ECPG_TOO_MANY_MATCHES,4,2      ; @ECPG_TOO_MANY_MATCHES
	.comm	_ECPG_SQLSTATE_CARDINALITY_VIOLATION,4,2 ; @ECPG_SQLSTATE_CARDINALITY_VIOLATION
	.comm	_ECPG_NO_ARRAY,4,2              ; @ECPG_NO_ARRAY
	.comm	_ECPG_SQLSTATE_DATATYPE_MISMATCH,4,2 ; @ECPG_SQLSTATE_DATATYPE_MISMATCH
l_.str.1:                               ; @.str.1
	.asciz	"ecpg_store_result on line %d: allocating memory for %d tuples\n"

.subsections_via_symbols
