	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function compat_getline
_compat_getline:                        ## @compat_getline
	.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	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -48(%rbp)
	xorl	%ecx, %ecx
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rbx
	movq	%r12, %rdi
	callq	_getc
	cmpl	$128, %eax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$10, %eax
	je	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %edi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_add_byte
	leaq	1(%rbx), %rcx
	testl	%eax, %eax
	jns	LBB0_1
	jmp	LBB0_8
LBB0_3:
	leaq	-48(%rbp), %rsi
	movl	$10, %edi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_add_byte
	testl	%eax, %eax
	js	LBB0_8
## %bb.4:
	incq	%rbx
LBB0_5:
	xorl	%r12d, %r12d
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	movq	%rbx, %rdx
	movq	%r15, %rcx
	callq	_add_byte
	testl	%eax, %eax
	js	LBB0_8
## %bb.6:
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	cmpq	$1, %rbx
	sbbl	%r12d, %r12d
	orl	%ebx, %r12d
	jmp	LBB0_9
LBB0_8:
	movq	-48(%rbp), %rax
	movb	$0, -1(%rbx,%rax)
	movq	-48(%rbp), %rax
	movq	%rax, (%r14)
	movl	$-1, %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_compat_getline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function compat_getline
_compat_getline:                        ; @compat_getline
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x8, #0
	ldr	x9, [x0]
	str	x9, [sp, #8]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	mov	x0, x22
	bl	_getc
	cmp	w0, #128
	b.eq	LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	add	x1, sp, #8
	mov	x2, x20
	mov	x3, x21
	cmp	w0, #10
	b.eq	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	bl	_add_byte
	add	x8, x20, #1
	tbz	w0, #31, LBB0_1
	b	LBB0_8
LBB0_4:
	bl	_add_byte
	tbnz	w0, #31, LBB0_8
; %bb.5:
	add	x20, x20, #1
LBB0_6:
	add	x1, sp, #8
	mov	w0, #0
	mov	x2, x20
	mov	x3, x21
	bl	_add_byte
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	x8, [sp, #8]
	str	x8, [x19]
	cmp	x20, #0
	csinv	w0, w20, wzr, ne
	b	LBB0_9
LBB0_8:
	ldr	x8, [sp, #8]
	add	x8, x20, x8
	sturb	wzr, [x8, #-1]
	ldr	x8, [sp, #8]
	str	x8, [x19]
	mov	w0, #-1
LBB0_9:
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_compat_getline
.subsections_via_symbols
