	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function load
_load:                                  ## @load
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	20(%rdi), %edi
	callq	_fileno
	leaq	-32(%rbp), %rsi
	movl	%eax, %edi
	callq	_fstat
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	16(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_2:
	movq	-32(%rbp), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.3:
	movl	16(%r14), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_errx
LBB0_4:
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movl	16(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_err
LBB0_6:
	movl	20(%r14), %ecx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_fread
	cmpq	$1, %rax
	je	LBB0_8
## %bb.7:
	movl	16(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_8:
	movq	%r15, (%r14)
	movq	%rbx, 8(%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: fstat"

L_.str.1:                               ## @.str.1
	.asciz	"%s: file is empty"

L_.str.2:                               ## @.str.2
	.asciz	"%s: cannot malloc %zd bytes"

L_.str.3:                               ## @.str.3
	.asciz	"%s: fread"

	.no_dead_strip	_load
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function load
_load:                                  ; @load
	.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	x19, x0
	ldr	w0, [x0, #20]
	bl	_fileno
	add	x1, sp, #8
	bl	_fstat
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w2, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_2:
	ldr	x20, [sp, #8]
	cbnz	x20, LBB0_4
; %bb.3:
	ldr	w2, [x19, #16]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_4:
	mov	x0, x20
	bl	_malloc
	mov	x21, x0
	cbnz	x0, LBB0_6
; %bb.5:
	ldr	w2, [x19, #16]
	str	x20, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_6:
	ldr	w3, [x19, #20]
	mov	x0, x21
	mov	x1, x20
	mov	w2, #1
	bl	_fread
	cmp	x0, #1
	b.eq	LBB0_8
; %bb.7:
	ldr	w2, [x19, #16]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_8:
	stp	x21, x20, [x19]
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: fstat"

l_.str.1:                               ; @.str.1
	.asciz	"%s: file is empty"

l_.str.2:                               ; @.str.2
	.asciz	"%s: cannot malloc %zd bytes"

l_.str.3:                               ; @.str.3
	.asciz	"%s: fread"

	.no_dead_strip	_load
.subsections_via_symbols
