	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sgetline
_sgetline:                              ## @sgetline
	.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
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.1:
	movq	%rdi, %rbx
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	cmpq	%rbx, %rax
	jbe	LBB0_4
## %bb.3:
	leaq	-1(%rax), %rcx
	cmpb	$13, -1(%rax)
	cmoveq	%rcx, %rax
LBB0_4:
	subl	%ebx, %eax
	movq	%rbx, %rdi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_hb_strndup                     ## TAILCALL
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_strdup                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sgetline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sgetline
_sgetline:                              ; @sgetline
	.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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_6
; %bb.2:
	cmp	x0, x19
	b.ls	LBB0_4
; %bb.3:
	mov	x8, x0
	ldrb	w9, [x8, #-1]!
	cmp	w9, #13
	csel	x0, x8, x0, eq
LBB0_4:
	sub	w1, w0, w19
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hb_strndup
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_strdup
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sgetline
.subsections_via_symbols
