	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unixFileControl
_unixFileControl:                       ## @unixFileControl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-129, %esi
	cmpl	$10, %esi
	ja	LBB0_7
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movl	4(%rbx), %eax
	jmp	LBB0_15
LBB0_3:
	movq	40(%rbx), %rax
	movl	4(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_sqlite3_mprintf
	movq	%rax, (%r14)
	jmp	LBB0_17
LBB0_4:
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	callq	_sqlite3_malloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.5:
	movq	%rax, %r15
	movq	40(%rbx), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	callq	_unixGetTempname
	movq	%r15, (%r14)
	jmp	LBB0_17
LBB0_6:
	movq	_UNIXFILE_PERSIST_WAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_SQLITE_NOTFOUND@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_8:
	movl	$1, %edi
	callq	_SimulateIOErrorBenign
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_fcntlSizeHint
	movl	%eax, %ebx
	xorl	%edi, %edi
	callq	_SimulateIOErrorBenign
	movl	%ebx, %eax
	jmp	LBB0_19
LBB0_9:
	movq	_UNIXFILE_PSOW@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_unixModeBit
	jmp	LBB0_17
LBB0_11:
	movq	(%r14), %rax
	movq	_sqlite3GlobalConfig@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	cmovaq	%rcx, %rax
	movq	32(%rbx), %rcx
	movq	%rcx, (%r14)
	movq	%rax, 32(%rbx)
	cmpq	16(%rbx), %rax
	jae	LBB0_17
## %bb.12:
	movq	%rax, 16(%rbx)
	jmp	LBB0_17
LBB0_14:
	movl	(%rbx), %eax
LBB0_15:
	movl	%eax, (%r14)
	jmp	LBB0_17
LBB0_16:
	movl	(%r14), %eax
	movl	%eax, 8(%rbx)
LBB0_17:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
LBB0_19:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_9
	.long	L0_0_set_6
	.long	L0_0_set_11
	.long	L0_0_set_14
	.long	L0_0_set_7
	.long	L0_0_set_16
	.end_data_region
                                        ## -- End function
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_UNIXFILE_PERSIST_WAL,4,2       ## @UNIXFILE_PERSIST_WAL
	.comm	_UNIXFILE_PSOW,4,2              ## @UNIXFILE_PSOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_sqlite3GlobalConfig,8,3        ## @sqlite3GlobalConfig
	.comm	_SQLITE_NOTFOUND,4,2            ## @SQLITE_NOTFOUND
	.no_dead_strip	_unixFileControl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unixFileControl
_unixFileControl:                       ; @unixFileControl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	sub	w8, w1, #129
	cmp	w8, #10
	b.hi	LBB0_7
; %bb.1:
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x20, #4]
	b	LBB0_14
LBB0_3:
	ldr	x8, [x20, #40]
	ldr	w1, [x8, #4]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_sqlite3_mprintf
	str	x0, [x19]
	b	LBB0_16
LBB0_4:
	ldr	x8, [x20, #40]
	ldr	w0, [x8]
	bl	_sqlite3_malloc
	cbz	x0, LBB0_16
; %bb.5:
	mov	x21, x0
	ldr	x8, [x20, #40]
	ldr	w0, [x8]
	mov	x1, x21
	bl	_unixGetTempname
	str	x21, [x19]
	b	LBB0_16
LBB0_6:
Lloh4:
	adrp	x8, _UNIXFILE_PERSIST_WAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _UNIXFILE_PERSIST_WAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x8, _SQLITE_NOTFOUND@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_NOTFOUND@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
	mov	w0, #1
	bl	_SimulateIOErrorBenign
	ldr	x1, [x19]
	mov	x0, x20
	bl	_fcntlSizeHint
	mov	x19, x0
	mov	w0, #0
	bl	_SimulateIOErrorBenign
	mov	x0, x19
	b	LBB0_18
LBB0_9:
Lloh8:
	adrp	x8, _UNIXFILE_PSOW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _UNIXFILE_PSOW@GOTPAGEOFF]
LBB0_10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_unixModeBit
	b	LBB0_16
LBB0_11:
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _sqlite3GlobalConfig@GOTPAGE
Lloh11:
	ldr	x9, [x9, _sqlite3GlobalConfig@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x9, x8, hi
	ldr	x9, [x20, #32]
	str	x9, [x19]
	str	x8, [x20, #32]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.hs	LBB0_16
; %bb.12:
	str	x8, [x20, #16]
	b	LBB0_16
LBB0_13:
	ldr	w8, [x20]
LBB0_14:
	str	w8, [x19]
	b	LBB0_16
LBB0_15:
	ldr	w8, [x19]
	str	w8, [x20, #8]
LBB0_16:
Lloh13:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_13-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_15-LBB0_2)>>2
                                        ; -- End function
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_UNIXFILE_PERSIST_WAL,4,2       ; @UNIXFILE_PERSIST_WAL
	.comm	_UNIXFILE_PSOW,4,2              ; @UNIXFILE_PSOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_sqlite3GlobalConfig,8,3        ; @sqlite3GlobalConfig
	.comm	_SQLITE_NOTFOUND,4,2            ; @SQLITE_NOTFOUND
	.no_dead_strip	_unixFileControl
.subsections_via_symbols
