	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pdo_sqlite_handle_factory
_pdo_sqlite_handle_factory:             ## @pdo_sqlite_handle_factory
	.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
	movq	%rsi, %r15
	movq	%rdi, %r13
	movl	32(%rdi), %edx
	movl	$1, %edi
	movl	$24, %esi
	callq	_pecalloc
	movq	%rax, %r14
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rax)
	movq	%rax, 24(%r13)
	movl	16(%r13), %edi
	callq	_make_filename_safe
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	_PDO_SQLITE_ATTR_OPEN_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SQLITE_OPEN_READWRITE@GOTPCREL(%rip), %rax
	movq	_SQLITE_OPEN_CREATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_pdo_attr_lval
	xorl	%r12d, %r12d
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_sqlite3_open_v2
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_efree
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_3
## %bb.4:
	movq	_open_basedir@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_PG
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %edi
	callq	_PG
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r14), %edi
	movq	_authorizer@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_sqlite3_set_authorizer
LBB0_7:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.9:
	movq	_PDO_ATTR_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$60, %edx
	callq	_pdo_attr_lval
	imull	$1000, %eax, %esi               ## imm = 0x3E8
	jmp	LBB0_10
LBB0_1:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_php_pdo_get_exception
	movl	16(%r13), %ecx
	leaq	L_.str(%rip), %rdx
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_zend_throw_exception_ex
	jmp	LBB0_11
LBB0_3:
	movq	%r13, %rdi
	callq	_pdo_sqlite_error
	jmp	LBB0_11
LBB0_8:
	movl	$60000, %esi                    ## imm = 0xEA60
LBB0_10:
	movl	(%r14), %edi
	callq	_sqlite3_busy_timeout
	movabsq	$8589934593, %rax               ## imm = 0x200000001
	movq	%rax, (%r13)
	movl	$1, %r12d
LBB0_11:
	movq	_sqlite_methods@GOTPCREL(%rip), %rax
	movq	%rax, 8(%r13)
	movl	%r12d, %eax
	addq	$8, %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	"open_basedir prohibits opening %s"

	.comm	_PDO_SQLITE_ATTR_OPEN_FLAGS,4,2 ## @PDO_SQLITE_ATTR_OPEN_FLAGS
	.comm	_SQLITE_OPEN_READWRITE,4,2      ## @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OPEN_CREATE,4,2         ## @SQLITE_OPEN_CREATE
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_open_basedir,4,2               ## @open_basedir
	.comm	_authorizer,4,2                 ## @authorizer
	.comm	_PDO_ATTR_TIMEOUT,4,2           ## @PDO_ATTR_TIMEOUT
	.comm	_sqlite_methods,4,2             ## @sqlite_methods
	.no_dead_strip	_pdo_sqlite_handle_factory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pdo_sqlite_handle_factory
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pdo_sqlite_handle_factory:             ; @pdo_sqlite_handle_factory
	.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	x21, x1
	mov	x19, x0
	ldr	w2, [x0, #32]
	mov	w0, #1
	mov	w1, #24
	bl	_pecalloc
	mov	x20, x0
	stp	xzr, xzr, [x0, #8]
	str	x0, [x19, #24]
	ldr	w0, [x19, #16]
	bl	_make_filename_safe
	cbz	x0, LBB0_7
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x8, _PDO_SQLITE_ATTR_OPEN_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PDO_SQLITE_ATTR_OPEN_FLAGS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SQLITE_OPEN_READWRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SQLITE_OPEN_READWRITE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _SQLITE_OPEN_CREATE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SQLITE_OPEN_CREATE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	bl	_pdo_attr_lval
	mov	x2, x0
	mov	x0, x22
	mov	x1, x20
	mov	x3, #0
	bl	_sqlite3_open_v2
	mov	x23, x0
	mov	x0, x22
	bl	_efree
Lloh9:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_8
; %bb.2:
Lloh12:
	adrp	x22, _open_basedir@GOTPAGE
Lloh13:
	ldr	x22, [x22, _open_basedir@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_PG
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x22]
	bl	_PG
	ldr	x8, [x0]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w0, [x20]
Lloh14:
	adrp	x8, _authorizer@GOTPAGE
Lloh15:
	ldr	x8, [x8, _authorizer@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x2, #0
	bl	_sqlite3_set_authorizer
LBB0_5:
	cbz	x21, LBB0_9
; %bb.6:
Lloh17:
	adrp	x8, _PDO_ATTR_TIMEOUT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PDO_ATTR_TIMEOUT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #60
	bl	_pdo_attr_lval
	mov	w8, #1000
	mul	w1, w0, w8
	b	LBB0_10
LBB0_7:
	bl	_php_pdo_get_exception
	ldr	w3, [x19, #16]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #0
	bl	_zend_throw_exception_ex
	mov	w0, #0
	b	LBB0_11
LBB0_8:
	mov	x0, x19
	bl	_pdo_sqlite_error
	mov	w0, #0
	b	LBB0_11
LBB0_9:
	mov	w1, #60000
LBB0_10:
	ldr	w0, [x20]
	bl	_sqlite3_busy_timeout
Lloh22:
	adrp	x8, lCPI0_0@PAGE
Lloh23:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w0, #1
LBB0_11:
Lloh24:
	adrp	x8, _sqlite_methods@GOTPAGE
Lloh25:
	ldr	x8, [x8, _sqlite_methods@GOTPAGEOFF]
	str	x8, [x19, #8]
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdr	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"open_basedir prohibits opening %s"

	.comm	_PDO_SQLITE_ATTR_OPEN_FLAGS,4,2 ; @PDO_SQLITE_ATTR_OPEN_FLAGS
	.comm	_SQLITE_OPEN_READWRITE,4,2      ; @SQLITE_OPEN_READWRITE
	.comm	_SQLITE_OPEN_CREATE,4,2         ; @SQLITE_OPEN_CREATE
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_open_basedir,4,2               ; @open_basedir
	.comm	_authorizer,4,2                 ; @authorizer
	.comm	_PDO_ATTR_TIMEOUT,4,2           ; @PDO_ATTR_TIMEOUT
	.comm	_sqlite_methods,4,2             ; @sqlite_methods
	.no_dead_strip	_pdo_sqlite_handle_factory
.subsections_via_symbols
