	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __write_console
___write_console:                       ## @__write_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_xencons_interface
	movl	(%rax), %r15d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rax), %ebx
	xorl	%eax, %eax
	callq	_mb
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ebx killed $ebx killed $rbx
	subl	%r15d, %ebx
	xorl	%edi, %edi
	cmpl	$9, %ebx
	setae	%dil
	callq	_BUG_ON
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.1:
	cmpl	$8, %ebx
	jae	LBB0_2
## %bb.3:
	movl	%r12d, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$1, %r13d
	subl	%r15d, %r13d
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %r12
	incq	%r15
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r12), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax,%r12), %r14d
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	%rbx, %rsi
	callq	_MASK_XENCONS_IDX
	movb	%r14b, (%rbx,%rax)
	cmpq	-64(%rbp), %r15                 ## 8-byte Folded Reload
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	(%r12,%r13), %eax
	cmpl	$8, %eax
	jb	LBB0_4
LBB0_6:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_wmb
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addl	%r15d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx)
	testl	%r15d, %r15d
	je	LBB0_8
## %bb.7:
	xorl	%eax, %eax
	callq	_notify_daemon
	movl	%r15d, %r14d
	jmp	LBB0_8
LBB0_2:
	xorl	%eax, %eax
	callq	_wmb
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%ecx, 4(%rax)
LBB0_8:
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___write_console
.subsections_via_symbols

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