	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_build_native_sqlda        ## -- Begin function ecpg_build_native_sqlda
	.p2align	4, 0x90
_ecpg_build_native_sqlda:               ## @ecpg_build_native_sqlda
	.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	%ecx, %r14d
	movq	%rsi, %r15
	movl	%edi, %r13d
	movq	%rsi, %rdi
	movl	%edx, %esi
	movl	%ecx, %edx
	callq	_sqlda_native_total_size
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r13d, %esi
	callq	_ecpg_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %rdi
	xorl	%esi, %esi
	movq	%rbx, %rdx
	callq	_memset
	movl	24(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movq	%r15, %rdi
	callq	_PQnfields
	movl	%eax, 4(%r12)
	movl	%eax, (%r12)
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_ecpg_log
	movl	(%r12), %eax
	leal	28(,%rax,4), %ecx
	movl	%ecx, 8(%r12)
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_PQftype
	movl	%eax, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_sqlda_dynamic_type
	movq	16(%r12), %rcx
	movl	%eax, 8(%rcx,%r14)
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_PQfname
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_strlen
	movq	16(%r12), %rcx
	movl	%eax, 4(%rcx,%r14)
	movl	(%rcx,%r14), %edi
	movq	%r13, %rsi
	callq	_strcpy
	incq	%rbx
	movslq	(%r12), %rax
	addq	$12, %r14
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_1:
	xorl	%r12d, %r12d
LBB0_5:
	movq	%r12, %rax
	addq	$8, %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	"SQLDA  "

L_.str.1:                               ## @.str.1
	.asciz	"ecpg_build_native_sqlda on line %d sqld = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_build_native_sqlda        ; -- Begin function ecpg_build_native_sqlda
	.p2align	2
_ecpg_build_native_sqlda:               ; @ecpg_build_native_sqlda
	.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	x19, x3
	mov	x20, x1
	mov	x22, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_sqlda_native_total_size
	mov	x23, x0
	mov	x1, x22
	bl	_ecpg_alloc
	mov	x21, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x21
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	ldr	w0, [x21, #24]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	mov	x0, x20
	bl	_PQnfields
	mov	x2, x0
	stp	w0, w0, [x21]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	bl	_ecpg_log
	ldr	w8, [x21]
	lsl	w9, w8, #2
	add	w9, w9, #28
	str	w9, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x24, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_PQftype
	mov	x1, x19
	bl	_sqlda_dynamic_type
	ldr	x8, [x21, #16]
	add	x8, x8, x24
	str	w0, [x8, #8]
	mov	x0, x20
	mov	x1, x22
	bl	_PQfname
	mov	x23, x0
	bl	_strlen
	ldr	x8, [x21, #16]
	add	x8, x8, x24
	str	w0, [x8, #4]
	ldr	w0, [x8]
	mov	x1, x23
	bl	_strcpy
	add	x22, x22, #1
	ldrsw	x8, [x21]
	add	x24, x24, #12
	cmp	x22, x8
	b.lt	LBB0_3
LBB0_4:
	mov	x0, x21
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SQLDA  "

l_.str.1:                               ; @.str.1
	.asciz	"ecpg_build_native_sqlda on line %d sqld = %d\n"

.subsections_via_symbols
