	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_ldisc                  ## -- Begin function process_ldisc
	.p2align	4, 0x90
_process_ldisc:                         ## @process_ldisc
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movq	_NCHUCHARS@GOTPCREL(%rip), %r13
	leaq	L_.str.1(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	$16, %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_fprintf
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	leaq	-64(%rbp), %rsi
	movl	$16, %edx
	callq	_read
	testl	%eax, %eax
	jle	LBB0_5
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_11 Depth 2
	cmpl	$16, %eax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_doprocess@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax
	movslq	(%r13), %rcx
	shlq	$4, %rcx
	leaq	(%rcx,%rax), %rdi
	addq	$-16, %rdi
	movl	%ebx, %r15d
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rsi
	callq	_TVTOTS
	movq	_JAN_1970@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, -48(%rbp)
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movl	%r15d, %ebx
	xorl	%eax, %eax
	callq	_chufilter
	jmp	LBB0_4
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r13)
	jle	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rdx
	movq	(%rdx), %rcx
	movq	8(%rdx), %r8
	movl	(%rax), %edx
	movl	%edx, %esi
	andl	$15, %esi
	shrl	$4, %edx
	andl	$15, %edx
	movq	$0, (%rsp)
	movq	%r14, %rdi
	xorl	%r9d, %r9d
	callq	_printf
	cmpl	$2, (%r13)
	jl	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %r15d
	movl	$4, %r12d
	.p2align	4, 0x90
LBB0_11:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-64(%rbp), %rax
	movq	-56(%rbp), %rdx
	movq	(%rdx,%r12,4), %rcx
	movq	8(%rdx,%r12,4), %r8
	movq	%rcx, %rsi
	subq	-16(%rdx,%r12,4), %rsi
	movq	%r8, %r9
	subq	-8(%rdx,%r12,4), %r9
	leaq	1000000(%r9), %rdi
	testq	%r9, %r9
	cmovnsq	%r9, %rdi
	sarq	$63, %r9
	addq	%rsi, %r9
	movl	(%rax,%r12), %edx
	movl	%edx, %esi
	andl	$15, %esi
	shrl	$4, %edx
	andl	$15, %edx
	movq	%rdi, (%rsp)
	movq	%r14, %rdi
	callq	_printf
	incq	%r15
	movslq	(%r13), %rax
	addq	$4, %r12
	cmpq	%rax, %r15
	jl	LBB0_11
	jmp	LBB0_4
LBB0_5:
	testl	%eax, %eax
	je	LBB0_6
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	%rdx, %rsi
	callq	_error
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_progname@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Expected %d, got %d\n"

	.comm	_doprocess,8,3                  ## @doprocess
	.comm	_NCHUCHARS,4,2                  ## @NCHUCHARS
	.comm	_JAN_1970,8,3                   ## @JAN_1970
L_.str.1:                               ## @.str.1
	.asciz	"%x%x\t%lu.%06lu\t%lu.%06lu\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: zero returned on read\n"

	.comm	_progname,8,3                   ## @progname
L_.str.3:                               ## @.str.3
	.asciz	"read()"

L_.str.4:                               ## @.str.4
	.space	1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_process_ldisc                  ; -- Begin function process_ldisc
	.p2align	2
_process_ldisc:                         ; @process_ldisc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	add	x1, sp, #32
	mov	w2, #16
	bl	_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.lt	LBB0_11
; %bb.1:
Lloh0:
	adrp	x22, _doprocess@GOTPAGE
Lloh1:
	ldr	x22, [x22, _doprocess@GOTPAGEOFF]
Lloh2:
	adrp	x23, _NCHUCHARS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _NCHUCHARS@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str.1@PAGE
Lloh5:
	add	x20, x20, l_.str.1@PAGEOFF
	mov	w25, #16960
	movk	w25, #15, lsl #16
	mov	w26, #16
Lloh6:
	adrp	x27, _stderr@GOTPAGE
Lloh7:
	ldr	x27, [x27, _stderr@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str@PAGE
Lloh9:
	add	x21, x21, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	stp	x26, x0, [sp]
	mov	x0, x8
	mov	x1, x21
	bl	_fprintf
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #32
	mov	x0, x19
	mov	w2, #16
	bl	_read
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, #1
	b.lt	LBB0_11
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
	cmp	w0, #16
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #40]
	ldrsw	x9, [x23]
	add	x8, x8, x9, lsl #4
	sub	x0, x8, #16
	add	x1, sp, #24
	bl	_TVTOTS
Lloh10:
	adrp	x8, _JAN_1970@GOTPAGE
Lloh11:
	ldr	x8, [x8, _JAN_1970@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [sp, #24]
	add	w8, w9, w8
	str	w8, [sp, #24]
	add	x0, sp, #32
	add	x1, sp, #24
	bl	_chufilter
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [sp, #32]
	ldp	x3, x4, [x8]
	ldr	w8, [x9]
	and	w1, w8, #0xf
	ubfx	w2, w8, #4, #4
	mov	x0, x20
	mov	x5, #0
	mov	x6, #0
	bl	_printf
	ldr	w8, [x23]
	cmp	w8, #1
	b.le	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, #0
	mov	w24, #1
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	x9, x8, [sp, #32]
	add	x8, x8, x28
	ldp	x3, x4, [x8, #16]
	ldp	x10, x8, [x8]
	sub	x10, x3, x10
	sub	x8, x4, x8
	add	x11, x8, x25
	cmp	x8, #0
	csel	x6, x11, x8, lt
	add	x5, x10, x8, asr #63
	ldr	w8, [x9, x24, lsl #2]
	and	w1, w8, #0xf
	ubfx	w2, w8, #4, #4
	mov	x0, x20
	bl	_printf
	add	x24, x24, #1
	ldrsw	x8, [x23]
	add	x28, x28, #16
	cmp	x24, x8
	b.lt	LBB0_10
	b	LBB0_3
LBB0_11:
	cbz	w0, LBB0_13
; %bb.12:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x1
	bl	_error
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_13:
Lloh17:
	adrp	x8, _stderr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x8, _progname@GOTPAGE
Lloh21:
	ldr	x8, [x8, _progname@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Expected %d, got %d\n"

	.comm	_doprocess,8,3                  ; @doprocess
	.comm	_NCHUCHARS,4,2                  ; @NCHUCHARS
	.comm	_JAN_1970,8,3                   ; @JAN_1970
l_.str.1:                               ; @.str.1
	.asciz	"%x%x\t%lu.%06lu\t%lu.%06lu\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: zero returned on read\n"

	.comm	_progname,8,3                   ; @progname
l_.str.3:                               ; @.str.3
	.asciz	"read()"

l_.str.4:                               ; @.str.4
	.space	1

.subsections_via_symbols
