	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_browser__rb_tree_refresh    ## -- Begin function ui_browser__rb_tree_refresh
	.p2align	4, 0x90
_ui_browser__rb_tree_refresh:           ## @ui_browser__rb_tree_refresh
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %r15
	testq	%r15, %r15
	jne	LBB0_3
## %bb.1:
	movl	24(%r14), %edi
	callq	_rb_first
	movq	%rax, %r15
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %r12d
	movq	%r14, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_ui_browser__gotorc
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	*8(%r14)
	leal	1(%r12), %ebx
	cmpl	(%r14), %ebx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_rb_next
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_4
LBB0_6:
	incl	%r12d
LBB0_7:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	xorl	%r12d, %r12d
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ui_browser__rb_tree_refresh    ; -- Begin function ui_browser__rb_tree_refresh
	.p2align	2
_ui_browser__rb_tree_refresh:           ; @ui_browser__rb_tree_refresh
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #16]
	cbnz	x20, LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
	bl	_rb_first
	mov	x20, x0
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
LBB0_2:
	mov	w21, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_ui_browser__gotorc
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	blr	x8
	add	w21, w21, #1
	ldr	w8, [x19]
	cmp	w21, w8
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_rb_next
	mov	x20, x0
	cbnz	x0, LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
