	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rdi, %r13
	movq	(%rdi), %rdi
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_iwl_init_channel_map
	movl	%eax, %r15d
	movq	8(%r12), %rbx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %rdi
	leaq	(%rax,%rax,2), %r14
	leaq	(%rbx,%r14,8), %rsi
	movq	%rax, (%rbx,%r14,8)
	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, 16(%rbx,%r14,8)
	movq	_N_RATES_24@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx,%r14,8)
	movq	(%rdi), %rcx
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_iwl_init_sband_channels
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r14,8), %rdx
	addq	$8, %rdx
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%r12), %r9d
	movl	4(%r12), %r8d
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_iwl_init_ht_hw_capab
	movq	8(%r12), %r13
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rax
	movq	%rcx, %rdx
	leaq	(%rax,%rax,2), %rbx
	leaq	(%r13,%rbx,8), %rsi
	movq	%rax, (%r13,%rbx,8)
	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, 16(%r13,%rbx,8)
	movq	_N_RATES_52@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r13,%rbx,8)
	movq	(%rdx), %rcx
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_iwl_init_sband_channels
	movq	%rax, %r14
	addl	-64(%rbp), %r14d                ## 4-byte Folded Reload
	leaq	8(,%rbx,8), %rdx
	addq	%r13, %rdx
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	(%r12), %r9d
	movl	4(%r12), %r8d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_iwl_init_ht_hw_capab
	cmpl	%r14d, %r15d
	jne	LBB0_2
## %bb.1:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	movl	%r15d, %ecx
	addq	$24, %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	_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	"EEPROM: 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:
	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	x21, x2
	mov	x22, x0
	ldr	x19, [x0]
	mov	x0, x19
	bl	_iwl_init_channel_map
	mov	x20, x0
Lloh0:
	adrp	x25, _NL80211_BAND_2GHZ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	ldr	x8, [x21, #8]
	ldr	x9, [x25]
	mov	w26, #24
	madd	x23, x9, x26, x8
Lloh2:
	adrp	x27, _iwl_cfg80211_rates@GOTPAGE
Lloh3:
	ldr	x27, [x27, _iwl_cfg80211_rates@GOTPAGEOFF]
	str	x9, [x23]
	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, [x23, #16]
Lloh7:
	adrp	x8, _N_RATES_24@GOTPAGE
Lloh8:
	ldr	x8, [x8, _N_RATES_24@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x23, #12]
	ldr	x3, [x25]
	mov	x0, x21
	mov	x1, x23
	mov	x2, x20
	bl	_iwl_init_sband_channels
	mov	x24, x0
	add	x2, x23, #8
	ldr	x3, [x25]
	ldp	w5, w4, [x21]
	mov	x0, x22
	mov	x1, x21
	bl	_iwl_init_ht_hw_capab
	ldr	x8, [x21, #8]
Lloh10:
	adrp	x28, _NL80211_BAND_5GHZ@GOTPAGE
Lloh11:
	ldr	x28, [x28, _NL80211_BAND_5GHZ@GOTPAGEOFF]
	ldr	x9, [x28]
	madd	x25, x9, x26, x8
	str	x9, [x25]
	ldr	x8, [x27]
Lloh12:
	adrp	x9, _RATES_52_OFFS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RATES_52_OFFS@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x8, x8, x9, lsl #2
	str	x8, [x25, #16]
Lloh15:
	adrp	x8, _N_RATES_52@GOTPAGE
Lloh16:
	ldr	x8, [x8, _N_RATES_52@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x25, #12]
	ldr	x3, [x28]
	mov	x0, x21
	mov	x1, x25
	mov	x2, x20
	bl	_iwl_init_sband_channels
	add	w23, w0, w24
	add	x2, x25, #8
	ldr	x3, [x28]
	ldp	w5, w4, [x21]
	mov	x0, x22
	mov	x1, x21
	bl	_iwl_init_ht_hw_capab
	cmp	w20, w23
	b.ne	LBB0_2
; %bb.1:
	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_2:
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	mov	x3, x20
	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
	b	_IWL_ERR_DEV
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.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	_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	"EEPROM: used only %d of %d channels\n"

	.no_dead_strip	_iwl_init_sbands
.subsections_via_symbols
