	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ieee80211_get_channel        ## -- Begin function __ieee80211_get_channel
	.p2align	4, 0x90
___ieee80211_get_channel:               ## @__ieee80211_get_channel
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_IEEE80211_NUM_BANDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %r8
	xorl	%edi, %edi
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdi
	cmpq	%rcx, %rdi
	je	LBB0_8
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movq	(%r8,%rdi,8), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rax), %rax
	.p2align	4, 0x90
LBB0_6:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	%esi, (%rax)
	je	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=2
	addq	$4, %rax
	decq	%rdx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_8:
	xorl	%eax, %eax
LBB0_9:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_NUM_BANDS,4,2        ## @IEEE80211_NUM_BANDS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	___ieee80211_get_channel        ; -- Begin function __ieee80211_get_channel
	.p2align	2
___ieee80211_get_channel:               ; @__ieee80211_get_channel
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _IEEE80211_NUM_BANDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_NUM_BANDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_8
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x8
	b.eq	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	x12, [x10, x9, lsl #3]
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x12]
	cmp	w11, #1
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x12, #8]
LBB0_6:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x0]
	cmp	w12, w1
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, x0, #4
	subs	x11, x11, #1
	b.ne	LBB0_6
	b	LBB0_2
LBB0_8:
	mov	x0, #0
LBB0_9:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_NUM_BANDS,4,2        ; @IEEE80211_NUM_BANDS
.subsections_via_symbols
