	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function togbinary
_togbinary:                             ## @togbinary
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_donebinarytoggle@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	testl	%edi, %edi
	js	LBB0_2
## %bb.1:
	movq	_binmode@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	jmp	LBB0_8
LBB0_2:
	movq	_TELOPT_BINARY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_my_want_state_is_will
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	callq	_my_want_state_is_do
	movl	$1, %ecx
	testq	%rax, %rax
	jne	LBB0_6
LBB0_4:
	movl	(%rbx), %edi
	callq	_my_want_state_is_wont
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	(%rbx), %edi
	callq	_my_want_state_is_dont
	xorl	%ecx, %ecx
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	_binmode@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
LBB0_7:
	movq	_binmode@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
LBB0_8:
	movq	_TELOPT_BINARY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	cmpl	$1, %edi
	jne	LBB0_13
## %bb.9:
	movl	%eax, %edi
	callq	_my_want_state_is_will
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movl	(%rbx), %edi
	callq	_my_want_state_is_do
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	jmp	LBB0_17
LBB0_13:
	movl	%eax, %edi
	callq	_my_want_state_is_wont
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	movl	(%rbx), %edi
	callq	_my_want_state_is_dont
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	jmp	LBB0_17
LBB0_12:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	movl	$3, %edi
	callq	_tel_enter_binary
	jmp	LBB0_17
LBB0_16:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$3, %edi
	callq	_tel_leave_binary
LBB0_17:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_donebinarytoggle,4,2           ## @donebinarytoggle
	.comm	_binmode,4,2                    ## @binmode
	.comm	_TELOPT_BINARY,4,2              ## @TELOPT_BINARY
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Negotiating network ascii mode with remote host."

L_str.4:                                ## @str.4
	.asciz	"Already in network ascii mode with remote host."

L_str.5:                                ## @str.5
	.asciz	"Negotiating binary mode with remote host."

L_str.6:                                ## @str.6
	.asciz	"Already operating in binary mode with remote host."

	.no_dead_strip	_togbinary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function togbinary
_togbinary:                             ; @togbinary
	.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
Lloh0:
	adrp	x8, _donebinarytoggle@GOTPAGE
Lloh1:
	ldr	x8, [x8, _donebinarytoggle@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x19, _TELOPT_BINARY@GOTPAGE
Lloh4:
	ldr	x19, [x19, _TELOPT_BINARY@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _binmode@GOTPAGE
Lloh6:
	ldr	x8, [x8, _binmode@GOTPAGEOFF]
Lloh7:
	str	w0, [x8]
	b	LBB0_10
LBB0_2:
	ldr	w0, [x19]
	bl	_my_want_state_is_will
Lloh8:
	adrp	x20, _binmode@GOTPAGE
Lloh9:
	ldr	x20, [x20, _binmode@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.3:
	ldr	w0, [x19]
	bl	_my_want_state_is_do
	cbz	x0, LBB0_5
; %bb.4:
	mov	w8, #1
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19]
	bl	_my_want_state_is_wont
	cbz	x0, LBB0_9
; %bb.6:
	ldr	w0, [x19]
	bl	_my_want_state_is_dont
	cbz	x0, LBB0_9
; %bb.7:
	mov	w8, #0
LBB0_8:
	str	w8, [x20]
LBB0_9:
	ldr	w8, [x20]
	cmp	w8, #0
	cset	w0, eq
LBB0_10:
	ldr	w8, [x19]
	cmp	w0, #1
	b.ne	LBB0_14
; %bb.11:
	mov	x0, x8
	bl	_my_want_state_is_will
	cbz	x0, LBB0_17
; %bb.12:
	ldr	w0, [x19]
	bl	_my_want_state_is_do
	cbz	x0, LBB0_17
; %bb.13:
Lloh10:
	adrp	x0, l_str.6@PAGE
Lloh11:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	b	LBB0_19
LBB0_14:
	mov	x0, x8
	bl	_my_want_state_is_wont
	cbz	x0, LBB0_18
; %bb.15:
	ldr	w0, [x19]
	bl	_my_want_state_is_dont
	cbz	x0, LBB0_18
; %bb.16:
Lloh12:
	adrp	x0, l_str.4@PAGE
Lloh13:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
	b	LBB0_19
LBB0_17:
Lloh14:
	adrp	x0, l_str.5@PAGE
Lloh15:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	mov	w0, #3
	bl	_tel_enter_binary
	b	LBB0_19
LBB0_18:
Lloh16:
	adrp	x0, l_str@PAGE
Lloh17:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #3
	bl	_tel_leave_binary
LBB0_19:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_donebinarytoggle,4,2           ; @donebinarytoggle
	.comm	_binmode,4,2                    ; @binmode
	.comm	_TELOPT_BINARY,4,2              ; @TELOPT_BINARY
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Negotiating network ascii mode with remote host."

l_str.4:                                ; @str.4
	.asciz	"Already in network ascii mode with remote host."

l_str.5:                                ; @str.5
	.asciz	"Negotiating binary mode with remote host."

l_str.6:                                ; @str.6
	.asciz	"Already operating in binary mode with remote host."

	.no_dead_strip	_togbinary
.subsections_via_symbols
