	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_memory_stream_getln    ## -- Begin function _citrus_memory_stream_getln
	.p2align	4, 0x90
__citrus_memory_stream_getln:           ## @_citrus_memory_stream_getln
	.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, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	__region_size
	cmpq	%rax, %rbx
	jge	LBB0_1
## %bb.2:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%r15), %rsi
	movq	%r12, %rdi
	callq	__region_offset
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	__region_size
	movq	(%r15), %r12
	cmpq	%r12, %rax
	je	LBB0_3
## %bb.4:
	notq	%r12
	addq	%rax, %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%rbx), %r14
	movl	(%r13,%rbx,4), %edi
	callq	__bcs_iseol
	testq	%rax, %rax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpq	%rbx, %r12
	movq	%r14, %rbx
	jne	LBB0_5
LBB0_7:
	movq	(%r15), %r12
	jmp	LBB0_8
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_9
LBB0_3:
	xorl	%r14d, %r14d
LBB0_8:
	addq	%r14, %r12
	movq	%r12, (%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
LBB0_9:
	movq	%r13, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__citrus_memory_stream_getln    ; -- Begin function _citrus_memory_stream_getln
	.p2align	2
__citrus_memory_stream_getln:           ; @_citrus_memory_stream_getln
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	mov	x22, x0
	ldr	x21, [x22], #8
	mov	x0, x22
	bl	__region_size
	cmp	x21, x0
	b.ge	LBB0_5
; %bb.1:
	ldr	x1, [x20]
	mov	x0, x22
	bl	__region_offset
	mov	x21, x0
	mov	x0, x22
	bl	__region_size
	ldr	x8, [x20]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.2:
	mov	x22, #0
	mvn	x8, x8
	add	x23, x8, x0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x24, x22
	add	x22, x22, #1
	ldr	w0, [x21, x24, lsl #2]
	bl	__bcs_iseol
	cmp	x0, #0
	ccmp	x23, x24, #4, eq
	b.ne	LBB0_3
; %bb.4:
	ldr	x8, [x20]
	b	LBB0_7
LBB0_5:
	mov	x21, #0
	b	LBB0_8
LBB0_6:
	mov	x22, #0
LBB0_7:
	add	x8, x8, x22
	str	x8, [x20]
	str	x22, [x19]
LBB0_8:
	mov	x0, x21
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
