	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset                          ## -- Begin function reset
	.p2align	4, 0x90
_reset:                                 ## @reset
	.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
	testl	%edi, %edi
	jne	LBB0_2
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.7:
	movq	(%rsi), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_UPRINTF
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	_cin@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_empty
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%edi, %edi
	callq	_getreply
	jmp	LBB0_3
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_warn
	movq	_code@GOTPCREL(%rip), %rax
	movl	$-1, (%rax)
	xorl	%edi, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_lostpeer                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"usage: %s\n"

	.comm	_code,4,2                       ## @code
	.comm	_cin,4,2                        ## @cin
L_.str.1:                               ## @.str.1
	.asciz	"Error resetting connection"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset                          ; -- Begin function reset
	.p2align	2
_reset:                                 ; @reset
	.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
	cbnz	w0, LBB0_4
; %bb.1:
	cbz	x1, LBB0_4
; %bb.2:
	ldr	x1, [x1]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_UPRINTF
Lloh2:
	adrp	x8, _code@GOTPAGE
Lloh3:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh4:
	str	w9, [x8]
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh5:
	adrp	x19, _cin@GOTPAGE
Lloh6:
	ldr	x19, [x19, _cin@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	mov	x1, #0
	mov	w2, #0
	bl	_empty
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w0, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	bl	_getreply
	b	LBB0_5
LBB0_8:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_warn
Lloh9:
	adrp	x8, _code@GOTPAGE
Lloh10:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh11:
	str	w9, [x8]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_lostpeer
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"usage: %s\n"

	.comm	_code,4,2                       ; @code
	.comm	_cin,4,2                        ; @cin
l_.str.1:                               ; @.str.1
	.asciz	"Error resetting connection"

.subsections_via_symbols
