	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readFileContents
_readFileContents:                      ## @readFileContents
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rax
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %rbx
	movq	_SEEK_END@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fseek
	movq	%rbx, %rdi
	callq	_ftell
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_rewind
	movq	%r14, %rdi
	callq	_sqlite3_context_db_handle
	movq	_SQLITE_LIMIT_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	movl	$-1, %edx
	callq	_sqlite3_limit
	cmpl	%eax, %r15d
	jle	LBB0_3
## %bb.2:
	movq	_SQLITE_TOOBIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sqlite3_result_error_code
	jmp	LBB0_8
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testl	%r15d, %r15d
	movl	$1, %edi
	cmovnel	%r15d, %edi
	callq	_sqlite3_malloc64
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movslq	%r15d, %rdx
	movq	%rax, %rdi
	movl	$1, %esi
	movq	%rbx, %rcx
	callq	_fread
	cmpl	%eax, %r15d
	jne	LBB0_7
## %bb.6:
	movq	_sqlite3_free@GOTPCREL(%rip), %rcx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_sqlite3_result_blob64
	jmp	LBB0_8
LBB0_4:
	movq	%r14, %rdi
	callq	_sqlite3_result_error_nomem
	jmp	LBB0_8
LBB0_7:
	movq	_SQLITE_IOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sqlite3_result_error_code
	movq	%r12, %rdi
	callq	_sqlite3_free
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fclose                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.comm	_SQLITE_LIMIT_LENGTH,4,2        ## @SQLITE_LIMIT_LENGTH
	.comm	_SQLITE_TOOBIG,4,2              ## @SQLITE_TOOBIG
	.comm	_SQLITE_IOERR,4,2               ## @SQLITE_IOERR
	.no_dead_strip	_readFileContents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readFileContents
_readFileContents:                      ; @readFileContents
	.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
	mov	x8, x1
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_fopen
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
Lloh2:
	adrp	x8, _SEEK_END@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SEEK_END@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_fseek
	mov	x0, x19
	bl	_ftell
	mov	x21, x0
	mov	x0, x19
	bl	_rewind
	mov	x0, x20
	bl	_sqlite3_context_db_handle
Lloh5:
	adrp	x8, _SQLITE_LIMIT_LENGTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SQLITE_LIMIT_LENGTH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w2, #-1
	bl	_sqlite3_limit
	cmp	w21, w0
	b.le	LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _SQLITE_TOOBIG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SQLITE_TOOBIG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sqlite3_result_error_code
	b	LBB0_9
LBB0_3:
	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
LBB0_4:
	cmp	w21, #0
	csinc	w0, w21, wzr, ne
	bl	_sqlite3_malloc64
	cbz	x0, LBB0_7
; %bb.5:
	mov	x22, x0
	sxtw	x2, w21
	mov	w1, #1
	mov	x3, x19
	bl	_fread
	cmp	w21, w0
	b.ne	LBB0_8
; %bb.6:
Lloh11:
	adrp	x3, _sqlite3_free@GOTPAGE
Lloh12:
	ldr	x3, [x3, _sqlite3_free@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_sqlite3_result_blob64
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_sqlite3_result_error_nomem
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _SQLITE_IOERR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SQLITE_IOERR@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_sqlite3_result_error_code
	mov	x0, x22
	bl	_sqlite3_free
LBB0_9:
	mov	x0, x19
	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
	b	_fclose
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.comm	_SQLITE_LIMIT_LENGTH,4,2        ; @SQLITE_LIMIT_LENGTH
	.comm	_SQLITE_TOOBIG,4,2              ; @SQLITE_TOOBIG
	.comm	_SQLITE_IOERR,4,2               ; @SQLITE_IOERR
	.no_dead_strip	_readFileContents
.subsections_via_symbols
