	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function togxbinary
_togxbinary:                            ## @togxbinary
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_donebinarytoggle@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	cmpl	$-1, %edi
	jne	LBB0_2
## %bb.1:
	movq	_TELOPT_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_my_want_state_is_will
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
LBB0_2:
	movq	_TELOPT_BINARY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$1, %edi
	jne	LBB0_6
## %bb.3:
	movl	%eax, %edi
	callq	_my_want_state_is_will
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	L_str.6(%rip), %rdi
	callq	_puts
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %edi
	callq	_my_want_state_is_wont
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_str.4(%rip), %rdi
	callq	_puts
	jmp	LBB0_9
LBB0_5:
	leaq	L_str.5(%rip), %rdi
	callq	_puts
	movl	$2, %edi
	callq	_tel_enter_binary
	jmp	LBB0_9
LBB0_8:
	leaq	L_str(%rip), %rdi
	callq	_puts
	movl	$2, %edi
	callq	_tel_leave_binary
LBB0_9:
	movl	$1, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_donebinarytoggle,4,2           ## @donebinarytoggle
	.comm	_TELOPT_BINARY,4,2              ## @TELOPT_BINARY
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"Negotiating network ascii mode on output.\r"

L_str.4:                                ## @str.4
	.asciz	"Already transmitting in network ascii mode.\r"

L_str.5:                                ## @str.5
	.asciz	"Negotiating binary mode on output.\r"

L_str.6:                                ## @str.6
	.asciz	"Already transmitting in binary mode.\r"

	.no_dead_strip	_togxbinary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function togxbinary
_togxbinary:                            ; @togxbinary
	.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]
	cmn	w0, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_my_want_state_is_will
	cmp	x0, #0
	cset	w0, eq
LBB0_2:
	ldr	w8, [x19]
	cmp	w0, #1
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x8
	bl	_my_want_state_is_will
	cbz	x0, LBB0_7
; %bb.4:
Lloh5:
	adrp	x0, l_str.6@PAGE
Lloh6:
	add	x0, x0, l_str.6@PAGEOFF
	bl	_puts
	b	LBB0_9
LBB0_5:
	mov	x0, x8
	bl	_my_want_state_is_wont
	cbz	x0, LBB0_8
; %bb.6:
Lloh7:
	adrp	x0, l_str.4@PAGE
Lloh8:
	add	x0, x0, l_str.4@PAGEOFF
	bl	_puts
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x0, l_str.5@PAGE
Lloh10:
	add	x0, x0, l_str.5@PAGEOFF
	bl	_puts
	mov	w0, #2
	bl	_tel_enter_binary
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w0, #2
	bl	_tel_leave_binary
LBB0_9:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_donebinarytoggle,4,2           ; @donebinarytoggle
	.comm	_TELOPT_BINARY,4,2              ; @TELOPT_BINARY
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"Negotiating network ascii mode on output.\r"

l_str.4:                                ; @str.4
	.asciz	"Already transmitting in network ascii mode.\r"

l_str.5:                                ; @str.5
	.asciz	"Negotiating binary mode on output.\r"

l_str.6:                                ; @str.6
	.asciz	"Already transmitting in binary mode.\r"

	.no_dead_strip	_togxbinary
.subsections_via_symbols
