	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_raise_backend             ## -- Begin function ecpg_raise_backend
	.p2align	4, 0x90
_ecpg_raise_backend:                    ## @ecpg_raise_backend
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movq	%rdx, %r12
	movq	%rsi, %r13
	movl	%edi, %ebx
	xorl	%eax, %eax
	callq	_ECPGget_sqlca
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	testq	%r13, %r13
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_6
## %bb.3:
	movq	_PG_DIAG_SQLSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movq	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
LBB0_5:
	movq	_PG_DIAG_MESSAGE_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_PQresultErrorField
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_ecpg_log
	jmp	LBB0_20
LBB0_6:
	movq	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	%r12, %rdi
	movq	(%rax), %r12
	callq	_PQerrorMessage
LBB0_7:
	movq	%rax, %r14
	movq	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_PQstatus
	movq	_CONNECTION_BAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.2(%rip), %rdi
	callq	_ecpg_gettext
	movq	%rax, %r14
	leaq	L_.str.1(%rip), %r12
LBB0_10:
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$4, %esi
	movq	%r14, %rcx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_snprintf
	movl	(%r15), %edi
	callq	_strlen
	movl	%eax, 4(%r15)
	movl	12(%r15), %edi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_strncpy
	movl	12(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.14:
	movl	12(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	$4, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_15
## %bb.18:
	movq	_ECPG_PGSQL@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_11:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_INFORMIX_MODE
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	movq	_ECPG_DUPLICATE_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_15:
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_INFORMIX_MODE
	testq	%rax, %rax
	jne	LBB0_16
## %bb.17:
	movq	_ECPG_SUBSELECT_NOT_ONE@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_12:
	movq	_ECPG_INFORMIX_DUPLICATE_KEY@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_16:
	movq	_ECPG_INFORMIX_SUBSELECT_NOT_ONE@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %ecx
	movl	%ecx, 8(%r15)
	movl	(%r15), %r8d
	movl	12(%r15), %edx
	leaq	L_.str.6(%rip), %rdi
	movl	$4, %esi
	xorl	%eax, %eax
	callq	_ecpg_log
LBB0_20:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ECPGfree_auto_mem              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_PG_DIAG_SQLSTATE,4,2           ## @PG_DIAG_SQLSTATE
	.comm	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,8,3 ## @ECPG_SQLSTATE_ECPG_INTERNAL_ERROR
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ## @PG_DIAG_MESSAGE_PRIMARY
	.comm	_CONNECTION_BAD,8,3             ## @CONNECTION_BAD
L_.str.1:                               ## @.str.1
	.asciz	"57P02"

L_.str.2:                               ## @.str.2
	.asciz	"the connection to the server was lost"

L_.str.3:                               ## @.str.3
	.asciz	"%s on line %d"

L_.str.4:                               ## @.str.4
	.asciz	"23505"

	.comm	_ECPG_INFORMIX_DUPLICATE_KEY,4,2 ## @ECPG_INFORMIX_DUPLICATE_KEY
	.comm	_ECPG_DUPLICATE_KEY,4,2         ## @ECPG_DUPLICATE_KEY
L_.str.5:                               ## @.str.5
	.asciz	"21000"

	.comm	_ECPG_INFORMIX_SUBSELECT_NOT_ONE,4,2 ## @ECPG_INFORMIX_SUBSELECT_NOT_ONE
	.comm	_ECPG_SUBSELECT_NOT_ONE,4,2     ## @ECPG_SUBSELECT_NOT_ONE
	.comm	_ECPG_PGSQL,4,2                 ## @ECPG_PGSQL
L_.str.6:                               ## @.str.6
	.asciz	"raising sqlstate %.*s (sqlcode %ld): %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ecpg_raise_backend             ; -- Begin function ecpg_raise_backend
	.p2align	2
_ecpg_raise_backend:                    ; @ecpg_raise_backend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x3
	mov	x23, x2
	mov	x24, x1
	mov	x21, x0
	bl	_ECPGget_sqlca
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x25, _ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPAGEOFF]
	cbz	x24, LBB0_4
; %bb.2:
Lloh2:
	adrp	x8, _PG_DIAG_SQLSTATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PG_DIAG_SQLSTATE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_PQresultErrorField
	ldr	x8, [x25]
	cmp	x0, #0
	csel	x22, x8, x0, eq
Lloh5:
	adrp	x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x24
	bl	_PQresultErrorField
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_15
LBB0_4:
	ldr	x22, [x25]
	mov	x0, x23
	bl	_PQerrorMessage
LBB0_5:
	mov	x24, x0
	ldr	x1, [x25]
	mov	x0, x22
	bl	_strcmp
	cbnz	x0, LBB0_8
; %bb.6:
	mov	x0, x23
	bl	_PQstatus
Lloh10:
	adrp	x8, _CONNECTION_BAD@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CONNECTION_BAD@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.7:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_ecpg_gettext
	mov	x24, x0
Lloh15:
	adrp	x22, l_.str.1@PAGE
Lloh16:
	add	x22, x22, l_.str.1@PAGEOFF
LBB0_8:
	ldr	w0, [x19]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #4
	mov	x3, x24
	mov	x4, x21
	bl	_snprintf
	ldr	w0, [x19]
	bl	_strlen
	str	w0, [x19, #4]
	ldr	w0, [x19, #12]
	mov	x1, x22
	mov	w2, #4
	bl	_strncpy
	ldr	w0, [x19, #12]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_11
; %bb.9:
	ldr	w0, [x19, #12]
Lloh21:
	adrp	x1, l_.str.5@PAGE
Lloh22:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	w2, #4
	bl	_strncmp
	cbz	x0, LBB0_12
; %bb.10:
Lloh23:
	adrp	x8, _ECPG_PGSQL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ECPG_PGSQL@GOTPAGEOFF]
	b	LBB0_14
LBB0_11:
	mov	x0, x20
	bl	_INFORMIX_MODE
Lloh25:
	adrp	x8, _ECPG_INFORMIX_DUPLICATE_KEY@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ECPG_INFORMIX_DUPLICATE_KEY@GOTPAGEOFF]
Lloh27:
	adrp	x9, _ECPG_DUPLICATE_KEY@GOTPAGE
Lloh28:
	ldr	x9, [x9, _ECPG_DUPLICATE_KEY@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	x0, x20
	bl	_INFORMIX_MODE
Lloh29:
	adrp	x8, _ECPG_INFORMIX_SUBSELECT_NOT_ONE@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ECPG_INFORMIX_SUBSELECT_NOT_ONE@GOTPAGEOFF]
Lloh31:
	adrp	x9, _ECPG_SUBSELECT_NOT_ONE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _ECPG_SUBSELECT_NOT_ONE@GOTPAGEOFF]
LBB0_13:
	cmp	x0, #0
	csel	x8, x9, x8, eq
LBB0_14:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w9, [x19, #12]
	ldr	w10, [x19]
	stp	x8, x10, [sp, #16]
	mov	w8, #4
	stp	x8, x9, [sp]
Lloh33:
	adrp	x0, l_.str.6@PAGE
Lloh34:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_15:
	bl	_ecpg_log
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_ECPGfree_auto_mem
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_PG_DIAG_SQLSTATE,4,2           ; @PG_DIAG_SQLSTATE
	.comm	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,8,3 ; @ECPG_SQLSTATE_ECPG_INTERNAL_ERROR
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ; @PG_DIAG_MESSAGE_PRIMARY
	.comm	_CONNECTION_BAD,8,3             ; @CONNECTION_BAD
l_.str.1:                               ; @.str.1
	.asciz	"57P02"

l_.str.2:                               ; @.str.2
	.asciz	"the connection to the server was lost"

l_.str.3:                               ; @.str.3
	.asciz	"%s on line %d"

l_.str.4:                               ; @.str.4
	.asciz	"23505"

	.comm	_ECPG_INFORMIX_DUPLICATE_KEY,4,2 ; @ECPG_INFORMIX_DUPLICATE_KEY
	.comm	_ECPG_DUPLICATE_KEY,4,2         ; @ECPG_DUPLICATE_KEY
l_.str.5:                               ; @.str.5
	.asciz	"21000"

	.comm	_ECPG_INFORMIX_SUBSELECT_NOT_ONE,4,2 ; @ECPG_INFORMIX_SUBSELECT_NOT_ONE
	.comm	_ECPG_SUBSELECT_NOT_ONE,4,2     ; @ECPG_SUBSELECT_NOT_ONE
	.comm	_ECPG_PGSQL,4,2                 ; @ECPG_PGSQL
l_.str.6:                               ; @.str.6
	.asciz	"raising sqlstate %.*s (sqlcode %ld): %s\n"

.subsections_via_symbols
