	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XboxConsPutChar                ## -- Begin function XboxConsPutChar
	.p2align	4, 0x90
_XboxConsPutChar:                       ## @XboxConsPutChar
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	cmpl	$9, %edi
	je	LBB0_5
## %bb.1:
	cmpl	$10, %edi
	je	LBB0_4
## %bb.2:
	cmpl	$13, %edi
	jne	LBB0_6
## %bb.3:
	movq	_CurrentCursorX@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	jmp	LBB0_7
LBB0_5:
	movq	_CurrentCursorX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	$8, %ecx
	andl	$-8, %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_7
LBB0_4:
	movq	_CurrentCursorX@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_CurrentCursorY@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_7
LBB0_6:
	movq	_CurrentAttr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CurrentCursorX@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	_CurrentCursorY@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_XboxVideoPutChar
	incl	(%rbx)
LBB0_7:
	leaq	-12(%rbp), %rdi
	leaq	-20(%rbp), %rsi
	leaq	-16(%rbp), %rdx
	callq	_XboxVideoGetDisplaySize
	movl	-12(%rbp), %ecx
	movq	_CurrentCursorX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jg	LBB0_9
## %bb.8:
	movl	$0, (%rax)
	movq	_CurrentCursorY@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentCursorX,4,2             ## @CurrentCursorX
	.comm	_CurrentCursorY,4,2             ## @CurrentCursorY
	.comm	_CurrentAttr,4,2                ## @CurrentAttr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_XboxConsPutChar                ; -- Begin function XboxConsPutChar
	.p2align	2
_XboxConsPutChar:                       ; @XboxConsPutChar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _CurrentCursorX@GOTPAGE
Lloh1:
	ldr	x19, [x19, _CurrentCursorX@GOTPAGEOFF]
	cmp	w0, #9
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #10
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #13
	b.ne	LBB0_6
; %bb.3:
	str	wzr, [x19]
	b	LBB0_8
LBB0_4:
	ldr	w8, [x19]
	add	w8, w8, #8
	and	w8, w8, #0xfffffff8
	b	LBB0_7
LBB0_5:
	str	wzr, [x19]
Lloh2:
	adrp	x8, _CurrentCursorY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CurrentCursorY@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	b	LBB0_8
LBB0_6:
Lloh4:
	adrp	x8, _CurrentAttr@GOTPAGE
Lloh5:
	ldr	x8, [x8, _CurrentAttr@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x19]
Lloh7:
	adrp	x8, _CurrentCursorY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CurrentCursorY@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	bl	_XboxVideoPutChar
	ldr	w8, [x19]
	add	w8, w8, #1
LBB0_7:
	str	w8, [x19]
LBB0_8:
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_XboxVideoGetDisplaySize
	ldr	w8, [sp, #12]
	ldr	w9, [x19]
	cmp	w8, w9
	b.gt	LBB0_10
; %bb.9:
	str	wzr, [x19]
Lloh10:
	adrp	x8, _CurrentCursorY@GOTPAGE
Lloh11:
	ldr	x8, [x8, _CurrentCursorY@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentCursorX,4,2             ; @CurrentCursorX
	.comm	_CurrentCursorY,4,2             ; @CurrentCursorY
	.comm	_CurrentAttr,4,2                ; @CurrentAttr
.subsections_via_symbols
