	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ReadFileContents
_ReadFileContents:                      ## @ReadFileContents
	.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, %r14
	movq	%rdi, %rbx
	movl	$4000, %edi                     ## imm = 0xFA0
	callq	_cmd_alloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r12
	movq	_CMDLINE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	__fgetts
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	$1000, %ebx                     ## imm = 0x3E8
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%r14, %rdi
	callq	__tcslen
	movl	%eax, %r13d
	addl	%r15d, %r13d
	movq	%r12, %rax
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rax, %r12
	cmpl	%ebx, %r13d
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	leal	(%rbx,%rbx), %r14d
	shll	$3, %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_cmd_realloc
	movl	%r14d, %ebx
	testq	%rax, %rax
	jne	LBB0_4
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movslq	%r15d, %rax
	leaq	(%r12,%rax,4), %rdi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	callq	__tcscpy
	movq	_CMDLINE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	__fgetts
	movl	%r13d, %r15d
	testq	%rax, %rax
	jne	LBB0_3
## %bb.7:
	movslq	%r13d, %r15
LBB0_8:
	xorl	%edi, %edi
	callq	__T
	movl	%eax, (%r12,%r15,4)
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	callq	_WARN
	movq	%r12, %rdi
	callq	_cmd_free
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str(%rip), %rdi
	callq	_WARN
LBB0_11:
	xorl	%r12d, %r12d
LBB0_12:
	movq	%r12, %rax
	addq	$24, %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	"Cannot allocate memory for Contents!\n"

	.comm	_CMDLINE_LENGTH,4,2             ## @CMDLINE_LENGTH
L_.str.1:                               ## @.str.1
	.asciz	"Cannot reallocate memory for Contents!\n"

	.no_dead_strip	_ReadFileContents
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ReadFileContents
_ReadFileContents:                      ; @ReadFileContents
	.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	x20, x1
	mov	x21, x0
	mov	w0, #4000
	bl	_cmd_alloc
	mov	x19, x0
	cbz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x22, _CMDLINE_LENGTH@GOTPAGE
Lloh1:
	ldr	x22, [x22, _CMDLINE_LENGTH@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	__fgetts
	cbz	x0, LBB0_10
; %bb.2:
	mov	w24, #0
	mov	w23, #1000
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	x0, x20
	bl	__tcslen
	add	w25, w0, w24
	mov	x0, x19
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x19, x0
	cmp	w25, w23
	b.lt	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	lsl	w26, w23, #1
	lsl	w1, w23, #3
	mov	x0, x19
	bl	_cmd_realloc
	mov	x23, x26
	cbnz	x0, LBB0_4
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x0, x19, w24, sxtw #2
	mov	x1, x20
	bl	__tcscpy
	ldr	w1, [x22]
	mov	x0, x20
	mov	x2, x21
	bl	__fgetts
	mov	x24, x25
	cbnz	x0, LBB0_3
; %bb.7:
	sxtw	x20, w25
	b	LBB0_11
LBB0_8:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_WARN
	mov	x0, x19
	bl	_cmd_free
	mov	x19, #0
	b	LBB0_12
LBB0_9:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_WARN
	b	LBB0_12
LBB0_10:
	mov	x20, #0
LBB0_11:
	mov	w0, #0
	bl	__T
	str	w0, [x19, x20, lsl #2]
LBB0_12:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot allocate memory for Contents!\n"

	.comm	_CMDLINE_LENGTH,4,2             ; @CMDLINE_LENGTH
l_.str.1:                               ; @.str.1
	.asciz	"Cannot reallocate memory for Contents!\n"

	.no_dead_strip	_ReadFileContents
.subsections_via_symbols
