	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function put_alpha_diff
_put_alpha_diff:                        ## @put_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movq	%rdi, %r14
	xorl	%eax, %eax
	cmpl	$8, %ecx
	setne	%al
	leal	(%rax,%rax,2), %ecx
	addl	$3, %ecx
	movl	$1, %ebx
	movl	$1, %r15d
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r15d
	subl	%edx, %esi
	movl	%esi, %edi
	movl	%r12d, %esi
	callq	_av_mod_uintp2
	movl	%r12d, %ecx
	shll	%cl, %ebx
	movl	%ebx, %edx
	subl	%r15d, %edx
	xorl	%ecx, %ecx
	cmpl	%edx, %eax
	cmovgel	%ebx, %ecx
	movl	%eax, %r13d
	subl	%ecx, %r13d
	movl	%r15d, %edx
	negl	%edx
	cmpl	%edx, %r13d
	jl	LBB0_3
## %bb.1:
	cmpl	%ecx, %eax
	je	LBB0_3
## %bb.2:
	cmpl	%r15d, %r13d
	jg	LBB0_3
## %bb.5:
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	%r13d, %edi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_put_bits
	shrl	$31, %r13d
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	%r12d, %esi
LBB0_4:
	movl	%r13d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_put_alpha_diff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function put_alpha_diff
_put_alpha_diff:                        ; @put_alpha_diff
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x0
	mov	w8, #6
	mov	w9, #3
	cmp	w3, #8
	csel	w20, w9, w8, eq
	mov	w21, #1
	lsl	w23, w21, w20
	sub	w0, w1, w2
	mov	x1, x3
	bl	_av_mod_uintp2
	lsl	w8, w21, w22
	sub	w9, w8, w23
	cmp	w0, w9
	csel	w8, wzr, w8, lt
	sub	w21, w0, w8
	neg	w9, w23
	cmp	w21, w9
	ccmp	w0, w8, #4, ge
	mov	x0, x19
	mov	w1, #1
	ccmp	w21, w23, #0, ne
	b.le	LBB0_2
; %bb.1:
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	b	LBB0_3
LBB0_2:
	mov	w2, #0
	bl	_put_bits
	mov	x0, x21
	bl	_FFABS
	sub	w2, w0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_put_bits
	lsr	w2, w21, #31
	mov	x0, x19
	mov	w1, #1
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_put_bits
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_put_alpha_diff
.subsections_via_symbols
