	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_utils_readline             ## -- Begin function atf_utils_readline
	.p2align	4, 0x90
_atf_utils_readline:                    ## @atf_utils_readline
	.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
	movl	%edi, %r13d
	leaq	-48(%rbp), %rdi
	callq	_atf_dynstr_init
	movl	%eax, %edi
	callq	_atf_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ATF_REQUIRE
	leaq	-41(%rbp), %rsi
	movl	%r13d, %edi
	movl	$1, %edx
	callq	_read
	movl	%eax, %ebx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	movb	-41(%rbp), %al
	cmpb	$10, %al
	je	LBB0_5
## %bb.2:
	leaq	L_.str(%rip), %r14
	leaq	-48(%rbp), %r15
	leaq	-41(%rbp), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_atf_dynstr_append_fmt
	movl	%eax, %edi
	callq	_atf_is_error
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_ATF_REQUIRE
	movl	%r13d, %edi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_read
	movl	%eax, %ebx
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-41(%rbp), %eax
	cmpb	$10, %al
	jne	LBB0_3
LBB0_5:
	xorl	%edi, %edi
	cmpl	$-1, %ebx
	setne	%dil
	callq	_ATF_REQUIRE
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:
	leaq	-48(%rbp), %rdi
	callq	_atf_dynstr_length
	testq	%rax, %rax
	je	LBB0_7
LBB0_8:
	leaq	-48(%rbp), %rdi
	callq	_atf_dynstr_fini_disown
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	-48(%rbp), %rdi
	callq	_atf_dynstr_fini
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%c"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_atf_utils_readline             ; -- Begin function atf_utils_readline
	.p2align	2
_atf_utils_readline:                    ; @atf_utils_readline
	.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	x19, x0
	add	x0, sp, #8
	bl	_atf_dynstr_init
	bl	_atf_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_read
	mov	x21, x0
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.1:
	ldrb	w8, [sp, #15]
	cmp	w8, #10
	b.eq	LBB0_5
; %bb.2:
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	sxtb	w2, w8
	add	x0, sp, #8
	mov	x1, x20
	bl	_atf_dynstr_append_fmt
	bl	_atf_is_error
	cmp	w0, #0
	cset	w0, eq
	bl	_ATF_REQUIRE
	add	x1, sp, #15
	mov	x0, x19
	mov	w2, #1
	bl	_read
	mov	x21, x0
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldrb	w8, [sp, #15]
	cmp	w8, #10
	b.ne	LBB0_3
LBB0_5:
	cmn	w21, #1
	cset	w0, ne
	bl	_ATF_REQUIRE
	cbnz	w21, LBB0_7
; %bb.6:
	add	x0, sp, #8
	bl	_atf_dynstr_length
	cbz	x0, LBB0_9
LBB0_7:
	add	x0, sp, #8
	bl	_atf_dynstr_fini_disown
LBB0_8:
	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
LBB0_9:
	add	x0, sp, #8
	bl	_atf_dynstr_fini
	mov	x0, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%c"

.subsections_via_symbols
