	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	jle	LBB0_9
## %bb.1:
	movl	%esi, %ebx
	movq	%rdi, %r15
	movl	24(%rdi), %edi
	leaq	-48(%rbp), %rsi
	callq	_osFstat
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_SQLITE_IOERR_FSTAT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movl	(%r15), %ecx
	leal	(%rbx,%rcx), %r14d
	decl	%r14d
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	subl	%edx, %r14d
	movl	-48(%rbp), %ecx
	cmpl	%ecx, %r14d
	jle	LBB0_9
## %bb.4:
	movl	-44(%rbp), %r12d
	movl	%ecx, %eax
	cltd
	idivl	%r12d
	movl	%ecx, %ebx
	subl	%edx, %ebx
	addl	%r12d, %ebx
	xorl	%edi, %edi
	cmpl	%ecx, %ebx
	setg	%dil
	callq	_assert
	movl	%ebx, %eax
	cltd
	idivl	%r12d
	xorl	%edi, %edi
	testl	%edx, %edx
	sete	%dil
	callq	_assert
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	addl	%r14d, %r12d
	decl	%r12d
	cmpl	%r12d, %ebx
	jg	LBB0_9
## %bb.5:
	leal	-1(%r14), %r13d
	decl	%ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r14d, %ebx
	cmovgel	%r13d, %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	L_.str(%rip), %rdx
	movl	$1, %ecx
	callq	_seekAndWrite
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	cmpl	%r12d, %ebx
	jl	LBB0_7
LBB0_9:
	movq	_SQLITE_OK@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_SQLITE_IOERR_WRITE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_SQLITE_IOERR_FSTAT,4,2         ## @SQLITE_IOERR_FSTAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.comm	_SQLITE_IOERR_WRITE,4,2         ## @SQLITE_IOERR_WRITE
	.comm	_SQLITE_OK,4,2                  ## @SQLITE_OK
	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SQLITE_IOERR_TRUNCATE,4,2      ## @SQLITE_IOERR_TRUNCATE
	.comm	_errno,4,2                      ## @errno
	.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, #96
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #24]
	add	x1, sp, #8
	bl	_osFstat
	cbz	x0, LBB0_3
; %bb.2:
Lloh0:
	adrp	x25, _SQLITE_IOERR_FSTAT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _SQLITE_IOERR_FSTAT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x25]
	b	LBB0_9
LBB0_3:
	ldr	w8, [x19]
	add	w9, w20, w8
	sub	w9, w9, #1
	sdiv	w9, w9, w8
	mul	w22, w9, w8
	ldr	w8, [sp, #8]
	cmp	w22, w8
	b.le	LBB0_8
; %bb.4:
	ldr	w23, [sp, #12]
	sdiv	w9, w8, w23
	madd	w20, w9, w23, w23
	cmp	w20, w8
	cset	w0, gt
	bl	_assert
	sdiv	w8, w20, w23
	msub	w8, w8, w23, w20
	cmp	w8, #0
	cset	w0, eq
	bl	_assert
	sub	w24, w22, #1
	add	w26, w24, w23
	cmp	w20, w26
	b.gt	LBB0_8
; %bb.5:
	sub	w8, w20, #1
Lloh3:
	adrp	x20, l_.str@PAGE
Lloh4:
	add	x20, x20, l_.str@PAGEOFF
Lloh5:
	adrp	x25, _SQLITE_IOERR_WRITE@GOTPAGE
Lloh6:
	ldr	x25, [x25, _SQLITE_IOERR_WRITE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, w22
	csel	w21, w8, w24, lt
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	w3, #1
	bl	_seekAndWrite
	cmp	w0, #1
	b.ne	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	w8, w21, w23
	cmp	w8, w26
	b.lt	LBB0_6
LBB0_8:
Lloh7:
	adrp	x8, _SQLITE_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SQLITE_OK@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
LBB0_9:
	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
	add	sp, sp, #96
	ret
LBB0_10:
	ldr	w0, [x25]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SQLITE_IOERR_FSTAT,4,2         ; @SQLITE_IOERR_FSTAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.comm	_SQLITE_IOERR_WRITE,4,2         ; @SQLITE_IOERR_WRITE
	.comm	_SQLITE_OK,4,2                  ; @SQLITE_OK
	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SQLITE_IOERR_TRUNCATE,4,2      ; @SQLITE_IOERR_TRUNCATE
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_fcntlSizeHint
.subsections_via_symbols
