	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_segment                   ## -- Begin function load_segment
	.p2align	4, 0x90
_load_segment:                          ## @load_segment
	.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	%rsi, %r14
	movq	(%rdi), %rbx
	movq	$0, 32(%rbx)
	movq	8(%rbx), %rdi
	movq	$-1000, %rdx                    ## imm = 0xFC18
	addq	24(%rbx), %rdx
	movl	$1, %esi
	movq	%r14, %rcx
	callq	_hc_fread
	movq	%rax, (%rbx)
	movq	8(%rbx), %rcx
	movb	$0, (%rcx,%rax)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	8(%rbx), %rcx
	cmpb	$10, -1(%rax,%rcx)
	je	LBB0_10
## %bb.2:
	movq	_EOF@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_hc_feof
	testl	%eax, %eax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	16(%rbx), %rsi
	cmpq	%rsi, (%rbx)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rdi
	movq	24(%rbx), %rdx
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_hcrealloc
	movq	%rax, 8(%rbx)
	movl	24(%rbx), %eax
	addl	%eax, 16(%rbx)
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	callq	_hc_fgetc
	cmpl	(%r15), %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rcx
	movq	8(%rbx), %rdx
	movb	%al, (%rdx,%rcx)
	incq	(%rbx)
	cmpl	$10, %eax
	jne	LBB0_3
LBB0_8:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	cmpb	$10, -1(%rax,%rcx)
	je	LBB0_10
## %bb.9:
	leaq	1(%rax), %rdx
	movq	%rdx, (%rbx)
	movb	$10, (%rcx,%rax)
LBB0_10:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EOF,4,2                        ## @EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_load_segment                   ; -- Begin function load_segment
	.p2align	2
_load_segment:                          ; @load_segment
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	ldr	x20, [x0]
	str	xzr, [x20, #32]
	ldr	x0, [x20, #8]
	ldr	x8, [x20, #24]
	sub	x2, x8, #1000
	mov	w1, #1
	mov	x3, x19
	bl	_hc_fread
	str	x0, [x20]
	ldr	x8, [x20, #8]
	strb	wzr, [x8, x0]
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.1:
	ldr	x9, [x20, #8]
	add	x8, x8, x9
	ldurb	w8, [x8, #-1]
	cmp	w8, #10
	b.eq	LBB0_10
; %bb.2:
Lloh0:
	adrp	x21, _EOF@GOTPAGE
Lloh1:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_hc_feof
	cbnz	w0, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x20]
	ldrsw	x1, [x20, #16]
	cmp	x8, x1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x20, #8]
	ldr	x2, [x20, #24]
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_hcrealloc
	str	x0, [x20, #8]
	ldr	w8, [x20, #24]
	ldr	w9, [x20, #16]
	add	w8, w9, w8
	str	w8, [x20, #16]
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_hc_fgetc
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x9, x8, [x20]
	strb	w0, [x8, x9]
	ldr	x8, [x20]
	add	x8, x8, #1
	str	x8, [x20]
	cmp	w0, #10
	b.ne	LBB0_3
LBB0_8:
	ldp	x9, x8, [x20]
	add	x10, x9, x8
	ldurb	w10, [x10, #-1]
	cmp	w10, #10
	b.eq	LBB0_10
; %bb.9:
	add	x10, x9, #1
	str	x10, [x20]
	mov	w10, #10
	strb	w10, [x8, x9]
LBB0_10:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_EOF,4,2                        ; @EOF
.subsections_via_symbols
