	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mod_ht40_chan_info
_iwl_mod_ht40_chan_info:                ## @iwl_mod_ht40_chan_info
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	jle	LBB0_7
## %bb.1:
	movq	%r9, %r14
	movq	%r8, %rbx
	movq	(%rsi), %r13
	movl	%edx, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %r12
	cmpq	%r12, %rax
	je	LBB0_7
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%ecx, (%r13,%r12)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%rbx, 8(%r13,%r12)
	jne	LBB0_4
## %bb.5:
	movq	_NL80211_BAND_5GHZ@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movq	_IBSS@GOTPCREL(%rip), %rax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_WIDE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r14), %r10d
	movq	_EEPROM_CHANNEL_IBSS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r10d, %ecx
	movq	_EEPROM_CHANNEL_RADAR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%r10d, %edx
	leaq	L_.str.3(%rip), %r11
	leaq	L_.str.4(%rip), %rdx
	cmovneq	%rdx, %r11
	movl	4(%r14), %r15d
	testl	%ecx, %ecx
	cmoveq	%rdx, %r11
	leaq	L_.str(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r11
	pushq	%r15
	pushq	%r10
	pushq	%rax
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_IWL_DEBUG_EEPROM
	movl	16(%rbp), %ecx
	addq	$48, %rsp
	movq	_EEPROM_CHANNEL_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	notl	%ecx
	andl	%ecx, 16(%r13,%r12)
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"HT40 Ch. %d [%sGHz] %s%s%s%s%s(0x%02x %ddBm): Ad-Hoc %ssupported\n"

	.comm	_NL80211_BAND_5GHZ,4,2          ## @NL80211_BAND_5GHZ
L_.str.1:                               ## @.str.1
	.asciz	"5.2"

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

	.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
	.comm	_EEPROM_CHANNEL_IBSS,4,2        ## @EEPROM_CHANNEL_IBSS
	.comm	_EEPROM_CHANNEL_RADAR,4,2       ## @EEPROM_CHANNEL_RADAR
L_.str.3:                               ## @.str.3
	.space	1

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

	.comm	_EEPROM_CHANNEL_VALID,4,2       ## @EEPROM_CHANNEL_VALID
	.no_dead_strip	_iwl_mod_ht40_chan_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mod_ht40_chan_info
_iwl_mod_ht40_chan_info:                ; @iwl_mod_ht40_chan_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x0
	ldr	x9, [x1]
	mov	w8, w2
	add	x28, x9, #16
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x28, x28, #24
	subs	x8, x8, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w9, [x28, #-16]
	cmp	w9, w3
	b.ne	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x9, [x28, #-8]
	cmp	x9, x21
	b.ne	LBB0_2
; %bb.5:
Lloh0:
	adrp	x8, _NL80211_BAND_5GHZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_BAND_5GHZ@GOTPAGEOFF]
Lloh2:
	adrp	x9, l_.str.2@PAGE
Lloh3:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh4:
	adrp	x10, l_.str.1@PAGE
Lloh5:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh6:
	ldr	w8, [x8]
	cmp	w8, w3
	csel	x23, x10, x9, eq
Lloh7:
	adrp	x8, _IBSS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IBSS@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x24, x0
Lloh10:
	adrp	x8, _ACTIVE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ACTIVE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x25, x0
Lloh13:
	adrp	x8, _RADAR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _RADAR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x26, x0
Lloh16:
	adrp	x8, _WIDE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _WIDE@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x27, x0
Lloh19:
	adrp	x8, _DFS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DFS@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	ldp	w8, w9, [x20]
Lloh22:
	adrp	x10, _EEPROM_CHANNEL_IBSS@GOTPAGE
Lloh23:
	ldr	x10, [x10, _EEPROM_CHANNEL_IBSS@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
Lloh25:
	adrp	x11, _EEPROM_CHANNEL_RADAR@GOTPAGE
Lloh26:
	ldr	x11, [x11, _EEPROM_CHANNEL_RADAR@GOTPAGEOFF]
Lloh27:
	ldr	w11, [x11]
Lloh28:
	adrp	x12, l_.str.4@PAGE
Lloh29:
	add	x12, x12, l_.str.4@PAGEOFF
Lloh30:
	adrp	x13, l_.str.3@PAGE
Lloh31:
	add	x13, x13, l_.str.3@PAGEOFF
	tst	w11, w8
	csel	x11, x13, x12, eq
	tst	w10, w8
	csel	x10, x12, x11, eq
	stp	w8, w9, [sp, #4]
	str	w0, [sp]
	str	x10, [sp, #16]
Lloh32:
	adrp	x1, l_.str@PAGE
Lloh33:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	mov	x5, x25
	mov	x6, x26
	mov	x7, x27
	bl	_IWL_DEBUG_EEPROM
	ldr	w8, [x20]
Lloh34:
	adrp	x9, _EEPROM_CHANNEL_VALID@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EEPROM_CHANNEL_VALID@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w8, [x28]
	bic	w8, w8, w19
	str	w8, [x28]
LBB0_7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"HT40 Ch. %d [%sGHz] %s%s%s%s%s(0x%02x %ddBm): Ad-Hoc %ssupported\n"

	.comm	_NL80211_BAND_5GHZ,4,2          ; @NL80211_BAND_5GHZ
l_.str.1:                               ; @.str.1
	.asciz	"5.2"

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

	.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
	.comm	_EEPROM_CHANNEL_IBSS,4,2        ; @EEPROM_CHANNEL_IBSS
	.comm	_EEPROM_CHANNEL_RADAR,4,2       ; @EEPROM_CHANNEL_RADAR
l_.str.3:                               ; @.str.3
	.space	1

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

	.comm	_EEPROM_CHANNEL_VALID,4,2       ; @EEPROM_CHANNEL_VALID
	.no_dead_strip	_iwl_mod_ht40_chan_info
.subsections_via_symbols
