	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function materialui_render_nav_bar_right
LCPI0_0:
	.long	0x3f000000                      ## float 0.5
LCPI0_1:
	.long	0xbf000000                      ## float -0.5
LCPI0_2:
	.long	0x3fc00000                      ## float 1.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_materialui_render_nav_bar_right:       ## @materialui_render_nav_bar_right
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	_MUI_NAV_BAR_NUM_ACTION_TABS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	60(%rdi), %eax
	movl	%ecx, %ecx
	cvtsi2ss	%rcx, %xmm0
	movl	56(%rdi), %ecx
	movl	%edx, %r12d
	cvtsi2ss	%rax, %xmm1
	movaps	%xmm1, -80(%rbp)                ## 16-byte Spill
	subl	%ecx, %r12d
	divss	%xmm1, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	64(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	pushq	16(%r13)
	pushq	%rbx
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	movl	68(%r13), %ecx
	movq	%r15, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	movl	%r14d, %r9d
	pushq	24(%r13)
	pushq	%rbx
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	movq	(%r13), %rsi
	movq	8(%r13), %rax
	movq	96(%r13), %rcx
	movl	(%rax,%rcx,4), %edx
	movss	LCPI0_1(%rip), %xmm2            ## xmm2 = mem[0],zero,zero,zero
	movaps	-80(%rbp), %xmm1                ## 16-byte Reload
	addss	%xmm2, %xmm1
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rsi, %xmm0
	mulss	%xmm2, %xmm0
	mulss	-44(%rbp), %xmm1                ## 4-byte Folded Reload
	addss	%xmm0, %xmm1
	cvttps2dq	%xmm1, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	xorl	%eax, %eax
	cmpq	$0, 104(%r13)
	sete	%al
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	pushq	32(%r13,%rax,8)
	pushq	$1
	pushq	$0
	callq	_materialui_draw_icon
	addq	$32, %rsp
	movq	(%r13), %rsi
	movq	8(%r13), %rax
	movq	80(%r13), %rcx
	movl	(%rax,%rcx,4), %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rsi, %xmm0
	mulss	LCPI0_1(%rip), %xmm0
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	LCPI0_0(%rip), %xmm1
	addss	%xmm0, %xmm1
	cvttps2dq	%xmm1, %xmm0
	cvtdq2ps	%xmm0, %xmm0
	xorl	%eax, %eax
	cmpq	$0, 88(%r13)
	sete	%al
	subq	$8, %rsp
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	movl	%r12d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, %ecx
	movl	%r14d, -80(%rbp)                ## 4-byte Spill
	movl	%r14d, %r8d
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r9d
	pushq	32(%r13,%rax,8)
	pushq	$1
	pushq	$0
	callq	_materialui_draw_icon
	addq	$32, %rsp
	cmpl	$0, 60(%r13)
	je	LBB0_3
## %bb.1:
	movq	%r13, %rcx
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	addss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	cvttss2si	%xmm0, %rax
	movl	-80(%rbp), %edx                 ## 4-byte Reload
	subl	-48(%rbp), %edx                 ## 4-byte Folded Reload
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	$8, %r12d
	xorl	%r14d, %r14d
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, %ebx
	movq	%r13, -104(%rbp)                ## 8-byte Spill
	movq	-104(%rbp), %r15                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %rdi
	movq	72(%rcx), %rax
	xorl	%ecx, %ecx
	cmpq	$0, (%rax,%r12)
	setne	%cl
	shlq	$4, %rcx
	movl	%r14d, %edx
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rdx, %xmm0
	movq	32(%rcx,%rdi), %r10
	movq	%r10, -120(%rbp)                ## 8-byte Spill
	movq	(%rdi), %rsi
	movq	8(%rdi), %rcx
	movq	-8(%rax,%r12), %rax
	movl	(%rcx,%rax,4), %edx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%rsi, %xmm1
	addss	LCPI0_2(%rip), %xmm0
	mulss	LCPI0_1(%rip), %xmm1
	mulss	-44(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	%xmm1, %xmm0
	subq	$8, %rsp
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movq	%r13, %rdi
	movl	-56(%rbp), %ecx                 ## 4-byte Reload
	movl	-80(%rbp), %r8d                 ## 4-byte Reload
	movq	-88(%rbp), %r9                  ## 8-byte Reload
                                        ## kill: def $r9d killed $r9d killed $r9
	pushq	%r10
	pushq	$1
	pushq	$0
	callq	_materialui_draw_icon
	addq	$32, %rsp
	incq	%r14
	movq	%r13, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	%r13d, %r8d
	movl	-80(%rbp), %r9d                 ## 4-byte Reload
	pushq	-120(%rbp)                      ## 8-byte Folded Reload
	pushq	-88(%rbp)                       ## 8-byte Folded Reload
	callq	_menu_display_draw_quad
	addq	$16, %rsp
	movq	%r15, %rcx
	movl	60(%r15), %eax
	addq	$16, %r12
	addl	%r13d, %ebx
	cmpq	%rax, %r14
	jb	LBB0_2
LBB0_3:
	addq	$88, %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
	.no_dead_strip	_materialui_render_nav_bar_right
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_render_nav_bar_right
_materialui_render_nav_bar_right:       ; @materialui_render_nav_bar_right
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldp	w3, w8, [x0, #56]
	sub	w25, w2, w3
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	w8, w9, w8
	ucvtf	s0, w19
	ucvtf	s11, w8
	fdiv	s8, s0, s11
	fmov	s10, #0.50000000
	ldr	w8, [x0, #64]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	x7, [x0, #16]
	mov	x0, x1
	mov	x1, x25
	mov	w2, #0
	mov	x4, x19
	mov	x5, x20
	mov	x6, x19
	bl	_menu_display_draw_quad
	ldr	w3, [x22, #68]
	ldr	x7, [x22, #24]
	mov	x0, x21
	mov	x1, x25
	mov	w2, #0
	mov	x4, x19
	mov	x5, x20
	mov	x6, x19
	bl	_menu_display_draw_quad
	ldp	x1, x8, [x22]
	ldp	x9, x10, [x22, #96]
	ldr	w2, [x8, x9, lsl #2]
	fmov	s9, #-0.50000000
	fadd	s0, s11, s9
	scvtf	s1, x1
	fmul	s1, s1, s9
	fmadd	s0, s0, s8, s1
	fcvtzs	s0, s0
	scvtf	s0, s0
	mov	w23, #32
	mov	w24, #40
	cmp	x10, #0
	csel	x8, x24, x23, eq
	ldr	x8, [x22, x8]
	str	x8, [sp]
	mov	x0, x21
	mov	x3, x25
	mov	x4, x20
	mov	x5, x19
	mov	w6, #0
	mov	w7, #1
	bl	_materialui_draw_icon
	ldp	x1, x8, [x22]
	ldp	x9, x10, [x22, #80]
	ldr	w2, [x8, x9, lsl #2]
	scvtf	s0, x1
	fmul	s0, s0, s9
	fmadd	s0, s8, s10, s0
	fcvtzs	s0, s0
	scvtf	s0, s0
	cmp	x10, #0
	csel	x8, x24, x23, eq
	ldr	x8, [x22, x8]
	str	x8, [sp]
	mov	x0, x21
	str	w25, [sp, #8]                   ; 4-byte Folded Spill
	mov	x3, x25
	mov	x4, x20
	mov	x5, x19
	mov	w6, #0
	mov	w7, #1
	bl	_materialui_draw_icon
	ldr	w8, [x22, #60]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x23, #0
	fadd	s0, s8, s10
	fcvtzu	w25, s0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	sub	w26, w20, w8
	fmov	s10, #1.50000000
	mov	x27, x25
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #72]
	add	x8, x8, x24
	ldp	x8, x9, [x8]
	cmp	x9, #0
	mov	w9, #48
	mov	w10, #32
	csel	x9, x10, x9, eq
	ldr	x28, [x22, x9]
	ldp	x1, x9, [x22]
	ldr	w2, [x9, x8, lsl #2]
	ucvtf	s0, w23
	fadd	s0, s0, s10
	scvtf	s1, x1
	fmul	s1, s1, s9
	fmadd	s0, s0, s8, s1
	str	x28, [sp]
	mov	x0, x21
	ldr	w3, [sp, #8]                    ; 4-byte Folded Reload
	mov	x4, x20
	mov	x5, x19
	mov	w6, #0
	mov	w7, #1
	bl	_materialui_draw_icon
	add	x23, x23, #1
	mov	x0, x21
	mov	x1, x26
	mov	x2, x27
	ldr	w3, [sp, #12]                   ; 4-byte Folded Reload
	mov	x4, x25
	mov	x5, x20
	mov	x6, x19
	mov	x7, x28
	bl	_menu_display_draw_quad
	ldr	w8, [x22, #60]
	add	x24, x24, #16
	add	w27, w27, w25
	cmp	x23, x8
	b.lo	LBB0_2
LBB0_3:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MUI_NAV_BAR_NUM_ACTION_TABS,4,2 ; @MUI_NAV_BAR_NUM_ACTION_TABS
	.no_dead_strip	_materialui_render_nav_bar_right
.subsections_via_symbols
