	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function askuser
_askuser:                               ## @askuser
	.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	%rdi, %rbx
	movq	_stdin@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_clearerr
	movl	(%r13), %edi
	callq	_feof
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %edi
	callq	_ferror
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_exit_error
LBB0_3:
	testq	%rbx, %rbx
	setne	%r15b
	movq	_stderr@GOTPCREL(%rip), %r12
	leaq	_askuser.answer(%rip), %r14
	xorb	$1, %r15b
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movzbl	_askuser.answer(%rip), %eax
	testb	%al, %al
	sete	%cl
	testb	%r15b, %cl
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	callq	_fflush
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movb	$0, (%rax)
	jmp	LBB0_12
LBB0_8:
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.9:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_exit_error
	jmp	LBB0_14
LBB0_13:
	testb	%al, %al
	cmovneq	%r14, %rbx
LBB0_14:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_askuser.answer,256,4 ## @askuser.answer
	.comm	_stdin,4,2                      ## @stdin
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Terminal type? [%s] "

L_.str.2:                               ## @.str.2
	.asciz	"Terminal type? "

	.no_dead_strip	_askuser
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function askuser
_askuser:                               ; @askuser
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x0
Lloh0:
	adrp	x23, _stdin@GOTPAGE
Lloh1:
	ldr	x23, [x23, _stdin@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_clearerr
	ldr	w0, [x23]
	bl	_feof
Lloh2:
	adrp	x24, _stderr@GOTPAGE
Lloh3:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x23]
	bl	_ferror
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w0, [x24]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	bl	_exit_error
LBB0_3:
	cmp	x19, #0
	cset	w8, ne
Lloh6:
	adrp	x21, l_.str.2@PAGE
Lloh7:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh8:
	adrp	x20, _askuser.answer@PAGE
Lloh9:
	add	x20, x20, _askuser.answer@PAGEOFF
	adrp	x25, _askuser.answer@PAGE
	eor	w26, w8, #0x1
Lloh10:
	adrp	x22, l_.str.1@PAGE
Lloh11:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x25, _askuser.answer@PAGEOFF]
	cmp	w8, #0
	cset	w8, eq
	and	w8, w8, w26
	tbz	w8, #0, LBB0_13
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	cbz	x19, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	x19, [sp]
	mov	x1, x22
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x21
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_fprintf
	ldr	w0, [x24]
	bl	_fflush
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #256
	bl	_fgets
	cbz	x0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	strb	wzr, [x0]
	b	LBB0_4
LBB0_11:
	cbnz	x19, LBB0_14
; %bb.12:
	bl	_exit_error
	b	LBB0_14
LBB0_13:
	csel	x19, x20, x19, ne
LBB0_14:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_askuser.answer,256,0 ; @askuser.answer
	.comm	_stdin,4,2                      ; @stdin
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Terminal type? [%s] "

l_.str.2:                               ; @.str.2
	.asciz	"Terminal type? "

	.no_dead_strip	_askuser
.subsections_via_symbols
