	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pqGetErrorNotice2
_pqGetErrorNotice2:                     ## @pqGetErrorNotice2
	.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, %r12
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_pqClearAsyncResult
LBB0_2:
	leaq	-56(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_initPQExpBuffer
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_pqGets
	testq	%rax, %rax
	je	LBB0_3
## %bb.32:
	leaq	-56(%rbp), %rdi
	callq	_termPQExpBuffer
	movq	_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_33
LBB0_3:
	movq	_PGRES_EMPTY_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_PQmakeEmptyPGresult
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	testl	%r15d, %r15d
	jne	LBB0_5
## %bb.6:
	movq	_PGRES_NONFATAL_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_PGRES_FATAL_ERROR@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pqResultStrdup
	movl	%eax, 16(%r14)
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	-56(%rbp), %rcx
	decl	%eax
	cmpb	$10, (%rcx,%rax)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%eax, -48(%rbp)
	movb	$0, (%rcx,%rax)
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-48(%rbp), %eax
	testl	%eax, %eax
	jg	LBB0_9
LBB0_11:
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %r13
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%rax, %rbx
	movb	$0, (%rax)
	movq	_PG_DIAG_SEVERITY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_pqSaveMessageField
	addq	$3, %rbx
	movq	%rbx, %r13
LBB0_13:
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	movq	%rax, %r15
	movb	$0, (%rax)
	movq	_PG_DIAG_MESSAGE_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
	callq	_pqSaveMessageField
	incq	%r15
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	movzbl	(%r15), %eax
	testb	%al, %al
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movzbl	%al, %edi
	callq	_isspace
	leaq	1(%rbx), %r15
	testq	%rax, %rax
	jne	LBB0_15
LBB0_17:
	movq	_PG_DIAG_MESSAGE_DETAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	jmp	LBB0_19
LBB0_18:
	movq	_PG_DIAG_MESSAGE_PRIMARY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%r13, %rdx
LBB0_19:
	callq	_pqSaveMessageField
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_27
## %bb.20:
	movq	%r12, %rdi
	callq	_pqClearAsyncResult
	movq	%r14, 16(%r12)
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	callq	_resetPQExpBuffer
	testq	%r14, %r14
	je	LBB0_24
## %bb.21:
	movq	-56(%rbp), %rdi
	movl	-48(%rbp), %esi
	callq	_PQExpBufferDataBroken
	testl	%eax, %eax
	je	LBB0_22
LBB0_24:
	leaq	L_.str.1(%rip), %rdi
	callq	_libpq_gettext
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_printfPQExpBuffer
LBB0_25:
	movq	(%r12), %rax
	movq	_PQTRANS_INTRANS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.26:
	movq	_PQTRANS_INERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_31
LBB0_27:
	testq	%r14, %r14
	je	LBB0_31
## %bb.28:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_30
## %bb.29:
	movl	(%r14), %edi
	movq	%r14, %rsi
	callq	*%rax
LBB0_30:
	movq	%r14, %rdi
	callq	_PQclear
LBB0_31:
	leaq	-56(%rbp), %rdi
	callq	_termPQExpBuffer
	xorl	%eax, %eax
LBB0_33:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	16(%r14), %esi
	testl	%esi, %esi
	je	LBB0_24
## %bb.23:
	movq	%rbx, %rdi
	callq	_appendPQExpBufferStr
	jmp	LBB0_25
	.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
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	":  "

	.comm	_PG_DIAG_SEVERITY,4,2           ## @PG_DIAG_SEVERITY
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ## @PG_DIAG_MESSAGE_PRIMARY
	.comm	_PG_DIAG_MESSAGE_DETAIL,4,2     ## @PG_DIAG_MESSAGE_DETAIL
L_.str.1:                               ## @.str.1
	.asciz	"out of memory"

	.comm	_PQTRANS_INTRANS,8,3            ## @PQTRANS_INTRANS
	.comm	_PQTRANS_INERROR,8,3            ## @PQTRANS_INERROR
	.comm	_EOF,4,2                        ## @EOF
	.no_dead_strip	_pqGetErrorNotice2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pqGetErrorNotice2
_pqGetErrorNotice2:                     ; @pqGetErrorNotice2
	.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:
	mov	x0, sp
	bl	_initPQExpBuffer
	mov	x0, sp
	mov	x1, x19
	bl	_pqGets
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, sp
	bl	_termPQExpBuffer
Lloh0:
	adrp	x8, _EOF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EOF@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	LBB0_28
LBB0_4:
Lloh3:
	adrp	x8, _PGRES_EMPTY_QUERY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PGRES_EMPTY_QUERY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_PQmakeEmptyPGresult
	mov	x20, x0
	cbz	x0, LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _PGRES_FATAL_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PGRES_FATAL_ERROR@GOTPAGEOFF]
Lloh8:
	adrp	x9, _PGRES_NONFATAL_ERROR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PGRES_NONFATAL_ERROR@GOTPAGEOFF]
	cmp	w21, #0
	csel	x8, x9, x8, eq
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldr	x1, [sp]
	mov	x0, x20
	bl	_pqResultStrdup
	str	w0, [x20, #16]
LBB0_6:
	ldr	w8, [sp, #8]
	cmp	w8, #1
	b.lt	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [sp]
	sub	w8, w8, #1
	ldrb	w10, [x9, x8]
	cmp	w10, #10
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w8, [sp, #8]
	strb	wzr, [x9, x8]
	ldr	w8, [sp, #8]
	cmp	w8, #0
	b.gt	LBB0_7
LBB0_9:
	ldr	x22, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_strstr
	cbz	x0, LBB0_11
; %bb.10:
	mov	x23, x0
	strb	wzr, [x23], #3
Lloh12:
	adrp	x8, _PG_DIAG_SEVERITY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PG_DIAG_SEVERITY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x2, [sp]
	mov	x0, x20
	bl	_pqSaveMessageField
	mov	x22, x23
LBB0_11:
	mov	x0, x22
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_16
; %bb.12:
	mov	x23, x0
	strb	wzr, [x23], #1
Lloh15:
	adrp	x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_pqSaveMessageField
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x23
	ldrb	w0, [x23]
	cbz	w0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	bl	_isspace
	add	x23, x22, #1
	cbnz	x0, LBB0_13
LBB0_15:
Lloh18:
	adrp	x8, _PG_DIAG_MESSAGE_DETAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_DETAIL@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
Lloh20:
	adrp	x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PG_DIAG_MESSAGE_PRIMARY@GOTPAGEOFF]
LBB0_17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x22
	bl	_pqSaveMessageField
	cbz	w21, LBB0_23
; %bb.18:
	mov	x0, x19
	bl	_pqClearAsyncResult
	str	x20, [x19, #16]
	add	x21, x19, #8
	mov	x0, x21
	bl	_resetPQExpBuffer
	cbz	x20, LBB0_20
; %bb.19:
	ldp	x0, x1, [sp]
	bl	_PQExpBufferDataBroken
	cbz	w0, LBB0_29
LBB0_20:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_libpq_gettext
	mov	x1, x0
	mov	x0, x21
	bl	_printfPQExpBuffer
LBB0_21:
	ldr	x8, [x19]
Lloh24:
	adrp	x9, _PQTRANS_INTRANS@GOTPAGE
Lloh25:
	ldr	x9, [x9, _PQTRANS_INTRANS@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_27
; %bb.22:
Lloh27:
	adrp	x8, _PQTRANS_INERROR@GOTPAGE
Lloh28:
	ldr	x8, [x8, _PQTRANS_INERROR@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_27
LBB0_23:
	cbz	x20, LBB0_27
; %bb.24:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_26
; %bb.25:
	ldr	w0, [x20]
	mov	x1, x20
	blr	x8
LBB0_26:
	mov	x0, x20
	bl	_PQclear
LBB0_27:
	mov	x0, sp
	bl	_termPQExpBuffer
	mov	w0, #0
LBB0_28:
	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_29:
	ldr	w1, [x20, #16]
	cbz	w1, LBB0_20
; %bb.30:
	mov	x0, x21
	bl	_appendPQExpBufferStr
	b	LBB0_21
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.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
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	":  "

	.comm	_PG_DIAG_SEVERITY,4,2           ; @PG_DIAG_SEVERITY
	.comm	_PG_DIAG_MESSAGE_PRIMARY,4,2    ; @PG_DIAG_MESSAGE_PRIMARY
	.comm	_PG_DIAG_MESSAGE_DETAIL,4,2     ; @PG_DIAG_MESSAGE_DETAIL
l_.str.1:                               ; @.str.1
	.asciz	"out of memory"

	.comm	_PQTRANS_INTRANS,8,3            ; @PQTRANS_INTRANS
	.comm	_PQTRANS_INERROR,8,3            ; @PQTRANS_INERROR
	.comm	_EOF,4,2                        ; @EOF
	.no_dead_strip	_pqGetErrorNotice2
.subsections_via_symbols
