	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_file                      ## -- Begin function load_file
	.p2align	4, 0x90
_load_file:                             ## @load_file
	.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	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	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
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_rewind
	movl	%r12d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	movq	%rbx, %rcx
	callq	_fread
	cmpl	$1, %eax
	je	LBB0_5
## %bb.9:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movq	%rbx, %rdi
	callq	_fclose
	movq	%r14, %rdi
	callq	_free
	xorl	%r14d, %r14d
	jmp	LBB0_10
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
LBB0_4:
	xorl	%r14d, %r14d
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_5:
	movq	%rbx, %rdi
	callq	_fclose
LBB0_10:
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rb"

L_.str.1:                               ## @.str.1
	.asciz	"ERROR: %s couldn't be opened!\n"

	.comm	_SEEK_END,4,2                   ## @SEEK_END
L_.str.2:                               ## @.str.2
	.asciz	"ERROR: Size of %s is 0!\n"

L_.str.3:                               ## @.str.3
	.asciz	"ERROR: Not enought memory to load %s!\n"

L_str:                                  ## @str
	.asciz	"ERROR: Error while reading."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_file                      ; -- Begin function load_file
	.p2align	2
_load_file:                             ; @load_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_5
; %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
	cbz	w0, LBB0_6
; %bb.2:
	mov	x22, x0
	mov	x0, x19
	bl	_rewind
	mov	x0, x22
	bl	_malloc
	mov	x21, x0
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x21
	mov	x1, x22
	mov	w2, #1
	mov	x3, x19
	bl	_fread
	cmp	w0, #1
	b.eq	LBB0_9
; %bb.4:
Lloh5:
	adrp	x0, l_str@PAGE
Lloh6:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	x0, x19
	bl	_fclose
	mov	x0, x21
	bl	_free
	b	LBB0_7
LBB0_5:
	str	x20, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_printf
	b	LBB0_7
LBB0_6:
	str	x20, [sp]
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printf
	mov	x0, x19
	bl	_fclose
LBB0_7:
	mov	x21, #0
	b	LBB0_10
LBB0_8:
	str	x20, [sp]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
LBB0_9:
	mov	x0, x19
	bl	_fclose
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rb"

l_.str.1:                               ; @.str.1
	.asciz	"ERROR: %s couldn't be opened!\n"

	.comm	_SEEK_END,4,2                   ; @SEEK_END
l_.str.2:                               ; @.str.2
	.asciz	"ERROR: Size of %s is 0!\n"

l_.str.3:                               ; @.str.3
	.asciz	"ERROR: Not enought memory to load %s!\n"

l_str:                                  ; @str
	.asciz	"ERROR: Error while reading."

.subsections_via_symbols
