	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttloop                         ## -- Begin function ttloop
	.p2align	4, 0x90
_ttloop:                                ## @ttloop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_TD_REPORT@GOTPCREL(%rip), %r14
	movl	(%r14), %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_output_data
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DIAG
	movq	_nfrontp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_nbackp@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_netflush
LBB0_2:
	movq	_net@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_netibuf@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$4, %edx
	callq	_read
	movq	_ncc@GOTPCREL(%rip), %r12
	movq	%rax, (%r12)
	testq	%rax, %rax
	js	LBB0_3
## %bb.5:
	je	LBB0_6
## %bb.7:
	movl	(%r14), %ebx
	leaq	L_.str.3(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_output_data
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_DIAG
	movl	(%r15), %eax
	movq	_netip@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	callq	_telrcv
	cmpq	$0, (%r12)
	jle	LBB0_8
## %bb.9:
	movq	_ptyobuf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_pbackp@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_pfrontp@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_telrcv                         ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	movq	_LOG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
LBB0_4:
	callq	_syslog
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_TD_REPORT,4,2                  ## @TD_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"td: ttloop\r\n"

	.comm	_nfrontp,8,3                    ## @nfrontp
	.comm	_nbackp,8,3                     ## @nbackp
	.comm	_net,4,2                        ## @net
	.comm	_netibuf,4,2                    ## @netibuf
	.comm	_ncc,8,3                        ## @ncc
	.comm	_LOG_INFO,4,2                   ## @LOG_INFO
L_.str.1:                               ## @.str.1
	.asciz	"ttloop:  read: %m"

L_.str.2:                               ## @.str.2
	.asciz	"ttloop:  peer died: %m"

L_.str.3:                               ## @.str.3
	.asciz	"td: ttloop read %d chars\r\n"

	.comm	_netip,4,2                      ## @netip
	.comm	_ptyobuf,4,2                    ## @ptyobuf
	.comm	_pbackp,4,2                     ## @pbackp
	.comm	_pfrontp,4,2                    ## @pfrontp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttloop                         ; -- Begin function ttloop
	.p2align	2
_ttloop:                                ; @ttloop
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _TD_REPORT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TD_REPORT@GOTPAGEOFF]
	ldr	w19, [x20]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_output_data
	mov	x1, x0
	mov	x0, x19
	bl	_DIAG
Lloh4:
	adrp	x8, _nfrontp@GOTPAGE
Lloh5:
	ldr	x8, [x8, _nfrontp@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _nbackp@GOTPAGE
Lloh8:
	ldr	x9, [x9, _nbackp@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_2
; %bb.1:
	bl	_netflush
LBB0_2:
Lloh10:
	adrp	x8, _net@GOTPAGE
Lloh11:
	ldr	x8, [x8, _net@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x21, _netibuf@GOTPAGE
Lloh14:
	ldr	x21, [x21, _netibuf@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_read
Lloh15:
	adrp	x22, _ncc@GOTPAGE
Lloh16:
	ldr	x22, [x22, _ncc@GOTPAGEOFF]
	str	x0, [x22]
	tbnz	x0, #63, LBB0_7
; %bb.3:
	cbz	x0, LBB0_8
; %bb.4:
	ldr	w19, [x20]
	str	x0, [sp]
Lloh17:
	adrp	x0, l_.str.3@PAGE
Lloh18:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_output_data
	mov	x1, x0
	mov	x0, x19
	bl	_DIAG
	ldr	w8, [x21]
Lloh19:
	adrp	x9, _netip@GOTPAGE
Lloh20:
	ldr	x9, [x9, _netip@GOTPAGEOFF]
Lloh21:
	str	w8, [x9]
	bl	_telrcv
	ldr	x8, [x22]
	cmp	x8, #1
	b.lt	LBB0_6
; %bb.5:
Lloh22:
	adrp	x8, _ptyobuf@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ptyobuf@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _pbackp@GOTPAGE
Lloh26:
	ldr	x9, [x9, _pbackp@GOTPAGEOFF]
Lloh27:
	str	w8, [x9]
Lloh28:
	adrp	x9, _pfrontp@GOTPAGE
Lloh29:
	ldr	x9, [x9, _pfrontp@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_telrcv
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
Lloh31:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
Lloh34:
	adrp	x1, l_.str.1@PAGE
Lloh35:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh36:
	adrp	x8, _LOG_INFO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _LOG_INFO@GOTPAGEOFF]
Lloh38:
	ldr	w0, [x8]
Lloh39:
	adrp	x1, l_.str.2@PAGE
Lloh40:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_9:
	bl	_syslog
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_TD_REPORT,4,2                  ; @TD_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"td: ttloop\r\n"

	.comm	_nfrontp,8,3                    ; @nfrontp
	.comm	_nbackp,8,3                     ; @nbackp
	.comm	_net,4,2                        ; @net
	.comm	_netibuf,4,2                    ; @netibuf
	.comm	_ncc,8,3                        ; @ncc
	.comm	_LOG_INFO,4,2                   ; @LOG_INFO
l_.str.1:                               ; @.str.1
	.asciz	"ttloop:  read: %m"

l_.str.2:                               ; @.str.2
	.asciz	"ttloop:  peer died: %m"

l_.str.3:                               ; @.str.3
	.asciz	"td: ttloop read %d chars\r\n"

	.comm	_netip,4,2                      ; @netip
	.comm	_ptyobuf,4,2                    ; @ptyobuf
	.comm	_pbackp,4,2                     ; @pbackp
	.comm	_pfrontp,4,2                    ; @pfrontp
.subsections_via_symbols
