	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_setup_channels
_ath5k_setup_channels:                  ## @ath5k_setup_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $edx killed $edx def $rdx
	leal	-128(%rdx), %eax
	cmpl	$3, %eax
	jae	LBB0_8
## %bb.1:
	movl	%ecx, %r12d
	testl	%ecx, %ecx
	je	LBB0_9
## %bb.2:
	movq	%rsi, %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	cltq
	leaq	l_switch.table.ath5k_setup_channels(%rip), %rdx
	movl	(%rdx,%rax,4), %edx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	leaq	l_switch.table.ath5k_setup_channels.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movl	(%rax), %r14d
	xorl	%ebx, %ebx
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_ieee80211_channel_to_frequency
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	leaq	(,%rcx,4), %rsi
	addq	%r13, %rsi
	movl	%eax, (%r13,%rcx,4)
	movl	%r14d, 4(%r13,%rcx,4)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, 8(%r13,%rcx,4)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ath5k_channel_ok
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_ath5k_is_standard_channel
	cmpl	$1, %eax
	sbbl	$-1, %ebx
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	jae	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	cmpl	%r12d, %ebx
	jb	LBB0_3
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	callq	_ATH5K_WARN
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,4,2          ## @NL80211_BAND_2GHZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad mode, not copying channels\n"

	.no_dead_strip	_ath5k_setup_channels
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.ath5k_setup_channels
l_switch.table.ath5k_setup_channels:
	.long	26                              ## 0x1a
	.long	26                              ## 0x1a
	.long	220                             ## 0xdc

	.section	__DATA,__const
	.p2align	3                               ## @switch.table.ath5k_setup_channels.1
l_switch.table.ath5k_setup_channels.1:
	.quad	_NL80211_BAND_2GHZ
	.quad	_NL80211_BAND_2GHZ
	.quad	_NL80211_BAND_5GHZ

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_setup_channels
_ath5k_setup_channels:                  ; @ath5k_setup_channels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
	sub	w8, w2, #128
	cmp	w8, #3
	b.hs	LBB0_8
; %bb.1:
	mov	x20, x3
	cbz	w3, LBB0_9
; %bb.2:
	mov	x21, x2
	mov	x23, x1
	mov	w22, #0
Lloh0:
	adrp	x9, l_switch.table.ath5k_setup_channels@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ath5k_setup_channels@PAGEOFF
	ldr	w26, [x9, w8, sxtw #2]
Lloh2:
	adrp	x9, l_switch.table.ath5k_setup_channels.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.ath5k_setup_channels.1@PAGEOFF
	ldr	x8, [x9, w8, sxtw #3]
	ldr	w24, [x8]
	mov	w25, #1
	mov	w27, #12
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_ieee80211_channel_to_frequency
	cbz	w0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	umaddl	x1, w22, w27, x23
	stp	w0, w24, [x1]
	str	w21, [x1, #8]
	mov	x0, x19
	bl	_ath5k_channel_ok
	cbz	w0, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_ath5k_is_standard_channel
	cmp	w0, #0
	cinc	w22, w22, ne
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w25, w26
	b.hs	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w25, w25, #1
	cmp	w22, w20
	b.lo	LBB0_3
	b	LBB0_10
LBB0_8:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ATH5K_WARN
LBB0_9:
	mov	w22, #0
LBB0_10:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
	.comm	_NL80211_BAND_2GHZ,4,2          ; @NL80211_BAND_2GHZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad mode, not copying channels\n"

	.no_dead_strip	_ath5k_setup_channels
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.ath5k_setup_channels
l_switch.table.ath5k_setup_channels:
	.long	26                              ; 0x1a
	.long	26                              ; 0x1a
	.long	220                             ; 0xdc

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ath5k_setup_channels.1
l_switch.table.ath5k_setup_channels.1:
	.quad	_NL80211_BAND_2GHZ
	.quad	_NL80211_BAND_2GHZ
	.quad	_NL80211_BAND_5GHZ

.subsections_via_symbols
