	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function materialui_scrollbar_init
_materialui_scrollbar_init:             ## @materialui_scrollbar_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	addl	40(%rdi), %ecx
	subl	%ecx, %edx
	movslq	(%rdi), %rax
	imulq	$954437177, %rax, %rax          ## imm = 0x38E38E39
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$35, %rax
	addl	%ecx, %eax
	movl	%eax, 8(%rdi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 12(%rdi)
	movups	%xmm0, 24(%rdi)
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	cvtsi2ss	%edx, %xmm1
	movss	4(%rdi), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jae	LBB0_3
## %bb.2:
	movl	$1, 16(%rdi)
	imull	%edx, %edx
	xorps	%xmm1, %xmm1
	cvtsi2ss	%edx, %xmm1
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %ecx
	subl	%eax, %ecx
	subl	%eax, %ecx
	cmpl	%eax, %ecx
	cmovlel	%eax, %ecx
	movl	%ecx, 12(%rdi)
LBB0_3:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_materialui_scrollbar_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function materialui_scrollbar_init
_materialui_scrollbar_init:             ; @materialui_scrollbar_init
	.cfi_startproc
; %bb.0:
	ldrsw	x8, [x0]
	mov	w9, #36409
	movk	w9, #14563, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #35
	add	w8, w8, w9
	ldr	w9, [x0, #40]
	str	w8, [x0, #8]
	stur	xzr, [x0, #12]
	stur	xzr, [x0, #28]
	add	w9, w9, w3
	sub	w9, w2, w9
	stur	xzr, [x0, #20]
	str	wzr, [x0, #36]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	s0, [x0, #4]
	scvtf	s1, w9
	fcmp	s0, s1
	b.ls	LBB0_3
; %bb.2:
	mul	w9, w9, w9
	scvtf	s1, w9
	fdiv	s0, s1, s0
	fcvtzs	w9, s0
	mov	w10, #1
	sub	w9, w9, w8, lsl #1
	cmp	w9, w8
	csel	w8, w9, w8, gt
	stp	w8, w10, [x0, #12]
LBB0_3:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_materialui_scrollbar_init
.subsections_via_symbols
