	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbs_av1_get_relative_dist
_cbs_av1_get_relative_dist:             ## @cbs_av1_get_relative_dist
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	subl	%edx, %esi
	movb	(%rdi), %cl
	movl	$1, %edx
	shll	%cl, %edx
	leal	-1(%rdx), %eax
	andl	%esi, %eax
	andl	%esi, %edx
	subl	%edx, %eax
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cbs_av1_get_relative_dist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbs_av1_get_relative_dist
_cbs_av1_get_relative_dist:             ; @cbs_av1_get_relative_dist
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x0]
	mov	w9, #1
	lsl	w8, w9, w8
	sub	w9, w8, #1
	sub	w10, w1, w2
	and	w9, w9, w10
	and	w8, w8, w10
	sub	w0, w9, w8
	ret
LBB0_2:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cbs_av1_get_relative_dist
.subsections_via_symbols
