	.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
	leaq	-12(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_FD_ZERO
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_empty
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	leaq	-12(%rbp), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_getreply
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_empty
	testl	%eax, %eax
	jns	LBB0_2
LBB0_4:
	callq	_reset.cold.1
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function reset.cold.1
_reset.cold.1:                          ## @reset.cold.1
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_perror
	movq	_code@GOTPCREL(%rip), %rax
	orl	$-1, (%rax)
	xorl	%eax, %eax
	callq	_lostpeer
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reset"

	.comm	_code,4,2                       ## @code
.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:
	sub	sp, sp, #32
	.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
	sub	x0, x29, #4
	bl	_FD_ZERO
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	x0, x29, #4
	mov	w1, #0
	bl	_empty
	tbnz	w0, #31, LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cbz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #0
	bl	_getreply
	b	LBB0_1
LBB0_4:
	bl	_reset.cold.1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function reset.cold.1
_reset.cold.1:                          ; @reset.cold.1
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_perror
Lloh2:
	adrp	x8, _code@GOTPAGE
Lloh3:
	ldr	x8, [x8, _code@GOTPAGEOFF]
	mov	w9, #-1
Lloh4:
	str	w9, [x8]
	bl	_lostpeer
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reset"

	.comm	_code,4,2                       ; @code
.subsections_via_symbols
