	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_edit_chars                 ## -- Begin function set_edit_chars
	.p2align	4, 0x90
_set_edit_chars:                        ## @set_edit_chars
	.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	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	-24(%rbp), %rsi
	xorl	%edi, %edi
	callq	_tcgetattr
	movq	-24(%rbp), %rcx
	movq	_VERASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movsbl	(%rcx,%rax), %eax
	movq	_my_win@GOTPCREL(%rip), %r8
	movb	%al, (%r8)
	movq	_VKILL@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movb	(%rcx,%rdx), %dl
	movb	%dl, 1(%r8)
	movq	_VWERASE@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movb	(%rcx,%rdi), %cl
	movb	%cl, 2(%r8)
	movq	__POSIX_VDISABLE@GOTPCREL(%rip), %rdi
	movsbl	(%rdi), %edi
	cmpl	%eax, %edi
	jne	LBB0_2
## %bb.1:
	movq	_CERASE@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movb	%dl, 1(%r8)
LBB0_2:
	movsbl	%cl, %ebx
	movsbl	%dl, %esi
	cmpl	%esi, %edi
	jne	LBB0_4
## %bb.3:
	movq	_CKILL@GOTPCREL(%rip), %rdx
	movb	(%rdx), %dl
	movb	%dl, 1(%r8)
LBB0_4:
	cmpl	%ebx, %edi
	jne	LBB0_6
## %bb.5:
	movq	_CWERASE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movb	%cl, 2(%r8)
LBB0_6:
	movb	%al, -11(%rbp)
	movb	%dl, -10(%rbp)
	movb	%cl, -9(%rbp)
	movq	_sockt@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	leaq	-11(%rbp), %rsi
	movl	$3, %edx
	callq	_write
	cmpl	$3, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_p_error
LBB0_8:
	movl	(%rbx), %edi
	leaq	-11(%rbp), %rsi
	movl	$3, %edx
	callq	_read
	cmpl	$3, %eax
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	callq	_p_error
LBB0_10:
	movb	-11(%rbp), %al
	movq	_his_win@GOTPCREL(%rip), %rcx
	movb	%al, (%rcx)
	movzwl	-10(%rbp), %eax
	movw	%ax, 1(%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERASE,8,3                     ## @VERASE
	.comm	_my_win,3,0                     ## @my_win
	.comm	_VKILL,8,3                      ## @VKILL
	.comm	_VWERASE,8,3                    ## @VWERASE
	.comm	__POSIX_VDISABLE,8,3            ## @_POSIX_VDISABLE
	.comm	_CERASE,1,0                     ## @CERASE
	.comm	_CKILL,1,0                      ## @CKILL
	.comm	_CWERASE,1,0                    ## @CWERASE
	.comm	_sockt,4,2                      ## @sockt
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Lost the connection"

	.comm	_his_win,3,0                    ## @his_win
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_set_edit_chars                 ; -- Begin function set_edit_chars
	.p2align	2
_set_edit_chars:                        ; @set_edit_chars
	.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
	mov	x1, sp
	mov	w0, #0
	bl	_tcgetattr
Lloh0:
	adrp	x8, _VERASE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERASE@GOTPAGEOFF]
	ldr	x10, [sp]
Lloh2:
	ldr	x8, [x8]
	ldrsb	w12, [x10, x8]
Lloh3:
	adrp	x8, _my_win@GOTPAGE
Lloh4:
	ldr	x8, [x8, _my_win@GOTPAGEOFF]
	strb	w12, [x8]
Lloh5:
	adrp	x9, _VKILL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VKILL@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldrb	w9, [x10, x9]
	strb	w9, [x8, #1]
Lloh8:
	adrp	x11, _VWERASE@GOTPAGE
Lloh9:
	ldr	x11, [x11, _VWERASE@GOTPAGEOFF]
Lloh10:
	ldr	x11, [x11]
	ldrsb	w10, [x10, x11]
	strb	w10, [x8, #2]
Lloh11:
	adrp	x11, __POSIX_VDISABLE@GOTPAGE
Lloh12:
	ldr	x11, [x11, __POSIX_VDISABLE@GOTPAGEOFF]
Lloh13:
	ldrsb	w11, [x11]
	cmp	w11, w12
	b.ne	LBB0_2
; %bb.1:
Lloh14:
	adrp	x9, _CERASE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CERASE@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [x8, #1]
LBB0_2:
	and	w12, w12, #0xff
	and	w13, w10, #0xff
	cmp	w11, w9, sxtb
	b.ne	LBB0_4
; %bb.3:
Lloh16:
	adrp	x9, _CKILL@GOTPAGE
Lloh17:
	ldr	x9, [x9, _CKILL@GOTPAGEOFF]
	ldrb	w9, [x9]
	strb	w9, [x8, #1]
LBB0_4:
	cmp	w11, w10
	b.ne	LBB0_6
; %bb.5:
Lloh18:
	adrp	x10, _CWERASE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _CWERASE@GOTPAGEOFF]
	ldrb	w13, [x10]
	strb	w13, [x8, #2]
LBB0_6:
	strb	w12, [sp, #13]
	strb	w9, [sp, #14]
	strb	w13, [sp, #15]
Lloh20:
	adrp	x19, _sockt@GOTPAGE
Lloh21:
	ldr	x19, [x19, _sockt@GOTPAGEOFF]
	ldr	w0, [x19]
	add	x1, sp, #13
	mov	w2, #3
	bl	_write
	cmp	w0, #3
	b.eq	LBB0_8
; %bb.7:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_p_error
LBB0_8:
	ldr	w0, [x19]
	add	x1, sp, #13
	mov	w2, #3
	bl	_read
	cmp	w0, #3
	b.eq	LBB0_10
; %bb.9:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_p_error
LBB0_10:
	ldrb	w8, [sp, #13]
Lloh26:
	adrp	x9, _his_win@GOTPAGE
Lloh27:
	ldr	x9, [x9, _his_win@GOTPAGEOFF]
	strb	w8, [x9]
	ldurh	w8, [sp, #14]
	sturh	w8, [x9, #1]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_VERASE,8,3                     ; @VERASE
	.comm	_my_win,3,0                     ; @my_win
	.comm	_VKILL,8,3                      ; @VKILL
	.comm	_VWERASE,8,3                    ; @VWERASE
	.comm	__POSIX_VDISABLE,8,3            ; @_POSIX_VDISABLE
	.comm	_CERASE,1,0                     ; @CERASE
	.comm	_CKILL,1,0                      ; @CKILL
	.comm	_CWERASE,1,0                    ; @CWERASE
	.comm	_sockt,4,2                      ; @sockt
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Lost the connection"

	.comm	_his_win,3,0                    ; @his_win
.subsections_via_symbols
