	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_cfg80211_ch_switch_notify ## -- Begin function ath6kl_cfg80211_ch_switch_notify
	.p2align	4, 0x90
_ath6kl_cfg80211_ch_switch_notify:      ## @ath6kl_cfg80211_ch_switch_notify
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	_ATH6KL_DBG_WLAN_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_ath6kl_dbg
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	callq	_ieee80211_get_channel
	movq	_WMI_11G_HT20@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_ath6kl_band_2ghz@GOTPCREL(%rip), %rdx
	cmpq	$0, (%rdx)
	movq	_NL80211_CHAN_NO_HT@GOTPCREL(%rip), %rdx
	movq	%rdx, %rsi
	je	LBB0_2
## %bb.1:
	movq	_NL80211_CHAN_HT20@GOTPCREL(%rip), %rsi
LBB0_2:
	cmpl	%r14d, %ecx
	cmoveq	%rsi, %rdx
	movl	(%rdx), %edx
	leaq	-32(%rbp), %r14
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_cfg80211_chandef_create
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %edi
	movq	%r14, %rsi
	callq	_cfg80211_ch_switch_notify
	movq	%rbx, %rdi
	callq	_mutex_unlock
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ATH6KL_DBG_WLAN_CFG,4,2        ## @ATH6KL_DBG_WLAN_CFG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"channel switch notify nw_type %d freq %d mode %d\n"

	.comm	_WMI_11G_HT20,4,2               ## @WMI_11G_HT20
	.comm	_ath6kl_band_2ghz,8,3           ## @ath6kl_band_2ghz
	.comm	_NL80211_CHAN_HT20,4,2          ## @NL80211_CHAN_HT20
	.comm	_NL80211_CHAN_NO_HT,4,2         ## @NL80211_CHAN_NO_HT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ath6kl_cfg80211_ch_switch_notify ; -- Begin function ath6kl_cfg80211_ch_switch_notify
	.p2align	2
_ath6kl_cfg80211_ch_switch_notify:      ; @ath6kl_cfg80211_ch_switch_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _ATH6KL_DBG_WLAN_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATH6KL_DBG_WLAN_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w2, [x21, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x20
	mov	x4, x19
	bl	_ath6kl_dbg
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	mov	x1, x20
	bl	_ieee80211_get_channel
	mov	x1, x0
Lloh5:
	adrp	x8, _WMI_11G_HT20@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WMI_11G_HT20@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ath6kl_band_2ghz@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ath6kl_band_2ghz@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, #0
	ccmp	w8, w19, #0, ne
Lloh11:
	adrp	x8, _NL80211_CHAN_HT20@GOTPAGE
Lloh12:
	ldr	x8, [x8, _NL80211_CHAN_HT20@GOTPAGEOFF]
Lloh13:
	adrp	x9, _NL80211_CHAN_NO_HT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NL80211_CHAN_NO_HT@GOTPAGEOFF]
	csel	x8, x8, x9, eq
	ldr	w2, [x8]
	add	x0, sp, #8
	bl	_cfg80211_chandef_create
	mov	x0, x21
	bl	_mutex_lock
	ldr	w0, [x21, #4]
	add	x1, sp, #8
	bl	_cfg80211_ch_switch_notify
	mov	x0, x21
	bl	_mutex_unlock
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ATH6KL_DBG_WLAN_CFG,4,2        ; @ATH6KL_DBG_WLAN_CFG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"channel switch notify nw_type %d freq %d mode %d\n"

	.comm	_WMI_11G_HT20,4,2               ; @WMI_11G_HT20
	.comm	_ath6kl_band_2ghz,8,3           ; @ath6kl_band_2ghz
	.comm	_NL80211_CHAN_HT20,4,2          ; @NL80211_CHAN_HT20
	.comm	_NL80211_CHAN_NO_HT,4,2         ; @NL80211_CHAN_NO_HT
.subsections_via_symbols
