	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_init_channel_map
_iwl_init_channel_map:                  ## @iwl_init_channel_map
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	$1, %r15d
	xorl	%r14d, %r14d
	movq	%rdi, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	incl	%r15d
	cmpl	$6, %r15d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_16
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	%r15d, %ecx
	leaq	-48(%rbp), %r8
	leaq	-56(%rbp), %r9
	callq	_iwl_init_band_reference
	cmpl	$0, -48(%rbp)
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	jle	LBB0_15
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, %r15d
	leaq	L_.str.1(%rip), %rcx
	leaq	L_.str.2(%rip), %rax
	cmoveq	%rax, %rcx
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	-64(%rbp), %rax
	movq	(%rax,%r15,8), %rdx
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rsi
	movq	-136(%rbp), %r8                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_IWL_DEBUG_EEPROM
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=2
	incq	%r15
	movslq	-48(%rbp), %rax
	cmpq	%rax, %r15
	jge	LBB0_15
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %r12
	movl	(%r12,%r15,8), %ecx
	movq	_EEPROM_CHANNEL_VALID@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	8(%r13), %r14
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movq	-64(%rbp), %rcx
	movq	(%rcx,%r15,8), %rdi
	leaq	(%rax,%rax,4), %rbx
	movq	%rdi, 8(%r14,%rbx,8)
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpl	$1, -84(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	(%rax), %rsi
	movq	%rsi, 24(%r14,%rbx,8)
	callq	_ieee80211_channel_to_frequency
	movl	%eax, 32(%r14,%rbx,8)
	movq	_IEEE80211_CHAN_NO_HT40@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leaq	(%r14,%rbx,8), %rcx
	addq	$16, %rcx
	movl	%eax, 16(%r14,%rbx,8)
	movl	(%r12,%r15,8), %edx
	movq	_EEPROM_CHANNEL_IBSS@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rcx)
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	_EEPROM_CHANNEL_ACTIVE@GOTPCREL(%rip), %rsi
	testl	%edx, (%rsi)
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_IEEE80211_CHAN_NO_IR@GOTPCREL(%rip), %rsi
	orl	(%rsi), %eax
	movl	%eax, (%rcx)
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=2
	leaq	(%r14,%rbx,8), %rsi
	addq	$8, %rsi
	movq	_EEPROM_CHANNEL_RADAR@GOTPCREL(%rip), %rdi
	testl	%edx, (%rdi)
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=2
	movq	_IEEE80211_CHAN_RADAR@GOTPCREL(%rip), %rdx
	orl	(%rdx), %eax
	movl	%eax, (%rcx)
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=2
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	-56(%rbp), %rax
	movl	4(%rax,%r15,8), %eax
	movl	%eax, (%r14,%rbx,8)
	movq	(%rsi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT_I
	movl	%eax, -128(%rbp)                ## 4-byte Spill
	movq	_IBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT_I
	movl	%eax, -124(%rbp)                ## 4-byte Spill
	movq	_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT_I
	movl	%eax, %r13d
	movq	_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT_I
	movl	%eax, %r12d
	movq	_WIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT_I
	movl	%eax, %r14d
	movq	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT_I
	movq	-56(%rbp), %rcx
	movl	(%rcx,%r15,8), %edx
	movq	_EEPROM_CHANNEL_IBSS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%edx, %esi
	movq	_EEPROM_CHANNEL_RADAR@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	andl	%edx, %edi
	leaq	L_.str.5(%rip), %r8
	movq	%r8, %rdi
	leaq	L_.str.4(%rip), %rbx
	cmoveq	%rbx, %rdi
	movl	4(%rcx,%r15,8), %ecx
	testl	%esi, %esi
	cmoveq	%r8, %rdi
	movl	%ecx, 40(%rsp)
	movl	%edx, 32(%rsp)
	movl	%eax, 24(%rsp)
	movl	%r14d, 16(%rsp)
	movl	%r12d, 8(%rsp)
	movl	%r13d, (%rsp)
	movq	%rdi, 48(%rsp)
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	-128(%rbp), %r8d                ## 4-byte Reload
	movl	-124(%rbp), %r9d                ## 4-byte Reload
	xorl	%eax, %eax
	callq	_IWL_DEBUG_EEPROM
	movq	-120(%rbp), %r13                ## 8-byte Reload
	jmp	LBB0_14
LBB0_16:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_iwl_eeprom_enhanced_txpower
	jmp	LBB0_21
LBB0_18:
	movl	$-128, (%r13)
	testl	%r14d, %r14d
	jle	LBB0_21
## %bb.19:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	shlq	$3, %rax
	leaq	(%rax,%rax,4), %r14
	movl	$-128, %eax
	xorl	%ebx, %ebx
	movq	_s8@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	8(%r13), %rcx
	movl	(%rcx,%rbx), %edx
	addl	%edx, %edx
	movl	%eax, %esi
	callq	_max_t
	movl	%eax, (%r13)
	addq	$40, %rbx
	cmpq	%rbx, %r14
	jne	LBB0_20
LBB0_21:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	40(%rax), %rcx
	movq	_EEPROM_REGULATORY_BAND_NO_HT40@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	jne	LBB0_23
## %bb.22:
	cmpq	%rcx, 48(%rax)
	je	LBB0_29
LBB0_23:
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	$6, %ecx
	callq	_iwl_init_band_reference
	cmpl	$0, -48(%rbp)
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	jle	LBB0_26
## %bb.24:
	movq	_NL80211_BAND_2GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	-120(%rbp), %r15                ## 8-byte Reload
	movl	-80(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movq	(%rax,%rbx), %r8
	movq	-56(%rbp), %r9
	addq	%rbx, %r9
	movq	_IEEE80211_CHAN_NO_HT40PLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_iwl_mod_ht40_chan_info
	movq	-64(%rbp), %rax
	movq	(%rax,%rbx), %r8
	addq	$4, %r8
	movq	-56(%rbp), %r9
	addq	%rbx, %r9
	movq	_IEEE80211_CHAN_NO_HT40MINUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_iwl_mod_ht40_chan_info
	incq	%r13
	movslq	-48(%rbp), %rax
	addq	$8, %rbx
	cmpq	%rax, %r13
	jl	LBB0_25
LBB0_26:
	leaq	-64(%rbp), %rax
	movq	%rax, (%rsp)
	leaq	-48(%rbp), %r8
	leaq	-56(%rbp), %r9
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	movl	$7, %ecx
	callq	_iwl_init_band_reference
	cmpl	$0, -48(%rbp)
	jle	LBB0_29
## %bb.27:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)                 ## 4-byte Spill
	xorl	%ebx, %ebx
	movq	-120(%rbp), %r13                ## 8-byte Reload
	movl	-80(%rbp), %r14d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	leaq	(,%rbx,8), %r15
	movq	(%rax,%rbx,8), %r8
	movq	-56(%rbp), %r9
	addq	%r15, %r9
	movq	_IEEE80211_CHAN_NO_HT40PLUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	-112(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_iwl_mod_ht40_chan_info
	movq	-64(%rbp), %rax
	movq	(%rax,%rbx,8), %r8
	addq	$4, %r8
	addq	-56(%rbp), %r15
	movq	_IEEE80211_CHAN_NO_HT40MINUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rsp)
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movq	%r15, %r9
	callq	_iwl_mod_ht40_chan_info
	incq	%rbx
	movslq	-48(%rbp), %rax
	cmpq	%rax, %rbx
	jl	LBB0_28
LBB0_29:
	movl	%r12d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EEPROM_CHANNEL_VALID,4,2       ## @EEPROM_CHANNEL_VALID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Ch. %d Flags %x [%sGHz] - No traffic\n"

L_.str.1:                               ## @.str.1
	.asciz	"5.2"

L_.str.2:                               ## @.str.2
	.asciz	"2.4"

	.comm	_NL80211_BAND_2GHZ,8,3          ## @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ## @NL80211_BAND_5GHZ
	.comm	_IEEE80211_CHAN_NO_HT40,4,2     ## @IEEE80211_CHAN_NO_HT40
	.comm	_EEPROM_CHANNEL_IBSS,4,2        ## @EEPROM_CHANNEL_IBSS
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ## @IEEE80211_CHAN_NO_IR
	.comm	_EEPROM_CHANNEL_ACTIVE,4,2      ## @EEPROM_CHANNEL_ACTIVE
	.comm	_EEPROM_CHANNEL_RADAR,4,2       ## @EEPROM_CHANNEL_RADAR
	.comm	_IEEE80211_CHAN_RADAR,4,2       ## @IEEE80211_CHAN_RADAR
L_.str.3:                               ## @.str.3
	.asciz	"Ch. %d [%sGHz] %s%s%s%s%s%s(0x%02x %ddBm): Ad-Hoc %ssupported\n"

	.comm	_VALID,4,2                      ## @VALID
	.comm	_IBSS,4,2                       ## @IBSS
	.comm	_ACTIVE,4,2                     ## @ACTIVE
	.comm	_RADAR,4,2                      ## @RADAR
	.comm	_WIDE,4,2                       ## @WIDE
	.comm	_DFS,4,2                        ## @DFS
L_.str.4:                               ## @.str.4
	.space	1

L_.str.5:                               ## @.str.5
	.asciz	"not "

	.comm	_s8,4,2                         ## @s8
	.comm	_EEPROM_REGULATORY_BAND_NO_HT40,8,3 ## @EEPROM_REGULATORY_BAND_NO_HT40
	.comm	_IEEE80211_CHAN_NO_HT40PLUS,4,2 ## @IEEE80211_CHAN_NO_HT40PLUS
	.comm	_IEEE80211_CHAN_NO_HT40MINUS,4,2 ## @IEEE80211_CHAN_NO_HT40MINUS
	.no_dead_strip	_iwl_init_channel_map
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_init_channel_map
_iwl_init_channel_map:                  ; @iwl_init_channel_map
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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
	stp	x3, x4, [sp, #80]               ; 16-byte Folded Spill
	mov	x27, x2
	stp	x1, x0, [sp, #96]               ; 16-byte Folded Spill
	mov	x22, x0
	mov	w20, #0
	mov	w25, #1
	mov	w28, #40
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w25, w25, #1
	cmp	w25, #6
	b.eq	LBB0_14
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	sub	x4, x29, #108
	sub	x5, x29, #96
	sub	x6, x29, #104
	ldp	x2, x0, [sp, #88]               ; 16-byte Folded Reload
	ldr	x1, [sp, #80]                   ; 8-byte Folded Reload
	mov	x3, x25
	bl	_iwl_init_band_reference
	ldur	w8, [x29, #-108]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x21, #0
	mov	x19, #0
	cmp	w25, #1
Lloh0:
	adrp	x8, l_.str.1@PAGE
Lloh1:
	add	x8, x8, l_.str.1@PAGEOFF
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
	csel	x8, x9, x8, eq
	str	x8, [sp, #120]                  ; 8-byte Folded Spill
	str	w25, [sp, #116]                 ; 4-byte Folded Spill
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldur	x9, [x29, #-104]
	ldr	x2, [x9, x21]
	ldr	x9, [sp, #120]                  ; 8-byte Folded Reload
	stp	x8, x9, [sp]
	mov	x0, x22
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_EEPROM
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x19, x19, #1
	ldursw	x8, [x29, #-108]
	add	x21, x21, #8
	cmp	x19, x8
	b.ge	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	x26, [x29, #-96]
	ldr	w8, [x26, x21]
Lloh6:
	adrp	x9, _EEPROM_CHANNEL_VALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EEPROM_CHANNEL_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x22, [x27, #8]
	ldur	x8, [x29, #-104]
	ldr	x0, [x8, x21]
	smaddl	x24, w20, w28, x22
	mov	x23, x24
	str	x0, [x23, #8]!
	cmp	w25, #1
Lloh9:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh11:
	adrp	x9, _NL80211_BAND_2GHZ@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NL80211_BAND_2GHZ@GOTPAGEOFF]
	csel	x8, x9, x8, eq
	ldr	x1, [x8]
	str	x1, [x24, #24]
	bl	_ieee80211_channel_to_frequency
	str	w0, [x24, #32]
Lloh13:
	adrp	x8, _IEEE80211_CHAN_NO_HT40@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IEEE80211_CHAN_NO_HT40@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x24, #16]!
Lloh16:
	adrp	x9, _EEPROM_CHANNEL_IBSS@GOTPAGE
Lloh17:
	ldr	x9, [x9, _EEPROM_CHANNEL_IBSS@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x9]
	ldr	w9, [x26, x21]
	tst	w10, w9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
Lloh19:
	adrp	x10, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh20:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
	orr	w8, w10, w8
	str	w8, [x24]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=2
Lloh22:
	adrp	x10, _EEPROM_CHANNEL_ACTIVE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _EEPROM_CHANNEL_ACTIVE@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
Lloh25:
	adrp	x10, _IEEE80211_CHAN_NO_IR@GOTPAGE
Lloh26:
	ldr	x10, [x10, _IEEE80211_CHAN_NO_IR@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x10]
	orr	w8, w8, w10
	str	w8, [x24]
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x25, x27
Lloh28:
	adrp	x10, _EEPROM_CHANNEL_RADAR@GOTPAGE
Lloh29:
	ldr	x10, [x10, _EEPROM_CHANNEL_RADAR@GOTPAGEOFF]
Lloh30:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=2
Lloh31:
	adrp	x9, _IEEE80211_CHAN_RADAR@GOTPAGE
Lloh32:
	ldr	x9, [x9, _IEEE80211_CHAN_RADAR@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x24]
LBB0_13:                                ;   in Loop: Header=BB0_6 Depth=2
	sxtw	x8, w20
	add	w20, w20, #1
	ldur	x9, [x29, #-96]
	add	x9, x9, x21
	ldr	w9, [x9, #4]
	mul	x8, x8, x28
	str	w9, [x22, x8]
	ldr	x28, [x23]
Lloh34:
	adrp	x8, _VALID@GOTPAGE
Lloh35:
	ldr	x8, [x8, _VALID@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT_I
	mov	x22, x0
Lloh37:
	adrp	x8, _IBSS@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IBSS@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT_I
	mov	x23, x0
Lloh40:
	adrp	x8, _ACTIVE@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ACTIVE@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT_I
	mov	x24, x0
Lloh43:
	adrp	x8, _RADAR@GOTPAGE
Lloh44:
	ldr	x8, [x8, _RADAR@GOTPAGEOFF]
Lloh45:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT_I
	mov	x26, x0
Lloh46:
	adrp	x8, _WIDE@GOTPAGE
Lloh47:
	ldr	x8, [x8, _WIDE@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT_I
	mov	x27, x0
Lloh49:
	adrp	x8, _DFS@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DFS@GOTPAGEOFF]
Lloh51:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT_I
                                        ; kill: def $w0 killed $w0 def $x0
	ldur	x8, [x29, #-96]
	add	x8, x8, x21
Lloh52:
	adrp	x9, _EEPROM_CHANNEL_IBSS@GOTPAGE
Lloh53:
	ldr	x9, [x9, _EEPROM_CHANNEL_IBSS@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	ldp	w10, w8, [x8]
	and	w9, w9, w10
Lloh55:
	adrp	x11, _EEPROM_CHANNEL_RADAR@GOTPAGE
Lloh56:
	ldr	x11, [x11, _EEPROM_CHANNEL_RADAR@GOTPAGEOFF]
Lloh57:
	ldr	w11, [x11]
	tst	w11, w10
	ccmp	w9, #0, #4, eq
Lloh58:
	adrp	x9, l_.str.5@PAGE
Lloh59:
	add	x9, x9, l_.str.5@PAGEOFF
Lloh60:
	adrp	x11, l_.str.4@PAGE
Lloh61:
	add	x11, x11, l_.str.4@PAGEOFF
	csel	x9, x11, x9, ne
	stp	x0, x10, [sp, #48]
	stp	x26, x27, [sp, #32]
	stp	x23, x24, [sp, #16]
	ldr	x10, [sp, #120]                 ; 8-byte Folded Reload
	stp	x10, x22, [sp]
	stp	x8, x9, [sp, #64]
	ldr	x22, [sp, #104]                 ; 8-byte Folded Reload
	mov	x0, x22
Lloh62:
	adrp	x1, l_.str.3@PAGE
Lloh63:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x28
	mov	w28, #40
	bl	_IWL_DEBUG_EEPROM
	mov	x27, x25
	ldr	w25, [sp, #116]                 ; 4-byte Folded Reload
	b	LBB0_5
LBB0_14:
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_16
; %bb.15:
	mov	x0, x22
	mov	x1, x27
	ldp	x2, x3, [sp, #80]               ; 16-byte Folded Reload
	mov	x4, x20
	bl	_iwl_eeprom_enhanced_txpower
	b	LBB0_19
LBB0_16:
	mov	w8, #-128
	str	w8, [x27]
	cmp	w20, #1
	b.lt	LBB0_19
; %bb.17:
	mov	x19, #0
	mov	w8, #40
	umull	x21, w20, w8
	mov	w1, #-128
Lloh64:
	adrp	x22, _s8@GOTPAGE
Lloh65:
	ldr	x22, [x22, _s8@GOTPAGEOFF]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	ldr	x8, [x27, #8]
	ldr	w8, [x8, x19]
	lsl	w2, w8, #1
	bl	_max_t
	mov	x1, x0
	str	w0, [x27]
	add	x19, x19, #40
	cmp	x21, x19
	b.ne	LBB0_18
LBB0_19:
	ldp	x8, x25, [sp, #96]              ; 16-byte Folded Reload
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x9, [x8, #40]
Lloh66:
	adrp	x10, _EEPROM_REGULATORY_BAND_NO_HT40@GOTPAGE
Lloh67:
	ldr	x10, [x10, _EEPROM_REGULATORY_BAND_NO_HT40@GOTPAGEOFF]
Lloh68:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_21
; %bb.20:
	ldr	x8, [x8, #48]
	cmp	x8, x9
	b.eq	LBB0_27
LBB0_21:
	sub	x4, x29, #108
	sub	x5, x29, #96
	sub	x6, x29, #104
	ldp	x2, x0, [sp, #88]               ; 16-byte Folded Reload
	ldr	x1, [sp, #80]                   ; 8-byte Folded Reload
	mov	w3, #6
	bl	_iwl_init_band_reference
	ldur	w8, [x29, #-108]
Lloh69:
	adrp	x19, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGE
Lloh70:
	ldr	x19, [x19, _IEEE80211_CHAN_NO_HT40PLUS@GOTPAGEOFF]
Lloh71:
	adrp	x21, _IEEE80211_CHAN_NO_HT40MINUS@GOTPAGE
Lloh72:
	ldr	x21, [x21, _IEEE80211_CHAN_NO_HT40MINUS@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_24
; %bb.22:
	mov	x23, #0
	mov	x24, #0
Lloh73:
	adrp	x8, _NL80211_BAND_2GHZ@GOTPAGE
Lloh74:
	ldr	x8, [x8, _NL80211_BAND_2GHZ@GOTPAGEOFF]
Lloh75:
	ldr	w22, [x8]
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-104]
	ldr	x4, [x8, x23]
	ldur	x8, [x29, #-96]
	add	x5, x8, x23
	ldr	w6, [x19]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x20
	mov	x3, x22
	bl	_iwl_mod_ht40_chan_info
	ldur	x8, [x29, #-104]
	ldr	x8, [x8, x23]
	add	x4, x8, #4
	ldur	x8, [x29, #-96]
	add	x5, x8, x23
	ldr	w6, [x21]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x20
	mov	x3, x22
	bl	_iwl_mod_ht40_chan_info
	add	x24, x24, #1
	ldursw	x8, [x29, #-108]
	add	x23, x23, #8
	cmp	x24, x8
	b.lt	LBB0_23
LBB0_24:
	sub	x4, x29, #108
	sub	x5, x29, #96
	sub	x6, x29, #104
	ldp	x2, x0, [sp, #88]               ; 16-byte Folded Reload
	ldr	x1, [sp, #80]                   ; 8-byte Folded Reload
	mov	w3, #7
	bl	_iwl_init_band_reference
	ldur	w8, [x29, #-108]
	cmp	w8, #1
	b.lt	LBB0_27
; %bb.25:
	mov	x23, #0
Lloh76:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh77:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh78:
	ldr	w22, [x8]
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	ldur	x8, [x29, #-104]
	lsl	x24, x23, #3
	ldr	x4, [x8, x24]
	ldur	x8, [x29, #-96]
	add	x5, x8, x24
	ldr	w6, [x19]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x20
	mov	x3, x22
	bl	_iwl_mod_ht40_chan_info
	ldur	x8, [x29, #-104]
	ldr	x8, [x8, x24]
	add	x4, x8, #4
	ldur	x8, [x29, #-96]
	add	x5, x8, x24
	ldr	w6, [x21]
	mov	x0, x25
	mov	x1, x27
	mov	x2, x20
	mov	x3, x22
	bl	_iwl_mod_ht40_chan_info
	add	x23, x23, #1
	ldursw	x8, [x29, #-108]
	cmp	x23, x8
	b.lt	LBB0_26
LBB0_27:
	mov	x0, x20
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpAdd	Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGot	Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.cfi_endproc
                                        ; -- End function
	.comm	_EEPROM_CHANNEL_VALID,4,2       ; @EEPROM_CHANNEL_VALID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Ch. %d Flags %x [%sGHz] - No traffic\n"

l_.str.1:                               ; @.str.1
	.asciz	"5.2"

l_.str.2:                               ; @.str.2
	.asciz	"2.4"

	.comm	_NL80211_BAND_2GHZ,8,3          ; @NL80211_BAND_2GHZ
	.comm	_NL80211_BAND_5GHZ,8,3          ; @NL80211_BAND_5GHZ
	.comm	_IEEE80211_CHAN_NO_HT40,4,2     ; @IEEE80211_CHAN_NO_HT40
	.comm	_EEPROM_CHANNEL_IBSS,4,2        ; @EEPROM_CHANNEL_IBSS
	.comm	_IEEE80211_CHAN_NO_IR,4,2       ; @IEEE80211_CHAN_NO_IR
	.comm	_EEPROM_CHANNEL_ACTIVE,4,2      ; @EEPROM_CHANNEL_ACTIVE
	.comm	_EEPROM_CHANNEL_RADAR,4,2       ; @EEPROM_CHANNEL_RADAR
	.comm	_IEEE80211_CHAN_RADAR,4,2       ; @IEEE80211_CHAN_RADAR
l_.str.3:                               ; @.str.3
	.asciz	"Ch. %d [%sGHz] %s%s%s%s%s%s(0x%02x %ddBm): Ad-Hoc %ssupported\n"

	.comm	_VALID,4,2                      ; @VALID
	.comm	_IBSS,4,2                       ; @IBSS
	.comm	_ACTIVE,4,2                     ; @ACTIVE
	.comm	_RADAR,4,2                      ; @RADAR
	.comm	_WIDE,4,2                       ; @WIDE
	.comm	_DFS,4,2                        ; @DFS
l_.str.4:                               ; @.str.4
	.space	1

l_.str.5:                               ; @.str.5
	.asciz	"not "

	.comm	_s8,4,2                         ; @s8
	.comm	_EEPROM_REGULATORY_BAND_NO_HT40,8,3 ; @EEPROM_REGULATORY_BAND_NO_HT40
	.comm	_IEEE80211_CHAN_NO_HT40PLUS,4,2 ; @IEEE80211_CHAN_NO_HT40PLUS
	.comm	_IEEE80211_CHAN_NO_HT40MINUS,4,2 ; @IEEE80211_CHAN_NO_HT40MINUS
	.no_dead_strip	_iwl_init_channel_map
.subsections_via_symbols
