	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath5k_setup_bands
LCPI0_0:
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.long	15                              ## 0xf
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ath5k_setup_bands:                     ## @ath5k_setup_bands
	.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
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r15
	movq	24(%r15), %rdi
	callq	_ARRAY_SIZE
	movq	_NUM_NL80211_BANDS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setl	%dil
	callq	_BUILD_BUG_ON
	movq	8(%r15), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	24(%r15), %r14
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movq	%rax, %r13
	shlq	$5, %r13
	leaq	(%r14,%r13), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r14,%r13)
	movq	16(%r15), %rax
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %rax
	leaq	24(%r14,%r13), %rbx
	movq	%rax, 24(%r14,%r13)
	movq	_AR5K_MODE_11G@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	32(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rdi
	movq	_ath5k_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$48, %edx
	callq	_memcpy
	movl	$12, 8(%r14,%r13)
LBB0_6:
	movq	8(%r15), %rsi
	movq	%rsi, 16(%r14,%r13)
	movl	(%r12), %edx
	movq	%r15, %rdi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %ecx
	callq	_ath5k_setup_channels
	movl	%eax, 12(%r14,%r13)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	(%rcx), %rcx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, (%rcx,%rdx,8)
	subl	%eax, %r12d
	movslq	%eax, %r13
LBB0_7:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ath5k_setup_rate_idx
	movq	_AR5K_MODE_11A@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	24(%r15), %rbx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rax
	movl	%r12d, %r14d
	movq	%rax, %r12
	shlq	$5, %r12
	leaq	(%rbx,%r12), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, (%rbx,%r12)
	movq	16(%r15), %rax
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %rdi
	movq	%rdi, 24(%rbx,%r12)
	movq	_ath5k_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$16, %rsi
	movl	$32, %edx
	callq	_memcpy
	movl	$8, 8(%rbx,%r12)
	shlq	$5, %r13
	addq	8(%r15), %r13
	movq	%r13, 16(%rbx,%r12)
	movq	_AR5K_MODE_11A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %ecx
	callq	_ath5k_setup_channels
	movl	%eax, 12(%rbx,%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rbx, (%rax,%rcx,8)
LBB0_9:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ath5k_setup_rate_idx
	movq	%r15, %rdi
	callq	_ath5k_debug_dump_bands
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_AR5K_MODE_11B@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	32(%r15), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%rbx), %rdi
	movq	_ath5k_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	$16, %edx
	callq	_memcpy
	movl	$4, 8(%r14,%r13)
	movq	(%r15), %rax
	movq	_AR5K_AR5211@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	(%rbx), %rax
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [15,15,15,15]
	movups	(%rax), %xmm1
	movups	16(%rax), %xmm2
	andps	%xmm0, %xmm1
	movups	%xmm1, (%rax)
	andps	%xmm0, %xmm2
	movups	%xmm2, 16(%rax)
	jmp	LBB0_6
LBB0_3:
	xorl	%r13d, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_NL80211_BANDS,4,2          ## @NUM_NL80211_BANDS
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_AR5K_MODE_11G,4,2              ## @AR5K_MODE_11G
	.comm	_ath5k_rates,8,3                ## @ath5k_rates
	.comm	_AR5K_MODE_11B,4,2              ## @AR5K_MODE_11B
	.comm	_AR5K_AR5211,8,3                ## @AR5K_AR5211
	.comm	_AR5K_MODE_11A,4,2              ## @AR5K_MODE_11A
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.no_dead_strip	_ath5k_setup_bands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_setup_bands
_ath5k_setup_bands:                     ; @ath5k_setup_bands
	.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	x20, x0
	ldr	x19, [x0, #8]
	ldr	x0, [x19, #24]
	bl	_ARRAY_SIZE
Lloh0:
	adrp	x8, _NUM_NL80211_BANDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_NL80211_BANDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	cset	w0, lt
	bl	_BUILD_BUG_ON
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	mov	x21, x0
Lloh3:
	adrp	x24, _NL80211_BAND_2GHZ@GOTPAGE
Lloh4:
	ldr	x24, [x24, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x25, [x24]
	ldp	x8, x26, [x19, #16]
	add	x22, x26, x25, lsl #5
	str	x25, [x22]
	ldr	x9, [x24]
	ldr	x8, [x8, x9, lsl #3]
	mov	x27, x22
	str	x8, [x27, #24]!
Lloh5:
	adrp	x8, _AR5K_MODE_11G@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AR5K_MODE_11G@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_test_bit
Lloh8:
	adrp	x23, _ath5k_rates@GOTPAGE
Lloh9:
	ldr	x23, [x23, _ath5k_rates@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x0, [x27]
	ldr	x1, [x23]
	mov	w2, #48
	bl	_memcpy
	mov	w8, #12
	str	w8, [x22, #8]
Lloh10:
	adrp	x8, _AR5K_MODE_11G@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AR5K_MODE_11G@GOTPAGEOFF]
	b	LBB0_6
LBB0_2:
Lloh12:
	adrp	x8, _AR5K_MODE_11B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AR5K_MODE_11B@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ldr	w1, [x19, #32]
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.3:
	ldr	x0, [x27]
	ldr	x1, [x23]
	mov	w2, #16
	bl	_memcpy
	add	x8, x26, x25, lsl #5
	mov	w9, #4
	str	w9, [x8, #8]
	ldr	x8, [x19]
Lloh15:
	adrp	x9, _AR5K_AR5211@GOTPAGE
Lloh16:
	ldr	x9, [x9, _AR5K_AR5211@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x27]
	movi.4s	v0, #15
	ldp	q1, q2, [x8]
	and.16b	v1, v1, v0
	and.16b	v0, v2, v0
	stp	q1, q0, [x8]
LBB0_5:
Lloh18:
	adrp	x8, _AR5K_MODE_11B@GOTPAGE
Lloh19:
	ldr	x8, [x8, _AR5K_MODE_11B@GOTPAGEOFF]
LBB0_6:
	ldr	x1, [x19, #8]
	add	x25, x26, x25, lsl #5
	str	x1, [x25, #16]
	ldr	w2, [x8]
	mov	x0, x19
	mov	x3, x21
	bl	_ath5k_setup_channels
	str	w0, [x25, #12]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x24]
	str	x22, [x8, x9, lsl #3]
	sub	w21, w21, w0
	sxtw	x24, w0
LBB0_7:
	mov	x0, x19
	mov	x1, x22
	bl	_ath5k_setup_rate_idx
Lloh20:
	adrp	x25, _AR5K_MODE_11A@GOTPAGE
Lloh21:
	ldr	x25, [x25, _AR5K_MODE_11A@GOTPAGEOFF]
	ldr	w0, [x25]
	ldr	w1, [x19, #32]
	bl	_test_bit
	cbz	x0, LBB0_9
; %bb.8:
Lloh22:
	adrp	x26, _NL80211_BAND_5GHZ@GOTPAGE
Lloh23:
	ldr	x26, [x26, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	x8, [x26]
	ldp	x10, x9, [x19, #16]
	add	x22, x9, x8, lsl #5
	str	x8, [x22]
	ldr	x8, [x26]
	ldr	x0, [x10, x8, lsl #3]
	str	x0, [x22, #24]
	ldr	x8, [x23]
	add	x1, x8, #16
	mov	w2, #32
	bl	_memcpy
	mov	w8, #8
	str	w8, [x22, #8]
	ldr	x8, [x19, #8]
	add	x1, x8, x24, lsl #5
	str	x1, [x22, #16]
	ldr	w2, [x25]
	mov	x0, x19
	mov	x3, x21
	bl	_ath5k_setup_channels
	str	w0, [x22, #12]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	x9, [x26]
	str	x22, [x8, x9, lsl #3]
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_ath5k_setup_rate_idx
	mov	x0, x19
	bl	_ath5k_debug_dump_bands
	mov	w0, #0
	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
LBB0_10:
	mov	x24, #0
	b	LBB0_7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_NL80211_BANDS,4,2          ; @NUM_NL80211_BANDS
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_AR5K_MODE_11G,4,2              ; @AR5K_MODE_11G
	.comm	_ath5k_rates,8,3                ; @ath5k_rates
	.comm	_AR5K_MODE_11B,4,2              ; @AR5K_MODE_11B
	.comm	_AR5K_AR5211,8,3                ; @AR5K_AR5211
	.comm	_AR5K_MODE_11A,4,2              ; @AR5K_MODE_11A
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.no_dead_strip	_ath5k_setup_bands
.subsections_via_symbols
