	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8192e2ant_bt_rssi_state
_btc8192e2ant_bt_rssi_state:            ## @btc8192e2ant_bt_rssi_state
	.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
	movq	_coex_sta@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r8
	movl	(%r8), %eax
	movl	4(%r8), %r9d
	movslq	%eax, %r10
	cmpl	$3, %esi
	je	LBB0_8
## %bb.1:
	cmpl	$2, %esi
	jne	LBB0_23
## %bb.2:
	movq	_BTC_RSSI_STATE_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_BTC_RSSI_STATE_STAY_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r10, %rcx
	je	LBB0_4
## %bb.3:
	cmpq	%r10, %rax
	je	LBB0_4
## %bb.6:
	cmpl	%edx, %r9d
	jge	LBB0_21
## %bb.7:
	movl	%ecx, %eax
	jmp	LBB0_23
LBB0_8:
	cmpl	%ecx, %edx
	jle	LBB0_10
## %bb.9:
	movq	(%rdi), %rdi
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	callq	_RT_TRACE
	movq	(%rbx), %rax
	movl	(%rax), %eax
	jmp	LBB0_24
LBB0_4:
	movq	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	cmpl	%edx, %r9d
	jl	LBB0_23
LBB0_5:
	movq	_BTC_RSSI_STATE_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_10:
	movq	_BTC_RSSI_STATE_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_BTC_RSSI_STATE_STAY_LOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r10, %rsi
	je	LBB0_12
## %bb.11:
	cmpq	%r10, %rax
	je	LBB0_12
## %bb.14:
	movq	_BTC_RSSI_STATE_MEDIUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_BTC_RSSI_STATE_STAY_MEDIUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r10, %rdi
	je	LBB0_16
## %bb.15:
	cmpq	%r10, %rax
	je	LBB0_16
## %bb.19:
	cmpl	%ecx, %r9d
	jge	LBB0_21
## %bb.20:
	movl	%edi, %eax
	jmp	LBB0_23
LBB0_21:
	movq	_BTC_RSSI_STATE_STAY_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_22
LBB0_12:
	movq	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %edx
	cmpl	%edx, %r9d
	jl	LBB0_23
## %bb.13:
	movq	_BTC_RSSI_STATE_MEDIUM@GOTPCREL(%rip), %rax
LBB0_22:
	movl	(%rax), %eax
LBB0_23:
	movl	%eax, (%r8)
LBB0_24:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_16:
	movq	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPCREL(%rip), %rdi
	addl	(%rdi), %ecx
	cmpl	%ecx, %r9d
	jge	LBB0_5
## %bb.17:
	cmpl	%edx, %r9d
	jge	LBB0_23
## %bb.18:
	movl	%esi, %eax
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_RSSI_STATE_LOW,8,3         ## @BTC_RSSI_STATE_LOW
	.comm	_BTC_RSSI_STATE_STAY_LOW,8,3    ## @BTC_RSSI_STATE_STAY_LOW
	.comm	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT,4,2 ## @BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT
	.comm	_BTC_RSSI_STATE_HIGH,4,2        ## @BTC_RSSI_STATE_HIGH
	.comm	_BTC_RSSI_STATE_STAY_HIGH,4,2   ## @BTC_RSSI_STATE_STAY_HIGH
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BTCoex], BT Rssi thresh error!!\n"

	.comm	_BTC_RSSI_STATE_MEDIUM,8,3      ## @BTC_RSSI_STATE_MEDIUM
	.comm	_BTC_RSSI_STATE_STAY_MEDIUM,8,3 ## @BTC_RSSI_STATE_STAY_MEDIUM
	.no_dead_strip	_btc8192e2ant_bt_rssi_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8192e2ant_bt_rssi_state
_btc8192e2ant_bt_rssi_state:            ; @btc8192e2ant_bt_rssi_state
	.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
	mov	x8, x0
Lloh0:
	adrp	x19, _coex_sta@GOTPAGE
Lloh1:
	ldr	x19, [x19, _coex_sta@GOTPAGEOFF]
	ldr	x9, [x19]
	ldp	w0, w10, [x9]
	sxtw	x11, w0
	cmp	w1, #3
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #2
	b.ne	LBB0_19
; %bb.2:
Lloh2:
	adrp	x8, _BTC_RSSI_STATE_LOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BTC_RSSI_STATE_LOW@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x12, _BTC_RSSI_STATE_STAY_LOW@GOTPAGE
Lloh6:
	ldr	x12, [x12, _BTC_RSSI_STATE_STAY_LOW@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x12]
	cmp	x8, x11
	ccmp	x0, x11, #4, ne
	b.ne	LBB0_7
; %bb.3:
Lloh8:
	adrp	x8, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	add	w8, w8, w2
	cmp	w10, w8
	b.lt	LBB0_16
LBB0_4:
Lloh11:
	adrp	x8, _BTC_RSSI_STATE_HIGH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTC_RSSI_STATE_HIGH@GOTPAGEOFF]
	b	LBB0_18
LBB0_5:
	cmp	w2, w3
	b.le	LBB0_9
; %bb.6:
	ldr	x0, [x8]
Lloh13:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh18:
	ldr	w2, [x8]
Lloh19:
	adrp	x3, l_.str@PAGE
Lloh20:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	ldr	x8, [x19]
	ldr	w0, [x8]
	b	LBB0_20
LBB0_7:
	cmp	w10, w2
	b.ge	LBB0_17
; %bb.8:
	mov	x0, x8
	b	LBB0_19
LBB0_9:
Lloh21:
	adrp	x8, _BTC_RSSI_STATE_LOW@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTC_RSSI_STATE_LOW@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
Lloh24:
	adrp	x12, _BTC_RSSI_STATE_STAY_LOW@GOTPAGE
Lloh25:
	ldr	x12, [x12, _BTC_RSSI_STATE_STAY_LOW@GOTPAGEOFF]
Lloh26:
	ldr	x0, [x12]
	cmp	x8, x11
	ccmp	x0, x11, #4, ne
	b.ne	LBB0_12
; %bb.10:
Lloh27:
	adrp	x8, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	add	w8, w8, w2
	cmp	w10, w8
	b.lt	LBB0_16
; %bb.11:
Lloh30:
	adrp	x8, _BTC_RSSI_STATE_MEDIUM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _BTC_RSSI_STATE_MEDIUM@GOTPAGEOFF]
	b	LBB0_18
LBB0_12:
Lloh32:
	adrp	x12, _BTC_RSSI_STATE_MEDIUM@GOTPAGE
Lloh33:
	ldr	x12, [x12, _BTC_RSSI_STATE_MEDIUM@GOTPAGEOFF]
Lloh34:
	ldr	x0, [x12]
Lloh35:
	adrp	x12, _BTC_RSSI_STATE_STAY_MEDIUM@GOTPAGE
Lloh36:
	ldr	x12, [x12, _BTC_RSSI_STATE_STAY_MEDIUM@GOTPAGEOFF]
Lloh37:
	ldr	x12, [x12]
	cmp	x0, x11
	ccmp	x12, x11, #4, ne
	b.ne	LBB0_15
; %bb.13:
Lloh38:
	adrp	x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
	add	w11, w11, w3
	cmp	w10, w11
	b.ge	LBB0_4
; %bb.14:
	cmp	w10, w2
	csel	w0, w12, w8, ge
	b	LBB0_19
LBB0_15:
	cmp	w10, w3
	b.ge	LBB0_17
LBB0_16:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	b	LBB0_19
LBB0_17:
Lloh41:
	adrp	x8, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGEOFF]
LBB0_18:
	ldr	w0, [x8]
LBB0_19:
	str	w0, [x9]
LBB0_20:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_RSSI_STATE_LOW,8,3         ; @BTC_RSSI_STATE_LOW
	.comm	_BTC_RSSI_STATE_STAY_LOW,8,3    ; @BTC_RSSI_STATE_STAY_LOW
	.comm	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT,4,2 ; @BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT
	.comm	_BTC_RSSI_STATE_HIGH,4,2        ; @BTC_RSSI_STATE_HIGH
	.comm	_BTC_RSSI_STATE_STAY_HIGH,4,2   ; @BTC_RSSI_STATE_STAY_HIGH
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BTCoex], BT Rssi thresh error!!\n"

	.comm	_BTC_RSSI_STATE_MEDIUM,8,3      ; @BTC_RSSI_STATE_MEDIUM
	.comm	_BTC_RSSI_STATE_STAY_MEDIUM,8,3 ; @BTC_RSSI_STATE_STAY_MEDIUM
	.no_dead_strip	_btc8192e2ant_bt_rssi_state
.subsections_via_symbols
