	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cookedmode                     ## -- Begin function Cookedmode
	.p2align	4, 0x90
_Cookedmode:                            ## @Cookedmode
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_Tty_raw_mode@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	cmpq	$0, (%r12)
	je	LBB0_4
## %bb.1:
	leaq	-40(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_sigemptyset
	movq	_SIGINT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sigaddset
	movq	_SIG_BLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %r15
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_sigprocmask
	movq	_sigprocmask_cleanup@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_cleanup_push
	movq	_SHTTY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_extty@GOTPCREL(%rip), %rsi
	callq	_tty_setty
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_cleanup_until
	cmpl	$-1, %ebx
	je	LBB0_2
## %bb.3:
	movq	$0, (%r12)
	jmp	LBB0_4
LBB0_2:
	movl	$-1, %r14d
LBB0_4:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Tty_raw_mode,8,3               ## @Tty_raw_mode
	.comm	_SIGINT,4,2                     ## @SIGINT
	.comm	_SIG_BLOCK,4,2                  ## @SIG_BLOCK
	.comm	_sigprocmask_cleanup,4,2        ## @sigprocmask_cleanup
	.comm	_SHTTY,4,2                      ## @SHTTY
	.comm	_extty,4,2                      ## @extty
	.comm	_EX_IO,4,2                      ## @EX_IO
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Cookedmode                     ; -- Begin function Cookedmode
	.p2align	2
_Cookedmode:                            ; @Cookedmode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _Tty_raw_mode@GOTPAGE
Lloh1:
	ldr	x20, [x20, _Tty_raw_mode@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_3
; %bb.1:
	add	x0, sp, #12
	bl	_sigemptyset
Lloh2:
	adrp	x8, _SIGINT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SIGINT@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x0, sp, #12
	bl	_sigaddset
Lloh5:
	adrp	x8, _SIG_BLOCK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SIG_BLOCK@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_sigprocmask
Lloh8:
	adrp	x8, _sigprocmask_cleanup@GOTPAGE
Lloh9:
	ldr	x8, [x8, _sigprocmask_cleanup@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_cleanup_push
Lloh11:
	adrp	x8, _SHTTY@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SHTTY@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, _extty@GOTPAGE
Lloh15:
	ldr	x1, [x1, _extty@GOTPAGEOFF]
	bl	_tty_setty
	mov	x19, x0
	add	x0, sp, #8
	bl	_cleanup_until
	cmn	w19, #1
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	str	xzr, [x20]
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_Tty_raw_mode,8,3               ; @Tty_raw_mode
	.comm	_SIGINT,4,2                     ; @SIGINT
	.comm	_SIG_BLOCK,4,2                  ; @SIG_BLOCK
	.comm	_sigprocmask_cleanup,4,2        ; @sigprocmask_cleanup
	.comm	_SHTTY,4,2                      ; @SHTTY
	.comm	_extty,4,2                      ; @extty
	.comm	_EX_IO,4,2                      ; @EX_IO
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
