	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function XboxVideoOutputChar
_XboxVideoOutputChar:                   ## @XboxVideoOutputChar
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	movq	_CHAR_HEIGHT@GOTPCREL(%rip), %r9
	movl	(%r9), %r11d
	testl	%r11d, %r11d
	je	LBB0_7
## %bb.1:
	movq	_XboxFont8x16@GOTPCREL(%rip), %rax
	shll	$4, %edi
	movslq	%edi, %r12
	shlq	$2, %r12
	addq	(%rax), %r12
	movq	_FrameBuffer@GOTPCREL(%rip), %rax
	imull	%r11d, %edx
	movq	_TOP_BOTTOM_LINES@GOTPCREL(%rip), %rdi
	addl	(%rdi), %edx
	movq	_Delta@GOTPCREL(%rip), %r10
	movl	(%r10), %r14d
	imull	%r14d, %edx
	addq	(%rax), %rdx
	movq	_CHAR_WIDTH@GOTPCREL(%rip), %r15
	movl	(%r15), %ebx
	imull	%ebx, %esi
	movq	_BytesPerPixel@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	addq	%rdx, %rsi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %eax
	addq	%rax, %rsi
	incq	%rdx
	movl	%r11d, %eax
	cmpq	%rax, %rdx
	jae	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%ebx, %ebx
	movl	$0, %ebx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$128, %eax
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r12,%rdx,4), %ebx
	andl	%eax, %ebx
	movl	%ecx, %ebx
	cmovel	%r8d, %ebx
	movl	%ebx, (%rsi,%rdi,4)
	shrl	%eax
	incq	%rdi
	movl	(%r15), %ebx
	cmpq	%rbx, %rdi
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r10), %r14d
	movl	(%r9), %r11d
	jmp	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XboxFont8x16,8,3               ## @XboxFont8x16
	.comm	_FrameBuffer,8,3                ## @FrameBuffer
	.comm	_CHAR_HEIGHT,4,2                ## @CHAR_HEIGHT
	.comm	_TOP_BOTTOM_LINES,4,2           ## @TOP_BOTTOM_LINES
	.comm	_Delta,4,2                      ## @Delta
	.comm	_CHAR_WIDTH,4,2                 ## @CHAR_WIDTH
	.comm	_BytesPerPixel,4,2              ## @BytesPerPixel
	.no_dead_strip	_XboxVideoOutputChar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function XboxVideoOutputChar
_XboxVideoOutputChar:                   ; @XboxVideoOutputChar
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _CHAR_HEIGHT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAR_HEIGHT@GOTPAGEOFF]
	ldr	w14, [x8]
	cbz	w14, LBB0_7
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _XboxFont8x16@GOTPAGE
Lloh3:
	ldr	x10, [x10, _XboxFont8x16@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	lsl	w11, w0, #4
	add	x10, x10, w11, sxtw #2
Lloh5:
	adrp	x11, _FrameBuffer@GOTPAGE
Lloh6:
	ldr	x11, [x11, _FrameBuffer@GOTPAGEOFF]
Lloh7:
	ldr	x13, [x11]
Lloh8:
	adrp	x11, _TOP_BOTTOM_LINES@GOTPAGE
Lloh9:
	ldr	x11, [x11, _TOP_BOTTOM_LINES@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	madd	w17, w14, w2, w11
Lloh11:
	adrp	x11, _Delta@GOTPAGE
Lloh12:
	ldr	x11, [x11, _Delta@GOTPAGEOFF]
Lloh13:
	adrp	x12, _CHAR_WIDTH@GOTPAGE
Lloh14:
	ldr	x12, [x12, _CHAR_WIDTH@GOTPAGEOFF]
	ldr	w15, [x12]
	mul	w16, w15, w1
Lloh15:
	adrp	x0, _BytesPerPixel@GOTPAGE
Lloh16:
	ldr	x0, [x0, _BytesPerPixel@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x0]
	mul	w0, w16, w0
	ldr	w16, [x11]
	mul	w17, w17, w16
	add	x13, x13, x17
	add	x13, x13, x0
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x13, x13, w16, uxtw
	add	x9, x9, #1
	cmp	x9, w14, uxtw
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	w15, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x14, #0
	mov	w16, #128
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x10, x9, lsl #2]
	tst	w15, w16
	csel	w15, w4, w3, eq
	str	w15, [x13, x14, lsl #2]
	lsr	w16, w16, #1
	add	x14, x14, #1
	ldr	w15, [x12]
	cmp	x14, x15
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w16, [x11]
	ldr	w14, [x8]
	b	LBB0_2
LBB0_7:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XboxFont8x16,8,3               ; @XboxFont8x16
	.comm	_FrameBuffer,8,3                ; @FrameBuffer
	.comm	_CHAR_HEIGHT,4,2                ; @CHAR_HEIGHT
	.comm	_TOP_BOTTOM_LINES,4,2           ; @TOP_BOTTOM_LINES
	.comm	_Delta,4,2                      ; @Delta
	.comm	_CHAR_WIDTH,4,2                 ; @CHAR_WIDTH
	.comm	_BytesPerPixel,4,2              ; @BytesPerPixel
	.no_dead_strip	_XboxVideoOutputChar
.subsections_via_symbols
