	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92c_bt_rssi_state_change    ## -- Begin function rtl92c_bt_rssi_state_change
	.p2align	4, 0x90
_rtl92c_bt_rssi_state_change:           ## @rtl92c_bt_rssi_state_change
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	_MAC80211_LINKED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_GET_UNDECORATED_AVERAGE_RSSI
	jmp	LBB0_2
LBB0_8:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_9
LBB0_2:
	xorl	%ecx, %ecx
	cmpq	$61, %rax
	jg	LBB0_10
## %bb.3:
	movq	_BT_RSSI_STATE_NORMAL_POWER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpq	$40, %rax
	jge	LBB0_10
## %bb.4:
	cmpq	$33, %rax
	jge	LBB0_5
## %bb.12:
	movq	_BT_RSSI_STATE_AMDPU_OFF@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movq	_BT_RSSI_STATE_SPECIAL_LOW@GOTPCREL(%rip), %rsi
	movl	%ecx, %edx
	orl	(%rsi), %edx
	cmpq	$14, %rax
	jg	LBB0_7
## %bb.13:
	movq	_BT_RSSI_STATE_BG_EDCA_LOW@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, %ecx
	jmp	LBB0_14
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	movq	_BT_RSSI_STATE_AMDPU_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %ecx
LBB0_11:
	movq	_BT_RSSI_STATE_SPECIAL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
LBB0_7:
	movq	_BT_RSSI_STATE_BG_EDCA_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	notl	%ecx
	andl	%edx, %ecx
LBB0_14:
	xorl	%eax, %eax
	cmpl	(%rbx), %ecx
	je	LBB0_16
## %bb.15:
	movl	%ecx, (%rbx)
	movl	$1, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	cmpq	$34, %rax
	ja	LBB0_11
## %bb.6:
	movq	_BT_RSSI_STATE_SPECIAL_LOW@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, %edx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_MAC80211_LINKED,8,3            ## @MAC80211_LINKED
	.comm	_BT_RSSI_STATE_NORMAL_POWER,4,2 ## @BT_RSSI_STATE_NORMAL_POWER
	.comm	_BT_RSSI_STATE_AMDPU_OFF,4,2    ## @BT_RSSI_STATE_AMDPU_OFF
	.comm	_BT_RSSI_STATE_SPECIAL_LOW,4,2  ## @BT_RSSI_STATE_SPECIAL_LOW
	.comm	_BT_RSSI_STATE_BG_EDCA_LOW,4,2  ## @BT_RSSI_STATE_BG_EDCA_LOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92c_bt_rssi_state_change    ; -- Begin function rtl92c_bt_rssi_state_change
	.p2align	2
_rtl92c_bt_rssi_state_change:           ; @rtl92c_bt_rssi_state_change
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_rtl_priv
	mov	x19, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _MAC80211_LINKED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAC80211_LINKED@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_GET_UNDECORATED_AVERAGE_RSSI
	b	LBB0_3
LBB0_2:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_8
LBB0_3:
	cmp	x0, #61
	b.gt	LBB0_8
; %bb.4:
Lloh3:
	adrp	x8, _BT_RSSI_STATE_NORMAL_POWER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_RSSI_STATE_NORMAL_POWER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	x0, #40
	b.ge	LBB0_9
; %bb.5:
	cmp	x0, #33
	b.ge	LBB0_16
; %bb.6:
Lloh6:
	adrp	x9, _BT_RSSI_STATE_AMDPU_OFF@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BT_RSSI_STATE_AMDPU_OFF@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _BT_RSSI_STATE_SPECIAL_LOW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BT_RSSI_STATE_SPECIAL_LOW@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
	cmp	x0, #14
	b.gt	LBB0_11
; %bb.7:
Lloh12:
	adrp	x9, _BT_RSSI_STATE_BG_EDCA_LOW@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BT_RSSI_STATE_BG_EDCA_LOW@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_12
LBB0_8:
	mov	w8, #0
LBB0_9:
Lloh15:
	adrp	x9, _BT_RSSI_STATE_AMDPU_OFF@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BT_RSSI_STATE_AMDPU_OFF@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_10:
Lloh18:
	adrp	x9, _BT_RSSI_STATE_SPECIAL_LOW@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BT_RSSI_STATE_SPECIAL_LOW@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_11:
Lloh21:
	adrp	x9, _BT_RSSI_STATE_BG_EDCA_LOW@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BT_RSSI_STATE_BG_EDCA_LOW@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_12:
	ldr	w9, [x19]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	str	w8, [x19]
	mov	w0, #1
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	cmp	x0, #34
	b.hi	LBB0_10
; %bb.17:
Lloh24:
	adrp	x9, _BT_RSSI_STATE_SPECIAL_LOW@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BT_RSSI_STATE_SPECIAL_LOW@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w9, w8
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_MAC80211_LINKED,8,3            ; @MAC80211_LINKED
	.comm	_BT_RSSI_STATE_NORMAL_POWER,4,2 ; @BT_RSSI_STATE_NORMAL_POWER
	.comm	_BT_RSSI_STATE_AMDPU_OFF,4,2    ; @BT_RSSI_STATE_AMDPU_OFF
	.comm	_BT_RSSI_STATE_SPECIAL_LOW,4,2  ; @BT_RSSI_STATE_SPECIAL_LOW
	.comm	_BT_RSSI_STATE_BG_EDCA_LOW,4,2  ; @BT_RSSI_STATE_BG_EDCA_LOW
.subsections_via_symbols
