	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function psh_calc_max_height
LCPI0_0:
	.quad	2147483648                      ## 0x80000000
	.quad	2147483648                      ## 0x80000000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_psh_calc_max_height:                   ## @psh_calc_max_height
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rax
	testl	%edi, %edi
	jle	LBB0_7
## %bb.1:
	movl	%edi, %ecx
	leaq	-1(%rcx), %r9
	cmpq	$6, %r9
	jae	LBB0_3
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_6
LBB0_3:
	shrq	%r9
	incq	%r9
	movq	%r9, %r8
	andq	$-4, %r8
	leaq	(%r8,%r8), %rdx
	movq	%rax, %xmm0
	pshufd	$68, %xmm0, %xmm3               ## xmm3 = xmm0[0,1,0,1]
	leaq	32(%rsi), %rax
	movdqa	LCPI0_0(%rip), %xmm8            ## xmm8 = [2147483648,2147483648]
	movq	%r8, %rdi
	movdqa	%xmm3, %xmm1
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-32(%rax), %xmm5
	movdqu	-16(%rax), %xmm0
	movdqu	(%rax), %xmm4
	movdqu	16(%rax), %xmm6
	movdqa	%xmm5, %xmm7
	punpcklqdq	%xmm0, %xmm7            ## xmm7 = xmm7[0],xmm0[0]
	movdqa	%xmm4, %xmm2
	punpcklqdq	%xmm6, %xmm2            ## xmm2 = xmm2[0],xmm6[0]
	punpckhqdq	%xmm0, %xmm5            ## xmm5 = xmm5[1],xmm0[1]
	psubq	%xmm7, %xmm5
	punpckhqdq	%xmm6, %xmm4            ## xmm4 = xmm4[1],xmm6[1]
	movdqa	%xmm3, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm5, %xmm6
	pxor	%xmm8, %xmm6
	movdqa	%xmm6, %xmm7
	pcmpeqd	%xmm0, %xmm7
	pcmpgtd	%xmm0, %xmm6
	pshufd	$160, %xmm6, %xmm0              ## xmm0 = xmm6[0,0,2,2]
	pand	%xmm7, %xmm0
	por	%xmm6, %xmm0
	blendvpd	%xmm0, %xmm5, %xmm3
	psubq	%xmm2, %xmm4
	movdqa	%xmm1, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm4, %xmm2
	pxor	%xmm8, %xmm2
	movdqa	%xmm2, %xmm5
	pcmpeqd	%xmm0, %xmm5
	pcmpgtd	%xmm0, %xmm2
	pshufd	$160, %xmm2, %xmm0              ## xmm0 = xmm2[0,0,2,2]
	pand	%xmm5, %xmm0
	por	%xmm2, %xmm0
	blendvpd	%xmm0, %xmm4, %xmm1
	addq	$64, %rax
	addq	$-4, %rdi
	jne	LBB0_4
## %bb.5:
	movdqa	%xmm1, %xmm0
	pxor	%xmm8, %xmm0
	movdqa	%xmm3, %xmm2
	pxor	%xmm8, %xmm2
	movdqa	%xmm2, %xmm4
	pcmpeqd	%xmm0, %xmm4
	pcmpgtd	%xmm0, %xmm2
	pshufd	$160, %xmm2, %xmm0              ## xmm0 = xmm2[0,0,2,2]
	pand	%xmm4, %xmm0
	por	%xmm2, %xmm0
	blendvpd	%xmm0, %xmm3, %xmm1
	pshufd	$238, %xmm1, %xmm2              ## xmm2 = xmm1[2,3,2,3]
	movdqa	%xmm1, %xmm3
	pxor	%xmm8, %xmm3
	pxor	%xmm2, %xmm8
	movdqa	%xmm3, %xmm4
	pcmpeqd	%xmm8, %xmm4
	pcmpgtd	%xmm8, %xmm3
	pshufd	$160, %xmm3, %xmm0              ## xmm0 = xmm3[0,0,2,2]
	pand	%xmm4, %xmm0
	por	%xmm3, %xmm0
	blendvpd	%xmm0, %xmm1, %xmm2
	movq	%xmm2, %rax
	cmpq	%r8, %r9
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi,%rdx,8), %rdi
	subq	(%rsi,%rdx,8), %rdi
	cmpq	%rax, %rdi
	cmovgq	%rdi, %rax
	addq	$2, %rdx
	cmpq	%rcx, %rdx
	jb	LBB0_6
LBB0_7:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_psh_calc_max_height
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function psh_calc_max_height
_psh_calc_max_height:                   ; @psh_calc_max_height
	.cfi_startproc
; %bb.0:
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w8, w0
	sub	x9, x8, #1
	cmp	x9, #14
	b.hs	LBB0_3
; %bb.2:
	mov	x9, #0
	b	LBB0_6
LBB0_3:
	lsr	x9, x9, #1
	add	x10, x9, #1
	and	x11, x10, #0xfffffffffffffff8
	dup.2d	v0, x2
	lsl	x9, x11, #1
	add	x12, x1, #64
	mov	x13, x11
	mov.16b	v3, v0
	mov.16b	v2, v0
	mov.16b	v1, v0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x12, #64
	ld2.2d	{ v4, v5 }, [x14]
	sub	x14, x12, #32
	ld2.2d	{ v6, v7 }, [x14]
	mov	x14, x12
	ld2.2d	{ v16, v17 }, [x14], #32
	ld2.2d	{ v18, v19 }, [x14]
	sub.2d	v4, v5, v4
	sub.2d	v5, v7, v6
	sub.2d	v6, v17, v16
	sub.2d	v7, v19, v18
	cmgt.2d	v16, v4, v0
	bit.16b	v0, v4, v16
	cmgt.2d	v4, v5, v3
	bit.16b	v3, v5, v4
	cmgt.2d	v4, v6, v2
	bit.16b	v2, v6, v4
	cmgt.2d	v4, v7, v1
	bit.16b	v1, v7, v4
	add	x12, x12, #128
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	cmgt.2d	v4, v0, v3
	bif.16b	v0, v3, v4
	cmgt.2d	v3, v0, v2
	bif.16b	v0, v2, v3
	cmgt.2d	v2, v0, v1
	bif.16b	v0, v1, v2
	ext.16b	v1, v0, v0, #8
	cmgt	d2, d0, d1
	bif.8b	v0, v1, v2
	fmov	x2, d0
	cmp	x10, x11
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x10, x1, x9, lsl #3
	ldp	x10, x11, [x10]
	sub	x10, x11, x10
	cmp	x10, x2
	csel	x2, x10, x2, gt
	add	x9, x9, #2
	cmp	x9, x8
	b.lo	LBB0_6
LBB0_7:
	mov	x0, x2
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_psh_calc_max_height
.subsections_via_symbols
