	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$0, (%rdx)
	movq	$0, (%rcx)
	movq	$0, (%r8)
	movq	_SQLITE_OPEN_WAL@GOTPCREL(%rip), %rax
	movq	_SQLITE_OPEN_MAIN_JOURNAL@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	orl	(%rax), %edi
	testl	%esi, %edi
	je	LBB0_3
## %bb.1:
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATHNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	incl	%eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	%rbx, %rdi
	callq	_sqlite3Strlen30
	movl	%eax, %r15d
	cltq
	leaq	-1(%rax), %r13
	cmpb	$45, -1(%rbx,%rax)
	jne	LBB0_5
## %bb.2:
	movl	%r13d, %r15d
	jmp	LBB0_8
LBB0_3:
	movq	_SQLITE_OPEN_DELETEONCLOSE@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_12
## %bb.4:
	movl	$384, (%rdx)                    ## imm = 0x180
	jmp	LBB0_12
LBB0_5:
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %r12
	xorl	%edi, %edi
	cmpl	$2, %r15d
	setge	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpb	$10, (%rbx,%r13)
	setne	%dil
	callq	_assert
	decq	%r13
	decl	%r15d
	cmpb	$45, -1(%rbx,%r12)
	jne	LBB0_6
## %bb.7:
	decl	%r15d
	movl	-52(%rbp), %r12d                ## 4-byte Reload
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_memcpy
	movb	$0, (%r14,%r13)
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	callq	_osStat
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_SQLITE_IOERR_FSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_11
LBB0_10:
	movl	$511, %eax                      ## imm = 0x1FF
	andl	-112(%rbp), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-96(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movq	-104(%rbp), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_11:
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	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_IOERR_FSTAT,4,2         ## @SQLITE_IOERR_FSTAT
	.comm	_SQLITE_OPEN_DELETEONCLOSE,4,2  ## @SQLITE_OPEN_DELETEONCLOSE
	.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	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x20, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	str	wzr, [x2]
	str	xzr, [x3]
	str	xzr, [x4]
Lloh6:
	adrp	x8, _SQLITE_OPEN_WAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OPEN_WAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SQLITE_OPEN_MAIN_JOURNAL@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w1
	b.eq	LBB0_7
; %bb.1:
	mov	x21, x4
	mov	x22, x3
	mov	x23, x0
	mov	x26, sp
Lloh12:
	adrp	x8, _MAX_PATHNAME@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_PATHNAME@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	add	w8, w8, #1
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x24, x9, x8
	mov	sp, x24
	bl	_sqlite3Strlen30
	mov	x25, x0
	sxtw	x8, w25
	sub	x27, x8, #1
	ldrb	w8, [x23, x27]
	cmp	w8, #45
	b.ne	LBB0_3
; %bb.2:
	mov	x2, x27
	b	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x28, x23, x27
	subs	w25, w25, #1
	cset	w0, gt
	bl	_assert
	ldrb	w8, [x28]
	cmp	w8, #10
	cset	w0, ne
	bl	_assert
	sub	x27, x27, #1
	ldurb	w8, [x28, #-1]
	cmp	w8, #45
	b.ne	LBB0_3
; %bb.4:
	sub	w2, w25, #1
LBB0_5:
	mov	x0, x24
	mov	x1, x23
	bl	_memcpy
	strb	wzr, [x24, x27]
	sub	x1, x29, #112
	mov	x0, x24
	bl	_osStat
	cbz	x0, LBB0_9
; %bb.6:
Lloh17:
	adrp	x8, _SQLITE_IOERR_FSTAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SQLITE_IOERR_FSTAT@GOTPAGEOFF]
Lloh19:
	ldr	w19, [x8]
	b	LBB0_10
LBB0_7:
Lloh20:
	adrp	x8, _SQLITE_OPEN_DELETEONCLOSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _SQLITE_OPEN_DELETEONCLOSE@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_11
; %bb.8:
	mov	w8, #384
	str	w8, [x20]
	b	LBB0_11
LBB0_9:
	ldur	w8, [x29, #-112]
	and	w8, w8, #0x1ff
	str	w8, [x20]
	ldp	x9, x8, [x29, #-104]
	str	x8, [x22]
	str	x9, [x21]
LBB0_10:
	mov	sp, x26
LBB0_11:
	ldur	x8, [x29, #-88]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	mov	x0, x19
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.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_IOERR_FSTAT,4,2         ; @SQLITE_IOERR_FSTAT
	.comm	_SQLITE_OPEN_DELETEONCLOSE,4,2  ; @SQLITE_OPEN_DELETEONCLOSE
	.no_dead_strip	_findCreateFileMode
.subsections_via_symbols
