	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function repaint_text
_repaint_text:                          ## @repaint_text
	.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	24(%rdi), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	movq	%r12, %rdi
	callq	_werase
	movl	(%r14), %ecx
	movl	4(%r14), %r8d
	movq	_dialog_attr@GOTPCREL(%rip), %r15
	movl	(%r15), %r9d
	movq	_border_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_border2_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	pushq	%rax
	pushq	%r10
	callq	_dlg_draw_box2
	addq	$16, %rsp
	movl	16(%r14), %esi
	movq	%r12, %rdi
	callq	_dlg_draw_title
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_dlg_attrset
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_draw_helpline
	movl	12(%r14), %esi
	movl	(%r14), %edx
	movl	4(%r14), %ecx
	movq	%r12, %rdi
	callq	_dlg_print_autowrap
	movl	(%r14), %esi
	movl	4(%r14), %r8d
	addl	$-4, %esi
	movq	_MARGIN@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	leal	(%rax,%rax), %edx
	addl	$4, %edx
	movl	%eax, %ecx
	addl	$2, %ecx
	subl	%edx, %r8d
	movl	(%r15), %r9d
	movq	_border_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_border2_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%r12, %rdi
	movl	%ecx, %edx
	pushq	%rax
	pushq	%r10
	callq	_dlg_draw_box2
	addq	$16, %rsp
	movl	(%r14), %esi
	addl	$-3, %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_wmove
	movq	_gauge_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_dlg_attrset
	movl	4(%r14), %eax
	movl	(%r13), %ecx
	addl	%ecx, %ecx
	negl	%ecx
	addl	%eax, %ecx
	addl	$-6, %ecx
	testl	%ecx, %ecx
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$32, %esi
	callq	_waddch
	incl	%ebx
	movl	4(%r14), %eax
	movl	(%r13), %ecx
	addl	%ecx, %ecx
	negl	%ecx
	addl	%eax, %ecx
	addl	$-6, %ecx
	cmpl	%ecx, %ebx
	jl	LBB0_2
LBB0_3:
	movl	(%r14), %esi
	addl	$-3, %esi
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	addl	$-2, %edx
	movq	%r12, %rdi
	callq	_wmove
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_wprintw
	movl	4(%r14), %r15d
	movl	(%r13), %eax
	addl	%eax, %eax
	subl	%eax, %r15d
	addl	$-6, %r15d
	imull	8(%r14), %r15d
	movq	_A_REVERSE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_gauge_attr@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_5
## %bb.4:
	movq	%r12, %rdi
	callq	_dlg_attroff
	jmp	LBB0_6
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r12, %rdi
	callq	_dlg_attrset
LBB0_6:
	movl	(%r14), %esi
	addl	$-3, %esi
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_wmove
	cmpl	$100, %r15d
	movq	_gauge_attr@GOTPCREL(%rip), %r14
	jl	LBB0_9
## %bb.7:
	movslq	%r15d, %rax
	imulq	$1374389535, %rax, %rbx         ## imm = 0x51EB851F
	movq	%rbx, %rax
	shrq	$63, %rax
	sarq	$37, %rbx
	addl	%eax, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_winch
	movl	(%r13), %ecx
	movl	(%r14), %edx
	andl	%ecx, %edx
	notl	%ecx
	cmpl	$1, %edx
	movl	$0, %esi
	sbbl	%esi, %esi
	orl	%ecx, %esi
	andl	%eax, %esi
	movq	%r12, %rdi
	callq	_waddch
	decl	%ebx
	jne	LBB0_8
LBB0_9:
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_wrefresh                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_dialog_attr,4,2                ## @dialog_attr
	.comm	_border_attr,4,2                ## @border_attr
	.comm	_border2_attr,4,2               ## @border2_attr
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_MARGIN,4,2                     ## @MARGIN
	.comm	_gauge_attr,4,2                 ## @gauge_attr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%3d%%"

	.comm	_A_REVERSE,4,2                  ## @A_REVERSE
	.no_dead_strip	_repaint_text
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function repaint_text
_repaint_text:                          ; @repaint_text
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x19, [x0, #24]
	cbz	x19, LBB0_6
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_werase
	ldp	w3, w4, [x20]
Lloh0:
	adrp	x21, _dialog_attr@GOTPAGE
Lloh1:
	ldr	x21, [x21, _dialog_attr@GOTPAGEOFF]
	ldr	w5, [x21]
Lloh2:
	adrp	x23, _border_attr@GOTPAGE
Lloh3:
	ldr	x23, [x23, _border_attr@GOTPAGEOFF]
	ldr	w6, [x23]
Lloh4:
	adrp	x24, _border2_attr@GOTPAGE
Lloh5:
	ldr	x24, [x24, _border2_attr@GOTPAGEOFF]
	ldr	w7, [x24]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_dlg_draw_box2
	ldr	w1, [x20, #16]
	mov	x0, x19
	bl	_dlg_draw_title
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dlg_attrset
Lloh6:
	adrp	x8, _FALSE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dlg_draw_helpline
	ldr	w1, [x20, #12]
	ldp	w2, w3, [x20]
	mov	x0, x19
	bl	_dlg_print_autowrap
	ldp	w8, w9, [x20]
	sub	w1, w8, #4
Lloh9:
	adrp	x22, _MARGIN@GOTPAGE
Lloh10:
	ldr	x22, [x22, _MARGIN@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w2, w8, #2
	sub	w4, w9, w2, lsl #1
	ldr	w5, [x21]
	ldr	w6, [x23]
	ldr	w7, [x24]
	mov	x0, x19
	mov	x3, x2
	bl	_dlg_draw_box2
	ldr	w8, [x20]
	sub	w1, w8, #3
	mov	x0, x19
	mov	w2, #4
	bl	_wmove
Lloh11:
	adrp	x21, _gauge_attr@GOTPAGE
Lloh12:
	ldr	x21, [x21, _gauge_attr@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dlg_attrset
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	sub	w9, w8, w9, lsl #1
	sub	w9, w9, #6
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.2:
	mov	w23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #32
	bl	_waddch
	add	w23, w23, #1
	ldr	w8, [x20, #4]
	ldr	w9, [x22]
	sub	w9, w8, w9, lsl #1
	sub	w9, w9, #6
	cmp	w23, w9
	b.lt	LBB0_3
LBB0_4:
	ldr	w9, [x20]
	sub	w1, w9, #3
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	sub	w2, w8, #2
	mov	x0, x19
	bl	_wmove
	ldr	w2, [x20, #8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_wprintw
	ldp	w9, w8, [x20, #4]
	ldr	w10, [x22]
	sub	w9, w9, w10, lsl #1
	sub	w9, w9, #6
	mul	w23, w9, w8
	ldr	w8, [x21]
Lloh15:
	adrp	x22, _A_REVERSE@GOTPAGE
Lloh16:
	ldr	x22, [x22, _A_REVERSE@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	tst	w1, w8
	b.eq	LBB0_7
; %bb.5:
	bl	_dlg_attroff
	b	LBB0_8
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	bl	_dlg_attrset
LBB0_8:
	ldr	w8, [x20]
	sub	w1, w8, #3
	mov	x0, x19
	mov	w2, #4
	bl	_wmove
	cmp	w23, #100
	b.lt	LBB0_11
; %bb.9:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w23, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w20, w8, w9
	mov	w23, #-1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_winch
	ldr	w8, [x21]
	ldr	w9, [x22]
	tst	w9, w8
	csinv	w8, w23, w9, eq
	and	w1, w8, w0
	mov	x0, x19
	bl	_waddch
	subs	w20, w20, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_wrefresh
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_dialog_attr,4,2                ; @dialog_attr
	.comm	_border_attr,4,2                ; @border_attr
	.comm	_border2_attr,4,2               ; @border2_attr
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_MARGIN,4,2                     ; @MARGIN
	.comm	_gauge_attr,4,2                 ; @gauge_attr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%3d%%"

	.comm	_A_REVERSE,4,2                  ; @A_REVERSE
	.no_dead_strip	_repaint_text
.subsections_via_symbols
