	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vdbeSorterExtendFile
_vdbeSorterExtendFile:                  ## @vdbeSorterExtendFile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdx, -32(%rbp)
	cmpq	%rdx, (%rdi)
	jl	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	(%rsi), %rax
	cmpl	$3, (%rax)
	jl	LBB0_3
## %bb.2:
	movq	$0, -24(%rbp)
	movl	$4096, -12(%rbp)                ## imm = 0x1000
	movq	_SQLITE_FCNTL_CHUNK_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sqlite3OsFileControlHint
	movq	_SQLITE_FCNTL_SIZE_HINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sqlite3OsFileControlHint
	movl	-32(%rbp), %edx
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sqlite3OsFetch
	movq	-24(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sqlite3OsUnfetch
LBB0_3:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_FCNTL_CHUNK_SIZE,4,2    ## @SQLITE_FCNTL_CHUNK_SIZE
	.comm	_SQLITE_FCNTL_SIZE_HINT,4,2     ## @SQLITE_FCNTL_SIZE_HINT
	.no_dead_strip	_vdbeSorterExtendFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vdbeSorterExtendFile
_vdbeSorterExtendFile:                  ; @vdbeSorterExtendFile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	str	x2, [sp, #24]
	ldr	x8, [x0]
	cmp	x8, x2
	b.lt	LBB0_3
; %bb.1:
	mov	x19, x1
	ldr	x8, [x1]
	ldr	w8, [x8]
	cmp	w8, #3
	b.lt	LBB0_3
; %bb.2:
	str	xzr, [sp, #16]
	mov	w8, #4096
	str	w8, [sp, #12]
Lloh0:
	adrp	x8, _SQLITE_FCNTL_CHUNK_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_FCNTL_CHUNK_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x8, sp, #12
	str	x8, [sp]
	mov	x0, x19
	bl	_sqlite3OsFileControlHint
Lloh3:
	adrp	x8, _SQLITE_FCNTL_SIZE_HINT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SQLITE_FCNTL_SIZE_HINT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x8, sp, #24
	str	x8, [sp]
	mov	x0, x19
	bl	_sqlite3OsFileControlHint
	ldr	w2, [sp, #24]
	add	x3, sp, #16
	mov	x0, x19
	mov	w1, #0
	bl	_sqlite3OsFetch
	ldr	x2, [sp, #16]
	mov	x0, x19
	mov	w1, #0
	bl	_sqlite3OsUnfetch
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_FCNTL_CHUNK_SIZE,4,2    ; @SQLITE_FCNTL_CHUNK_SIZE
	.comm	_SQLITE_FCNTL_SIZE_HINT,4,2     ; @SQLITE_FCNTL_SIZE_HINT
	.no_dead_strip	_vdbeSorterExtendFile
.subsections_via_symbols
