	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_chswitch_done              ## -- Begin function iwl_chswitch_done
	.p2align	4, 0x90
_iwl_chswitch_done:                     ## @iwl_chswitch_done
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movq	_STATUS_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_STATUS_CHANNEL_SWITCH_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_and_clear_bit
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	(%r15,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.4:
	movl	%r14d, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_chswitch_done        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ## @IWL_RXON_CTX_BSS
	.comm	_STATUS_EXIT_PENDING,4,2        ## @STATUS_EXIT_PENDING
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ## @STATUS_CHANNEL_SWITCH_PENDING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_chswitch_done              ; -- Begin function iwl_chswitch_done
	.p2align	2
_iwl_chswitch_done:                     ; @iwl_chswitch_done
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x1
	mov	x20, x0
	ldr	x21, [x0, #8]
Lloh0:
	adrp	x8, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
Lloh3:
	adrp	x8, _STATUS_EXIT_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_EXIT_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cbz	x0, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x8, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_and_clear_bit
	cbz	w0, LBB0_1
; %bb.3:
	ldr	x0, [x21, x22, lsl #3]
	cbz	x0, LBB0_1
; %bb.4:
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ieee80211_chswitch_done
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ; @IWL_RXON_CTX_BSS
	.comm	_STATUS_EXIT_PENDING,4,2        ; @STATUS_EXIT_PENDING
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ; @STATUS_CHANNEL_SWITCH_PENDING
.subsections_via_symbols
