	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_all
_read_all:                              ## @read_all
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movl	$1024, %r13d                    ## imm = 0x400
	movl	$1024, %edi                     ## imm = 0x400
	callq	_xmalloc
	movq	%rax, %r12
	xorl	%ecx, %ecx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	(%r12,%rbx), %rdi
	movq	%r13, %rdx
	subq	%rbx, %rdx
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_fread
	leaq	(%rax,%rbx), %rcx
	testq	%rax, %rax
	je	LBB0_4
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	cmpq	%r13, %rcx
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %r14
	addq	%r13, %r14
	movq	%r14, %rdi
	callq	_xmalloc
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_xfree
	movq	%r14, %r13
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r15, %r12
	jmp	LBB0_3
LBB0_4:
	movq	%rbx, %rdi
	callq	_xmalloc
	movq	%rax, %r14
	movq	%rax, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
	movq	%r12, %rdi
	callq	_xfree
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_all
_read_all:                              ; @read_all
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x21, x0
	mov	w23, #1024
	mov	w0, #1024
	bl	_xmalloc
	mov	x20, x0
	mov	x8, #0
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x0, x20, x22
	sub	x2, x23, x22
	mov	w1, #1
	mov	x3, x21
	bl	_fread
	add	x8, x0, x22
	cbz	x0, LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	cmp	x8, x23
	b.ne	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	x24, x23, #1
	mov	x0, x24
	bl	_xmalloc
	mov	x25, x0
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	mov	x0, x20
	bl	_xfree
	mov	x23, x24
	mov	x20, x25
	b	LBB0_1
LBB0_4:
	mov	x0, x22
	bl	_xmalloc
	mov	x21, x0
	mov	x1, x20
	mov	x2, x22
	bl	_memcpy
	mov	x0, x20
	bl	_xfree
	str	x22, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_all
.subsections_via_symbols
