	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function materialui_pointer_up_nav_bar
_materialui_pointer_up_nav_bar:         ## @materialui_pointer_up_nav_bar
	.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	%ecx, %eax
	movl	%esi, %ecx
	movq	24(%rbp), %rsi
	movl	(%rdi), %r15d
	movq	_MUI_NAV_BAR_NUM_ACTION_TABS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r12d
	leal	(%r12,%r15), %r13d
	movq	8(%rdi), %r10
	movq	_MUI_NAV_BAR_LOCATION_RIGHT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r11
	cmpq	%r11, %r10
	cmovel	%r8d, %eax
	cmovel	%edx, %ecx
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	divl	%r13d
	movl	%eax, %ebx
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	cmpl	%ecx, %ebx
	ja	LBB0_2
## %bb.1:
	leal	(%r12,%r15), %edx
	decl	%edx
	cmpl	%edx, %eax
	jae	LBB0_2
## %bb.9:
	decl	%eax
	shlq	$2, %rax
	addq	16(%rdi), %rax
	movq	_MENU_ACTION_NOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_materialui_switch_tabs         ## TAILCALL
LBB0_2:
	leaq	24(%rdi), %rax
	leaq	32(%rdi), %rdx
	cmpl	%ecx, %ebx
	movq	%rdx, %rcx
	cmovaq	%rax, %rcx
	cmovaq	%rdx, %rax
	cmpq	%r11, %r10
	cmoveq	%rcx, %rax
	movl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_6
## %bb.3:
	cmpl	$129, %ecx
	jne	LBB0_8
## %bb.4:
	cmpl	$0, 4(%rax)
	je	LBB0_8
## %bb.5:
	movq	_MENU_ACTION_CANCEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r9, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_materialui_menu_entry_action   ## TAILCALL
LBB0_6:
	cmpl	$0, 4(%rax)
	je	LBB0_8
## %bb.7:
	movq	_CMD_EVENT_MENU_TOGGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_command_event
	cmpl	$1, %eax
	sbbl	%r14d, %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MUI_NAV_BAR_NUM_ACTION_TABS,4,2 ## @MUI_NAV_BAR_NUM_ACTION_TABS
	.comm	_MUI_NAV_BAR_LOCATION_RIGHT,8,3 ## @MUI_NAV_BAR_LOCATION_RIGHT
	.comm	_MENU_ACTION_CANCEL,4,2         ## @MENU_ACTION_CANCEL
	.comm	_CMD_EVENT_MENU_TOGGLE,4,2      ## @CMD_EVENT_MENU_TOGGLE
	.comm	_MENU_ACTION_NOOP,4,2           ## @MENU_ACTION_NOOP
	.no_dead_strip	_materialui_pointer_up_nav_bar
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_pointer_up_nav_bar
_materialui_pointer_up_nav_bar:         ; @materialui_pointer_up_nav_bar
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _MUI_NAV_BAR_NUM_ACTION_TABS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MUI_NAV_BAR_NUM_ACTION_TABS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	add	w13, w9, w8
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _MUI_NAV_BAR_LOCATION_RIGHT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MUI_NAV_BAR_LOCATION_RIGHT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	w11, w4, w3, eq
	csel	w10, w2, w1, eq
	udiv	w11, w11, w13
	udiv	w12, w10, w11
	sub	w13, w13, #1
	cmp	w11, w10
	ccmp	w12, w13, #2, ls
	b.lo	LBB0_5
; %bb.1:
	add	x12, x0, #24
	add	x13, x0, #32
	cmp	w11, w10
	csel	x10, x12, x13, hi
	csel	x11, x13, x12, hi
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w9, [x8]
	cmp	w9, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w9, #129
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _MENU_ACTION_CANCEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MENU_ACTION_CANCEL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x1, x7
	mov	x2, x5
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_materialui_menu_entry_action
LBB0_5:
	ldr	x8, [x0, #16]
	sub	w9, w12, #1
	add	x1, x8, w9, uxtw #2
Lloh9:
	adrp	x8, _MENU_ACTION_NOOP@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MENU_ACTION_NOOP@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_materialui_switch_tabs
LBB0_6:
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_8
; %bb.7:
Lloh12:
	adrp	x8, _CMD_EVENT_MENU_TOGGLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _CMD_EVENT_MENU_TOGGLE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
	cmp	w0, #0
	csetm	w0, eq
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_MUI_NAV_BAR_NUM_ACTION_TABS,4,2 ; @MUI_NAV_BAR_NUM_ACTION_TABS
	.comm	_MUI_NAV_BAR_LOCATION_RIGHT,8,3 ; @MUI_NAV_BAR_LOCATION_RIGHT
	.comm	_MENU_ACTION_CANCEL,4,2         ; @MENU_ACTION_CANCEL
	.comm	_CMD_EVENT_MENU_TOGGLE,4,2      ; @CMD_EVENT_MENU_TOGGLE
	.comm	_MENU_ACTION_NOOP,4,2           ; @MENU_ACTION_NOOP
	.no_dead_strip	_materialui_pointer_up_nav_bar
.subsections_via_symbols
