	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dconschat_read_dcons
_dconschat_read_dcons:                  ## @dconschat_read_dcons
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	_RETRY@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r14
	movslq	%esi, %r15
	shlq	$5, %r15
	movq	_DCONS_GEN_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	(%r14,%r15), %r12d
	movl	8(%r14,%r15), %edi
	movl	%r12d, %edx
	sarl	%cl, %edx
	movq	_DCONS_POS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	cmpl	%edi, %edx
	jne	LBB0_2
## %bb.1:
	movl	$-1, %ebx
	cmpl	12(%r14,%r15), %r12d
	je	LBB0_28
LBB0_2:
	leaq	(%r14,%r15), %rbx
	addq	$8, %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_DCONS_NEXT_GEN
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edx
	movl	%esi, %ecx
	subl	%edx, %ecx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	jne	LBB0_5
## %bb.3:
	movl	12(%r14,%r15), %eax
	cmpl	%eax, %r12d
	jg	LBB0_16
## %bb.4:
	leaq	(%r14,%r15), %rcx
	addq	$12, %rcx
	movq	_DCONS_GEN_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	imull	16(%r14,%r15), %ebx
	subl	%eax, %ebx
	movl	$0, (%rcx)
	jmp	LBB0_11
LBB0_5:
	cmpl	%eax, %esi
	jne	LBB0_8
## %bb.6:
	movl	%r12d, %ebx
	subl	12(%r14,%r15), %ebx
	jle	LBB0_14
## %bb.7:
	leaq	(%r14,%r15), %rcx
	addq	$12, %rcx
	movl	%r12d, (%rcx)
	jmp	LBB0_12
LBB0_8:
	movq	_DCONS_GEN_MASK@GOTPCREL(%rip), %rax
	movl	%ecx, %ebx
	sarl	$31, %ebx
	andl	(%rax), %ebx
	addl	%ecx, %ebx
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_10:
	imull	16(%r14,%r15), %ebx
	subl	12(%r14,%r15), %ebx
	movl	$0, 12(%r14,%r15)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
LBB0_11:
	movl	%esi, %edx
LBB0_12:
	movq	_verbose@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_printf
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
LBB0_14:
	cmpl	%edx, %esi
	je	LBB0_16
## %bb.15:
	movl	16(%r14,%r15), %r12d
LBB0_16:
	subl	12(%r14,%r15), %r12d
	movq	_MAX_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r12d
	cmovgel	%eax, %r12d
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jne	LBB0_18
## %bb.17:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	callq	_printf
LBB0_18:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	addq	%r15, %r14
	addq	$12, %r14
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_ETIMEDOUT@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r14), %rcx
	addq	12(%r14), %rcx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_dread
	testl	%eax, %eax
	jns	LBB0_23
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r15), %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_19 Depth=1
	leal	-1(%r13), %eax
	testl	%r13d, %r13d
	movl	%eax, %r13d
	jg	LBB0_19
LBB0_22:
	leaq	L_.str.3(%rip), %rdx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_dconschat_ready
	movl	$-1, %ebx
	jmp	LBB0_28
LBB0_23:
	movl	%eax, %ebx
	cmpl	%r12d, %eax
	je	LBB0_25
## %bb.24:
	leaq	L_.str.4(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_warnx
LBB0_25:
	movl	(%r14), %eax
	addl	%ebx, %eax
	movl	%eax, (%r14)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	cmpl	16(%rcx,%rdx), %eax
	jl	LBB0_28
## %bb.26:
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%esi, (%rax)
	movl	$0, (%r14)
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_28
## %bb.27:
	leaq	L_.str.5(%rip), %rdi
	callq	_printf
LBB0_28:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RETRY,4,2                      ## @RETRY
	.comm	_DCONS_GEN_SHIFT,4,2            ## @DCONS_GEN_SHIFT
	.comm	_DCONS_POS_MASK,4,2             ## @DCONS_POS_MASK
	.comm	_DCONS_GEN_MASK,4,2             ## @DCONS_GEN_MASK
	.comm	_verbose,4,2                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[genskip %d]"

L_.str.1:                               ## @.str.1
	.asciz	"[lost %d]"

	.comm	_MAX_XFER,4,2                   ## @MAX_XFER
L_.str.2:                               ## @.str.2
	.asciz	"[%d]"

	.comm	_stdout,4,2                     ## @stdout
	.comm	_errno,8,3                      ## @errno
	.comm	_ETIMEDOUT,8,3                  ## @ETIMEDOUT
L_.str.3:                               ## @.str.3
	.asciz	"read buffer failed"

L_.str.4:                               ## @.str.4
	.asciz	"dlen(%d) != rlen(%d)\n"

L_.str.5:                               ## @.str.5
	.asciz	"read_dcons: gen=%d"

	.no_dead_strip	_dconschat_read_dcons
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dconschat_read_dcons
_dconschat_read_dcons:                  ; @dconschat_read_dcons
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x3
	mov	x20, x2
                                        ; kill: def $w1 killed $w1 def $x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RETRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RETRY@GOTPAGEOFF]
Lloh2:
	ldr	w27, [x8]
	ldr	x24, [x0]
	sxtw	x26, w1
	sbfiz	x8, x1, #5, #32
	ldr	w9, [x24, x8]
	add	x25, x24, x8
Lloh3:
	adrp	x8, _DCONS_GEN_SHIFT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DCONS_GEN_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x10, _DCONS_POS_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DCONS_POS_MASK@GOTPAGEOFF]
	asr	w21, w9, w8
Lloh8:
	ldr	w8, [x10]
	and	w28, w8, w9
	ldr	w0, [x25, #8]!
	cmp	w21, w0
	b.ne	LBB0_3
; %bb.1:
	add	x8, x24, x26, lsl #5
	ldr	w8, [x8, #12]
	cmp	w28, w8
	b.ne	LBB0_3
; %bb.2:
	mov	w23, #-1
	b	LBB0_27
LBB0_3:
	bl	_DCONS_NEXT_GEN
	ldr	w8, [x25]
Lloh9:
	adrp	x12, _verbose@GOTPAGE
Lloh10:
	ldr	x12, [x12, _verbose@GOTPAGEOFF]
	subs	w9, w21, w8
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	b.ne	LBB0_6
; %bb.4:
	add	x9, x24, x26, lsl #5
	mov	x8, x9
	ldr	w10, [x8, #12]!
	cmp	w28, w10
	b.gt	LBB0_16
; %bb.5:
Lloh11:
	adrp	x11, _DCONS_GEN_MASK@GOTPAGE
Lloh12:
	ldr	x11, [x11, _DCONS_GEN_MASK@GOTPAGEOFF]
	ldr	w9, [x9, #16]
Lloh13:
	ldr	w11, [x11]
	neg	w10, w10
	madd	w1, w11, w9, w10
	str	wzr, [x8]
	b	LBB0_12
LBB0_6:
	cmp	w21, w0
	b.ne	LBB0_9
; %bb.7:
	add	x9, x24, x26, lsl #5
	ldr	w10, [x9, #12]!
	subs	w1, w28, w10
	b.le	LBB0_14
; %bb.8:
	str	w28, [x9]
	ldr	w9, [x12]
	cbnz	w9, LBB0_13
	b	LBB0_14
LBB0_9:
Lloh14:
	adrp	x8, _DCONS_GEN_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DCONS_GEN_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w9, asr #31
	add	w23, w8, w9
	ldr	w8, [x12]
	cbz	w8, LBB0_11
; %bb.10:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_printf
Lloh19:
	adrp	x12, _verbose@GOTPAGE
Lloh20:
	ldr	x12, [x12, _verbose@GOTPAGEOFF]
LBB0_11:
	add	x8, x24, x26, lsl #5
	ldp	w10, w9, [x8, #12]
	neg	w10, w10
	madd	w1, w9, w23, w10
	str	wzr, [x8, #12]
	str	w21, [x25]
LBB0_12:
	mov	x8, x21
	ldr	w9, [x12]
	cbz	w9, LBB0_14
LBB0_13:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x23, x12
	bl	_printf
	mov	x12, x23
	ldr	w8, [x25]
LBB0_14:
	cmp	w21, w8
	b.eq	LBB0_16
; %bb.15:
	add	x8, x24, x26, lsl #5
	ldr	w28, [x8, #16]
LBB0_16:
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	add	x23, x24, x26, lsl #5
	mov	x21, x23
	ldr	w8, [x21, #12]!
Lloh23:
	adrp	x9, _MAX_XFER@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MAX_XFER@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	sub	w8, w28, w8
	cmp	w8, w9
	csel	w8, w8, w9, lt
	cmp	w8, w22
	csel	w22, w8, w22, lt
	ldr	w8, [x12]
	cmp	w8, #1
	b.ne	LBB0_18
; %bb.17:
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	bl	_printf
LBB0_18:
Lloh28:
	adrp	x8, _stdout@GOTPAGE
Lloh29:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh30:
	ldr	w0, [x8]
	bl	_fflush
	add	x28, x23, #24
Lloh31:
	adrp	x26, _errno@GOTPAGE
Lloh32:
	ldr	x26, [x26, _errno@GOTPAGEOFF]
Lloh33:
	adrp	x25, _ETIMEDOUT@GOTPAGE
Lloh34:
	ldr	x25, [x25, _ETIMEDOUT@GOTPAGEOFF]
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x28]
	ldrsw	x9, [x21]
	add	x3, x8, x9
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	bl	_dread
	tbz	w0, #31, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	ldr	x8, [x26]
	ldr	x9, [x25]
	cmp	x8, x9
	ccmp	w27, #0, #4, eq
	sub	w27, w27, #1
	b.gt	LBB0_19
; %bb.21:
Lloh35:
	adrp	x2, l_.str.3@PAGE
Lloh36:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #0
	bl	_dconschat_ready
	mov	w23, #-1
	b	LBB0_27
LBB0_22:
	mov	x23, x0
	cmp	w0, w22
	b.eq	LBB0_24
; %bb.23:
Lloh37:
	adrp	x0, l_.str.4@PAGE
Lloh38:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x23
	mov	x2, x22
	bl	_warnx
LBB0_24:
	ldr	w8, [x21]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x9, x24, x9, lsl #5
	ldr	w9, [x9, #16]
	add	w8, w8, w23
	cmp	w8, w9
	str	w8, [x21]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	b.lt	LBB0_27
; %bb.25:
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	str	w1, [x8]
	str	wzr, [x21]
Lloh39:
	adrp	x8, _verbose@GOTPAGE
Lloh40:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	cbz	w8, LBB0_27
; %bb.26:
Lloh42:
	adrp	x0, l_.str.5@PAGE
Lloh43:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_printf
LBB0_27:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_RETRY,4,2                      ; @RETRY
	.comm	_DCONS_GEN_SHIFT,4,2            ; @DCONS_GEN_SHIFT
	.comm	_DCONS_POS_MASK,4,2             ; @DCONS_POS_MASK
	.comm	_DCONS_GEN_MASK,4,2             ; @DCONS_GEN_MASK
	.comm	_verbose,4,2                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[genskip %d]"

l_.str.1:                               ; @.str.1
	.asciz	"[lost %d]"

	.comm	_MAX_XFER,4,2                   ; @MAX_XFER
l_.str.2:                               ; @.str.2
	.asciz	"[%d]"

	.comm	_stdout,4,2                     ; @stdout
	.comm	_errno,8,3                      ; @errno
	.comm	_ETIMEDOUT,8,3                  ; @ETIMEDOUT
l_.str.3:                               ; @.str.3
	.asciz	"read buffer failed"

l_.str.4:                               ; @.str.4
	.asciz	"dlen(%d) != rlen(%d)\n"

l_.str.5:                               ; @.str.5
	.asciz	"read_dcons: gen=%d"

	.no_dead_strip	_dconschat_read_dcons
.subsections_via_symbols
