	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_rx_csa
_iwlagn_rx_csa:                         ## @iwlagn_rx_csa
	.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
	movq	%rdi, %r12
	movq	%rsi, %rdi
	callq	_rxb_addr
	movq	(%rax), %rbx
	movq	16(%r12), %r14
	movq	_IWL_RXON_CTX_BSS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_STATUS_CHANNEL_SWITCH_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movq	(%rbx), %rdi
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	cmpq	(%r12), %rdi
	jne	LBB0_4
## %bb.3:
	shlq	$4, %r15
	leaq	(%r14,%r15), %rax
	addq	$8, %rax
	movq	%rdi, (%rax)
	movq	%rdi, (%r14,%r15)
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_11H
	movl	$1, %esi
	jmp	LBB0_5
LBB0_4:
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_IWL_ERR
	xorl	%esi, %esi
LBB0_5:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_iwl_chswitch_done              ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ## @IWL_RXON_CTX_BSS
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ## @STATUS_CHANNEL_SWITCH_PENDING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CSA notif: channel %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"CSA notif (fail) : channel %d\n"

	.no_dead_strip	_iwlagn_rx_csa
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwlagn_rx_csa
_iwlagn_rx_csa:                         ; @iwlagn_rx_csa
	.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, x0
	mov	x0, x1
	bl	_rxb_addr
	ldr	x22, [x0]
Lloh0:
	adrp	x8, _IWL_RXON_CTX_BSS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_RXON_CTX_BSS@GOTPAGEOFF]
	ldr	x20, [x19, #16]
Lloh2:
	ldr	x21, [x8]
Lloh3:
	adrp	x8, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STATUS_CHANNEL_SWITCH_PENDING@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_6
; %bb.1:
	ldr	w0, [x22, #8]
	bl	_le32_to_cpu
	mov	x8, x0
	ldr	x0, [x22]
	cbnz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.3:
	add	x8, x20, x21, lsl #4
	str	x0, [x8, #8]!
	lsl	x8, x21, #4
	str	x0, [x20, x8]
	bl	_le16_to_cpu
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_11H
	mov	w1, #1
	b	LBB0_5
LBB0_4:
	bl	_le16_to_cpu
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
	mov	w1, #0
LBB0_5:
	mov	x0, 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	_iwl_chswitch_done
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_RXON_CTX_BSS,8,3           ; @IWL_RXON_CTX_BSS
	.comm	_STATUS_CHANNEL_SWITCH_PENDING,4,2 ; @STATUS_CHANNEL_SWITCH_PENDING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CSA notif: channel %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"CSA notif (fail) : channel %d\n"

	.no_dead_strip	_iwlagn_rx_csa
.subsections_via_symbols
