	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_mac_channel_switch
_iwlagn_mac_channel_switch:             ## @iwlagn_mac_channel_switch
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	callq	_IWL_MAC80211_GET_DVM
	movq	%rax, %rbx
	movq	%rax, %r13
	movq	(%r14), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	40(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_MAC80211
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%rbx, %rdi
	callq	_iwl_is_rfkill
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%rbx), %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_17
## %bb.2:
	movq	_STATUS_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_17
## %bb.3:
	movq	_STATUS_CHANNEL_SWITCH_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
LBB0_17:
	movq	%r13, %rdi
	callq	_mutex_unlock
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_DEBUG_MAC80211             ## TAILCALL
LBB0_4:
	leaq	(%r12,%r12,4), %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%rcx,8), %r12
	movq	%r12, %rdi
	callq	_iwl_is_associated_ctx
	testl	%eax, %eax
	je	LBB0_17
## %bb.5:
	movq	24(%r13), %rax
	cmpq	$0, (%rax)
	je	LBB0_17
## %bb.6:
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	32(%rax,%rcx,8), %edi
	callq	_le16_to_cpu
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	je	LBB0_17
## %bb.7:
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	addq	$32, %rbx
	movl	(%r15), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	callq	_cfg80211_get_chandef_type
                                        ## kill: def $eax killed $eax def $rax
	addl	$-128, %eax
	cmpl	$3, %eax
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	ja	LBB0_13
## %bb.8:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_9:
	movl	$0, 24(%r12,%rdx,8)
	movq	_IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r12,%rdx,8)
	jmp	LBB0_13
LBB0_11:
	movq	_IEEE80211_HT_PARAM_CHA_SEC_ABOVE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_10:
	movq	_IEEE80211_HT_PARAM_CHA_SEC_BELOW@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, 28(%r12,%rdx,8)
	movl	$1, 24(%r12,%rdx,8)
LBB0_13:
	movl	16(%r12,%rdx,8), %edi
	callq	_le16_to_cpu
	cmpq	%r15, %rax
	je	LBB0_15
## %bb.14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, 8(%r12,%rax,8)
LBB0_15:
	movq	%r13, %rdi
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	callq	_iwl_set_rxon_channel
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_iwl_set_rxon_ht
	movl	8(%r12), %edx
	movl	(%r15), %ecx
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_iwl_set_flags_for_band
	movq	_STATUS_CHANNEL_SWITCH_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_set_bit
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_cpu_to_le16
	movq	%rax, 8(%r13)
	movq	24(%r13), %rax
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*(%rax)
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	_STATUS_CHANNEL_SWITCH_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clear_bit
	movq	$0, 8(%r13)
	movl	(%r15), %edi
	xorl	%esi, %esi
	callq	_ieee80211_chswitch_done
	jmp	LBB0_17
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_11
	.long	L0_0_set_10
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ## @IWL_RXON_CTX_BSS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"enter\n"

	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
	.comm	_STATUS_SCANNING,4,2            ## @STATUS_SCANNING
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ## @STATUS_CHANNEL_SWITCH_PENDING
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_NONE,4,2 ## @IEEE80211_HT_PARAM_CHA_SEC_NONE
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_BELOW,4,2 ## @IEEE80211_HT_PARAM_CHA_SEC_BELOW
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_ABOVE,4,2 ## @IEEE80211_HT_PARAM_CHA_SEC_ABOVE
L_.str.1:                               ## @.str.1
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_channel_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_mac_channel_switch
_iwlagn_mac_channel_switch:             ; @iwlagn_mac_channel_switch
	.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	x20, x2
	mov	x25, x0
	bl	_IWL_MAC80211_GET_DVM
	mov	x19, x0
	ldr	x22, [x20]
	ldr	x28, [x0, #40]
Lloh0:
	adrp	x8, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_MAC80211
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	bl	_iwl_is_rfkill
	cbnz	x0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x8, _STATUS_EXIT_PENDING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STATUS_EXIT_PENDING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	add	x21, x19, #16
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x8, _STATUS_SCANNING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _STATUS_SCANNING@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x21
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x27, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGE
Lloh12:
	ldr	x27, [x27, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGEOFF]
	ldr	w0, [x27]
	mov	x1, x21
	bl	_test_bit
	cbz	x0, LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	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_DEBUG_MAC80211
LBB0_5:
	mov	w8, #40
	madd	x23, x26, x8, x28
	mov	x0, x23
	bl	_iwl_is_associated_ctx
	cbz	w0, LBB0_4
; %bb.6:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.7:
	ldr	x24, [x22]
	mov	w8, #40
	madd	x8, x26, x8, x28
	ldr	w0, [x8, #32]
	bl	_le16_to_cpu
	cmp	x0, x24
	b.eq	LBB0_4
; %bb.8:
	add	x9, x19, #32
	ldr	w8, [x25]
	mov	x25, x9
	str	w8, [x9]
	mov	x0, x20
	bl	_cfg80211_get_chandef_type
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_14
; %bb.9:
Lloh15:
	adrp	x9, lJTI0_0@PAGE
Lloh16:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_10
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_10:
	mov	w8, #40
	madd	x8, x26, x8, x28
	str	wzr, [x8, #24]
Lloh17:
	adrp	x9, _IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _IEEE80211_HT_PARAM_CHA_SEC_NONE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	str	w9, [x8, #28]
	b	LBB0_14
LBB0_11:
Lloh20:
	adrp	x8, _IEEE80211_HT_PARAM_CHA_SEC_ABOVE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IEEE80211_HT_PARAM_CHA_SEC_ABOVE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh22:
	adrp	x8, _IEEE80211_HT_PARAM_CHA_SEC_BELOW@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IEEE80211_HT_PARAM_CHA_SEC_BELOW@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	mov	w9, #40
	madd	x9, x26, x9, x28
	mov	w10, #1
	stp	w10, w8, [x9, #24]
LBB0_14:
	mov	w8, #40
	madd	x8, x26, x8, x28
	ldr	w0, [x8, #16]
	bl	_le16_to_cpu
	cmp	x0, x24
	b.eq	LBB0_16
; %bb.15:
	mov	w8, #40
	madd	x8, x26, x8, x28
	str	xzr, [x8, #8]
LBB0_16:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_iwl_set_rxon_channel
	mov	x0, x19
	mov	x1, x25
	bl	_iwl_set_rxon_ht
	ldr	w2, [x22, #8]
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x23
	bl	_iwl_set_flags_for_band
	ldr	w0, [x27]
	mov	x1, x21
	bl	_set_bit
	mov	x0, x24
	bl	_cpu_to_le16
	str	x0, [x19, #8]
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	mov	x0, x19
	mov	x1, x20
	blr	x8
	cbz	x0, LBB0_4
; %bb.17:
	ldr	w0, [x27]
	mov	x1, x21
	bl	_clear_bit
	str	xzr, [x19, #8]
	ldr	w0, [x23]
	mov	w1, #0
	bl	_ieee80211_chswitch_done
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_10)>>2
	.byte	(LBB0_11-LBB0_10)>>2
	.byte	(LBB0_12-LBB0_10)>>2
	.byte	(LBB0_10-LBB0_10)>>2
                                        ; -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ; @IWL_RXON_CTX_BSS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"enter\n"

	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
	.comm	_STATUS_SCANNING,4,2            ; @STATUS_SCANNING
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ; @STATUS_CHANNEL_SWITCH_PENDING
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_NONE,4,2 ; @IEEE80211_HT_PARAM_CHA_SEC_NONE
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_BELOW,4,2 ; @IEEE80211_HT_PARAM_CHA_SEC_BELOW
	.comm	_IEEE80211_HT_PARAM_CHA_SEC_ABOVE,4,2 ; @IEEE80211_HT_PARAM_CHA_SEC_ABOVE
l_.str.1:                               ; @.str.1
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_channel_switch
.subsections_via_symbols
