	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__pdo_mysql_error               ## -- Begin function _pdo_mysql_error
	.p2align	4, 0x90
__pdo_mysql_error:                      ## @_pdo_mysql_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
	movl	%ecx, %r12d
	movq	%rdx, %r14
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	16(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	callq	_PDO_DBG_ENTER
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_PDO_DBG_INF_FMT
	testq	%r13, %r13
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_1
## %bb.2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rbx
	leaq	8(%rbx), %r13
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.25:
	callq	_mysql_stmt_errno
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_8
LBB0_1:
	leaq	8(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %r13
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_3:
	movb	$1, %al
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_6:
	movq	-64(%rbp), %r15                 ## 8-byte Reload
LBB0_7:
	movl	(%r15), %edi
	callq	_mysql_errno
LBB0_8:
	movl	%eax, (%r13)
	movq	%r14, 8(%r13)
	movl	%r12d, 16(%r13)
	movq	24(%r13), %rdi
	testq	%rdi, %rdi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movl	4(%r15), %esi
	callq	_pefree
	movq	$0, 24(%r13)
	movl	(%r13), %eax
LBB0_10:
	testl	%eax, %eax
	je	LBB0_17
## %bb.11:
	cmpl	$2057, %eax                     ## imm = 0x809
	je	LBB0_15
## %bb.12:
	cmpl	$2014, %eax                     ## imm = 0x7DE
	jne	LBB0_16
## %bb.13:
	movl	4(%r15), %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_17:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_PDO_ERR_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcpy
	xorl	%edi, %edi
	callq	_PDO_DBG_RETURN
	jmp	LBB0_18
LBB0_15:
	movl	4(%r15), %esi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_14
LBB0_16:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_mysql_error
	movl	4(%r15), %esi
	movq	%rax, %rdi
LBB0_14:
	callq	_pestrdup
	movq	%rax, 24(%r13)
LBB0_18:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testb	%al, %al
	jne	LBB0_21
## %bb.19:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_21
## %bb.20:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ebx
	callq	_mysql_stmt_sqlstate
	jmp	LBB0_22
LBB0_21:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_mysql_sqlstate
LBB0_22:
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_strcpy
	cmpl	$0, (%r15)
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.4(%rip), %rdi
	callq	_PDO_DBG_INF
	xorl	%eax, %eax
	callq	_php_pdo_get_exception
	movl	(%r13), %esi
	movl	(%r14), %ecx
	movq	24(%r13), %r9
	leaq	L_.str.5(%rip), %rdx
	movl	%eax, %edi
	movl	%esi, %r8d
	callq	_zend_throw_exception_ex
LBB0_24:
	movl	(%r13), %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PDO_DBG_RETURN                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_pdo_mysql_error"

L_.str.1:                               ## @.str.1
	.asciz	"file=%s line=%d"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute."

L_.str.3:                               ## @.str.3
	.asciz	"A stored procedure returning result sets of different size was called. This is not supported by libmysql"

	.comm	_PDO_ERR_NONE,4,2               ## @PDO_ERR_NONE
L_.str.4:                               ## @.str.4
	.asciz	"Throwing exception"

L_.str.5:                               ## @.str.5
	.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_mysql_error               ; -- Begin function _pdo_mysql_error
	.p2align	2
__pdo_mysql_error:                      ; @_pdo_mysql_error
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x24, [x0, #16]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_PDO_DBG_ENTER
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x21
	bl	_PDO_DBG_INF_FMT
	cbz	x19, LBB0_4
; %bb.1:
	ldr	x25, [x19, #8]
	add	x23, x25, #8
	cbz	x25, LBB0_5
; %bb.2:
	ldr	x0, [x25]
	cbz	x0, LBB0_6
; %bb.3:
	bl	_mysql_stmt_errno
	mov	w26, #0
	b	LBB0_8
LBB0_4:
	mov	x25, #0
	add	x19, x20, #8
	add	x23, x24, #8
LBB0_5:
	mov	w26, #1
	b	LBB0_7
LBB0_6:
	mov	w26, #0
LBB0_7:
	ldr	w0, [x24]
	bl	_mysql_errno
LBB0_8:
	str	w0, [x23]
	str	x22, [x23, #8]
	str	w21, [x23, #16]
	ldr	x8, [x23, #24]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w1, [x20, #4]
	mov	x0, x8
	bl	_pefree
	str	xzr, [x23, #24]
	ldr	w0, [x23]
LBB0_10:
	cbz	w0, LBB0_14
; %bb.11:
	cmp	w0, #2057
	b.eq	LBB0_15
; %bb.12:
	cmp	w0, #2014
	b.ne	LBB0_16
; %bb.13:
	ldr	w1, [x20, #4]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_17
LBB0_14:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _PDO_ERR_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PDO_ERR_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_strcpy
	mov	w0, #0
	bl	_PDO_DBG_RETURN
	tbz	w26, #0, LBB0_18
	b	LBB0_20
LBB0_15:
	ldr	w1, [x20, #4]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_17
LBB0_16:
	ldr	w0, [x24]
	bl	_mysql_error
	ldr	w1, [x20, #4]
LBB0_17:
	bl	_pestrdup
	str	x0, [x23, #24]
	tbnz	w26, #0, LBB0_20
LBB0_18:
	ldr	x0, [x25]
	cbz	x0, LBB0_20
; %bb.19:
	ldr	w21, [x19]
	bl	_mysql_stmt_sqlstate
	b	LBB0_21
LBB0_20:
	ldr	w21, [x19]
	ldr	w0, [x24]
	bl	_mysql_sqlstate
LBB0_21:
	mov	x1, x0
	mov	x0, x21
	bl	_strcpy
	ldr	w8, [x20]
	cbnz	w8, LBB0_23
; %bb.22:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_PDO_DBG_INF
	bl	_php_pdo_get_exception
	ldr	w1, [x23]
	ldr	w3, [x19]
	ldr	x5, [x23, #24]
Lloh13:
	adrp	x2, l_.str.5@PAGE
Lloh14:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x4, x1
	bl	_zend_throw_exception_ex
LBB0_23:
	ldr	w0, [x23]
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_PDO_DBG_RETURN
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_pdo_mysql_error"

l_.str.1:                               ; @.str.1
	.asciz	"file=%s line=%d"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot execute queries while other unbuffered queries are active.  Consider using PDOStatement::fetchAll().  Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute."

l_.str.3:                               ; @.str.3
	.asciz	"A stored procedure returning result sets of different size was called. This is not supported by libmysql"

	.comm	_PDO_ERR_NONE,4,2               ; @PDO_ERR_NONE
l_.str.4:                               ; @.str.4
	.asciz	"Throwing exception"

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

.subsections_via_symbols
