	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function materialui_switch_tabs
_materialui_switch_tabs:                ## @materialui_switch_tabs
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movl	$0, 8(%rdi)
	movl	$0, (%rdi)
	testq	%rsi, %rsi
	jne	LBB0_9
## %bb.1:
	cmpl	$128, %edx
	je	LBB0_6
## %bb.2:
	movl	$-1, %r12d
	cmpl	$129, %edx
	jne	LBB0_15
## %bb.3:
	movl	24(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.4:
	decl	%eax
	jmp	LBB0_8
LBB0_6:
	movl	24(%r14), %eax
	incl	%eax
	xorl	%ecx, %ecx
	cmpl	12(%r14), %eax
	jge	LBB0_7
	jmp	LBB0_8
LBB0_5:
	movl	12(%r14), %ecx
	decl	%ecx
LBB0_7:
	movl	$1, 8(%r14)
	movl	%ecx, %eax
LBB0_8:
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	16(%r14), %rbx
LBB0_9:
	xorl	%r12d, %r12d
	cmpl	$0, (%rbx)
	je	LBB0_10
LBB0_15:
	movl	%r12d, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%edi, %edi
	callq	_menu_entries_get_selection_buf_ptr
	movq	%rax, %r15
	xorl	%edi, %edi
	callq	_menu_entries_get_menu_stack_ptr
	movq	%rax, %r13
	xorl	%eax, %eax
	callq	_menu_navigation_get_selection
	movl	$-1, %r12d
	testq	%r15, %r15
	je	LBB0_15
## %bb.11:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_file_list_get_actiondata_at_offset
	testq	%r13, %r13
	je	LBB0_15
## %bb.12:
	testq	%rax, %rax
	je	LBB0_15
## %bb.13:
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rbx
	movq	%rax, %r13
	callq	_materialui_preswitch_tabs
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%rcx, %rdx
	xorl	%r8d, %r8d
	callq	*(%r13)
	movl	%r12d, (%r14)
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

	.no_dead_strip	_materialui_switch_tabs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_switch_tabs
_materialui_switch_tabs:                ; @materialui_switch_tabs
	.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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [x0, #8]
	str	wzr, [x0]
	cbz	x1, LBB0_3
; %bb.1:
	ldr	w8, [x20]
	cbz	w8, LBB0_12
LBB0_2:
	mov	w0, #0
	b	LBB0_18
LBB0_3:
	cmp	w2, #128
	b.eq	LBB0_7
; %bb.4:
	cmp	w2, #129
	b.ne	LBB0_17
; %bb.5:
	ldr	w8, [x19, #24]
	cmp	w8, #0
	b.le	LBB0_9
; %bb.6:
	sub	w8, w8, #1
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	ldr	w9, [x19, #12]
	cmp	w8, w9
	b.lt	LBB0_11
; %bb.8:
	mov	w8, #0
	b	LBB0_10
LBB0_9:
	ldr	w8, [x19, #12]
	sub	w8, w8, #1
LBB0_10:
	mov	w9, #1
	str	w9, [x19, #8]
LBB0_11:
	ldr	x9, [x19, #16]
	add	x20, x9, w8, sxtw #2
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
LBB0_12:
	mov	w0, #0
	bl	_menu_entries_get_selection_buf_ptr
	mov	x21, x0
	mov	w0, #0
	bl	_menu_entries_get_menu_stack_ptr
	mov	x22, x0
	bl	_menu_navigation_get_selection
	cbz	x21, LBB0_17
; %bb.13:
	mov	x1, x0
	mov	x0, x21
	bl	_file_list_get_actiondata_at_offset
	mov	x23, x0
	mov	w0, #-1
	cbz	x22, LBB0_18
; %bb.14:
	cbz	x23, LBB0_18
; %bb.15:
	ldr	x8, [x23]
	cbz	x8, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x20
	bl	_materialui_preswitch_tabs
	mov	x20, x0
	ldr	x8, [x23]
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	mov	x3, x2
	mov	w4, #0
	blr	x8
	str	w20, [x19]
	b	LBB0_18
LBB0_17:
	mov	w0, #-1
LBB0_18:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

	.no_dead_strip	_materialui_switch_tabs
.subsections_via_symbols
