	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_init_sbands
_iwl_init_sbands:                       ## @iwl_init_sbands
	.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
	movl	%r9d, %eax
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r15d
	movq	%rdx, %rcx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	16(%rbp), %r9d
	movq	(%rdi), %rsi
	movq	8(%rdi), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdx
	movl	%eax, %r8d
	callq	_iwl_init_channel_map
	movl	%eax, %edx
	movq	16(%r14), %rbx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %rdi
	movq	%rax, %r12
	shlq	$5, %r12
	leaq	(%rbx,%r12), %rsi
	movq	%rax, (%rbx,%r12)
	movq	_iwl_cfg80211_rates@GOTPCREL(%rip), %rcx
	movq	_RATES_24_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, 24(%rbx,%r12)
	movq	_N_RATES_24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx,%r12)
	movq	(%rdi), %rcx
	movq	%r14, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	callq	_iwl_init_sband_channels
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r12), %rdx
	addq	$12, %rdx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, %r8d
	movl	%ebx, %r9d
	callq	_iwl_init_ht_hw_capab
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_iwl_init_he_hw_capab
LBB0_3:
	movq	16(%r14), %r13
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, %r15
	shlq	$5, %r15
	leaq	(%r15,%r13), %rsi
	movq	%rax, (%r13,%r15)
	movq	_RATES_52_OFFS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	shlq	$2, %rax
	movq	_iwl_cfg80211_rates@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 24(%r13,%r15)
	movq	_N_RATES_52@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r13,%r15)
	movq	(%rbx), %rcx
	movq	%r14, %rdi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_iwl_init_sband_channels
	movq	%rax, %r12
	leaq	(%r15,%r13), %rdx
	addq	$12, %rdx
	movq	(%rbx), %rcx
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_iwl_init_ht_hw_capab
	cmpq	$0, 8(%r14)
	je	LBB0_6
## %bb.4:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_6
## %bb.5:
	leaq	(%r15,%r13), %rdx
	addq	$8, %rdx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	_iwl_init_vht_hw_capab
LBB0_6:
	addl	-88(%rbp), %r12d                ## 4-byte Folded Reload
	cmpq	$0, (%r14)
	je	LBB0_9
## %bb.7:
	movq	_iwlwifi_mod_params@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_9
## %bb.8:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_iwl_init_he_hw_capab
LBB0_9:
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%r12d, %ecx
	jne	LBB0_11
## %bb.10:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %edx
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_ERR_DEV                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_iwl_cfg80211_rates,8,3         ## @iwl_cfg80211_rates
	.comm	_RATES_24_OFFS,8,3              ## @RATES_24_OFFS
	.comm	_N_RATES_24,4,2                 ## @N_RATES_24
	.comm	_iwlwifi_mod_params,8,2         ## @iwlwifi_mod_params
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_RATES_52_OFFS,8,3              ## @RATES_52_OFFS
	.comm	_N_RATES_52,4,2                 ## @N_RATES_52
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NVM: used only %d of %d channels\n"

	.no_dead_strip	_iwl_init_sbands
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_init_sbands
_iwl_init_sbands:                       ; @iwl_init_sbands
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x4
	mov	x22, x3
	mov	x3, x2
	mov	x23, x1
	mov	x24, x0
	ldr	x0, [x0, #8]
	ldr	x1, [x24]
	str	x0, [sp]                        ; 8-byte Folded Spill
	mov	x2, x23
	mov	x4, x5
	mov	x5, x6
	bl	_iwl_init_channel_map
	mov	x21, x0
	ldr	x8, [x23, #16]
Lloh0:
	adrp	x19, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x19, [x19, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x26, x8, x9, lsl #5
Lloh2:
	adrp	x27, _iwl_cfg80211_rates@GOTPAGE
Lloh3:
	ldr	x27, [x27, _iwl_cfg80211_rates@GOTPAGEOFF]
	str	x9, [x26]
	ldr	x8, [x27]
Lloh4:
	adrp	x9, _RATES_24_OFFS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RATES_24_OFFS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x26, #24]
Lloh7:
	adrp	x8, _N_RATES_24@GOTPAGE
Lloh8:
	ldr	x8, [x8, _N_RATES_24@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x26, #16]
	ldr	x3, [x19]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x21
	bl	_iwl_init_sband_channels
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	add	x2, x26, #12
	ldr	x3, [x19]
	mov	x0, x24
	mov	x1, x23
	mov	x4, x22
	mov	x5, x20
	bl	_iwl_init_ht_hw_capab
	ldr	x8, [x23]
Lloh10:
	adrp	x9, _iwlwifi_mod_params@GOTPAGE
Lloh11:
	ldr	x9, [x9, _iwlwifi_mod_params@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w8, [x9]
	cbnz	w8, LBB0_3
; %bb.2:
	mov	x0, x26
	mov	x1, x22
	mov	x2, x20
	bl	_iwl_init_he_hw_capab
LBB0_3:
	ldr	x19, [x23, #16]
Lloh12:
	adrp	x25, _NL80211_BAND_5GHZ@GOTPAGE
Lloh13:
	ldr	x25, [x25, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	x28, [x25]
	add	x26, x19, x28, lsl #5
	str	x28, [x26]
	ldr	x8, [x27]
Lloh14:
	adrp	x9, _RATES_52_OFFS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RATES_52_OFFS@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x26, #24]
Lloh17:
	adrp	x8, _N_RATES_52@GOTPAGE
Lloh18:
	ldr	x8, [x8, _N_RATES_52@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x26, #16]
	ldr	x3, [x25]
	mov	x0, x23
	mov	x1, x26
	mov	x2, x21
	bl	_iwl_init_sband_channels
	mov	x27, x0
	add	x2, x26, #12
	ldr	x3, [x25]
Lloh20:
	adrp	x25, _iwlwifi_mod_params@GOTPAGE
Lloh21:
	ldr	x25, [x25, _iwlwifi_mod_params@GOTPAGEOFF]
	mov	x0, x24
	mov	x1, x23
	mov	x4, x22
	mov	x5, x20
	bl	_iwl_init_ht_hw_capab
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w8, [x25, #4]
	cbnz	w8, LBB0_6
; %bb.5:
	add	x8, x19, x28, lsl #5
	add	x2, x8, #8
	mov	x0, x24
	mov	x1, x23
	mov	x3, x22
	mov	x4, x20
	bl	_iwl_init_vht_hw_capab
LBB0_6:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	w24, w27, w8
	ldr	x8, [x23]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	w8, [x25]
	cbnz	w8, LBB0_9
; %bb.8:
	mov	x0, x26
	mov	x1, x22
	mov	x2, x20
	bl	_iwl_init_he_hw_capab
LBB0_9:
	cmp	w21, w24
	b.ne	LBB0_11
; %bb.10:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_11:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	mov	x2, x24
	mov	x3, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_IWL_ERR_DEV
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_iwl_cfg80211_rates,8,3         ; @iwl_cfg80211_rates
	.comm	_RATES_24_OFFS,8,3              ; @RATES_24_OFFS
	.comm	_N_RATES_24,4,2                 ; @N_RATES_24
	.comm	_iwlwifi_mod_params,8,2         ; @iwlwifi_mod_params
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_RATES_52_OFFS,8,3              ; @RATES_52_OFFS
	.comm	_N_RATES_52,4,2                 ; @N_RATES_52
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NVM: used only %d of %d channels\n"

	.no_dead_strip	_iwl_init_sbands
.subsections_via_symbols
