	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_data_copy_file                 ## -- Begin function data_copy_file
	.p2align	4, 0x90
_data_copy_file:                        ## @data_copy_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	%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, %r15
	movq	%rdi, %r12
	movq	_empty_data@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	8(%rax), %r13
	callq	_feof
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	cmpq	%r15, %r14
	jae	LBB0_9
## %bb.2:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rbx
	subq	%r14, %rbx
	cmpq	$-1, %r15
	movl	$4096, %eax                     ## imm = 0x1000
	cmoveq	%rax, %rbx
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_data_grow_for
	movq	%rax, %r14
	movq	%rdx, %r15
	leaq	(%rdx,%rax), %rdi
	movl	$1, %esi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_fread
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	%r13, %r14
	jae	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_feof
	testl	%eax, %eax
	movq	%r15, %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r15, %r14
	jb	LBB0_3
LBB0_9:
	movq	%r14, %rax
	movq	%r13, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_empty_data,16,3                ## @empty_data
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading file into data: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Overflow reading file into data\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_data_copy_file                 ; -- Begin function data_copy_file
	.p2align	2
_data_copy_file:                        ; @data_copy_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _empty_data@GOTPAGE
Lloh1:
	ldr	x8, [x8, _empty_data@GOTPAGEOFF]
	ldp	x24, x19, [x8]
	bl	_feof
	cbnz	w0, LBB0_9
; %bb.1:
	cmp	x24, x20
	b.hs	LBB0_9
; %bb.2:
	mov	w26, #4096
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x27, _errno@GOTPAGE
Lloh5:
	ldr	x27, [x27, _errno@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sub	x8, x20, x24
	cmn	x20, #1
	csel	x25, x26, x8, eq
	mov	x0, x24
	mov	x1, x19
	mov	x2, x25
	bl	_data_grow_for
	mov	x24, x0
	mov	x19, x1
	add	x0, x1, x0
	mov	w1, #1
	mov	x2, x25
	mov	x3, x21
	bl	_fread
	mov	x25, x0
	mov	x0, x21
	bl	_ferror
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x27]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
	mov	x0, x23
	bl	_die
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	adds	x24, x24, x25
	b.lo	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_die
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_feof
	cbnz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x24, x20
	b.lo	LBB0_3
LBB0_9:
	mov	x0, x24
	mov	x1, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_empty_data,16,3                ; @empty_data
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading file into data: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Overflow reading file into data\n"

.subsections_via_symbols
