	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rateset_to_mask
_rateset_to_mask:                       ## @rateset_to_mask
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.1:
	movl	(%rdi), %r9d
	xorl	%r8d, %r8d
	xorl	%eax, %eax
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	testl	%r9d, %r9d
	jle	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rsi,%r8,8), %ecx
	andl	$127, %ecx
	leal	(%rcx,%rcx,4), %r10d
	movq	8(%rdi), %r11
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%r11,%rcx,4), %r10d
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	incq	%rcx
	cmpq	%rcx, %r9
	jne	LBB0_6
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%ecx, %ecx
	cmpl	%r9d, %ecx
	jne	LBB0_2
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	btsl	%ecx, %eax
	cmpl	%r9d, %ecx
	je	LBB0_10
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r8
	cmpq	%rdx, %r8
	jne	LBB0_3
	jmp	LBB0_11
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rateset_to_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rateset_to_mask
_rateset_to_mask:                       ; @rateset_to_mask
	.cfi_startproc
; %bb.0:
	cbz	x2, LBB0_9
; %bb.1:
	mov	x8, x0
	mov	x9, #0
	mov	w0, #0
	ldr	w10, [x8]
	mov	w11, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	cmp	w10, #1
	b.lt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x12, #0
	ldr	x13, [x1, x9, lsl #3]
	and	w13, w13, #0x7f
	add	w13, w13, w13, lsl #2
	ldr	x14, [x8, #8]
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w15, [x14, x12, lsl #2]
	cmp	w13, w15
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	x12, x12, #1
	cmp	x10, x12
	b.ne	LBB0_4
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w12, #0
	cmp	w12, w10
	b.ne	LBB0_8
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	lsl	w13, w11, w12
	orr	w0, w13, w0
	cmp	w12, w10
	b.eq	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	cmp	x9, x2
	b.ne	LBB0_2
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rateset_to_mask
.subsections_via_symbols
