	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function update_preview_sizes
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
LCPI0_1:
	.long	4294967294                      ## 0xfffffffe
	.space	4
	.space	4
	.space	4
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3
LCPI0_2:
	.quad	0x3ff0000000000000              ## double 1
LCPI0_3:
	.quad	0x3fe0000000000000              ## double 0.5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_update_preview_sizes:                  ## @update_preview_sizes
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	leaq	-32(%rbp), %rsi
	callq	_GetClientRect
	movq	_preview@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.1:
	cmpl	$1, %eax
	jne	LBB0_3
## %bb.2:
	movss	8(%r15), %xmm0                  ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_8
LBB0_3:
	cmpl	$2, %eax
	jne	LBB0_5
## %bb.4:
	movss	LCPI0_0(%rip), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_7
LBB0_5:
	movq	_min_spacing@GOTPCREL(%rip), %rcx
	cvtsi2ssl	28(%r15), %xmm1
	movl	4(%r15), %edx
	cvtsi2ss	%edx, %xmm0
	notl	%edx
	mulss	32(%r15), %xmm0
	insertps	$16, %xmm0, %xmm1               ## xmm1 = xmm1[0],xmm0[0],xmm1[2,3]
	movq	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movd	(%rcx), %xmm2                   ## xmm2 = mem[0],zero,zero,zero
	movdqa	LCPI0_1(%rip), %xmm3            ## xmm3 = <4294967294,u,u,u>
	pinsrd	$1, %edx, %xmm3
	pshufd	$80, %xmm2, %xmm2               ## xmm2 = xmm2[0,0,1,1]
	pmulld	%xmm2, %xmm3
	paddd	%xmm0, %xmm3
	cvtdq2ps	%xmm3, %xmm0
	divps	%xmm1, %xmm0
	movshdup	%xmm0, %xmm1                    ## xmm1 = xmm0[1,1,3,3]
	minss	%xmm1, %xmm0
	cmpl	$1, %eax
	jne	LBB0_7
## %bb.6:
	cvtss2sd	%xmm0, %xmm0
	movsd	LCPI0_2(%rip), %xmm1            ## xmm1 = mem[0],zero
	subsd	%xmm0, %xmm1
	mulsd	LCPI0_3(%rip), %xmm1
	addsd	%xmm0, %xmm1
	xorps	%xmm0, %xmm0
	cvtsd2ss	%xmm1, %xmm0
LBB0_7:
	movss	%xmm0, 8(%r15)
LBB0_8:
	movss	32(%r15), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, 20(%r15)
	xorps	%xmm1, %xmm1
	cvtsi2ssl	28(%r15), %xmm1
	mulss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, 24(%r15)
	movq	_min_spacing@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	-32(%rbp), %ecx
	subl	%eax, %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	callq	_max
	movl	%eax, 16(%r15)
	movl	-28(%rbp), %eax
	movl	4(%r15), %ecx
	movl	20(%r15), %edx
	imull	%ecx, %edx
	subl	%edx, %eax
	incl	%ecx
	cltd
	idivl	%ecx
	movl	(%rbx), %ecx
	cmpl	%ecx, %eax
	cmovgl	%eax, %ecx
	movl	%ecx, 12(%r15)
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edi
	callq	_update_preview_scrollbars
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_preview,36,2                   ## @preview
	.comm	_min_spacing,4,2                ## @min_spacing
	.no_dead_strip	_update_preview_sizes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function update_preview_sizes
_update_preview_sizes:                  ; @update_preview_sizes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	mov	x19, x0
	add	x1, sp, #8
	bl	_GetClientRect
Lloh0:
	adrp	x21, _preview@GOTPAGE
Lloh1:
	ldr	x21, [x21, _preview@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _min_spacing@GOTPAGE
Lloh3:
	ldr	x22, [x22, _min_spacing@GOTPAGEOFF]
	cbnz	x20, LBB0_3
; %bb.1:
	cmp	w8, #1
	b.ne	LBB0_3
; %bb.2:
	ldr	s0, [x21, #8]
	b	LBB0_7
LBB0_3:
	fmov	s0, #1.00000000
	cmp	w8, #2
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x22]
	ldp	w10, w11, [sp, #8]
	sub	w10, w10, w9, lsl #1
	scvtf	s0, w10
	ldp	s1, s2, [x21, #28]
	scvtf	s1, s1
	ldr	w10, [x21, #4]
	mvn	w12, w10
	madd	w9, w9, w12, w11
	scvtf	s3, w9
	scvtf	s4, w10
	fdiv	s0, s0, s1
	fmul	s1, s2, s4
	fdiv	s1, s3, s1
	fcmp	s1, s0
	fcsel	s0, s0, s1, gt
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.5:
	fcvt	d0, s0
	fmov	d1, #1.00000000
	fsub	d1, d1, d0
	fmov	d2, #0.50000000
	fmul	d1, d1, d2
	fadd	d0, d1, d0
	fcvt	s0, d0
LBB0_6:
	str	s0, [x21, #8]
LBB0_7:
	ldp	s2, s1, [x21, #28]
	fmul	s1, s1, s0
	fcvtzs	w8, s1
	scvtf	s1, s2
	fmul	s0, s0, s1
	fcvtzs	w9, s0
	stp	w8, w9, [x21, #20]
	ldr	w0, [x22]
	ldr	w8, [sp, #8]
	sub	w8, w8, w9
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
	bl	_max
	ldr	w8, [sp, #12]
	ldr	w9, [x21, #20]
	ldr	w10, [x21, #4]
	msub	w8, w10, w9, w8
	add	w9, w10, #1
	sdiv	w8, w8, w9
	ldr	w9, [x22]
	cmp	w8, w9
	csel	w8, w8, w9, gt
	stp	w8, w0, [x21, #12]
	add	x1, sp, #8
	mov	x0, x19
	bl	_update_preview_scrollbars
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_preview,36,2                   ; @preview
	.comm	_min_spacing,4,2                ; @min_spacing
	.no_dead_strip	_update_preview_sizes
.subsections_via_symbols
