	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fcntlSizeHint
_fcntlSizeHint:                         ## @fcntlSizeHint
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	cmpl	$0, (%rdi)
	jle	LBB0_10
## %bb.1:
	movl	32(%r12), %edi
	leaq	-48(%rbp), %rsi
	callq	_osFstat
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_SQLITE_IOERR_FSTAT@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	movl	(%r12), %ecx
	leal	(%r14,%rcx), %r15d
	decl	%r15d
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	subl	%edx, %r15d
	cmpl	-48(%rbp), %r15d
	jle	LBB0_10
## %bb.4:
	movl	-44(%rbp), %r13d
	movl	32(%r12), %edi
	movl	%r15d, %esi
	callq	_robust_ftruncate
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movl	-48(%rbp), %eax
	leal	(%rax,%r13,2), %ecx
	leal	(%rax,%r13,2), %eax
	decl	%eax
	cltd
	idivl	%r13d
                                        ## kill: def $edx killed $edx def $rdx
	notl	%edx
	leal	(%rdx,%rcx), %ebx
	decl	%ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, %ebx
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	leaq	L_.str.1(%rip), %rdx
	movl	$1, %ecx
	callq	_seekAndWrite
	addl	%r13d, %ebx
	cmpl	$1, %eax
	je	LBB0_7
## %bb.9:
	movq	_SQLITE_IOERR_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_10:
	cmpq	$0, 8(%r12)
	jle	LBB0_15
## %bb.11:
	cmpl	%r14d, 16(%r12)
	jge	LBB0_15
## %bb.12:
	cmpl	$0, (%r12)
	jle	LBB0_13
LBB0_14:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_unixMapfile
	jmp	LBB0_17
LBB0_15:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	32(%r12), %edi
	movl	%r14d, %esi
	callq	_robust_ftruncate
	testq	%rax, %rax
	je	LBB0_14
LBB0_5:
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r12)
	movq	_SQLITE_IOERR_TRUNCATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	20(%r12), %edx
	leaq	L_.str(%rip), %rsi
	callq	_unixLogError
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_IOERR_FSTAT,4,2         ## @SQLITE_IOERR_FSTAT
	.comm	_errno,8,3                      ## @errno
	.comm	_SQLITE_IOERR_TRUNCATE,4,2      ## @SQLITE_IOERR_TRUNCATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ftruncate"

L_.str.1:                               ## @.str.1
	.space	1

	.comm	_SQLITE_IOERR_WRITE,4,2         ## @SQLITE_IOERR_WRITE
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_EINTR,4,2                      ## @EINTR
	.no_dead_strip	_fcntlSizeHint
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fcntlSizeHint
_fcntlSizeHint:                         ; @fcntlSizeHint
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	ldr	w0, [x19, #32]
	add	x1, sp, #8
	bl	_osFstat
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _SQLITE_IOERR_FSTAT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SQLITE_IOERR_FSTAT@GOTPAGEOFF]
	b	LBB0_14
LBB0_3:
	ldr	w8, [x19]
	add	w9, w20, w8
	sub	w9, w9, #1
	sdiv	w9, w9, w8
	mul	w21, w9, w8
	ldr	w8, [sp, #8]
	cmp	w21, w8
	b.le	LBB0_9
; %bb.4:
	ldr	w24, [sp, #12]
	ldr	w0, [x19, #32]
	mov	x1, x21
	bl	_robust_ftruncate
	cbnz	x0, LBB0_17
; %bb.5:
	ldr	w8, [sp, #8]
	add	w8, w8, w24, lsl #1
	sub	w8, w8, #1
	sdiv	w9, w8, w24
	msub	w9, w9, w24, w8
	mvn	w9, w9
	add	w22, w8, w9
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, w21
	b.ge	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	w3, #1
	bl	_seekAndWrite
	add	w22, w22, w24
	cmp	w0, #1
	b.eq	LBB0_6
; %bb.8:
Lloh4:
	adrp	x8, _SQLITE_IOERR_WRITE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SQLITE_IOERR_WRITE@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	ldr	x8, [x19, #8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.10:
	ldr	w8, [x19, #16]
	cmp	w8, w20
	b.ge	LBB0_13
; %bb.11:
	ldr	w8, [x19]
	cmp	w8, #0
	b.le	LBB0_16
LBB0_12:
	mov	x0, x19
	mov	x1, x20
	bl	_unixMapfile
	b	LBB0_15
LBB0_13:
Lloh6:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x8]
LBB0_15:
	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
	add	sp, sp, #80
	ret
LBB0_16:
	ldr	w0, [x19, #32]
	mov	x1, x20
	bl	_robust_ftruncate
	cbz	x0, LBB0_12
LBB0_17:
Lloh8:
	adrp	x8, _errno@GOTPAGE
Lloh9:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19, #24]
Lloh11:
	adrp	x8, _SQLITE_IOERR_TRUNCATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SQLITE_IOERR_TRUNCATE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	ldr	w2, [x19, #20]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	bl	_unixLogError
	b	LBB0_15
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_IOERR_FSTAT,4,2         ; @SQLITE_IOERR_FSTAT
	.comm	_errno,8,3                      ; @errno
	.comm	_SQLITE_IOERR_TRUNCATE,4,2      ; @SQLITE_IOERR_TRUNCATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ftruncate"

l_.str.1:                               ; @.str.1
	.space	1

	.comm	_SQLITE_IOERR_WRITE,4,2         ; @SQLITE_IOERR_WRITE
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_EINTR,4,2                      ; @EINTR
	.no_dead_strip	_fcntlSizeHint
.subsections_via_symbols
