	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_bt_rssi_event          ## -- Begin function iwl_mvm_bt_rssi_event
	.p2align	4, 0x90
_iwl_mvm_bt_rssi_event:                 ## @iwl_mvm_bt_rssi_event
	.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	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	%rax, %r14
	leaq	20(%rbx), %rdi
	callq	_lockdep_assert_held
	movq	(%rbx), %rax
	movq	_BT_FORCE_ANT_DIS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_7
## %bb.1:
	movq	(%r14), %rax
	movq	_IWL_MVM_INVALID_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.2:
	movl	16(%rbx), %edi
	callq	_le32_to_cpu
	movq	_BT_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_7
## %bb.3:
	movl	(%r15), %edx
	movq	_RSSI_EVENT_HIGH@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_IWL_DEBUG_COEX
	movq	_RSSI_EVENT_LOW@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpl	%r12d, (%rax)
	je	LBB0_6
## %bb.4:
	movq	8(%rbx), %rax
	cmpq	$0, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_iwl_get_coex_type
	movq	_BT_COEX_LOOSE_LUT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
LBB0_6:
	movq	(%r14), %rsi
	movq	%rbx, %rdi
	callq	_iwl_mvm_bt_coex_reduced_txp
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_IWL_ERR                        ## TAILCALL
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_FORCE_ANT_DIS,8,3           ## @BT_FORCE_ANT_DIS
	.comm	_IWL_MVM_INVALID_STA,8,3        ## @IWL_MVM_INVALID_STA
	.comm	_BT_OFF,8,3                     ## @BT_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RSSI for %pM is now %s\n"

	.comm	_RSSI_EVENT_HIGH,4,2            ## @RSSI_EVENT_HIGH
L_.str.1:                               ## @.str.1
	.asciz	"HIGH"

L_.str.2:                               ## @.str.2
	.asciz	"LOW"

	.comm	_RSSI_EVENT_LOW,4,2             ## @RSSI_EVENT_LOW
	.comm	_BT_COEX_LOOSE_LUT,8,3          ## @BT_COEX_LOOSE_LUT
L_.str.3:                               ## @.str.3
	.asciz	"couldn't send BT_CONFIG HCMD upon RSSI event\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwl_mvm_bt_rssi_event          ; -- Begin function iwl_mvm_bt_rssi_event
	.p2align	2
_iwl_mvm_bt_rssi_event:                 ; @iwl_mvm_bt_rssi_event
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_iwl_mvm_vif_from_mac80211
	mov	x20, x0
	add	x0, x19, #20
	bl	_lockdep_assert_held
	ldr	x8, [x19]
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_9
; %bb.1:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _IWL_MVM_INVALID_STA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IWL_MVM_INVALID_STA@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.2:
	ldr	w0, [x19, #16]
	bl	_le32_to_cpu
Lloh6:
	adrp	x8, _BT_OFF@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_OFF@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.3:
	ldr	w2, [x21]
Lloh9:
	adrp	x8, _RSSI_EVENT_HIGH@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RSSI_EVENT_HIGH@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, l_.str.2@PAGE
Lloh13:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh14:
	adrp	x10, l_.str.1@PAGE
Lloh15:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, w22
	csel	x3, x10, x9, eq
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_COEX
Lloh18:
	adrp	x8, _RSSI_EVENT_LOW@GOTPAGE
Lloh19:
	ldr	x8, [x8, _RSSI_EVENT_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cmp	w8, w22
	b.eq	LBB0_5
; %bb.4:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
LBB0_5:
	mov	w2, #0
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	mov	x1, x21
	bl	_iwl_get_coex_type
Lloh21:
	adrp	x8, _BT_COEX_LOOSE_LUT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BT_COEX_LOOSE_LUT@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w2, ne
LBB0_7:
	ldr	x1, [x20]
	mov	x0, x19
	bl	_iwl_mvm_bt_coex_reduced_txp
	cbz	w0, LBB0_9
; %bb.8:
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	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_ERR
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.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	_IWL_MVM_INVALID_STA,8,3        ; @IWL_MVM_INVALID_STA
	.comm	_BT_OFF,8,3                     ; @BT_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RSSI for %pM is now %s\n"

	.comm	_RSSI_EVENT_HIGH,4,2            ; @RSSI_EVENT_HIGH
l_.str.1:                               ; @.str.1
	.asciz	"HIGH"

l_.str.2:                               ; @.str.2
	.asciz	"LOW"

	.comm	_RSSI_EVENT_LOW,4,2             ; @RSSI_EVENT_LOW
	.comm	_BT_COEX_LOOSE_LUT,8,3          ; @BT_COEX_LOOSE_LUT
l_.str.3:                               ; @.str.3
	.asciz	"couldn't send BT_CONFIG HCMD upon RSSI event\n"

.subsections_via_symbols
