	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdo_pgsql_last_insert_id
_pdo_pgsql_last_insert_id:              ## @pdo_pgsql_last_insert_id
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	(%rdi), %rax
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, -48(%rbp)
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %r8
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	pushq	$0
	pushq	$0
	callq	_PQexecParams
	addq	$16, %rsp
	jmp	LBB0_3
LBB0_1:
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PQexec
LBB0_3:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PQresultStatus
	movq	%rax, %r12
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	movq	_PGRES_TUPLES_OK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r12
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetvalue
	movq	%rax, %rdi
	callq	_estrdup
	movq	%rax, %r15
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_PQgetlength
	movq	%rax, (%r14)
	testq	%rbx, %rbx
	jne	LBB0_8
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_pdo_pgsql_sqlstate
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%eax, %edx
	callq	_pdo_pgsql_error
	xorl	%r15d, %r15d
	testq	%rbx, %rbx
	je	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_PQclear
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movq	%r15, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SELECT LASTVAL()"

L_.str.1:                               ## @.str.1
	.asciz	"SELECT CURRVAL($1)"

	.comm	_PGRES_TUPLES_OK,8,3            ## @PGRES_TUPLES_OK
	.no_dead_strip	_pdo_pgsql_last_insert_id
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pdo_pgsql_last_insert_id
_pdo_pgsql_last_insert_id:              ; @pdo_pgsql_last_insert_id
	.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, x2
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x0]
	cbz	x1, LBB0_2
; %bb.1:
	str	x1, [sp]
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x4, sp
	mov	w2, #1
	mov	x3, #0
	mov	x5, #0
	mov	x6, #0
	mov	w7, #0
	bl	_PQexecParams
	b	LBB0_3
LBB0_2:
	ldr	w0, [x8]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PQexec
LBB0_3:
	mov	x20, x0
	bl	_PQresultStatus
Lloh7:
	adrp	x8, _PGRES_TUPLES_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PGRES_TUPLES_OK@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x20, #0
	ccmp	x0, x8, #0, ne
	b.eq	LBB0_5
; %bb.4:
	mov	x22, x0
	mov	x0, x20
	bl	_pdo_pgsql_sqlstate
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_pdo_pgsql_error
	mov	x21, #0
	cbnz	x20, LBB0_6
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetvalue
	bl	_estrdup
	mov	x21, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #0
	bl	_PQgetlength
	str	x0, [x19]
	cbz	x20, LBB0_7
LBB0_6:
	mov	x0, x20
	bl	_PQclear
LBB0_7:
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	mov	x0, x21
	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
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SELECT LASTVAL()"

l_.str.1:                               ; @.str.1
	.asciz	"SELECT CURRVAL($1)"

	.comm	_PGRES_TUPLES_OK,8,3            ; @PGRES_TUPLES_OK
	.no_dead_strip	_pdo_pgsql_last_insert_id
.subsections_via_symbols
