	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	subl	%edx, %esi
	movl	%esi, %edi
	movl	$16, %esi
	callq	_av_mod_uintp2
                                        ## kill: def $eax killed $eax def $rax
	leal	-65536(%rax), %ebx
	cmpl	$65472, %eax                    ## imm = 0xFFC0
	cmovll	%eax, %ebx
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	leal	64(%rbx), %eax
	cmpl	$129, %eax
	jae	LBB0_2
## %bb.4:
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	callq	_put_bits
	movl	%ebx, %edi
	callq	_FFABS
                                        ## kill: def $eax killed $eax def $rax
	leal	-1(%rax), %edx
	movq	%r14, %rdi
	movl	$6, %esi
	callq	_put_bits
	shrl	$31, %ebx
	movq	%r14, %rdi
	movl	$1, %esi
	jmp	LBB0_3
LBB0_2:
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$1, %edx
	callq	_put_bits
	movq	%r14, %rdi
	movl	$16, %esi
LBB0_3:
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	sub	w0, w1, w2
	mov	w1, #16
	bl	_av_mod_uintp2
	sub	w8, w0, #16, lsl #12            ; =65536
	mov	w9, #65471
	cmp	w0, w9
	csel	w20, w8, w0, gt
	cbz	w20, LBB0_3
; %bb.1:
	add	w8, w20, #64
	cmp	w8, #129
	b.hs	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	bl	_put_bits
	mov	x0, x20
	bl	_FFABS
	sub	w2, w0, #1
	mov	x0, x19
	mov	w1, #6
	bl	_put_bits
	lsr	w2, w20, #31
	mov	x0, x19
	mov	w1, #1
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	bl	_put_bits
	mov	x0, x19
	mov	w1, #16
	mov	x2, x20
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_put_bits
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_put_alpha_diff
.subsections_via_symbols
