	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ECPGnoticeReceiver
_ECPGnoticeReceiver:                    ## @ECPGnoticeReceiver
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_PG_DIAG_SQLSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r14
	movq	_PG_DIAG_MESSAGE_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PQresultErrorField
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_ECPGget_sqlca
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %rbx
	testq	%r14, %r14
	jne	LBB0_3
## %bb.2:
	movq	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_3:
	testq	%r15, %r15
	jne	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rdi
	callq	_ecpg_gettext
	movq	%rax, %r15
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movl	$2, %edx
	callq	_strncmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_ecpg_log
	movq	_ECPG_SQLSTATE_INVALID_CURSOR_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	_ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	_ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	_ECPG_SQLSTATE_DUPLICATE_CURSOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_strcmp
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_15
## %bb.13:
	movq	_ECPG_WARNING_PORTAL_EXISTS@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecpg_log                       ## TAILCALL
LBB0_16:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_ECPG_WARNING_UNKNOWN_PORTAL@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	_ECPG_WARNING_IN_TRANSACTION@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_ECPG_WARNING_NO_TRANSACTION@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r12d
LBB0_15:
	movq	32(%rbx), %rdi
	movq	%r14, %rsi
	movl	$8, %edx
	callq	_strncpy
	movl	%r12d, (%rbx)
	movq	8(%rbx), %rax
	movb	$87, 2(%rax)
	movq	8(%rbx), %rax
	movb	$87, (%rax)
	movq	16(%rbx), %rdi
	movq	%r15, %rsi
	movl	$8, %edx
	callq	_strncpy
	movq	16(%rbx), %rdi
	movq	$0, 56(%rdi)
	callq	_strlen
	movl	%eax, 24(%rbx)
	leaq	L_.str.4(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ecpg_log                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_DIAG_SQLSTATE,4,2           ## @PG_DIAG_SQLSTATE
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ## @PG_DIAG_MESSAGE_PRIMARY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,8,3 ## @ECPG_SQLSTATE_ECPG_INTERNAL_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"empty message text"

L_.str.2:                               ## @.str.2
	.asciz	"00"

L_.str.3:                               ## @.str.3
	.asciz	"ECPGnoticeReceiver: %s\n"

	.comm	_ECPG_SQLSTATE_INVALID_CURSOR_NAME,4,2 ## @ECPG_SQLSTATE_INVALID_CURSOR_NAME
	.comm	_ECPG_WARNING_UNKNOWN_PORTAL,4,2 ## @ECPG_WARNING_UNKNOWN_PORTAL
	.comm	_ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION,4,2 ## @ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION
	.comm	_ECPG_WARNING_IN_TRANSACTION,4,2 ## @ECPG_WARNING_IN_TRANSACTION
	.comm	_ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION,4,2 ## @ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION
	.comm	_ECPG_WARNING_NO_TRANSACTION,4,2 ## @ECPG_WARNING_NO_TRANSACTION
	.comm	_ECPG_SQLSTATE_DUPLICATE_CURSOR,4,2 ## @ECPG_SQLSTATE_DUPLICATE_CURSOR
	.comm	_ECPG_WARNING_PORTAL_EXISTS,4,2 ## @ECPG_WARNING_PORTAL_EXISTS
L_.str.4:                               ## @.str.4
	.asciz	"raising sqlcode %d\n"

	.no_dead_strip	_ECPGnoticeReceiver
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ECPGnoticeReceiver
_ECPGnoticeReceiver:                    ; @ECPGnoticeReceiver
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, _PG_DIAG_SQLSTATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PG_DIAG_SQLSTATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQresultErrorField
	mov	x21, x0
Lloh3:
	adrp	x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQresultErrorField
	mov	x20, x0
	bl	_ECPGget_sqlca
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x8, _ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ECPG_SQLSTATE_ECPG_INTERNAL_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x21, #0
	csel	x21, x8, x21, eq
	cbnz	x20, LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ecpg_gettext
	mov	x20, x0
LBB0_3:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	mov	w2, #2
	bl	_strncmp
	cbz	x0, LBB0_14
; %bb.4:
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_ecpg_log
Lloh15:
	adrp	x8, _ECPG_SQLSTATE_INVALID_CURSOR_NAME@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ECPG_SQLSTATE_INVALID_CURSOR_NAME@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_9
; %bb.5:
Lloh18:
	adrp	x8, _ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_10
; %bb.6:
Lloh21:
	adrp	x8, _ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.7:
Lloh24:
	adrp	x8, _ECPG_SQLSTATE_DUPLICATE_CURSOR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ECPG_SQLSTATE_DUPLICATE_CURSOR@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_strcmp
Lloh27:
	adrp	x8, _ECPG_WARNING_PORTAL_EXISTS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ECPG_WARNING_PORTAL_EXISTS@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	cmp	x0, #0
	csel	w22, w8, wzr, eq
	b	LBB0_13
LBB0_8:
Lloh30:
	adrp	x0, l_.str@PAGE
Lloh31:
	add	x0, x0, l_.str@PAGEOFF
	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
	add	sp, sp, #64
	b	_ecpg_log
LBB0_9:
Lloh32:
	adrp	x8, _ECPG_WARNING_UNKNOWN_PORTAL@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ECPG_WARNING_UNKNOWN_PORTAL@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh34:
	adrp	x8, _ECPG_WARNING_IN_TRANSACTION@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ECPG_WARNING_IN_TRANSACTION@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh36:
	adrp	x8, _ECPG_WARNING_NO_TRANSACTION@GOTPAGE
Lloh37:
	ldr	x8, [x8, _ECPG_WARNING_NO_TRANSACTION@GOTPAGEOFF]
LBB0_12:
	ldr	w22, [x8]
LBB0_13:
	ldr	x0, [x19, #32]
	mov	x1, x21
	mov	w2, #8
	bl	_strncpy
	str	w22, [x19]
	ldr	x8, [x19, #8]
	mov	w9, #87
	strb	w9, [x8, #2]
	ldr	x8, [x19, #8]
	strb	w9, [x8]
	ldr	x0, [x19, #16]
	mov	x1, x20
	mov	w2, #8
	bl	_strncpy
	ldr	x0, [x19, #16]
	str	xzr, [x0, #56]
	bl	_strlen
	str	w0, [x19, #24]
	str	x22, [sp]
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_ecpg_log
LBB0_14:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_DIAG_SQLSTATE,4,2           ; @PG_DIAG_SQLSTATE
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ; @PG_DIAG_MESSAGE_PRIMARY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_ECPG_SQLSTATE_ECPG_INTERNAL_ERROR,8,3 ; @ECPG_SQLSTATE_ECPG_INTERNAL_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"empty message text"

l_.str.2:                               ; @.str.2
	.asciz	"00"

l_.str.3:                               ; @.str.3
	.asciz	"ECPGnoticeReceiver: %s\n"

	.comm	_ECPG_SQLSTATE_INVALID_CURSOR_NAME,4,2 ; @ECPG_SQLSTATE_INVALID_CURSOR_NAME
	.comm	_ECPG_WARNING_UNKNOWN_PORTAL,4,2 ; @ECPG_WARNING_UNKNOWN_PORTAL
	.comm	_ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION,4,2 ; @ECPG_SQLSTATE_ACTIVE_SQL_TRANSACTION
	.comm	_ECPG_WARNING_IN_TRANSACTION,4,2 ; @ECPG_WARNING_IN_TRANSACTION
	.comm	_ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION,4,2 ; @ECPG_SQLSTATE_NO_ACTIVE_SQL_TRANSACTION
	.comm	_ECPG_WARNING_NO_TRANSACTION,4,2 ; @ECPG_WARNING_NO_TRANSACTION
	.comm	_ECPG_SQLSTATE_DUPLICATE_CURSOR,4,2 ; @ECPG_SQLSTATE_DUPLICATE_CURSOR
	.comm	_ECPG_WARNING_PORTAL_EXISTS,4,2 ; @ECPG_WARNING_PORTAL_EXISTS
l_.str.4:                               ; @.str.4
	.asciz	"raising sqlcode %d\n"

	.no_dead_strip	_ECPGnoticeReceiver
.subsections_via_symbols
