	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UIDrawTextBufferChar           ## -- Begin function UIDrawTextBufferChar
	.p2align	4, 0x90
_UIDrawTextBufferChar:                  ## @UIDrawTextBufferChar
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_text_lines@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	%r13, %rdi
	callq	_strlen
	movq	_text_wait@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	jle	LBB0_2
## %bb.1:
	decl	%ecx
	movl	%ecx, (%r12)
	jmp	LBB0_27
LBB0_2:
	movq	_text_count@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r11
	cmpq	%r11, %rax
	jbe	LBB0_26
## %bb.3:
	movq	_text_draw_speed@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	_win_speed@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movq	_FALSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_text_drawn@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_text_x@GOTPCREL(%rip), %rcx
	testq	%r11, %r11
	je	LBB0_5
## %bb.4:
	movl	$18, %edx
	subl	(%rcx), %edx
	movslq	%edx, %r9
	jmp	LBB0_6
LBB0_26:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_text_drawn@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	jmp	LBB0_27
LBB0_5:
	movl	$0, (%rcx)
	movq	_text_y@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movl	$18, %r9d
LBB0_6:
	movl	(%r13,%r11,4), %r10d
	movq	_bank_data_ptrs@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_FONT_BANK@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdi
	movl	(%rcx,%rdi,8), %r8d
	movl	%r10d, %edx
	subq	%r11, %rax
	je	LBB0_15
## %bb.7:
	leaq	4(,%r11,4), %rdx
	addq	%r13, %rdx
	leaq	-1(%rax), %rcx
	xorl	%esi, %esi
	movabsq	$4294968321, %r14               ## imm = 0x100000401
	movl	%r10d, %r15d
	cmpl	$32, %r15d
	ja	LBB0_10
	.p2align	4, 0x90
LBB0_9:
	movl	%r15d, %ebx
	btq	%rbx, %r14
	jb	LBB0_12
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rcx
	je	LBB0_11
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	(%rdx,%rsi,4), %r15d
	incq	%rsi
	cmpl	$32, %r15d
	jbe	LBB0_9
	jmp	LBB0_10
LBB0_11:
	movq	%rax, %rsi
LBB0_12:
	movl	%r10d, %edx
	cmpq	%r9, %rsi
	movq	_text_draw_speed@GOTPCREL(%rip), %r14
	movq	_text_count@GOTPCREL(%rip), %rbx
	jbe	LBB0_15
## %bb.13:
	movl	%r10d, %edx
	cmpq	$17, %rsi
	ja	LBB0_15
## %bb.14:
	movq	_text_x@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_text_y@GOTPCREL(%rip), %rax
	incl	(%rax)
	movl	(%r13,%r11,4), %edx
LBB0_15:
	movl	%edx, %eax
	orl	$2, %eax
	cmpl	$10, %eax
	je	LBB0_17
## %bb.16:
	movq	_FONT_BANK_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_text_tile_count@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movq	_avatar_enabled@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdx
	leaq	(%rcx,%rdx,4), %r15
	movq	_TEXT_BUFFER_START@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	addq	%r15, %rsi
	shll	$4, %r10d
	addl	%r8d, %r10d
	leal	(%rax,%r10), %ecx
	addl	$-512, %ecx                     ## imm = 0xFE00
	movl	$1, %edx
	callq	_SetBankedBkgData
	addq	(%r13), %r15
	movq	_text_x@GOTPCREL(%rip), %rax
	movl	(%r14), %ecx
	addl	%ecx, %ecx
	addl	(%rax), %ecx
	movq	%r15, -48(%rbp)
	movq	_menu_enabled@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	movq	_text_y@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_text_num_lines@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	xorl	%edx, %edx
	cmpl	%esi, %eax
	setge	%dl
	leal	(%rdx,%rdx,8), %edx
	leal	(%rcx,%rdx), %edi
	incl	%edi
	cltd
	idivl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	leal	1(%rdx), %esi
	leaq	-48(%rbp), %r8
	movl	$1, %edx
	movl	$1, %ecx
	callq	_set_win_tiles
	movq	_text_tile_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_text_draw_speed@GOTPCREL(%rip), %r14
	movq	_text_lines@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	(%rbx), %r11
	movl	(%r13,%r11,4), %edx
LBB0_17:
	movq	_text_x@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	cmpl	$8, %edx
	jne	LBB0_19
## %bb.18:
	decl	%ecx
	movl	$10, (%r12)
LBB0_19:
	leaq	1(%r11), %rdx
	movq	%rdx, (%rbx)
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	cmpl	$10, 4(%r13,%r11,4)
	jne	LBB0_22
## %bb.20:
	movq	_text_y@GOTPCREL(%rip), %rcx
	incl	(%rcx)
	movl	$0, (%rax)
	addq	$2, %r11
	movq	%r11, (%rbx)
	jmp	LBB0_24
LBB0_22:
	cmpl	$17, %ecx
	jl	LBB0_24
## %bb.23:
	movl	$0, (%rax)
	movq	_text_y@GOTPCREL(%rip), %rax
	incl	(%rax)
LBB0_24:
	cmpq	$0, (%r14)
	jne	LBB0_27
## %bb.25:
	callq	_UIDrawTextBufferChar
LBB0_27:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_text_lines,8,3                 ## @text_lines
	.comm	_text_wait,4,2                  ## @text_wait
	.comm	_text_count,8,3                 ## @text_count
	.comm	_text_draw_speed,8,3            ## @text_draw_speed
	.comm	_win_speed,8,3                  ## @win_speed
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_text_drawn,4,2                 ## @text_drawn
	.comm	_text_x,4,2                     ## @text_x
	.comm	_text_y,4,2                     ## @text_y
	.comm	_bank_data_ptrs,8,3             ## @bank_data_ptrs
	.comm	_FONT_BANK,8,3                  ## @FONT_BANK
	.comm	_FONT_BANK_OFFSET,4,2           ## @FONT_BANK_OFFSET
	.comm	_text_tile_count,4,2            ## @text_tile_count
	.comm	_avatar_enabled,4,2             ## @avatar_enabled
	.comm	_TEXT_BUFFER_START,8,3          ## @TEXT_BUFFER_START
	.comm	_menu_enabled,4,2               ## @menu_enabled
	.comm	_text_num_lines,4,2             ## @text_num_lines
	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UIDrawTextBufferChar           ; -- Begin function UIDrawTextBufferChar
	.p2align	2
_UIDrawTextBufferChar:                  ; @UIDrawTextBufferChar
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x24, _text_lines@GOTPAGE
Lloh1:
	ldr	x24, [x24, _text_lines@GOTPAGEOFF]
	ldr	x19, [x24]
	mov	x0, x19
	bl	_strlen
Lloh2:
	adrp	x22, _text_wait@GOTPAGE
Lloh3:
	ldr	x22, [x22, _text_wait@GOTPAGEOFF]
	ldr	w9, [x22]
	subs	w9, w9, #1
	b.lt	LBB0_2
; %bb.1:
	str	w9, [x22]
	b	LBB0_27
LBB0_2:
	mov	x8, x0
Lloh4:
	adrp	x21, _text_count@GOTPAGE
Lloh5:
	ldr	x21, [x21, _text_count@GOTPAGEOFF]
	ldr	x9, [x21]
	cmp	x0, x9
	b.ls	LBB0_5
; %bb.3:
Lloh6:
	adrp	x20, _text_draw_speed@GOTPAGE
Lloh7:
	ldr	x20, [x20, _text_draw_speed@GOTPAGEOFF]
	ldr	x10, [x20]
Lloh8:
	adrp	x11, _win_speed@GOTPAGE
Lloh9:
	ldr	x11, [x11, _win_speed@GOTPAGEOFF]
Lloh10:
	str	x10, [x11]
Lloh11:
	adrp	x10, _FALSE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
Lloh14:
	adrp	x11, _text_drawn@GOTPAGE
Lloh15:
	ldr	x11, [x11, _text_drawn@GOTPAGEOFF]
Lloh16:
	str	w10, [x11]
Lloh17:
	adrp	x23, _text_x@GOTPAGE
Lloh18:
	ldr	x23, [x23, _text_x@GOTPAGEOFF]
	cbz	x9, LBB0_6
; %bb.4:
	ldr	w10, [x23]
	mov	w11, #18
	sub	w10, w11, w10
	sxtw	x12, w10
	b	LBB0_7
LBB0_5:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _text_drawn@GOTPAGE
Lloh23:
	ldr	x9, [x9, _text_drawn@GOTPAGEOFF]
Lloh24:
	str	w8, [x9]
	b	LBB0_27
LBB0_6:
	str	wzr, [x23]
Lloh25:
	adrp	x10, _text_y@GOTPAGE
Lloh26:
	ldr	x10, [x10, _text_y@GOTPAGEOFF]
Lloh27:
	str	wzr, [x10]
	mov	w12, #18
LBB0_7:
	ldr	w10, [x19, x9, lsl #2]
Lloh28:
	adrp	x11, _bank_data_ptrs@GOTPAGE
Lloh29:
	ldr	x11, [x11, _bank_data_ptrs@GOTPAGEOFF]
Lloh30:
	ldr	x11, [x11]
Lloh31:
	adrp	x13, _FONT_BANK@GOTPAGE
Lloh32:
	ldr	x13, [x13, _FONT_BANK@GOTPAGEOFF]
Lloh33:
	ldr	x0, [x13]
	ldr	x11, [x11, x0, lsl #3]
	subs	x13, x8, x9
	b.eq	LBB0_16
; %bb.8:
	mov	x8, #0
	add	x14, x19, x9, lsl #2
	add	x14, x14, #4
	sub	x15, x13, #1
	mov	w16, #1
	mov	x17, #1025
	movk	x17, #1, lsl #32
	mov	x1, x10
	cmp	w1, #32
	b.ls	LBB0_11
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x15, x8
	b.eq	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w1, [x14, x8, lsl #2]
	add	x8, x8, #1
	cmp	w1, #32
	b.hi	LBB0_9
LBB0_11:
	mov	w1, w1
	lsl	x1, x16, x1
	tst	x1, x17
	b.eq	LBB0_9
; %bb.12:
	cmp	x8, x12
	b.ls	LBB0_16
LBB0_13:
	mov	x12, x10
	cmp	x8, #17
	b.hi	LBB0_17
; %bb.14:
Lloh34:
	adrp	x8, _text_y@GOTPAGE
Lloh35:
	ldr	x8, [x8, _text_y@GOTPAGEOFF]
	str	wzr, [x23]
	ldr	w12, [x8]
	add	w12, w12, #1
	str	w12, [x8]
	ldr	w12, [x19, x9, lsl #2]
	b	LBB0_17
LBB0_15:
	mov	x8, x13
	cmp	x8, x12
	b.hi	LBB0_13
LBB0_16:
	mov	x12, x10
LBB0_17:
	orr	w8, w12, #0x2
	cmp	w8, #10
	b.eq	LBB0_19
; %bb.18:
Lloh36:
	adrp	x8, _FONT_BANK_OFFSET@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FONT_BANK_OFFSET@GOTPAGEOFF]
Lloh38:
	ldr	w8, [x8]
Lloh39:
	adrp	x19, _text_tile_count@GOTPAGE
Lloh40:
	ldr	x19, [x19, _text_tile_count@GOTPAGEOFF]
	ldrsw	x9, [x19]
Lloh41:
	adrp	x25, _avatar_enabled@GOTPAGE
Lloh42:
	ldr	x25, [x25, _avatar_enabled@GOTPAGEOFF]
	ldrsw	x12, [x25]
Lloh43:
	adrp	x26, _TEXT_BUFFER_START@GOTPAGE
Lloh44:
	ldr	x26, [x26, _TEXT_BUFFER_START@GOTPAGEOFF]
	add	x27, x9, x12, lsl #2
	ldr	x9, [x26]
	add	x1, x9, x27
	add	w9, w11, w10, lsl #4
	add	w8, w9, w8
	sub	w3, w8, #512
	mov	w2, #1
	bl	_SetBankedBkgData
	ldr	x8, [x26]
	add	x8, x8, x27
	str	x8, [sp, #8]
	ldr	w8, [x23]
	ldr	w9, [x25]
	add	w8, w8, w9, lsl #1
Lloh45:
	adrp	x9, _menu_enabled@GOTPAGE
Lloh46:
	ldr	x9, [x9, _menu_enabled@GOTPAGEOFF]
Lloh47:
	ldr	w9, [x9]
Lloh48:
	adrp	x10, _text_y@GOTPAGE
Lloh49:
	ldr	x10, [x10, _text_y@GOTPAGEOFF]
Lloh50:
	ldr	w10, [x10]
Lloh51:
	adrp	x11, _text_num_lines@GOTPAGE
Lloh52:
	ldr	x11, [x11, _text_num_lines@GOTPAGEOFF]
Lloh53:
	ldr	w11, [x11]
	mov	w12, #9
	cmp	w10, w11
	csel	w12, wzr, w12, lt
	add	w8, w8, w9
	add	w8, w8, w12
	add	w0, w8, #1
	sdiv	w8, w10, w11
	msub	w8, w8, w11, w10
	add	w1, w8, #1
	add	x4, sp, #8
	mov	w2, #1
	mov	w3, #1
	bl	_set_win_tiles
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldr	x19, [x24]
	ldr	x9, [x21]
	ldr	w12, [x19, x9, lsl #2]
LBB0_19:
	ldr	w8, [x23]
	cmp	w12, #8
	b.ne	LBB0_21
; %bb.20:
	sub	w8, w8, #1
	mov	w10, #10
	str	w10, [x22]
LBB0_21:
	add	x10, x9, #1
	str	x10, [x21]
	add	w11, w8, #1
	str	w11, [x23]
	ldr	w10, [x19, x10, lsl #2]
	cmp	w10, #10
	b.ne	LBB0_23
; %bb.22:
Lloh54:
	adrp	x8, _text_y@GOTPAGE
Lloh55:
	ldr	x8, [x8, _text_y@GOTPAGEOFF]
	str	wzr, [x23]
	ldr	w10, [x8]
	add	w10, w10, #1
	str	w10, [x8]
	add	x8, x9, #2
	str	x8, [x21]
	b	LBB0_25
LBB0_23:
	cmp	w8, #17
	b.lt	LBB0_25
; %bb.24:
	str	wzr, [x23]
Lloh56:
	adrp	x8, _text_y@GOTPAGE
Lloh57:
	ldr	x8, [x8, _text_y@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_25:
	ldr	x8, [x20]
	cbnz	x8, LBB0_27
; %bb.26:
	bl	_UIDrawTextBufferChar
LBB0_27:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_text_lines,8,3                 ; @text_lines
	.comm	_text_wait,4,2                  ; @text_wait
	.comm	_text_count,8,3                 ; @text_count
	.comm	_text_draw_speed,8,3            ; @text_draw_speed
	.comm	_win_speed,8,3                  ; @win_speed
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_text_drawn,4,2                 ; @text_drawn
	.comm	_text_x,4,2                     ; @text_x
	.comm	_text_y,4,2                     ; @text_y
	.comm	_bank_data_ptrs,8,3             ; @bank_data_ptrs
	.comm	_FONT_BANK,8,3                  ; @FONT_BANK
	.comm	_FONT_BANK_OFFSET,4,2           ; @FONT_BANK_OFFSET
	.comm	_text_tile_count,4,2            ; @text_tile_count
	.comm	_avatar_enabled,4,2             ; @avatar_enabled
	.comm	_TEXT_BUFFER_START,8,3          ; @TEXT_BUFFER_START
	.comm	_menu_enabled,4,2               ; @menu_enabled
	.comm	_text_num_lines,4,2             ; @text_num_lines
	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
