	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_askuser                        ## -- Begin function askuser
	.p2align	4, 0x90
_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	_feof
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movl	(%r13), %edi
	callq	_ferror
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	testq	%rbx, %rbx
	setne	%r12b
	movq	_stderr@GOTPCREL(%rip), %r15
	leaq	_askuser.answer(%rip), %r14
	xorb	$1, %r12b
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movzbl	_askuser.answer(%rip), %eax
	testb	%al, %al
	sete	%cl
	testb	%r12b, %cl
	je	LBB0_13
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_fprintf
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	callq	_fflush
	movl	(%r13), %edx
	movq	%r14, %rdi
	movl	$256, %esi                      ## imm = 0x100
	callq	_fgets
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movb	$0, (%rax)
	jmp	LBB0_12
LBB0_7:
	testq	%rbx, %rbx
	jne	LBB0_14
## %bb.8:
	movl	(%r15), %edi
	jmp	LBB0_9
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
LBB0_15:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_9:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.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? "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_askuser                        ; -- Begin function askuser
	.p2align	2
_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	_feof
	cbnz	x0, LBB0_14
; %bb.1:
	ldr	w0, [x23]
	bl	_ferror
	cbnz	x0, LBB0_14
; %bb.2:
	cmp	x19, #0
	cset	w8, ne
Lloh2:
	adrp	x24, _stderr@GOTPAGE
Lloh3:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str.2@PAGE
Lloh5:
	add	x21, x21, l_.str.2@PAGEOFF
Lloh6:
	adrp	x20, _askuser.answer@PAGE
Lloh7:
	add	x20, x20, _askuser.answer@PAGEOFF
	adrp	x25, _askuser.answer@PAGE
	eor	w26, w8, #0x1
Lloh8:
	adrp	x22, l_.str.1@PAGE
Lloh9:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x25, _askuser.answer@PAGEOFF]
	cmp	w8, #0
	cset	w8, eq
	and	w8, w8, w26
	tbz	w8, #0, LBB0_12
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	cbz	x19, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	x19, [sp]
	mov	x1, x22
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x21
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_fprintf
	ldr	w0, [x24]
	bl	_fflush
	ldr	w2, [x23]
	mov	x0, x20
	mov	w1, #256
	bl	_fgets
	cbz	x0, LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #10
	bl	_strchr
	cbz	x0, LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	strb	wzr, [x0]
	b	LBB0_3
LBB0_10:
	cbnz	x19, LBB0_13
; %bb.11:
	ldr	w0, [x24]
	b	LBB0_15
LBB0_12:
	csel	x19, x20, x19, ne
LBB0_13:
	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
LBB0_14:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
LBB0_15:
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.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? "

.subsections_via_symbols
