	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_chanlist
_add_chanlist:                          ## @add_chanlist
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_23
## %bb.1:
	movq	%r9, %rbx
	movq	%rcx, %r14
	leal	-1(%r8), %eax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	%r8d, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	cmpq	-88(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_23
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	(%r14,%r13,8), %rdi
	movl	(%rbx), %esi
	callq	_ieee80211_ieee2mhz
	movl	(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_22
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, %r15d
	leal	-20(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %eax
	addl	$20, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_4
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=2
	testq	%r12, %r12
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx,%r12,4), %ecx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	callq	_copychan_prev
	testl	%eax, %eax
	je	LBB0_21
	jmp	LBB0_24
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r14,%r13,8), %rcx
	movl	(%rbx,%r12,4), %eax
	movl	%eax, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %r8d
	xorl	%r9d, %r9d
	callq	_addchan
	testl	%eax, %eax
	je	LBB0_21
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	_IEEE80211_CHAN_VHT@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	_IEEE80211_CHAN_VHT80@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	%r15d, %edi
	callq	_is_vht80_valid_freq
	testl	%eax, %eax
	je	LBB0_21
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx,%r12,4), %esi
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	movq	_IEEE80211_CHAN_HT40D@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	testq	%r13, %r13
	je	LBB0_21
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r14,%r13,8), %rdi
	movq	(%r14), %rax
	addq	$4, %rax
	cmpq	%rax, %rdi
	jl	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=2
	addq	$-4, %rdi
	callq	_ieee80211_ieee2mhz
	cmpl	%eax, -52(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_21
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=2
	movl	(%rbx,%r12,4), %esi
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	_IEEE80211_CHAN_HT40U@GOTPCREL(%rip), %rax
	testl	%esi, (%rax)
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=2
	cmpq	-80(%rbp), %r13                 ## 8-byte Folded Reload
	je	LBB0_21
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r14,%r13,8), %rdi
	addq	$4, %rdi
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%r14,%rax,8), %rdi
	jg	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=2
	callq	_ieee80211_ieee2mhz
	cmpl	%eax, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_17
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=2
	movl	4(%rbx,%r12,4), %esi
	incq	%r12
	testl	%esi, %esi
	jne	LBB0_4
	jmp	LBB0_22
LBB0_23:
	xorl	%eax, %eax
LBB0_24:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_CHAN_VHT,4,2         ## @IEEE80211_CHAN_VHT
	.comm	_IEEE80211_CHAN_VHT80,4,2       ## @IEEE80211_CHAN_VHT80
	.comm	_IEEE80211_CHAN_HT40D,4,2       ## @IEEE80211_CHAN_HT40D
	.comm	_IEEE80211_CHAN_HT40U,4,2       ## @IEEE80211_CHAN_HT40U
	.no_dead_strip	_add_chanlist
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_chanlist
_add_chanlist:                          ; @add_chanlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	x2, [sp, #40]                   ; 8-byte Folded Spill
	str	w1, [sp, #36]                   ; 4-byte Folded Spill
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	subs	w25, w4, #1
	b.lt	LBB0_22
; %bb.1:
	mov	x19, x5
	mov	x20, x3
	mov	x26, #0
Lloh0:
	adrp	x27, _IEEE80211_CHAN_VHT@GOTPAGE
Lloh1:
	ldr	x27, [x27, _IEEE80211_CHAN_VHT@GOTPAGEOFF]
Lloh2:
	adrp	x28, _IEEE80211_CHAN_HT40D@GOTPAGE
Lloh3:
	ldr	x28, [x28, _IEEE80211_CHAN_HT40D@GOTPAGEOFF]
	mov	w8, w4
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh4:
	adrp	x22, _IEEE80211_CHAN_VHT80@GOTPAGE
Lloh5:
	ldr	x22, [x22, _IEEE80211_CHAN_VHT80@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	cmp	x26, x8
	b.eq	LBB0_22
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x0, [x20, x26, lsl #3]
	ldr	w1, [x19]
	bl	_ieee80211_ieee2mhz
	ldr	w1, [x19]
	cbz	w1, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, x0
	mov	x21, #0
	sub	w23, w0, #20
	add	w8, w0, #20
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w3, [x19, x21, lsl #2]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	bl	_copychan_prev
	cbz	w0, LBB0_21
	b	LBB0_23
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	x3, [x20, x26, lsl #3]
	ldr	w6, [x19, x21, lsl #2]
	ldr	x0, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	ldr	x2, [sp, #40]                   ; 8-byte Folded Reload
	mov	x4, x24
	mov	w5, #0
	bl	_addchan
	cbz	w0, LBB0_21
	b	LBB0_23
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x27]
	tst	w8, w1
	b.eq	LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x22]
	tst	w8, w1
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x24
	bl	_is_vht80_valid_freq
	cbz	w0, LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w1, [x19, x21, lsl #2]
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=2
	ldr	w8, [x28]
	tst	w8, w1
	b.eq	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=2
	cbz	x26, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x20, x26, lsl #3]
	ldr	x9, [x20]
	add	x9, x9, #4
	cmp	x8, x9
	b.lt	LBB0_21
; %bb.15:                               ;   in Loop: Header=BB0_8 Depth=2
	sub	x0, x8, #4
	bl	_ieee80211_ieee2mhz
	cmp	w23, w0
	b.ne	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w1, [x19, x21, lsl #2]
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=2
Lloh6:
	adrp	x8, _IEEE80211_CHAN_HT40U@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IEEE80211_CHAN_HT40U@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w1
	b.eq	LBB0_5
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	x26, x25
	b.eq	LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	x8, [x20, x26, lsl #3]
	add	x0, x8, #4
	ldr	x8, [x20, x25, lsl #3]
	cmp	x0, x8
	b.gt	LBB0_21
; %bb.20:                               ;   in Loop: Header=BB0_8 Depth=2
	bl	_ieee80211_ieee2mhz
	ldr	w8, [sp, #20]                   ; 4-byte Folded Reload
	cmp	w8, w0
	b.eq	LBB0_5
LBB0_21:                                ;   in Loop: Header=BB0_8 Depth=2
	add	x8, x19, x21, lsl #2
	add	x21, x21, #1
	ldr	w1, [x8, #4]
	cbnz	w1, LBB0_8
	b	LBB0_2
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_CHAN_VHT,4,2         ; @IEEE80211_CHAN_VHT
	.comm	_IEEE80211_CHAN_VHT80,4,2       ; @IEEE80211_CHAN_VHT80
	.comm	_IEEE80211_CHAN_HT40D,4,2       ; @IEEE80211_CHAN_HT40D
	.comm	_IEEE80211_CHAN_HT40U,4,2       ; @IEEE80211_CHAN_HT40U
	.no_dead_strip	_add_chanlist
.subsections_via_symbols
