	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawProgressBar             ## -- Begin function TuiDrawProgressBar
	.p2align	4, 0x90
_TuiDrawProgressBar:                    ## @TuiDrawProgressBar
	.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	%r9d, %r14d
	movl	%r8d, %r12d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %ebx
	movl	%esi, %r13d
	movl	%edi, %r15d
	movl	16(%rbp), %edi
	movl	%edi, -68(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	subl	%r15d, %esi
	leal	-3(%rsi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	addl	$-7, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_UiTruncateStringEllipsis
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	cmpl	%r14d, %r12d
	cmovgel	%r14d, %r12d
	movq	_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	movq	_HORZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_UiMenuFgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
                                        ## kill: def $eax killed $eax def $rax
	subq	$8, %rsp
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	movl	-60(%rbp), %r9d                 ## 4-byte Reload
	pushq	%rax
	pushq	%r14
	pushq	%r14
	callq	_TuiDrawBox
	addq	$32, %rsp
	addl	$2, %r15d
	addl	$2, %r13d
	addl	$-2, %ebx
	movq	_UiTextColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movl	%r15d, %edi
	movl	%r13d, %esi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_TuiDrawCenteredText
	imull	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
	cltd
	idivl	-56(%rbp)                       ## 4-byte Folded Reload
	testl	%eax, %eax
	jle	LBB0_1
## %bb.6:
	movl	%eax, %r12d
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %ebx
	movl	%eax, %r14d
	movq	_UiTextColor@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ATTR
	movl	%ebx, %edi
	movl	%r13d, %esi
	leaq	L_.str(%rip), %rdx
	movl	%eax, %ecx
	callq	_TuiDrawText
	incl	%ebx
	decl	%r14d
	jne	LBB0_7
## %bb.8:
	movl	%r13d, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_2
LBB0_1:
	movl	%r13d, %ebx
	xorl	%r12d, %r12d
LBB0_2:
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movq	_UiMenuBgColor@GOTPCREL(%rip), %rcx
	movq	_UiTextColor@GOTPCREL(%rip), %r14
	jge	LBB0_5
## %bb.3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r12), %ebx
	movl	(%r14), %edi
	movl	(%rcx), %esi
	movq	%r15, %r13
	movq	%rcx, %r15
	callq	_ATTR
	movl	%ebx, %edi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	leaq	L_.str.1(%rip), %rdx
	movl	%eax, %ecx
	callq	_TuiDrawText
	movq	%r15, %rcx
	movq	%r13, %r15
	incl	%r12d
	cmpl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	jl	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	callq	_TuiUpdateDateTime
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VideoCopyOffScreenBufferToVRAM ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VERT,4,2                       ## @VERT
	.comm	_HORZ,4,2                       ## @HORZ
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_UiMenuFgColor,4,2              ## @UiMenuFgColor
	.comm	_UiMenuBgColor,4,2              ## @UiMenuBgColor
	.comm	_UiTextColor,4,2                ## @UiTextColor
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\333"

L_.str.1:                               ## @.str.1
	.asciz	"\262"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawProgressBar             ; -- Begin function TuiDrawProgressBar
	.p2align	2
_TuiDrawProgressBar:                    ; @TuiDrawProgressBar
	.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
	mov	x22, x6
	mov	x21, x5
	mov	x19, x4
	str	w3, [sp, #8]                    ; 4-byte Folded Spill
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	sub	w8, w2, w0
	sub	w28, w8, #3
	sub	w1, w8, #7
	mov	x0, x6
	bl	_UiTruncateStringEllipsis
	cmp	w19, w21
	csel	w8, w19, w21, lt
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
Lloh0:
	adrp	x8, _VERT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VERT@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x8, _HORZ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HORZ@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x8, _TRUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh8:
	ldr	w27, [x8]
Lloh9:
	adrp	x8, _UiMenuFgColor@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UiMenuFgColor@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x26, _UiMenuBgColor@GOTPAGE
Lloh13:
	ldr	x26, [x26, _UiMenuBgColor@GOTPAGEOFF]
	ldr	w1, [x26]
	bl	_ATTR
	str	w0, [sp]
	mov	x0, x25
	mov	x1, x24
	mov	x2, x23
	ldr	w3, [sp, #8]                    ; 4-byte Folded Reload
	mov	x4, x19
	mov	x5, x20
	mov	x6, x27
	mov	x7, x27
	bl	_TuiDrawBox
	add	w19, w25, #2
	add	w20, w24, #2
	sub	w23, w23, #2
Lloh14:
	adrp	x24, _UiTextColor@GOTPAGE
Lloh15:
	ldr	x24, [x24, _UiTextColor@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x26]
	bl	_ATTR
	mov	x5, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x20
	mov	x4, x22
	bl	_TuiDrawCenteredText
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mul	w8, w8, w28
	sdiv	w23, w8, w21
	cmp	w23, #1
	b.lt	LBB0_4
; %bb.1:
Lloh16:
	adrp	x21, l_.str@PAGE
Lloh17:
	add	x21, x21, l_.str@PAGEOFF
	mov	x22, x19
	mov	x25, x23
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x24]
	ldr	w1, [x26]
	bl	_ATTR
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_TuiDrawText
	add	w22, w22, #1
	subs	w25, w25, #1
	b.ne	LBB0_2
; %bb.3:
	cmp	w23, w28
	b.lt	LBB0_5
	b	LBB0_7
LBB0_4:
	mov	w23, #0
	cmp	w23, w28
	b.ge	LBB0_7
LBB0_5:
Lloh18:
	adrp	x21, l_.str.1@PAGE
Lloh19:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	w22, w19, w23
	ldr	w0, [x24]
	ldr	w1, [x26]
	bl	_ATTR
	mov	x3, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x21
	bl	_TuiDrawText
	add	w23, w23, #1
	cmp	w23, w28
	b.lt	LBB0_6
LBB0_7:
	bl	_TuiUpdateDateTime
	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
	b	_VideoCopyOffScreenBufferToVRAM
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_VERT,4,2                       ; @VERT
	.comm	_HORZ,4,2                       ; @HORZ
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_UiMenuFgColor,4,2              ; @UiMenuFgColor
	.comm	_UiMenuBgColor,4,2              ; @UiMenuBgColor
	.comm	_UiTextColor,4,2                ; @UiTextColor
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\333"

l_.str.1:                               ; @.str.1
	.asciz	"\262"

.subsections_via_symbols
