	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_init_channels        ## -- Begin function ieee80211_init_channels
	.p2align	4, 0x90
_ieee80211_init_channels:               ## @ieee80211_init_channels
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	16(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_HTCAP_CHWIDTH40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%r12d, %r12d
	andl	4(%rdi), %eax
	setne	%r12b
	movl	$0, (%rdi)
	movq	_IEEE80211_MODE_11B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rdi
	callq	_isset
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	_IEEE80211_MODE_11G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_isset
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_IEEE80211_MODE_11NG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_isset
	testq	%rax, %rax
	je	LBB0_7
LBB0_3:
	movq	_def_chan_2ghz@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_nitems
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	cmpq	$0, (%r15)
	jne	LBB0_6
LBB0_5:
	addl	$-3, %eax
LBB0_6:
	movq	_IEEE80211_CHAN_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rbx), %ecx
	movl	%r12d, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%eax, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_ieee80211_add_channel_list_2ghz
LBB0_7:
	movq	_IEEE80211_MODE_11A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_isset
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_IEEE80211_MODE_11NA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_isset
	testq	%rax, %rax
	je	LBB0_10
LBB0_9:
	movq	_IEEE80211_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_def_chan_5ghz_band1@GOTPCREL(%rip), %rax
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_nitems
	movl	%r12d, (%rsp)
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	movq	-48(%rbp), %r9                  ## 8-byte Reload
	callq	_ieee80211_add_channel_list_5ghz
	movq	_IEEE80211_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_def_chan_5ghz_band2@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_nitems
	movl	%r12d, (%rsp)
	movq	%r15, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r9
	callq	_ieee80211_add_channel_list_5ghz
	movq	_IEEE80211_CHAN_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_def_chan_5ghz_band3@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_nitems
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rsp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	%r13, %rdx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	movq	%r14, %r9
	callq	_ieee80211_add_channel_list_5ghz
LBB0_10:
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:
	movq	(%r15), %rax
	movq	%rax, 8(%r13)
LBB0_12:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ## @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_MODE_11B,4,2         ## @IEEE80211_MODE_11B
	.comm	_IEEE80211_MODE_11G,4,2         ## @IEEE80211_MODE_11G
	.comm	_IEEE80211_MODE_11NG,4,2        ## @IEEE80211_MODE_11NG
	.comm	_def_chan_2ghz,4,2              ## @def_chan_2ghz
	.comm	_IEEE80211_CHAN_MAX,4,2         ## @IEEE80211_CHAN_MAX
	.comm	_IEEE80211_MODE_11A,4,2         ## @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11NA,4,2        ## @IEEE80211_MODE_11NA
	.comm	_def_chan_5ghz_band1,4,2        ## @def_chan_5ghz_band1
	.comm	_def_chan_5ghz_band2,4,2        ## @def_chan_5ghz_band2
	.comm	_def_chan_5ghz_band3,4,2        ## @def_chan_5ghz_band3
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_init_channels        ; -- Begin function ieee80211_init_channels
	.p2align	2
_ieee80211_init_channels:               ; @ieee80211_init_channels
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #16]
	ldr	w8, [x0, #4]
Lloh0:
	adrp	x9, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_HTCAP_CHWIDTH40@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w23, ne
	str	wzr, [x0]
Lloh3:
	adrp	x8, _IEEE80211_MODE_11B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_MODE_11B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x2
	bl	_isset
Lloh6:
	adrp	x26, _IEEE80211_CHAN_MAX@GOTPAGE
Lloh7:
	ldr	x26, [x26, _IEEE80211_CHAN_MAX@GOTPAGEOFF]
	cbnz	x0, LBB0_3
; %bb.1:
Lloh8:
	adrp	x8, _IEEE80211_MODE_11G@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_MODE_11G@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_isset
	cbnz	x0, LBB0_3
; %bb.2:
Lloh11:
	adrp	x8, _IEEE80211_MODE_11NG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_MODE_11NG@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_isset
	cbz	x0, LBB0_7
LBB0_3:
Lloh14:
	adrp	x24, _def_chan_2ghz@GOTPAGE
Lloh15:
	ldr	x24, [x24, _def_chan_2ghz@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_nitems
	mov	x4, x0
	cbz	x20, LBB0_5
; %bb.4:
	ldr	x8, [x20]
	cbnz	x8, LBB0_6
LBB0_5:
	sub	w4, w4, #3
LBB0_6:
	ldr	w1, [x26]
	ldr	w3, [x24]
	mov	x0, x22
	mov	x2, x19
	mov	x5, x21
	mov	x6, x23
	bl	_ieee80211_add_channel_list_2ghz
LBB0_7:
Lloh16:
	adrp	x8, _IEEE80211_MODE_11A@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IEEE80211_MODE_11A@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_isset
	cbnz	x0, LBB0_9
; %bb.8:
Lloh19:
	adrp	x8, _IEEE80211_MODE_11NA@GOTPAGE
Lloh20:
	ldr	x8, [x8, _IEEE80211_MODE_11NA@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_isset
	cbz	x0, LBB0_10
LBB0_9:
	ldr	w24, [x26]
Lloh22:
	adrp	x8, _def_chan_5ghz_band1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _def_chan_5ghz_band1@GOTPAGEOFF]
Lloh24:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_nitems
	mov	x4, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x19
	mov	x3, x25
	mov	x5, x21
	mov	x6, x23
	bl	_ieee80211_add_channel_list_5ghz
	ldr	w24, [x26]
Lloh25:
	adrp	x8, _def_chan_5ghz_band2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _def_chan_5ghz_band2@GOTPAGEOFF]
Lloh27:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_nitems
	mov	x4, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x19
	mov	x3, x25
	mov	x5, x21
	mov	x6, x23
	bl	_ieee80211_add_channel_list_5ghz
	ldr	w24, [x26]
Lloh28:
	adrp	x8, _def_chan_5ghz_band3@GOTPAGE
Lloh29:
	ldr	x8, [x8, _def_chan_5ghz_band3@GOTPAGEOFF]
Lloh30:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_nitems
	mov	x4, x0
	mov	x0, x22
	mov	x1, x24
	mov	x2, x19
	mov	x3, x25
	mov	x5, x21
	mov	x6, x23
	bl	_ieee80211_add_channel_list_5ghz
LBB0_10:
	cbz	x20, LBB0_12
; %bb.11:
	ldr	x8, [x20]
	str	x8, [x19, #8]
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_HTCAP_CHWIDTH40,4,2  ; @IEEE80211_HTCAP_CHWIDTH40
	.comm	_IEEE80211_MODE_11B,4,2         ; @IEEE80211_MODE_11B
	.comm	_IEEE80211_MODE_11G,4,2         ; @IEEE80211_MODE_11G
	.comm	_IEEE80211_MODE_11NG,4,2        ; @IEEE80211_MODE_11NG
	.comm	_def_chan_2ghz,4,2              ; @def_chan_2ghz
	.comm	_IEEE80211_CHAN_MAX,4,2         ; @IEEE80211_CHAN_MAX
	.comm	_IEEE80211_MODE_11A,4,2         ; @IEEE80211_MODE_11A
	.comm	_IEEE80211_MODE_11NA,4,2        ; @IEEE80211_MODE_11NA
	.comm	_def_chan_5ghz_band1,4,2        ; @def_chan_5ghz_band1
	.comm	_def_chan_5ghz_band2,4,2        ; @def_chan_5ghz_band2
	.comm	_def_chan_5ghz_band3,4,2        ; @def_chan_5ghz_band3
.subsections_via_symbols
