	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pdo_pgsql_error               ## -- Begin function _pdo_pgsql_error
	.p2align	4, 0x90
__pdo_pgsql_error:                      ## @_pdo_pgsql_error
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	leaq	8(%rdi), %rax
	testq	%rsi, %rsi
	cmovneq	%rsi, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edi
	callq	_PQerrorMessage
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, 8(%r14)
	movq	%r12, 16(%r14)
	movl	16(%rbp), %eax
	movl	%eax, 24(%r14)
	movq	32(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %esi
	callq	_pefree
	movq	$0, 32(%r14)
LBB0_2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	movq	%r13, %rdi
	callq	_strlen
	cmpl	$4, %eax
	jb	LBB0_5
LBB0_4:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	movq	%r13, %rsi
LBB0_6:
	callq	_strcpy
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	callq	_estrdup
	jmp	LBB0_10
LBB0_8:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.9:
	movl	4(%rbx), %esi
	callq	__pdo_pgsql_trim_message
LBB0_10:
	movq	%rax, 32(%r14)
LBB0_11:
	cmpl	$0, (%rbx)
	jne	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_php_pdo_get_exception
	movl	8(%r14), %esi
	movl	(%r15), %ecx
	movq	32(%r14), %r9
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %edi
	movl	%esi, %r8d
	callq	_zend_throw_exception_ex
LBB0_13:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HY000"

L_.str.1:                               ## @.str.1
	.asciz	"SQLSTATE[%s] [%d] %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pdo_pgsql_error               ; -- Begin function _pdo_pgsql_error
	.p2align	2
__pdo_pgsql_error:                      ; @_pdo_pgsql_error
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x24, x6
	mov	x25, x5
	mov	x21, x4
	mov	x23, x3
	mov	x19, x2
	mov	x20, x0
	ldr	x26, [x0, #16]
	add	x8, x0, #8
	cmp	x1, #0
	csel	x27, x8, x1, eq
	ldr	w0, [x26]
	bl	_PQerrorMessage
	mov	x22, x0
	str	w19, [x26, #8]
	str	x25, [x26, #16]
	str	w24, [x26, #24]
	ldr	x0, [x26, #32]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w1, [x20, #4]
	bl	_pefree
	str	xzr, [x26, #32]
LBB0_2:
	cbz	x23, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_strlen
	cmp	w0, #4
	b.lo	LBB0_6
LBB0_4:
	ldr	w0, [x27]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	cbz	x21, LBB0_7
LBB0_5:
	mov	x0, x21
	bl	_estrdup
	b	LBB0_9
LBB0_6:
	ldr	w0, [x27]
	mov	x1, x23
	bl	_strcpy
	cbnz	x21, LBB0_5
LBB0_7:
	cbz	x22, LBB0_10
; %bb.8:
	ldr	w1, [x20, #4]
	mov	x0, x22
	bl	__pdo_pgsql_trim_message
LBB0_9:
	str	x0, [x26, #32]
LBB0_10:
	ldr	w8, [x20]
	cbnz	w8, LBB0_12
; %bb.11:
	bl	_php_pdo_get_exception
	ldr	w1, [x26, #8]
	ldr	w3, [x27]
	ldr	x5, [x26, #32]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x4, x1
	bl	_zend_throw_exception_ex
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HY000"

l_.str.1:                               ; @.str.1
	.asciz	"SQLSTATE[%s] [%d] %s"

.subsections_via_symbols
