	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rate_idx_match_legacy_mask
_rate_idx_match_legacy_mask:            ## @rate_idx_match_legacy_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btl	%ecx, %edx
	jb	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%rcx), %r8d
	testl	%ecx, %ecx
	movl	%r8d, %ecx
	jg	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incl	%eax
	cmpl	%esi, %eax
	jge	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	btl	%eax, %edx
	jae	LBB0_5
	jmp	LBB0_8
LBB0_3:
	movl	%ecx, %eax
LBB0_8:
	movl	%eax, (%rdi)
	movl	$1, %eax
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rate_idx_match_legacy_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rate_idx_match_legacy_mask
_rate_idx_match_legacy_mask:            ; @rate_idx_match_legacy_mask
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	tbnz	w8, #31, LBB0_4
; %bb.1:
	mov	x9, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w10, w2, w9
	tbnz	w10, #0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w10, w9, #1
	cmp	w9, #0
	mov	x9, x10
	b.gt	LBB0_2
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w8, #1
	cmp	w8, w1
	b.ge	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsr	w9, w2, w8
	tbz	w9, #0, LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x8, x9
LBB0_7:
	str	w8, [x0]
	mov	w0, #1
	ret
LBB0_8:
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rate_idx_match_legacy_mask
.subsections_via_symbols
