	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_yes_no_answer
_read_yes_no_answer:                    ## @read_yes_no_answer
	.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
	subq	$1032, %rsp                     ## imm = 0x408
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_stdin@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-1040(%rbp), %rdi
	movl	$1024, %esi                     ## imm = 0x400
	callq	_fgets
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	leaq	-1040(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strlen
	cmpq	$2, %rax
	jb	LBB0_5
## %bb.2:
	cmpb	$13, -2(%rax,%rbx)
	jne	LBB0_6
## %bb.3:
	addq	%rbx, %rax
	addq	$-2, %rax
	movb	$0, (%rax)
	jmp	LBB0_11
LBB0_5:
	testq	%rax, %rax
	je	LBB0_8
LBB0_6:
	cmpb	$10, -1(%rax,%rbx)
	jne	LBB0_8
## %bb.7:
	addq	%rbx, %rax
	decq	%rax
	movb	$0, (%rax)
	jmp	LBB0_11
LBB0_8:
	movq	_EOF@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$10, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpl	(%rbx), %eax
	jne	LBB0_9
LBB0_11:
	movsbl	-1040(%rbp), %edi
	callq	_tolower
	movl	$1, %ebx
	cmpb	$121, %al
	jne	LBB0_13
## %bb.12:
	cmpb	$0, -1039(%rbp)
	je	LBB0_17
LBB0_13:
	leaq	L_.str(%rip), %rsi
	leaq	-1040(%rbp), %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strncasecmp
	testl	%eax, %eax
	je	LBB0_17
## %bb.14:
	movsbl	-1040(%rbp), %edi
	callq	_tolower
	cmpb	$110, %al
	jne	LBB0_16
## %bb.15:
	cmpb	$0, -1039(%rbp)
	movl	$0, %ebx
	je	LBB0_17
LBB0_16:
	leaq	L_.str.1(%rip), %rsi
	leaq	-1040(%rbp), %rdi
	movl	$1024, %edx                     ## imm = 0x400
	callq	_strncasecmp
	xorl	%ebx, %ebx
	negl	%eax
	sbbl	%ebx, %ebx
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-16(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movl	%ebx, %eax
	addq	$1032, %rsp                     ## imm = 0x408
	popq	%rbx
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_stdin,4,2                      ## @stdin
	.comm	_EOF,4,2                        ## @EOF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"yes"

L_.str.1:                               ## @.str.1
	.asciz	"no"

	.no_dead_strip	_read_yes_no_answer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_yes_no_answer
_read_yes_no_answer:                    ; @read_yes_no_answer
	.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
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
Lloh3:
	adrp	x8, _stdin@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stdin@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #1024
	bl	_fgets
	cbz	x0, LBB0_15
; %bb.1:
	add	x19, sp, #8
	add	x0, sp, #8
	bl	_strlen
	cmp	x0, #2
	b.lo	LBB0_3
; %bb.2:
	add	x8, x0, x19
	ldrb	w9, [x8, #-2]!
	cmp	w9, #13
	b.ne	LBB0_4
	b	LBB0_5
LBB0_3:
	cbz	x0, LBB0_6
LBB0_4:
	add	x8, sp, #8
	add	x8, x0, x8
	ldrb	w9, [x8, #-1]!
	cmp	w9, #10
	b.ne	LBB0_6
LBB0_5:
	strb	wzr, [x8]
	b	LBB0_9
LBB0_6:
Lloh6:
	adrp	x19, _EOF@GOTPAGE
Lloh7:
	ldr	x19, [x19, _EOF@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x19]
	cmp	w0, w8
	b.ne	LBB0_7
LBB0_9:
	ldrsb	w0, [sp, #8]
	bl	_tolower
	ldrb	w8, [sp, #9]
	cmp	w0, #121
	ccmp	w8, #0, #0, eq
	b.eq	LBB0_14
; %bb.10:
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w2, #1024
	bl	_strncasecmp
	cbz	w0, LBB0_14
; %bb.11:
	ldrsb	w0, [sp, #8]
	bl	_tolower
	cmp	w0, #110
	b.ne	LBB0_17
; %bb.12:
	ldrb	w8, [sp, #9]
	cbnz	w8, LBB0_17
; %bb.13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #1
LBB0_15:
	ldur	x8, [x29, #-24]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.16:
	add	sp, sp, #1040
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_17:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #8
	mov	w2, #1024
	bl	_strncasecmp
	cmp	w0, #0
	csetm	w0, ne
	b	LBB0_15
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_stdin,4,2                      ; @stdin
	.comm	_EOF,4,2                        ; @EOF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"yes"

l_.str.1:                               ; @.str.1
	.asciz	"no"

	.no_dead_strip	_read_yes_no_answer
.subsections_via_symbols
