	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_browser__run                ## -- Begin function ui_browser__run
	.p2align	4, 0x90
_ui_browser__run:                       ## @ui_browser__run
	.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
	movl	%esi, %r14d
	movq	%rdi, %r13
	movq	_ui__lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	%r13, %rdi
	callq	___ui_browser__refresh
	movl	%eax, %r12d
	xorl	%eax, %eax
	callq	_SLsmg_refresh
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	testl	%r12d, %r12d
	js	LBB0_28
## %bb.1:
	movq	_K_RESIZE@GOTPCREL(%rip), %r12
	movq	_ui__lock@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
	callq	_ui__refresh_dimensions
	movq	%r13, %rdi
	callq	_ui_browser__refresh_dimensions
	movl	44(%r13), %esi
	movq	%r13, %rdi
	callq	___ui_browser__show_title
	movl	40(%r13), %edi
	callq	_ui_helpline__puts
LBB0_27:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	callq	_pthread_mutex_lock
	movq	%r13, %rdi
	callq	___ui_browser__refresh
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_SLsmg_refresh
	movq	%r15, %rdi
	callq	_pthread_mutex_unlock
	testl	%ebx, %ebx
	js	LBB0_28
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %edi
	callq	_ui__getch
                                        ## kill: def $eax killed $eax def $rax
	cmpl	(%r12), %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	$0, 32(%r13)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_6
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$5, %ecx
	ja	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %eax
	testl	%eax, %eax
	je	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rax), %ecx
	movl	%ecx, 4(%r13)
	movl	12(%r13), %ecx
	cmpl	%ecx, %eax
	jg	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	decl	%ecx
	movl	%ecx, 12(%r13)
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$-1, %esi
	jmp	LBB0_26
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leal	-128(%rax), %ecx
	cmpl	$6, %ecx
	jae	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, (%r13)
	jmp	LBB0_27
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$32, %eax
	jne	LBB0_29
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %ecx
	movl	12(%r13), %eax
	movl	16(%r13), %edx
	leal	(%rdx,%rax), %esi
	cmpl	%ecx, %esi
	jge	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %edi
	leal	(%rdi,%rdx), %ebx
	movl	%edi, %esi
	notl	%esi
	addl	%ecx, %esi
	cmpl	%ecx, %ebx
	cmovll	%edx, %esi
	addl	%esi, %edi
	movl	%edi, 4(%r13)
	addl	%esi, %eax
	movl	%eax, 12(%r13)
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	12(%r13), %eax
	testl	%eax, %eax
	je	LBB0_27
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%r13), %esi
	cmpl	%esi, %eax
	cmovll	%eax, %esi
	subl	%esi, 4(%r13)
	subl	%esi, %eax
	movl	%eax, 12(%r13)
	negl	%esi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	jmp	LBB0_25
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_ui_browser__reset_index
	jmp	LBB0_27
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%r13), %eax
	movl	16(%r13), %ecx
	cmpl	%eax, %ecx
	cmovgel	%eax, %ecx
	leal	-1(%rax), %edx
	movl	%edx, 4(%r13)
	subl	%ecx, %eax
	movl	%eax, 12(%r13)
	movl	$1, %esi
	subl	%ecx, %esi
	movq	_SEEK_END@GOTPCREL(%rip), %rax
LBB0_25:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	movq	%r13, %rdi
LBB0_26:                                ##   in Loop: Header=BB0_2 Depth=1
	callq	*24(%r13)
	jmp	LBB0_27
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r13), %eax
	movl	8(%r13), %ecx
	decl	%ecx
	cmpl	%ecx, %eax
	je	LBB0_27
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%eax
	movl	%eax, 4(%r13)
	movl	12(%r13), %ecx
	movl	16(%r13), %edx
	addl	%ecx, %edx
	cmpl	%edx, %eax
	jne	LBB0_27
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	incl	%ecx
	movl	%ecx, 12(%r13)
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movl	$1, %esi
	jmp	LBB0_26
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$32, %eax
	je	LBB0_8
	jmp	LBB0_29
LBB0_28:
	movl	$-1, %eax
LBB0_29:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_20
	.long	L0_0_set_11
	.long	L0_0_set_23
	.long	L0_0_set_24
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_ui__lock,4,2                   ## @ui__lock
	.comm	_K_RESIZE,4,2                   ## @K_RESIZE
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_SEEK_END,4,2                   ## @SEEK_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_browser__run                ; -- Begin function ui_browser__run
	.p2align	2
_ui_browser__run:                       ; @ui_browser__run
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _ui__lock@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ui__lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_pthread_mutex_lock
	mov	x0, x20
	bl	___ui_browser__refresh
	mov	x22, x0
	bl	_SLsmg_refresh
	mov	x0, x21
	bl	_pthread_mutex_unlock
	tbnz	w22, #31, LBB0_26
; %bb.1:
Lloh2:
	adrp	x23, _K_RESIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _K_RESIZE@GOTPAGEOFF]
Lloh4:
	adrp	x21, _ui__lock@GOTPAGE
Lloh5:
	ldr	x21, [x21, _ui__lock@GOTPAGEOFF]
Lloh6:
	adrp	x24, _SEEK_CUR@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SEEK_CUR@GOTPAGEOFF]
Lloh8:
	adrp	x25, lJTI0_0@PAGE
Lloh9:
	add	x25, x25, lJTI0_0@PAGEOFF
	mov	w26, #1
Lloh10:
	adrp	x27, _SEEK_END@GOTPAGE
Lloh11:
	ldr	x27, [x27, _SEEK_END@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #0
	bl	_ui__refresh_dimensions
	mov	x0, x20
	bl	_ui_browser__refresh_dimensions
	ldr	w1, [x20, #44]
	mov	x0, x20
	bl	___ui_browser__show_title
	ldr	w0, [x20, #40]
	bl	_ui_helpline__puts
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_pthread_mutex_lock
	mov	x0, x20
	bl	___ui_browser__refresh
	mov	x22, x0
	bl	_SLsmg_refresh
	mov	x0, x21
	bl	_pthread_mutex_unlock
	tbnz	w22, #31, LBB0_26
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ui__getch
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_12
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w0, #128
	cmp	w8, #5
	b.hi	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_9
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #4]
	cbz	w8, LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w8, #1
	str	w9, [x20, #4]
	ldr	w9, [x20, #12]
	cmp	w8, w9
	b.gt	LBB0_3
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w9, #1
	str	w8, [x20, #12]
	ldr	x8, [x20, #24]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #-1
	blr	x8
	b	LBB0_3
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w0, #128
	cmp	w8, #6
	b.hs	LBB0_25
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w26, [x20]
	b	LBB0_3
LBB0_14:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #32
	b.ne	LBB0_27
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x20, #12]
	ldr	w10, [x20, #8]
	add	w11, w9, w8
	cmp	w11, w10
	b.ge	LBB0_3
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w11, [x20, #4]
	mvn	w12, w11
	add	w12, w10, w12
	add	w13, w11, w9
	cmp	w13, w10
	csel	w1, w9, w12, lt
	add	w9, w1, w11
	str	w9, [x20, #4]
	add	w8, w1, w8
	str	w8, [x20, #12]
	ldr	x8, [x20, #24]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #12]
	cbz	w8, LBB0_3
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20, #16]
	cmp	w8, w9
	csel	w9, w8, w9, lt
	ldr	w10, [x20, #4]
	sub	w10, w10, w9
	str	w10, [x20, #4]
	sub	w8, w8, w9
	str	w8, [x20, #12]
	ldr	x8, [x20, #24]
	neg	w1, w9
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x24]
	mov	x0, x20
	blr	x8
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_ui_browser__reset_index
	b	LBB0_3
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #16]
	ldr	w9, [x20, #8]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	sub	w10, w9, #1
	str	w10, [x20, #4]
	sub	w9, w9, w8
	str	w9, [x20, #12]
	ldr	x9, [x20, #24]
	sub	w1, w26, w8
	ldr	w2, [x27]
	mov	x0, x20
	blr	x9
	b	LBB0_3
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w8, w9, [x20, #4]
	sub	w9, w9, #1
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w9, w8, #1
	str	w9, [x20, #4]
	ldp	w8, w10, [x20, #12]
	add	w10, w10, w8
	cmp	w9, w10
	b.ne	LBB0_3
; %bb.24:                               ;   in Loop: Header=BB0_4 Depth=1
	add	w8, w8, #1
	str	w8, [x20, #12]
	ldr	x8, [x20, #24]
	ldr	w2, [x24]
	mov	x0, x20
	mov	w1, #1
	blr	x8
	b	LBB0_3
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #32
	b.eq	LBB0_13
	b	LBB0_27
LBB0_26:
	mov	w0, #-1
LBB0_27:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_9)>>2
	.byte	(LBB0_17-LBB0_9)>>2
	.byte	(LBB0_15-LBB0_9)>>2
	.byte	(LBB0_20-LBB0_9)>>2
	.byte	(LBB0_21-LBB0_9)>>2
	.byte	(LBB0_22-LBB0_9)>>2
                                        ; -- End function
	.comm	_ui__lock,4,2                   ; @ui__lock
	.comm	_K_RESIZE,4,2                   ; @K_RESIZE
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_SEEK_END,4,2                   ; @SEEK_END
.subsections_via_symbols
