	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MiniTuiDrawProgressBar         ## -- Begin function MiniTuiDrawProgressBar
	.p2align	4, 0x90
_MiniTuiDrawProgressBar:                ## @MiniTuiDrawProgressBar
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r15d
	movl	%r8d, %r12d
	movl	%edx, %ebx
	movl	%esi, %r14d
	movl	%edi, %r13d
	movl	16(%rbp), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	subl	%r13d, %esi
	leal	-3(%rsi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	addl	$-7, %esi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_UiTruncateStringEllipsis
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	cmpl	%r15d, %r12d
	cmovgel	%r15d, %r12d
	addl	$2, %r13d
	leal	1(%r14), %r15d
	addl	$-2, %ebx
	movl	$7, %edi
	xorl	%esi, %esi
	callq	_ATTR
	movl	%r13d, %edi
	movl	%r15d, %esi
	movl	%ebx, %edx
	movl	%r15d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%eax, %r9d
	callq	_TuiDrawCenteredText
	imull	-52(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %eax
	cltd
	idivl	-48(%rbp)                       ## 4-byte Folded Reload
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	addl	$2, %r14d
	movq	_UiMenuBgColor@GOTPCREL(%rip), %r12
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_UiTextColor@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r12), %esi
	callq	_ATTR
	movl	%r13d, %edi
	movl	%r14d, %esi
	movq	%r15, %rdx
	movl	%eax, %ecx
	callq	_TuiDrawText
	incl	%r13d
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	xorl	%eax, %eax
	callq	_TuiUpdateDateTime
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VideoCopyOffScreenBufferToVRAM ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\333"

	.comm	_UiTextColor,4,2                ## @UiTextColor
	.comm	_UiMenuBgColor,4,2              ## @UiMenuBgColor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MiniTuiDrawProgressBar         ; -- Begin function MiniTuiDrawProgressBar
	.p2align	2
_MiniTuiDrawProgressBar:                ; @MiniTuiDrawProgressBar
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x6
	mov	x22, x5
	mov	x19, x4
	mov	x23, x2
	mov	x20, x1
	mov	x24, x0
	sub	w8, w2, w0
	sub	w25, w8, #3
	sub	w1, w8, #7
	mov	x0, x6
	bl	_UiTruncateStringEllipsis
	cmp	w19, w22
	csel	w26, w19, w22, lt
	add	w19, w24, #2
	add	w24, w20, #1
	sub	w23, w23, #2
	mov	w0, #7
	mov	w1, #0
	bl	_ATTR
	mov	x5, x0
	mov	x0, x19
	mov	x1, x24
	mov	x2, x23
	mov	x3, x24
	mov	x4, x21
	bl	_TuiDrawCenteredText
	mul	w8, w26, w25
	sdiv	w22, w8, w22
	cmp	w22, #1
	b.lt	LBB0_3
; %bb.1:
	add	w20, w20, #2
Lloh0:
	adrp	x23, _UiTextColor@GOTPAGE
Lloh1:
	ldr	x23, [x23, _UiTextColor@GOTPAGEOFF]
Lloh2:
	adrp	x24, _UiMenuBgColor@GOTPAGE
Lloh3:
	ldr	x24, [x24, _UiMenuBgColor@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_ATTR
	mov	x3, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_TuiDrawText
	add	w19, w19, #1
	subs	w22, w22, #1
	b.ne	LBB0_2
LBB0_3:
	bl	_TuiUpdateDateTime
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_VideoCopyOffScreenBufferToVRAM
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\333"

	.comm	_UiTextColor,4,2                ; @UiTextColor
	.comm	_UiMenuBgColor,4,2              ; @UiMenuBgColor
.subsections_via_symbols
