	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_get_ratemask         ## -- Begin function ieee80211_get_ratemask
	.p2align	4, 0x90
_ieee80211_get_ratemask:                ## @ieee80211_get_ratemask
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	testl	%edx, %edx
	je	LBB0_1
## %bb.3:
	movq	_NL80211_MAX_SUPP_RATES@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	jb	LBB0_1
## %bb.4:
	movq	%rcx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$0, (%rcx)
	movl	%edx, %r12d
	xorl	%ebx, %ebx
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14,%rbx,4), %ecx
	andl	$127, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movq	8(%r13), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%ecx, (%rdx,%rdi,4)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rdi
	cmpq	%rdi, %rax
	jne	LBB0_7
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BIT
	orl	%eax, (%r15)
	incq	%rbx
	xorl	%eax, %eax
	cmpq	%r12, %rbx
	jne	LBB0_5
	jmp	LBB0_10
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NL80211_MAX_SUPP_RATES,4,2     ## @NL80211_MAX_SUPP_RATES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_get_ratemask         ; -- Begin function ieee80211_get_ratemask
	.p2align	2
_ieee80211_get_ratemask:                ; @ieee80211_get_ratemask
	.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
	cbz	x0, LBB0_9
; %bb.1:
	cbz	w2, LBB0_9
; %bb.2:
Lloh0:
	adrp	x8, _NL80211_MAX_SUPP_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_MAX_SUPP_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w2
	b.lo	LBB0_9
; %bb.3:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	x22, #0
	str	wzr, [x3]
	mov	w23, w2
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, #0
	ldr	w9, [x20, x22, lsl #2]
	and	w9, w9, #0x7f
	add	w9, w9, w9, lsl #2
	ldr	x10, [x21, #8]
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10, x0, lsl #2]
	cmp	w11, w9
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, x0, #1
	cmp	x8, x0
	b.ne	LBB0_6
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BIT
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	add	x22, x22, #1
	cmp	x22, x23
	b.ne	LBB0_4
	b	LBB0_10
LBB0_9:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NL80211_MAX_SUPP_RATES,4,2     ; @NL80211_MAX_SUPP_RATES
.subsections_via_symbols
