	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function findCreateFileMode
_findCreateFileMode:                    ## @findCreateFileMode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r13d
	movl	$0, (%r12)
	movq	$0, (%rcx)
	movq	$0, (%r8)
	movq	_SQLITE_OPEN_WAL@GOTPCREL(%rip), %rax
	movq	_SQLITE_OPEN_MAIN_JOURNAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%esi, %ecx
	je	LBB0_6
## %bb.1:
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -56(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	movq	%rdx, %r14
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movq	%rbx, %rdi
	callq	_sqlite3Strlen30
	movq	%r14, %rcx
	movslq	%eax, %r14
	decq	%r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r14), %eax
	cmpb	$45, %al
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%r14
	cmpb	$46, %al
	jne	LBB0_2
LBB0_5:
	movl	(%rcx), %r13d
	jmp	LBB0_13
LBB0_6:
	movq	_SQLITE_OPEN_DELETEONCLOSE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_8
## %bb.7:
	movl	$384, (%r12)                    ## imm = 0x180
	jmp	LBB0_14
LBB0_12:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movb	$0, (%r13,%r14)
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	callq	_getFileMode
	movl	%eax, %r13d
LBB0_13:
	movq	-56(%rbp), %rsp                 ## 8-byte Reload
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_16
## %bb.15:
	movl	%r13d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SQLITE_OPEN_URI@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_14
## %bb.9:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_sqlite3_uri_parameter
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_16
## %bb.11:
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%r14, %rcx
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_getFileMode                    ## TAILCALL
LBB0_16:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_SQLITE_OPEN_WAL,4,2            ## @SQLITE_OPEN_WAL
	.comm	_SQLITE_OPEN_MAIN_JOURNAL,4,2   ## @SQLITE_OPEN_MAIN_JOURNAL
	.comm	_MAX_PATHNAME,4,2               ## @MAX_PATHNAME
	.comm	_SQLITE_OPEN_DELETEONCLOSE,4,2  ## @SQLITE_OPEN_DELETEONCLOSE
	.comm	_SQLITE_OPEN_URI,4,2            ## @SQLITE_OPEN_URI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"modeof"

	.no_dead_strip	_findCreateFileMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function findCreateFileMode
_findCreateFileMode:                    ; @findCreateFileMode
	.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
	sub	sp, sp, #16
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x26, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x26, [x26, _SQLITE_OK@GOTPAGEOFF]
	ldr	w23, [x26]
	str	wzr, [x2]
	str	xzr, [x3]
	str	xzr, [x4]
Lloh5:
	adrp	x8, _SQLITE_OPEN_WAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_OPEN_WAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w1
	b.eq	LBB0_6
; %bb.1:
	mov	x25, sp
Lloh11:
	adrp	x8, _MAX_PATHNAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MAX_PATHNAME@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh14:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh15:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	mov	x0, x22
	bl	_sqlite3Strlen30
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	sub	x24, x8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x22, x24]
	cmp	w8, #45
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w24, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	x24, x24, #1
	cmp	w8, #46
	b.ne	LBB0_2
LBB0_5:
	ldr	w23, [x26]
	b	LBB0_9
LBB0_6:
Lloh16:
	adrp	x8, _SQLITE_OPEN_DELETEONCLOSE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SQLITE_OPEN_DELETEONCLOSE@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_12
; %bb.7:
	mov	w8, #384
	str	w8, [x21]
	b	LBB0_10
LBB0_8:
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_memcpy
	strb	wzr, [x23, x24]
	mov	x0, x23
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_getFileMode
	mov	x23, x0
LBB0_9:
	mov	sp, x25
LBB0_10:
	ldur	x8, [x29, #-72]
Lloh19:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh20:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.11:
	mov	x0, x23
	sub	sp, x29, #64
	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
	ret
LBB0_12:
Lloh22:
	adrp	x8, _SQLITE_OPEN_URI@GOTPAGE
Lloh23:
	ldr	x8, [x8, _SQLITE_OPEN_URI@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_10
; %bb.13:
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_sqlite3_uri_parameter
	cbz	x0, LBB0_10
; %bb.14:
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.15:
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	sub	sp, x29, #64
	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	_getFileMode
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_SQLITE_OPEN_WAL,4,2            ; @SQLITE_OPEN_WAL
	.comm	_SQLITE_OPEN_MAIN_JOURNAL,4,2   ; @SQLITE_OPEN_MAIN_JOURNAL
	.comm	_MAX_PATHNAME,4,2               ; @MAX_PATHNAME
	.comm	_SQLITE_OPEN_DELETEONCLOSE,4,2  ; @SQLITE_OPEN_DELETEONCLOSE
	.comm	_SQLITE_OPEN_URI,4,2            ; @SQLITE_OPEN_URI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"modeof"

	.no_dead_strip	_findCreateFileMode
.subsections_via_symbols
