	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_bt_coex_notif_handle
_iwl_mvm_bt_coex_notif_handle:          ## @iwl_mvm_bt_coex_notif_handle
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	16(%rdi), %rax
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movq	%rax, -80(%rbp)
	movq	%rdi, -72(%rbp)
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	(%rdi), %rax
	movq	_BT_FORCE_ANT_DIS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_17
## %bb.1:
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	12(%r15), %edi
	movq	_IEEE80211_IFACE_ITER_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_iwl_mvm_bt_notif_iterator@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-96(%rbp), %r14
	movq	%r14, %rcx
	callq	_ieee80211_iterate_active_interfaces_atomic
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_iwl_mvm_bt_coex_tcm_based_ci
	movq	-88(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.2:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_18
## %bb.3:
	movq	8(%rbx), %rax
	movq	_NL80211_CHAN_WIDTH_40@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_5
## %bb.4:
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_6
LBB0_5:
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %rdx
	setg	%cl
	incq	%rcx
LBB0_6:
	movq	_iwl_ci_mask@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%rax), %rax
	movq	(%rdx,%rax,8), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -40(%rbp)
	movq	-88(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -48(%rbp)
LBB0_7:
	movq	-96(%rbp), %rbx
	testq	%rbx, %rbx
	je	LBB0_13
## %bb.8:
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_9
LBB0_18:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	jmp	LBB0_17
LBB0_9:
	movq	8(%rbx), %rax
	movq	_NL80211_CHAN_WIDTH_40@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_11
## %bb.10:
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_11:
	movq	16(%rbx), %rdx
	movq	24(%rbx), %rax
	xorl	%ecx, %ecx
	cmpq	(%rax), %rdx
	setg	%cl
	incq	%rcx
LBB0_12:
	movq	_iwl_ci_mask@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	8(%rax), %rax
	movq	(%rdx,%rax,8), %rax
	movq	(%rax,%rcx,8), %rax
	movq	%rax, -56(%rbp)
	movq	-96(%rbp), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, -64(%rbp)
LBB0_13:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	leaq	8(%r15), %r14
	leaq	-64(%rbp), %rdi
	movq	%r14, %rsi
	movl	$32, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	_BT_COEX_CI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %r8
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$32, %ecx
	callq	_iwl_mvm_send_cmd_pdu
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_IWL_ERR
LBB0_16:
	leaq	-64(%rbp), %rsi
	movq	%r14, %rdi
	movl	$32, %edx
	callq	_memcpy
LBB0_17:
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_FORCE_ANT_DIS,8,3           ## @BT_FORCE_ANT_DIS
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ## @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_bt_notif_iterator,4,2  ## @iwl_mvm_bt_notif_iterator
	.comm	_NL80211_CHAN_WIDTH_40,8,3      ## @NL80211_CHAN_WIDTH_40
	.comm	_iwl_ci_mask,8,3                ## @iwl_ci_mask
	.comm	_BT_COEX_CI,4,2                 ## @BT_COEX_CI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send BT_CI cmd\n"

	.no_dead_strip	_iwl_mvm_bt_coex_notif_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_bt_coex_notif_handle
_iwl_mvm_bt_coex_notif_handle:          ; @iwl_mvm_bt_coex_notif_handle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x0
	add	x8, x0, #16
	stp	xzr, xzr, [sp, #32]
	stp	x8, x0, [sp, #48]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _BT_FORCE_ANT_DIS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BT_FORCE_ANT_DIS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_18
; %bb.1:
	bl	_rcu_read_lock
	ldr	w0, [x19, #12]
Lloh3:
	adrp	x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_IFACE_ITER_NORMAL@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _iwl_mvm_bt_notif_iterator@GOTPAGE
Lloh7:
	ldr	x8, [x8, _iwl_mvm_bt_notif_iterator@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x3, sp, #32
	bl	_ieee80211_iterate_active_interfaces_atomic
	add	x1, sp, #32
	mov	x0, x19
	bl	_iwl_mvm_bt_coex_tcm_based_ci
	ldr	x20, [sp, #40]
	cbz	x20, LBB0_7
; %bb.2:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x20, #8]
Lloh9:
	adrp	x9, _NL80211_CHAN_WIDTH_40@GOTPAGE
Lloh10:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_40@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_5
; %bb.4:
	mov	x9, #0
	ldr	x8, [x20, #24]
	b	LBB0_6
LBB0_5:
	ldp	x9, x8, [x20, #16]
	ldr	x10, [x8]
	cmp	x9, x10
	mov	w9, #1
	cinc	x9, x9, gt
LBB0_6:
Lloh12:
	adrp	x10, _iwl_ci_mask@GOTPAGE
Lloh13:
	ldr	x10, [x10, _iwl_ci_mask@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	ldr	x8, [x8, #8]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp, #24]
	ldr	x8, [sp, #40]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp, #16]
LBB0_7:
	ldr	x20, [sp, #32]
	cbz	x20, LBB0_14
; %bb.8:
	ldr	x8, [x20, #24]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_10
LBB0_9:
	bl	_rcu_read_unlock
	b	LBB0_18
LBB0_10:
	ldr	x8, [x20, #8]
Lloh15:
	adrp	x9, _NL80211_CHAN_WIDTH_40@GOTPAGE
Lloh16:
	ldr	x9, [x9, _NL80211_CHAN_WIDTH_40@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_12
; %bb.11:
	mov	x9, #0
	ldr	x8, [x20, #24]
	b	LBB0_13
LBB0_12:
	ldp	x9, x8, [x20, #16]
	ldr	x10, [x8]
	cmp	x9, x10
	mov	w9, #1
	cinc	x9, x9, gt
LBB0_13:
Lloh18:
	adrp	x10, _iwl_ci_mask@GOTPAGE
Lloh19:
	ldr	x10, [x10, _iwl_ci_mask@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x10]
	ldr	x8, [x8, #8]
	ldr	x8, [x10, x8, lsl #3]
	ldr	x8, [x8, x9, lsl #3]
	str	x8, [sp, #8]
	ldr	x8, [sp, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [sp]
LBB0_14:
	bl	_rcu_read_unlock
	add	x20, x19, #8
	mov	x0, sp
	mov	x1, x20
	mov	w2, #32
	bl	_memcmp
	cbz	x0, LBB0_18
; %bb.15:
Lloh21:
	adrp	x8, _BT_COEX_CI@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BT_COEX_CI@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x4, sp
	mov	x0, x19
	mov	w2, #0
	mov	w3, #32
	bl	_iwl_mvm_send_cmd_pdu
	cbz	x0, LBB0_17
; %bb.16:
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_ERR
LBB0_17:
	mov	x1, sp
	mov	x0, x20
	mov	w2, #32
	bl	_memcpy
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_FORCE_ANT_DIS,8,3           ; @BT_FORCE_ANT_DIS
	.comm	_IEEE80211_IFACE_ITER_NORMAL,4,2 ; @IEEE80211_IFACE_ITER_NORMAL
	.comm	_iwl_mvm_bt_notif_iterator,4,2  ; @iwl_mvm_bt_notif_iterator
	.comm	_NL80211_CHAN_WIDTH_40,8,3      ; @NL80211_CHAN_WIDTH_40
	.comm	_iwl_ci_mask,8,3                ; @iwl_ci_mask
	.comm	_BT_COEX_CI,4,2                 ; @BT_COEX_CI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send BT_CI cmd\n"

	.no_dead_strip	_iwl_mvm_bt_coex_notif_handle
.subsections_via_symbols
