	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il_mod_ht40_chan_info
_il_mod_ht40_chan_info:                 ## @il_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %ebx
	movq	%rcx, %r15
	callq	_il_get_channel_info
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_il_is_channel_valid
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	20(%r12), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	callq	_il_is_channel_a_band
	testq	%rax, %rax
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %r13
	cmoveq	%rax, %r13
	movq	_IBSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_RADAR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
	movl	%eax, %r14d
	movq	_WIDE@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	_DFS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_CHECK_AND_PRINT
                                        ## kill: def $eax killed $eax def $rax
	movl	(%r15), %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), %rbx
	leaq	L_.str.4(%rip), %rdx
	cmovneq	%rdx, %rbx
	movl	4(%r15), %r11d
	testl	%ecx, %ecx
	cmoveq	%rdx, %rbx
	subq	$8, %rsp
	leaq	L_.str(%rip), %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	movq	%r13, %rdx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	%r14d, %r9d
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_D_EEPROM
	addq	$48, %rsp
	movq	(%r15), %rax
	movq	%rax, 12(%r12)
	movl	4(%r15), %eax
	movl	%eax, 8(%r12)
	movl	(%r15), %ecx
	movl	%ecx, (%r12)
	movq	_EEPROM_CHANNEL_VALID@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	testl	%ecx, (%rdx)
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	notl	%ecx
	andl	%ecx, 4(%r12)
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %eax
LBB0_4:
	addq	$24, %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"

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	_il_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 il_mod_ht40_chan_info
_il_mod_ht40_chan_info:                 ; @il_mod_ht40_chan_info
	.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	x19, x4
	mov	x20, x3
	bl	_il_get_channel_info
	mov	x21, x0
	bl	_il_is_channel_valid
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w22, [x21, #20]
	mov	x0, x21
	bl	_il_is_channel_a_band
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
	cmp	x0, #0
	csel	x23, x9, x8, eq
Lloh4:
	adrp	x8, _IBSS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IBSS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x24, x0
Lloh7:
	adrp	x8, _ACTIVE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ACTIVE@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x25, x0
Lloh10:
	adrp	x8, _RADAR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RADAR@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x26, x0
Lloh13:
	adrp	x8, _WIDE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WIDE@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x27, x0
Lloh16:
	adrp	x8, _DFS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DFS@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_CHECK_AND_PRINT
	mov	x7, x0
	ldp	w8, w9, [x20]
Lloh19:
	adrp	x10, _EEPROM_CHANNEL_IBSS@GOTPAGE
Lloh20:
	ldr	x10, [x10, _EEPROM_CHANNEL_IBSS@GOTPAGEOFF]
Lloh21:
	ldr	w10, [x10]
Lloh22:
	adrp	x11, _EEPROM_CHANNEL_RADAR@GOTPAGE
Lloh23:
	ldr	x11, [x11, _EEPROM_CHANNEL_RADAR@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
Lloh25:
	adrp	x12, l_.str.4@PAGE
Lloh26:
	add	x12, x12, l_.str.4@PAGEOFF
Lloh27:
	adrp	x13, l_.str.3@PAGE
Lloh28:
	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]
	str	x10, [sp, #8]
Lloh29:
	adrp	x0, l_.str@PAGE
Lloh30:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	mov	x6, x27
	bl	_D_EEPROM
	ldr	x8, [x20]
	stur	x8, [x21, #12]
	ldp	w9, w8, [x20]
	str	w8, [x21, #8]
	str	w9, [x21]
Lloh31:
	adrp	x8, _EEPROM_CHANNEL_VALID@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EEPROM_CHANNEL_VALID@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_4
; %bb.2:
	mov	w0, #0
	ldr	w8, [x21, #4]
	bic	w8, w8, w19
	str	w8, [x21, #4]
	b	LBB0_5
LBB0_3:
	mov	w0, #-1
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	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
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.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 AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.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"

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	_il_mod_ht40_chan_info
.subsections_via_symbols
