	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGget_desc_header            ## -- Begin function ECPGget_desc_header
	.p2align	4, 0x90
_ECPGget_desc_header:                   ## @ECPGget_desc_header
	.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
	movq	%rdx, %r14
	movq	%rsi, %r13
	movl	%edi, %r12d
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_ECPGget_sqlca
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_ecpg_init_sqlca
	movl	%r12d, %edi
	movq	%r13, %rsi
	callq	_ecpg_result_by_descriptor
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	%rax, %rdi
	callq	_PQnfields
	movl	%eax, (%r14)
	movq	(%rbx), %rax
	movl	$1, 8(%rax)
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdi
	callq	_ecpg_log
	movl	$1, %r15d
	jmp	LBB0_4
LBB0_1:
	movq	_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r15d, %r15d
	movl	%r12d, %edi
	xorl	%ecx, %ecx
	callq	_ecpg_raise
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ECPGget_desc_header: found %d attributes\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ECPGget_desc_header            ; -- Begin function ECPGget_desc_header
	.p2align	2
_ECPGget_desc_header:                   ; @ECPGget_desc_header
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	bl	_ECPGget_sqlca
	mov	x20, x0
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_ecpg_init_sqlca
	mov	x0, x21
	mov	x1, x22
	bl	_ecpg_result_by_descriptor
	cbz	x0, LBB0_4
; %bb.2:
	bl	_PQnfields
	str	w0, [x19]
	ldr	x8, [x20]
	mov	w20, #1
	str	w20, [x8, #8]
	ldr	w1, [x19]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ecpg_log
	b	LBB0_5
LBB0_3:
Lloh2:
	adrp	x8, _ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ECPG_SQLSTATE_ECPG_OUT_OF_MEMORY@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, #0
	bl	_ecpg_raise
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ECPGget_desc_header: found %d attributes\n"

.subsections_via_symbols
