	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_console
_read_console:                          ## @read_console
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_xencons_interface
	movl	(%rax), %ebx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %r12d
	xorl	%eax, %eax
	callq	_mb
	movl	%r12d, %eax
	subl	%ebx, %eax
	xorl	%edi, %edi
	cmpl	$9, %eax
	setae	%dil
	callq	_BUG_ON
	cmpl	%ebx, %r12d
	je	LBB0_6
## %bb.1:
	testl	%r14d, %r14d
	jle	LBB0_6
## %bb.2:
	movl	%r14d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	$1, %r15d
	subl	%r12d, %r15d
	movq	%rbx, %r14
	addq	%rbx, %r15
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r12d
	leal	(%r14,%r12), %edi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	%rbx, %rsi
	callq	_MASK_XENCONS_IDX
	movzbl	(%rbx,%rax), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movb	%al, (%rcx,%r13)
	incq	%r13
	movl	%r15d, %eax
	addl	%r12d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	-56(%rbp), %r13                 ## 8-byte Folded Reload
	jb	LBB0_3
LBB0_5:
	movq	%r14, %rbx
	leal	(%r14,%r13), %ebx
LBB0_6:
	xorl	%eax, %eax
	callq	_mb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	callq	_notify_daemon
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_read_console
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_console
_read_console:                          ; @read_console
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x20, x1
	bl	_xencons_interface
	mov	x19, x0
	ldp	w23, w24, [x0]
	bl	_mb
	subs	w8, w24, w23
	cmp	w8, #8
	cset	w0, hi
	bl	_BUG_ON
	cmp	w24, w23
	ccmp	w22, #1, #8, ne
	b.ge	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	mov	x21, #0
	mov	w22, w22
	mov	w8, #1
	sub	w8, w8, w24
	add	x24, x23, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x25, x21
	add	w0, w23, w25
	ldr	x21, [x19, #8]
	add	w26, w24, w25
	mov	x1, x21
	bl	_MASK_XENCONS_IDX
	ldrb	w8, [x21, x0]
	add	x21, x25, #1
	strb	w8, [x20, x25]
	cbz	w26, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, x22
	b.lo	LBB0_3
LBB0_5:
	add	w23, w23, w21
LBB0_6:
	bl	_mb
	str	w23, [x19]
	bl	_notify_daemon
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_read_console
.subsections_via_symbols
