	.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_set_thumbnail_dimensions
LCPI0_0:
	.long	0x3f800000                      ## float 1
LCPI0_1:
	.long	0x3f000000                      ## float 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_materialui_set_thumbnail_dimensions:   ## @materialui_set_thumbnail_dimensions
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	movl	8(%rdi), %eax
	jmp	LBB0_3
LBB0_8:
	movl	$0, 4(%rdi)
	movl	$0, 12(%rdi)
	popq	%rbp
	retq
LBB0_5:
	movl	48(%rdi), %eax
	leal	(%rax,%rax,2), %eax
	addl	52(%rdi), %eax
	movslq	16(%rdi), %rcx
	imulq	$1717986919, %rcx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, 4(%rdi)
	cvtsi2ss	%ecx, %xmm0
	jmp	LBB0_4
LBB0_6:
	movl	48(%rdi), %eax
	leal	(%rax,%rax,2), %eax
	addl	52(%rdi), %eax
	addl	%eax, %eax
LBB0_3:
	movl	%eax, 4(%rdi)
	cvtsi2ss	%eax, %xmm0
LBB0_4:
	movq	_MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO@GOTPCREL(%rip), %rax
	mulss	(%rax), %xmm0
	addss	LCPI0_1(%rip), %xmm0
	cvttss2si	%xmm0, %rax
	movl	%eax, 12(%rdi)
	popq	%rbp
	retq
LBB0_7:
	movl	40(%rdi), %eax
	movl	20(%rdi), %ecx
	movl	24(%rdi), %edx
	leal	(%rcx,%rcx,2), %ecx
	subl	%ecx, %eax
	addl	%edx, %edx
	subl	%edx, %eax
	subl	32(%rdi), %eax
	sarl	%eax
	movl	%eax, 12(%rdi)
	cvtsi2ss	%rax, %xmm0
	movq	_MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO@GOTPCREL(%rip), %rax
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	divss	(%rax), %xmm1
	mulss	%xmm0, %xmm1
	addss	LCPI0_1(%rip), %xmm1
	cvttss2si	%xmm1, %rax
	movl	%eax, 4(%rdi)
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_5
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO,4,2 ## @MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO
	.no_dead_strip	_materialui_set_thumbnail_dimensions
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_set_thumbnail_dimensions
_materialui_set_thumbnail_dimensions:   ; @materialui_set_thumbnail_dimensions
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	ldr	w8, [x0, #8]
	b	LBB0_6
LBB0_3:
	str	wzr, [x0, #4]
	str	wzr, [x0, #12]
	ret
LBB0_4:
	ldp	w9, w8, [x0, #48]
	add	w9, w9, w9, lsl #1
	add	w8, w9, w8
	ldrsw	x9, [x0, #16]
	mov	w10, #26215
	movk	w10, #26214, lsl #16
	mul	x9, x9, x10
	lsr	x10, x9, #63
	asr	x9, x9, #34
	add	w9, w9, w10
	add	w8, w8, w9
	b	LBB0_6
LBB0_5:
	ldp	w9, w8, [x0, #48]
	add	w9, w9, w9, lsl #1
	add	w8, w9, w8
	lsl	w8, w8, #1
LBB0_6:
	str	w8, [x0, #4]
	scvtf	s0, w8
Lloh2:
	adrp	x8, _MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO@GOTPAGEOFF]
Lloh4:
	ldr	s1, [x8]
	fmov	s2, #0.50000000
	fmadd	s0, s0, s1, s2
	fcvtzu	w8, s0
	str	w8, [x0, #12]
	ret
LBB0_7:
	ldr	w8, [x0, #40]
	ldp	w9, w10, [x0, #20]
	sub	w9, w9, w9, lsl #2
	add	w8, w9, w8
	sub	w8, w8, w10, lsl #1
	ldr	w9, [x0, #32]
	sub	w8, w8, w9
	asr	w8, w8, #1
	str	w8, [x0, #12]
	ucvtf	s0, w8
Lloh5:
	adrp	x8, _MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO@GOTPAGEOFF]
Lloh7:
	ldr	s1, [x8]
	fmov	s2, #1.00000000
	fdiv	s1, s2, s1
	fmov	s2, #0.50000000
	fmadd	s0, s0, s1, s2
	fcvtzu	w8, s0
	str	w8, [x0, #4]
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO,4,2 ; @MUI_THUMBNAIL_DEFAULT_ASPECT_RATIO
	.no_dead_strip	_materialui_set_thumbnail_dimensions
.subsections_via_symbols
