	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetErrorNotice3              ## -- Begin function pqGetErrorNotice3
	.p2align	4, 0x90
_pqGetErrorNotice3:                     ## @pqGetErrorNotice3
	.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	%esi, %r15d
	movq	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_pqClearAsyncResult
LBB0_2:
	leaq	-56(%rbp), %rdi
	callq	_initPQExpBuffer
	movq	_PGRES_EMPTY_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_PQmakeEmptyPGresult
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	testl	%r15d, %r15d
	jne	LBB0_4
## %bb.5:
	movq	_PGRES_NONFATAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PGRES_FATAL_ERROR@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
LBB0_7:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	leaq	-41(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_pqGetc
	testq	%rax, %rax
	je	LBB0_8
LBB0_15:
	movq	%r14, %rdi
	callq	_PQclear
	leaq	-56(%rbp), %rdi
	callq	_termPQExpBuffer
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%r15d, %r15d
	leaq	-56(%rbp), %r12
	leaq	-41(%rbp), %r13
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	_PG_DIAG_STATEMENT_POSITION@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	movl	$1, %eax
	cmovel	%eax, %r15d
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_pqGetc
	testq	%rax, %rax
	jne	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$0, -41(%rbp)
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pqGets
	testq	%rax, %rax
	jne	LBB0_15
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	movsbl	-41(%rbp), %esi
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pqSaveMessageField
	movzbl	-41(%rbp), %eax
	movq	_PG_DIAG_SQLSTATE@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	32(%rbx), %edi
	movq	-56(%rbp), %rsi
	movl	$4, %edx
	callq	_strlcpy
	jmp	LBB0_14
LBB0_16:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.17:
	movq	24(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.18:
	testq	%r14, %r14
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_pqResultStrdup
	movq	%rax, 24(%r14)
LBB0_20:
	leaq	-56(%rbp), %r12
	movq	%r12, %rdi
	callq	_resetPQExpBuffer
	movl	16(%rbx), %ecx
	movl	20(%rbx), %edx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_pqBuildErrorMessage3
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.21:
	testq	%r14, %r14
	je	LBB0_23
## %bb.22:
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pqResultStrdup
	movq	%rax, 16(%r14)
LBB0_23:
	movq	%rbx, %rdi
	callq	_pqClearAsyncResult
	movq	%r14, 8(%rbx)
	movq	-56(%rbp), %rdi
	callq	_PQExpBufferDataBroken
	testq	%rax, %rax
	je	LBB0_25
## %bb.24:
	leaq	L_.str(%rip), %rdi
	callq	_libpq_gettext
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
	jmp	LBB0_30
LBB0_26:
	testq	%r14, %r14
	je	LBB0_30
## %bb.27:
	movq	-56(%rbp), %rax
	movq	%rax, 16(%r14)
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_29
## %bb.28:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	*%rax
LBB0_29:
	movq	%r14, %rdi
	callq	_PQclear
	jmp	LBB0_30
LBB0_25:
	movq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
LBB0_30:
	leaq	-56(%rbp), %rdi
	callq	_termPQExpBuffer
	xorl	%eax, %eax
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
	.comm	_PGRES_EMPTY_QUERY,4,2          ## @PGRES_EMPTY_QUERY
	.comm	_PGRES_FATAL_ERROR,4,2          ## @PGRES_FATAL_ERROR
	.comm	_PGRES_NONFATAL_ERROR,4,2       ## @PGRES_NONFATAL_ERROR
	.comm	_PG_DIAG_SQLSTATE,1,0           ## @PG_DIAG_SQLSTATE
	.comm	_PG_DIAG_STATEMENT_POSITION,1,0 ## @PG_DIAG_STATEMENT_POSITION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pqGetErrorNotice3              ; -- Begin function pqGetErrorNotice3
	.p2align	2
_pqGetErrorNotice3:                     ; @pqGetErrorNotice3
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x1
	mov	x19, x0
	cbz	w1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_pqClearAsyncResult
LBB0_2:
	add	x0, sp, #8
	bl	_initPQExpBuffer
Lloh0:
	adrp	x8, _PGRES_EMPTY_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PGRES_EMPTY_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQmakeEmptyPGresult
	mov	x20, x0
	cbz	x0, LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _PGRES_FATAL_ERROR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGRES_FATAL_ERROR@GOTPAGEOFF]
Lloh5:
	adrp	x9, _PGRES_NONFATAL_ERROR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PGRES_NONFATAL_ERROR@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x20, #32]
LBB0_4:
	add	x0, sp, #7
	mov	x1, x19
	bl	_pqGetc
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_PQclear
	add	x0, sp, #8
	bl	_termPQExpBuffer
Lloh7:
	adrp	x8, _EOF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_7:
	mov	w22, #0
Lloh10:
	adrp	x23, _PG_DIAG_SQLSTATE@GOTPAGE
Lloh11:
	ldr	x23, [x23, _PG_DIAG_SQLSTATE@GOTPAGEOFF]
Lloh12:
	adrp	x24, _PG_DIAG_STATEMENT_POSITION@GOTPAGE
Lloh13:
	ldr	x24, [x24, _PG_DIAG_STATEMENT_POSITION@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldrb	w9, [x24]
	cmp	w8, w9
	csinc	w22, w22, wzr, ne
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #7
	mov	x1, x19
	bl	_pqGetc
	cbnz	x0, LBB0_5
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [sp, #7]
	cbz	w8, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x0, sp, #8
	mov	x1, x19
	bl	_pqGets
	cbnz	x0, LBB0_5
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldrsb	w1, [sp, #7]
	ldr	x2, [sp, #8]
	mov	x0, x20
	bl	_pqSaveMessageField
	ldrb	w8, [sp, #7]
	ldrb	w9, [x23]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w0, [x19, #32]
	ldr	x1, [sp, #8]
	mov	w2, #4
	bl	_strlcpy
	b	LBB0_9
LBB0_14:
	cbz	w22, LBB0_17
; %bb.15:
	ldr	x1, [x19, #24]
	cmp	x1, #0
	ccmp	x20, #0, #4, ne
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x20
	bl	_pqResultStrdup
	str	x0, [x20, #24]
LBB0_17:
	add	x0, sp, #8
	bl	_resetPQExpBuffer
	ldp	w3, w2, [x19, #16]
	add	x0, sp, #8
	mov	x1, x20
	bl	_pqBuildErrorMessage3
	cbz	w21, LBB0_22
; %bb.18:
	cbz	x20, LBB0_20
; %bb.19:
	ldr	x1, [sp, #8]
	mov	x0, x20
	bl	_pqResultStrdup
	str	x0, [x20, #16]
LBB0_20:
	mov	x0, x19
	bl	_pqClearAsyncResult
	str	x20, [x19, #8]
	ldr	x0, [sp, #8]
	bl	_PQExpBufferDataBroken
	cbz	x0, LBB0_26
; %bb.21:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x19
	bl	_printfPQExpBuffer
	b	LBB0_27
LBB0_22:
	cbz	x20, LBB0_27
; %bb.23:
	ldr	x8, [sp, #8]
	str	x8, [x20, #16]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_25
; %bb.24:
	ldr	w0, [x20]
	mov	x1, x20
	blr	x8
LBB0_25:
	mov	x0, x20
	bl	_PQclear
	b	LBB0_27
LBB0_26:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_appendPQExpBufferStr
LBB0_27:
	add	x0, sp, #8
	bl	_termPQExpBuffer
	mov	w0, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_PGRES_EMPTY_QUERY,4,2          ; @PGRES_EMPTY_QUERY
	.comm	_PGRES_FATAL_ERROR,4,2          ; @PGRES_FATAL_ERROR
	.comm	_PGRES_NONFATAL_ERROR,4,2       ; @PGRES_NONFATAL_ERROR
	.comm	_PG_DIAG_SQLSTATE,1,0           ; @PG_DIAG_SQLSTATE
	.comm	_PG_DIAG_STATEMENT_POSITION,1,0 ; @PG_DIAG_STATEMENT_POSITION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
