	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function est_alpha_diff
_est_alpha_diff:                        ## @est_alpha_diff
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	xorl	%eax, %eax
	cmpl	$8, %edx
	setne	%al
	leal	(%rax,%rax,2), %ebx
	orl	$4, %ebx
	leal	-1(%rbx), %ecx
	movl	$1, %r12d
	movl	$1, %r15d
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	subl	%esi, %edi
	movl	%edx, %esi
	callq	_av_mod_uintp2
	movl	%r14d, %ecx
	shll	%cl, %r12d
	movl	%r12d, %ecx
	subl	%r15d, %ecx
	xorl	%edx, %edx
	cmpl	%ecx, %eax
	cmovgel	%r12d, %edx
	movl	%eax, %ecx
	subl	%edx, %ecx
	cmpl	%r15d, %ecx
	cmovgl	%r14d, %ebx
	subl	%edx, %eax
	cmovel	%r14d, %ebx
	negl	%r15d
	cmpl	%r15d, %eax
	cmovll	%r14d, %ebx
	incl	%ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_est_alpha_diff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function est_alpha_diff
_est_alpha_diff:                        ; @est_alpha_diff
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x2
	mov	w8, #7
	mov	w9, #4
	cmp	w2, #8
	csel	w20, w9, w8, eq
	sub	w8, w20, #1
	mov	w21, #1
	lsl	w22, w21, w8
	sub	w0, w0, w1
	mov	x1, x2
	bl	_av_mod_uintp2
	lsl	w8, w21, w19
	sub	w9, w8, w22
	cmp	w0, w9
	csel	w8, wzr, w8, lt
	sub	w9, w0, w8
	cmp	w9, w22
	ccmp	w0, w8, #4, le
	csel	w8, w20, w19, ne
	neg	w10, w22
	cmp	w9, w10
	csel	w8, w19, w8, lt
	add	w0, w8, #1
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_est_alpha_diff
.subsections_via_symbols
