	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tui_progress__update
_tui_progress__update:                  ## @tui_progress__update
	.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
	testl	%esi, %esi
	je	LBB0_2
## %bb.1:
	movq	_use_browser@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jle	LBB0_2
## %bb.3:
	movq	%rdx, %r12
	movl	%esi, %r13d
	movl	%edi, %r15d
	movl	$1, %edi
	callq	_ui__refresh_dimensions
	movq	_ui__lock@GOTPCREL(%rip), %rdi
	callq	_pthread_mutex_lock
	movq	_SLtt_Screen_Rows@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	sarl	%ebx
	leal	-2(%rbx), %r14d
	xorl	%edi, %edi
	callq	_SLsmg_set_color
	movq	_SLtt_Screen_Cols@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_SLsmg_draw_box
	decl	%ebx
	movl	%r14d, %edi
	movl	$1, %esi
	callq	_SLsmg_gotorc
	movq	%r12, %rdi
	callq	_SLsmg_write_string
	movq	_HE_COLORSET_SELECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SLsmg_set_color
	movq	_SLtt_Screen_Cols@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$-2, %eax
	imull	%r15d, %eax
	cltd
	idivl	%r13d
	movl	%ebx, %edi
	movl	$1, %esi
	movl	$1, %edx
	movl	%eax, %ecx
	movl	$32, %r8d
	callq	_SLsmg_fill_region
	xorl	%eax, %eax
	callq	_SLsmg_refresh
	movq	_ui__lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pthread_mutex_unlock           ## TAILCALL
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_use_browser,8,3                ## @use_browser
	.comm	_ui__lock,4,2                   ## @ui__lock
	.comm	_SLtt_Screen_Rows,4,2           ## @SLtt_Screen_Rows
	.comm	_SLtt_Screen_Cols,4,2           ## @SLtt_Screen_Cols
	.comm	_HE_COLORSET_SELECTED,4,2       ## @HE_COLORSET_SELECTED
	.no_dead_strip	_tui_progress__update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tui_progress__update
_tui_progress__update:                  ; @tui_progress__update
	.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
	cbz	w1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _use_browser@GOTPAGE
Lloh1:
	ldr	x8, [x8, _use_browser@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	mov	w0, #1
	bl	_ui__refresh_dimensions
Lloh3:
	adrp	x22, _ui__lock@GOTPAGE
Lloh4:
	ldr	x22, [x22, _ui__lock@GOTPAGEOFF]
	mov	x0, x22
	bl	_pthread_mutex_lock
Lloh5:
	adrp	x8, _SLtt_Screen_Rows@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SLtt_Screen_Rows@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w24, w8, #1
	sub	w23, w24, #2
	mov	w0, #0
	bl	_SLsmg_set_color
Lloh8:
	adrp	x25, _SLtt_Screen_Cols@GOTPAGE
Lloh9:
	ldr	x25, [x25, _SLtt_Screen_Cols@GOTPAGEOFF]
	ldr	w3, [x25]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #3
	bl	_SLsmg_draw_box
	sub	w24, w24, #1
	mov	x0, x23
	mov	w1, #1
	bl	_SLsmg_gotorc
	mov	x0, x21
	bl	_SLsmg_write_string
Lloh10:
	adrp	x8, _HE_COLORSET_SELECTED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HE_COLORSET_SELECTED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_SLsmg_set_color
	ldr	w8, [x25]
	sub	w8, w8, #2
	mul	w8, w8, w20
	sdiv	w3, w8, w19
	mov	x0, x24
	mov	w1, #1
	mov	w2, #1
	mov	w4, #32
	bl	_SLsmg_fill_region
	bl	_SLsmg_refresh
	mov	x0, x22
	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	_pthread_mutex_unlock
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_use_browser,8,3                ; @use_browser
	.comm	_ui__lock,4,2                   ; @ui__lock
	.comm	_SLtt_Screen_Rows,4,2           ; @SLtt_Screen_Rows
	.comm	_SLtt_Screen_Cols,4,2           ; @SLtt_Screen_Cols
	.comm	_HE_COLORSET_SELECTED,4,2       ; @HE_COLORSET_SELECTED
	.no_dead_strip	_tui_progress__update
.subsections_via_symbols
