	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pdo_sqlite_error              ## -- Begin function _pdo_sqlite_error
	.p2align	4, 0x90
__pdo_sqlite_error:                     ## @_pdo_sqlite_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movq	%rdi, %r14
	movq	16(%rdi), %rbx
	leaq	8(%rdi), %r13
	testq	%rsi, %rsi
	cmovneq	%rsi, %r13
	movl	(%rbx), %edi
	callq	_sqlite3_errcode
	movl	%eax, 8(%rbx)
	movq	%r12, 16(%rbx)
	movl	%r15d, 24(%rbx)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.5:
	movl	(%r13), %edi
	movq	_PDO_ERR_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$4, %edx
	callq	_strncpy
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_1:
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	movl	4(%r14), %esi
	callq	_pefree
LBB0_3:
	movl	(%rbx), %edi
	callq	_sqlite3_errmsg
	movl	4(%r14), %esi
	movq	%rax, %rdi
	callq	_pestrdup
	movq	%rax, 32(%rbx)
	movl	8(%rbx), %eax
	addl	$-128, %eax
	cmpl	$6, %eax
	jae	LBB0_4
## %bb.6:
	cltq
	leaq	l_reltable._pdo_sqlite_error(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	jmp	LBB0_7
LBB0_4:
	leaq	L_.str.5(%rip), %rsi
LBB0_7:
	movl	(%r13), %edi
	movl	$4, %edx
	callq	_strncpy
	cmpl	$0, (%r14)
	jne	LBB0_9
## %bb.8:
	xorl	%eax, %eax
	callq	_php_pdo_get_exception
	movl	8(%rbx), %esi
	movl	(%r13), %ecx
	movq	32(%rbx), %r9
	leaq	L_.str.6(%rip), %rdx
	movl	%eax, %edi
	movl	%esi, %r8d
	callq	_zend_throw_exception_ex
LBB0_9:
	movl	8(%rbx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_PDO_ERR_NONE,8,3               ## @PDO_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"42S02"

L_.str.1:                               ## @.str.1
	.asciz	"01002"

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

L_.str.3:                               ## @.str.3
	.asciz	"22001"

L_.str.4:                               ## @.str.4
	.asciz	"23000"

L_.str.5:                               ## @.str.5
	.asciz	"HY000"

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

	.section	__TEXT,__const
	.p2align	2                               ## @reltable._pdo_sqlite_error
l_reltable._pdo_sqlite_error:
	.long	L_.str.3-l_reltable._pdo_sqlite_error
	.long	L_.str-l_reltable._pdo_sqlite_error
	.long	L_.str.2-l_reltable._pdo_sqlite_error
	.long	L_.str.1-l_reltable._pdo_sqlite_error
	.long	L_.str.5-l_reltable._pdo_sqlite_error
	.long	L_.str.4-l_reltable._pdo_sqlite_error

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pdo_sqlite_error              ; -- Begin function _pdo_sqlite_error
	.p2align	2
__pdo_sqlite_error:                     ; @_pdo_sqlite_error
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x22, [x0, #16]
	add	x8, x0, #8
	cmp	x1, #0
	csel	x23, x8, x1, eq
	ldr	w0, [x22]
	bl	_sqlite3_errcode
	str	w0, [x22, #8]
	str	x21, [x22, #16]
	str	w20, [x22, #24]
Lloh0:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x23]
Lloh3:
	adrp	x8, _PDO_ERR_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PDO_ERR_NONE@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	mov	w2, #4
	bl	_strncpy
	mov	w0, #0
	b	LBB0_10
LBB0_2:
	ldr	x0, [x22, #32]
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w1, [x19, #4]
	bl	_pefree
LBB0_4:
	ldr	w0, [x22]
	bl	_sqlite3_errmsg
	ldr	w1, [x19, #4]
	bl	_pestrdup
	str	x0, [x22, #32]
	ldr	w8, [x22, #8]
	sub	w8, w8, #128
	cmp	w8, #6
	b.hs	LBB0_6
; %bb.5:
Lloh6:
	adrp	x9, l_switch.table._pdo_sqlite_error@PAGE
Lloh7:
	add	x9, x9, l_switch.table._pdo_sqlite_error@PAGEOFF
	ldr	x1, [x9, w8, sxtw #3]
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_7:
	ldr	w0, [x23]
	mov	w2, #4
	bl	_strncpy
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.8:
	bl	_php_pdo_get_exception
	ldr	w1, [x22, #8]
	ldr	w3, [x23]
	ldr	x5, [x22, #32]
Lloh10:
	adrp	x2, l_.str.6@PAGE
Lloh11:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x4, x1
	bl	_zend_throw_exception_ex
LBB0_9:
	ldr	w0, [x22, #8]
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_PDO_ERR_NONE,8,3               ; @PDO_ERR_NONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"42S02"

l_.str.1:                               ; @.str.1
	.asciz	"01002"

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

l_.str.3:                               ; @.str.3
	.asciz	"22001"

l_.str.4:                               ; @.str.4
	.asciz	"23000"

l_.str.5:                               ; @.str.5
	.asciz	"HY000"

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

	.section	__DATA,__const
	.p2align	3                               ; @switch.table._pdo_sqlite_error
l_switch.table._pdo_sqlite_error:
	.quad	l_.str.3
	.quad	l_.str
	.quad	l_.str.2
	.quad	l_.str.1
	.quad	l_.str.5
	.quad	l_.str.4

.subsections_via_symbols
