	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overlay_help_get_line
_overlay_help_get_line:                 ## @overlay_help_get_line
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	js	LBB0_1
## %bb.17:
	movl	4(%rbx), %eax
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	js	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	24(%rbx), %eax
	leal	1(%rax), %ecx
	movl	%ecx, 24(%rbx)
	testl	%eax, %eax
	jg	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	$0, (%rbx)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rax
	movb	$32, 7(%rax)
	movq	8(%rbx), %rdi
	movl	28(%rbx), %edx
	movl	$8, %esi
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rdi
	callq	_strlen
	testl	%eax, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rbx), %rcx
	movslq	%eax, %rdx
	cmpb	$10, -1(%rcx,%rdx)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rdx
	movb	$0, (%rcx,%rdx)
	movl	%edx, %eax
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$0, 16(%rbx)
	js	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	%eax, %eax
	je	LBB0_7
	jmp	LBB0_14
LBB0_13:
	movl	$-1, %eax
	cmpq	$0, 16(%rbx)
	js	LBB0_11
LBB0_14:
	cmpl	$0, 24(%rbx)
	je	LBB0_11
## %bb.15:
	movl	$0, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_8:
	movl	$-1, %eax
	jmp	LBB0_16
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	movl	%eax, 4(%rbx)
	movl	%eax, %ecx
	sarl	$31, %ecx
	movl	%ecx, (%rbx)
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_overlay_help_get_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function overlay_help_get_line
_overlay_help_get_line:                 ; @overlay_help_get_line
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	b	LBB0_18
LBB0_2:
	ldr	x8, [x19, #8]
	mov	w20, #32
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	strb	w20, [x8, #7]
	ldr	x0, [x19, #8]
	ldr	w2, [x19, #28]
	mov	w1, #8
	bl	_fgets
	cbz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #8]
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #8]
	sxtw	x9, w0
	sub	x9, x9, #1
	ldrb	w10, [x8, x9]
	cmp	w10, #10
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	wzr, [x8, x9]
	mov	x0, x9
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	tbnz	x8, #63, LBB0_17
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_10
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x19, #16]
	tbnz	x8, #63, LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x19, #24]
	add	w9, w8, #1
	str	w9, [x19, #24]
	cmp	w8, #0
	b.gt	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	str	wzr, [x19]
	ldr	x8, [x19, #8]
	b	LBB0_3
LBB0_12:
	ldr	x8, [x19, #16]
	mov	w0, #-1
	tbnz	x8, #63, LBB0_17
LBB0_13:
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_17
; %bb.14:
	mov	w0, #0
	str	wzr, [x19, #24]
	b	LBB0_18
LBB0_15:
	mov	w0, #-1
	b	LBB0_18
LBB0_16:
	mov	w0, #0
LBB0_17:
	asr	w8, w0, #31
	stp	w8, w0, [x19]
LBB0_18:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_overlay_help_get_line
.subsections_via_symbols
