	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawText2                   ## -- Begin function TuiDrawText2
	.p2align	4, 0x90
_TuiDrawText2:                          ## @TuiDrawText2
	.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
	movq	(%rcx), %r11
	testq	%r11, %r11
	je	LBB0_9
## %bb.1:
	movq	_UiScreenWidth@GOTPCREL(%rip), %r9
	movq	(%r9), %r15
	cmpq	%rdi, %r15
	jbe	LBB0_9
## %bb.2:
	movq	_TextVideoBuffer@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	leaq	1(%rdi), %r10
	shlq	$4, %rsi
	shlq	$4, %rdi
	addq	%rax, %rdi
	addq	$8, %rdi
	xorl	%eax, %eax
	movq	_TRUE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%ebx, %ebx
	cmpq	%rdx, %rax
	setb	%r12b
	testq	%rdx, %rdx
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jne	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movb	%r12b, %bl
	testl	%ebx, %ebx
	je	LBB0_9
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	imulq	%rsi, %r15
	movq	%r11, -8(%rdi,%r15)
	movq	(%r9), %rbx
	imulq	%rsi, %rbx
	movq	%r8, (%rdi,%rbx)
	movq	8(%rcx,%rax,8), %r11
	testq	%r11, %r11
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r10,%rax), %rbx
	incq	%rax
	addq	$16, %rdi
	movq	(%r9), %r15
	cmpq	%r15, %rbx
	jb	LBB0_3
LBB0_9:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TextVideoBuffer,4,2            ## @TextVideoBuffer
	.comm	_UiScreenWidth,8,3              ## @UiScreenWidth
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawText2                   ; -- Begin function TuiDrawText2
	.p2align	2
_TuiDrawText2:                          ; @TuiDrawText2
	.cfi_startproc
; %bb.0:
	ldr	x9, [x3]
Lloh0:
	adrp	x8, _UiScreenWidth@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UiScreenWidth@GOTPAGEOFF]
	ldr	x14, [x8]
	cmp	x9, #0
	ccmp	x14, x0, #0, ne
	b.hi	LBB0_2
LBB0_1:
	ret
LBB0_2:
	mov	x11, #0
Lloh2:
	adrp	x10, _TextVideoBuffer@GOTPAGE
Lloh3:
	ldr	x10, [x10, _TextVideoBuffer@GOTPAGEOFF]
Lloh4:
	ldrsw	x15, [x10]
	add	x10, x3, #8
	add	x12, x0, #1
	lsl	x13, x1, #4
	add	x15, x15, x0, lsl #4
Lloh5:
	adrp	x16, _TRUE@GOTPAGE
Lloh6:
	ldr	x16, [x16, _TRUE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x11, x2
	cset	w17, lo
	ldr	w0, [x16]
	cmp	x2, #0
	csel	w17, w0, w17, eq
	cbz	w17, LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mul	x14, x13, x14
	str	x9, [x15, x14]
	ldr	x9, [x8]
	madd	x9, x13, x9, x15
	str	x4, [x9, #8]
	ldr	x9, [x10, x11, lsl #3]
	cbz	x9, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x17, x11, #1
	ldr	x14, [x8]
	add	x15, x15, #16
	add	x11, x12, x11
	cmp	x11, x14
	mov	x11, x17
	b.lo	LBB0_3
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TextVideoBuffer,4,2            ; @TextVideoBuffer
	.comm	_UiScreenWidth,8,3              ; @UiScreenWidth
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
