	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function freq_to_idx
_freq_to_idx:                           ## @freq_to_idx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movslq	(%rax), %r11
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	xorl	%eax, %eax
	cmpl	%r9d, %r11d
	jge	LBB0_10
## %bb.1:
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r8
	xorl	%eax, %eax
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r11
	cmpl	%r11d, %r9d
	je	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r8,%r11,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rcx), %edi
	testl	%edi, %edi
	jle	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rcx), %rdx
	leal	(%rax,%rdi), %r10d
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%esi, (%rdx,%rcx,4)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	incq	%rcx
	cmpq	%rcx, %rdi
	jne	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r10d, %eax
	jmp	LBB0_8
LBB0_9:
	addl	%ecx, %eax
LBB0_10:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.no_dead_strip	_freq_to_idx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function freq_to_idx
_freq_to_idx:                           ; @freq_to_idx
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
Lloh3:
	adrp	x10, _NUM_NL80211_BANDS@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ge	LBB0_2
; %bb.1:
	mov	x8, x0
	mov	w0, #0
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	b	LBB0_5
LBB0_2:
	mov	w0, #0
	ret
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x13
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	cmp	w10, w9
	b.eq	LBB0_10
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x12, [x8, x9, lsl #3]
	cbz	x12, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w11, [x12]
	cmp	w11, #1
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x12, [x12, #8]
	add	w13, w0, w11
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w14, [x12]
	cmp	w14, w1
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w0, w0, #1
	add	x12, x12, #4
	subs	x11, x11, #1
	b.ne	LBB0_8
	b	LBB0_3
LBB0_10:
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.no_dead_strip	_freq_to_idx
.subsections_via_symbols
