	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readFile
_readFile:                              ## @readFile
	.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
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_8
## %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
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rewind
	leaq	1(%r12), %rdi
	callq	_sqlite3_malloc64
	testq	%rax, %rax
	je	LBB0_6
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_fclose
	cmpq	$1, %r13
	jne	LBB0_7
## %bb.3:
	movb	$0, (%r15,%r12)
	testq	%r14, %r14
	je	LBB0_9
## %bb.4:
	movl	%r12d, (%r14)
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_fclose
	jmp	LBB0_8
LBB0_7:
	movq	%r15, %rdi
	callq	_sqlite3_free
LBB0_8:
	xorl	%r15d, %r15d
LBB0_9:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
	.no_dead_strip	_readFile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readFile
_readFile:                              ; @readFile
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, 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, x20
	bl	_ftell
	mov	x22, x0
	mov	x0, x20
	bl	_rewind
	add	x0, x22, #1
	bl	_sqlite3_malloc64
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	mov	x3, x20
	bl	_fread
	mov	x23, x0
	mov	x0, x20
	bl	_fclose
	cmp	x23, #1
	b.ne	LBB0_6
; %bb.3:
	strb	wzr, [x21, x22]
	cbz	x19, LBB0_8
; %bb.4:
	str	w22, [x19]
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_fclose
	b	LBB0_8
LBB0_6:
	mov	x0, x21
	bl	_sqlite3_free
LBB0_7:
	mov	x21, #0
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
	.no_dead_strip	_readFile
.subsections_via_symbols
