	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dumpchannels
_dumpchannels:                          ## @dumpchannels
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	testl	%esi, %esi
	jle	LBB0_25
## %bb.1:
	movq	%rdx, %r15
	movl	%esi, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_showchannels@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_sep@GOTPCREL(%rip), %rdi
	movq	_n@GOTPCREL(%rip), %r12
	movq	%rdx, %r13
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_DFS
	testq	%rax, %rax
	movl	$42, %ebx
	movl	$32, %eax
	cmovel	%eax, %ebx
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_4MS
	testq	%rax, %rax
	movl	$52, %ecx
	movl	$32, %eax
	cmovel	%eax, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	movl	%edx, %r8d
	sarl	%r8d
	andl	$-2, %edx
	subl	%edx, %eax
	leal	(%rax,%rax,4), %r9d
	leaq	L_.str.2(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_printf
LBB0_24:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_sep@GOTPCREL(%rip), %rdi
	movl	(%r12), %eax
	leal	1(%rax), %ecx
	movl	%ecx, (%r12)
	movq	_showchannels@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	$1, %rcx
	movl	$7, %esi
	sbbl	$0, %esi
                                        ## kill: def $eax killed $eax killed $rax
	cltd
	idivl	%esi
	testl	%edx, %edx
	leaq	L_.str.6(%rip), %rax
	leaq	L_.str.5(%rip), %rdx
	cmoveq	%rdx, %rax
	movq	%rax, (%rdi)
	incq	%r14
	addq	$8, %r13
	cmpq	%r14, -72(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_25
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdi), %rbx
	movl	(%r15,%r14,8), %eax
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	4(%r15,%r14,8), %edx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_ath_hal_mhz2ieee
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_printf
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_HALF
	movl	$72, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_QUARTER
	movl	$81, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_TURBO
	movl	$84, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_HT
	movl	$78, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_A
	movl	$65, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_108G
	movl	$84, %ebx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_G
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leal	(%rcx,%rcx,4), %ebx
	addl	$66, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_dopassive@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_PASSIVE
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	callq	_tolower
	movl	%eax, %ebx
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_isdfs@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_is4ms@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	jne	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.19:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_DFS
	testq	%rax, %rax
	movl	$42, %edx
	jmp	LBB0_20
LBB0_21:                                ##   in Loop: Header=BB0_2 Depth=1
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rdi
	callq	_IEEE80211_IS_CHAN_4MS
	testq	%rax, %rax
	movl	$52, %edx
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$32, %eax
	cmovel	%eax, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	movl	%esi, %ecx
	sarl	%ecx
	andl	$-2, %esi
	subl	%esi, %eax
	leal	(%rax,%rax,4), %r8d
	leaq	L_.str.3(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r14,4), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	movl	%ecx, %edx
	sarl	%edx
	andl	$-2, %ecx
	subl	%ecx, %eax
	leal	(%rax,%rax,4), %ecx
	leaq	L_.str.4(%rip), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_24
LBB0_25:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_showchannels,8,3               ## @showchannels
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s%3d"

	.comm	_sep,8,3                        ## @sep
L_.str.1:                               ## @.str.1
	.asciz	"%s%u"

	.comm	_dopassive,8,3                  ## @dopassive
	.comm	_isdfs,8,3                      ## @isdfs
	.comm	_is4ms,8,3                      ## @is4ms
L_.str.2:                               ## @.str.2
	.asciz	"%c%c%c %d.%d"

L_.str.3:                               ## @.str.3
	.asciz	"%c%c %d.%d"

L_.str.4:                               ## @.str.4
	.asciz	"%c %d.%d"

	.comm	_n,4,2                          ## @n
L_.str.5:                               ## @.str.5
	.asciz	"\n"

L_.str.6:                               ## @.str.6
	.asciz	" "

	.no_dead_strip	_dumpchannels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dumpchannels
_dumpchannels:                          ; @dumpchannels
	.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	x0, [sp, #40]                   ; 8-byte Folded Spill
	cmp	w1, #1
	b.lt	LBB0_28
; %bb.1:
	mov	x19, x3
	mov	x20, x2
Lloh0:
	adrp	x28, _showchannels@GOTPAGE
Lloh1:
	ldr	x28, [x28, _showchannels@GOTPAGEOFF]
Lloh2:
	adrp	x22, _sep@GOTPAGE
Lloh3:
	ldr	x22, [x22, _sep@GOTPAGEOFF]
	mov	w23, w1
	ldr	x8, [x28]
Lloh4:
	adrp	x24, _dopassive@GOTPAGE
Lloh5:
	ldr	x24, [x24, _dopassive@GOTPAGEOFF]
Lloh6:
	adrp	x21, _isdfs@GOTPAGE
Lloh7:
	ldr	x21, [x21, _isdfs@GOTPAGEOFF]
Lloh8:
	adrp	x26, _is4ms@GOTPAGE
Lloh9:
	ldr	x26, [x26, _is4ms@GOTPAGEOFF]
	mov	w25, #32
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_DFS
	mov	x25, x22
	mov	x22, x26
	mov	x26, x21
	mov	x21, x24
	mov	x24, x28
	mov	x28, x0
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_4MS
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w10, w9, #1
	and	w9, w9, #0xfffffffe
	sub	w8, w8, w9
	add	w8, w8, w8, lsl #2
	cmp	x0, #0
	mov	w12, #32
	mov	w9, #52
	csel	x9, x12, x9, eq
	cmp	x28, #0
	mov	x28, x24
	mov	x24, x21
	mov	x21, x26
	mov	x26, x22
	mov	x22, x25
	mov	w11, #42
	mov	w25, #32
	csel	x11, x12, x11, eq
	stp	x27, x11, [sp]
	stp	x9, x10, [sp, #16]
	str	x8, [sp, #32]
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_printf
Lloh12:
	adrp	x10, _n@GOTPAGE
Lloh13:
	ldr	x10, [x10, _n@GOTPAGEOFF]
	ldr	w9, [x10]
	add	w8, w9, #1
	str	w8, [x10]
	ldr	x8, [x28]
	cmp	x8, #0
	mov	w10, #6
	cinc	w10, w10, ne
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	cmp	w9, #0
Lloh14:
	adrp	x9, l_.str.6@PAGE
Lloh15:
	add	x9, x9, l_.str.6@PAGEOFF
Lloh16:
	adrp	x10, l_.str.5@PAGE
Lloh17:
	add	x10, x10, l_.str.5@PAGEOFF
	csel	x9, x10, x9, eq
	str	x9, [x22]
	add	x19, x19, #4
	add	x20, x20, #8
	subs	x23, x23, #1
	b.eq	LBB0_28
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x22]
	ldr	w1, [x20]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [x20, #4]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_ath_hal_mhz2ieee
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x27, x0, [sp]
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	stp	x27, x1, [sp]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_printf
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_HALF
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #72
	ldr	x8, [x24]
	cbnz	x8, LBB0_17
	b	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_QUARTER
	cbz	x0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #81
	ldr	x8, [x24]
	cbnz	x8, LBB0_17
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_TURBO
	cbz	x0, LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #84
	ldr	x8, [x24]
	cbnz	x8, LBB0_17
	b	LBB0_19
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_HT
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #78
	ldr	x8, [x24]
	cbnz	x8, LBB0_17
	b	LBB0_19
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_A
	cbz	x0, LBB0_26
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w27, #65
	ldr	x8, [x24]
	cbz	x8, LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_PASSIVE
	cbz	x0, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_tolower
	mov	x27, x0
LBB0_19:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	ldr	x8, [x26]
	cmp	x9, #0
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_2
; %bb.20:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	x9, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_DFS
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w10, w9, #1
	and	w9, w9, #0xfffffffe
	sub	w8, w8, w9
	add	w8, w8, w8, lsl #2
	cmp	x0, #0
	mov	w9, #42
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x8, LBB0_25
; %bb.23:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_4MS
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w10, w9, #1
	and	w9, w9, #0xfffffffe
	sub	w8, w8, w9
	add	w8, w8, w8, lsl #2
	cmp	x0, #0
	mov	w9, #52
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	csel	x9, x25, x9, eq
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	stp	x27, x9, [sp]
	stp	x10, x8, [sp, #16]
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_3
LBB0_25:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w10, w9, #1
	and	w9, w9, #0xfffffffe
	sub	w8, w8, w9
	add	w8, w8, w8, lsl #2
                                        ; kill: def $w27 killed $w27 killed $x27 def $x27
	stp	x27, x10, [sp]
	str	x8, [sp, #16]
Lloh24:
	adrp	x0, l_.str.4@PAGE
Lloh25:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_108G
	cbnz	x0, LBB0_12
; %bb.27:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_IEEE80211_IS_CHAN_G
	cmp	x0, #0
	mov	w8, #71
	mov	w9, #66
	csel	w27, w9, w8, eq
	ldr	x8, [x24]
	cbnz	x8, LBB0_17
	b	LBB0_19
LBB0_28:
	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	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_showchannels,8,3               ; @showchannels
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s%3d"

	.comm	_sep,8,3                        ; @sep
l_.str.1:                               ; @.str.1
	.asciz	"%s%u"

	.comm	_dopassive,8,3                  ; @dopassive
	.comm	_isdfs,8,3                      ; @isdfs
	.comm	_is4ms,8,3                      ; @is4ms
l_.str.2:                               ; @.str.2
	.asciz	"%c%c%c %d.%d"

l_.str.3:                               ; @.str.3
	.asciz	"%c%c %d.%d"

l_.str.4:                               ; @.str.4
	.asciz	"%c %d.%d"

	.comm	_n,4,2                          ; @n
l_.str.5:                               ; @.str.5
	.asciz	"\n"

l_.str.6:                               ; @.str.6
	.asciz	" "

	.no_dead_strip	_dumpchannels
.subsections_via_symbols
