	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readln
_readln:                                ## @readln
	.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	%rcx, %r14
	movq	%rdx, %rbx
	movq	%rsi, %r15
	movl	%edi, %r12d
	movslq	(%rcx), %rdi
	movl	(%rdx), %edx
	subl	%edi, %edx
	addq	%rsi, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strnstr
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_1
LBB0_12:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$-1, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addl	(%rbx), %eax
	movl	%eax, (%rbx)
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r14), %rdi
	subl	%edi, %eax
	addq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_strnstr
	testq	%rax, %rax
	jne	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	addq	%r15, %rsi
	movl	(%rbx), %edx
	subl	%eax, %edx
	movq	%r15, %rdi
	callq	_memmove
	movl	(%r14), %eax
	subl	%eax, (%rbx)
	movl	$0, (%r14)
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%rbx), %rax
	movq	_BUFSIZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmpl	%eax, %edx
	je	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rsi
	addq	%r15, %rsi
	subl	%eax, %edx
	movl	%r12d, %edi
	xorl	%ecx, %ecx
	callq	_recv
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_EINTR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %eax
	jmp	LBB0_10
LBB0_11:
	xorl	%r13d, %r13d
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\r\n"

	.comm	_BUFSIZ,4,2                     ## @BUFSIZ
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.no_dead_strip	_readln
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readln
_readln:                                ; @readln
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldrsw	x8, [x3]
	add	x0, x1, x8
	ldr	w9, [x2]
	sub	w2, w9, w8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strnstr
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_13
LBB0_2:
Lloh2:
	adrp	x24, _BUFSIZ@GOTPAGE
Lloh3:
	ldr	x24, [x24, _BUFSIZ@GOTPAGEOFF]
Lloh4:
	adrp	x25, _errno@GOTPAGE
Lloh5:
	ldr	x25, [x25, _errno@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str@PAGE
Lloh7:
	add	x23, x23, l_.str@PAGEOFF
Lloh8:
	adrp	x26, _EINTR@GOTPAGE
Lloh9:
	ldr	x26, [x26, _EINTR@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	cbz	w0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x9, [x19]
	add	x0, x21, x9
	sub	w2, w8, w9
	mov	x1, x23
	bl	_strnstr
	cbnz	x0, LBB0_1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x8, [x19]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x21, x8
	ldr	w9, [x20]
	sub	w2, w9, w8
	mov	x0, x21
	bl	_memmove
	ldr	w8, [x19]
	ldr	w9, [x20]
	sub	w8, w9, w8
	str	w8, [x20]
	str	wzr, [x19]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x8, [x20]
	ldr	w9, [x24]
	cmp	w9, w8
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, x21, x8
	sub	w2, w9, w8
	mov	x0, x22
	mov	w3, #0
	bl	_recv
	cmn	w0, #1
	b.ne	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x25]
	ldr	x9, [x26]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x20]
	b	LBB0_5
LBB0_12:
	mov	w0, #-1
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\r\n"

	.comm	_BUFSIZ,4,2                     ; @BUFSIZ
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.no_dead_strip	_readln
.subsections_via_symbols
