	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8192e2ant_wifi_rssi_state
_btc8192e2ant_wifi_rssi_state:          ## @btc8192e2ant_wifi_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$0, -44(%rbp)
	movq	_coex_sta@GOTPCREL(%rip), %r13
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%rsi,8), %rbx
	movq	_BTC_GET_S4_WIFI_RSSI@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	*(%rdi)
	cmpq	$2, %r12
	je	LBB0_3
## %bb.1:
	movq	%r13, %rax
	cmpq	$3, %r12
	jne	LBB0_2
## %bb.10:
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	cmpq	%r14, %r13
	movq	%rax, %rbx
	jbe	LBB0_12
## %bb.11:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_RT_TRACE
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rbx
	jmp	LBB0_24
LBB0_3:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rsi
	movq	_BTC_RSSI_STATE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_BTC_RSSI_STATE_STAY_LOW@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rbx
	movslq	-44(%rbp), %rdx
	cmpq	%rcx, %rsi
	je	LBB0_5
## %bb.4:
	cmpq	%rbx, %rsi
	je	LBB0_5
## %bb.7:
	cmpq	-56(%rbp), %rdx                 ## 8-byte Folded Reload
	jb	LBB0_9
## %bb.8:
	movq	_BTC_RSSI_STATE_STAY_HIGH@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_9:
	movq	%rcx, %rbx
	jmp	LBB0_23
LBB0_2:
	movq	(%rax), %rax
	movq	(%rax), %rax
	jmp	LBB0_23
LBB0_12:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdx
	movq	_BTC_RSSI_STATE_LOW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_BTC_RSSI_STATE_STAY_LOW@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
	cmpq	%rcx, %rdx
	je	LBB0_14
## %bb.13:
	cmpq	%rbx, %rdx
	je	LBB0_14
## %bb.16:
	movq	_BTC_RSSI_STATE_MEDIUM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rbx
	movq	_BTC_RSSI_STATE_STAY_MEDIUM@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movslq	-44(%rbp), %rdi
	cmpq	%rbx, %rdx
	je	LBB0_18
## %bb.17:
	cmpq	%rsi, %rdx
	je	LBB0_18
## %bb.20:
	cmpq	%r14, %rdi
	jb	LBB0_23
## %bb.21:
	movq	_BTC_RSSI_STATE_STAY_HIGH@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_5:
	movq	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPCREL(%rip), %rcx
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	addq	(%rcx), %r13
	cmpq	%rdx, %r13
	jbe	LBB0_6
	jmp	LBB0_23
LBB0_14:
	movslq	-44(%rbp), %rcx
	movq	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPCREL(%rip), %rdx
	addq	(%rdx), %r13
	cmpq	%rcx, %r13
	ja	LBB0_23
## %bb.15:
	movq	_BTC_RSSI_STATE_MEDIUM@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_18:
	movq	_BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPCREL(%rip), %rdx
	addq	(%rdx), %r14
	cmpq	%rdi, %r14
	jbe	LBB0_6
## %bb.19:
	cmpq	%r13, %rdi
	cmovbq	%rcx, %rsi
	movq	%rsi, %rbx
	jmp	LBB0_23
LBB0_6:
	movq	_BTC_RSSI_STATE_HIGH@GOTPCREL(%rip), %rcx
LBB0_22:
	movq	(%rcx), %rbx
LBB0_23:
	movq	%rbx, (%rax,%r15,8)
LBB0_24:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_GET_S4_WIFI_RSSI,4,2       ## @BTC_GET_S4_WIFI_RSSI
	.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,8,3 ## @BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT
	.comm	_BTC_RSSI_STATE_HIGH,8,3        ## @BTC_RSSI_STATE_HIGH
	.comm	_BTC_RSSI_STATE_STAY_HIGH,8,3   ## @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], wifi 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_wifi_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_wifi_rssi_state
_btc8192e2ant_wifi_rssi_state:          ; @btc8192e2ant_wifi_rssi_state
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x20, x3
	mov	x24, x2
	mov	x19, x1
Lloh0:
	adrp	x25, _coex_sta@GOTPAGE
Lloh1:
	ldr	x25, [x25, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	x21, [x8, x1, lsl #3]
	str	wzr, [sp, #12]
	ldp	x8, x23, [x0]
Lloh2:
	adrp	x9, _BTC_GET_S4_WIFI_RSSI@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BTC_GET_S4_WIFI_RSSI@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
	cmp	x24, #2
	b.eq	LBB0_4
; %bb.1:
	cmp	x24, #3
	b.ne	LBB0_6
; %bb.2:
	cmp	x20, x22
	b.ls	LBB0_7
; %bb.3:
Lloh5:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh6:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str@PAGE
Lloh12:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x23
	bl	_RT_TRACE
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	x21, [x8, x19, lsl #3]
	b	LBB0_12
LBB0_4:
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	x12, [x8, x19, lsl #3]
Lloh13:
	adrp	x9, _BTC_RSSI_STATE_LOW@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BTC_RSSI_STATE_LOW@GOTPAGEOFF]
Lloh15:
	ldr	x11, [x9]
Lloh16:
	adrp	x9, _BTC_RSSI_STATE_STAY_LOW@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BTC_RSSI_STATE_STAY_LOW@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x9]
	ldrsw	x9, [sp, #12]
	cmp	x12, x11
	ccmp	x12, x10, #4, ne
	b.ne	LBB0_10
; %bb.5:
Lloh19:
	adrp	x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGE
Lloh20:
	ldr	x11, [x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGEOFF]
Lloh21:
	ldr	x11, [x11]
Lloh22:
	adrp	x12, _BTC_RSSI_STATE_HIGH@GOTPAGE
Lloh23:
	ldr	x12, [x12, _BTC_RSSI_STATE_HIGH@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x25]
	ldr	x8, [x8]
	b	LBB0_11
LBB0_7:
	ldr	x8, [x25]
	ldr	x8, [x8]
	ldr	x11, [x8, x19, lsl #3]
Lloh24:
	adrp	x9, _BTC_RSSI_STATE_LOW@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BTC_RSSI_STATE_LOW@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
Lloh27:
	adrp	x10, _BTC_RSSI_STATE_STAY_LOW@GOTPAGE
Lloh28:
	ldr	x10, [x10, _BTC_RSSI_STATE_STAY_LOW@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x11, x9
	ccmp	x11, x10, #4, ne
	b.ne	LBB0_13
; %bb.8:
	ldrsw	x9, [sp, #12]
Lloh30:
	adrp	x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGE
Lloh31:
	ldr	x11, [x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGEOFF]
Lloh32:
	ldr	x11, [x11]
Lloh33:
	adrp	x12, _BTC_RSSI_STATE_MEDIUM@GOTPAGE
Lloh34:
	ldr	x12, [x12, _BTC_RSSI_STATE_MEDIUM@GOTPAGEOFF]
LBB0_9:
	ldr	x12, [x12]
	add	x11, x11, x20
	cmp	x11, x9
	csel	x21, x10, x12, hi
	b	LBB0_11
LBB0_10:
Lloh35:
	adrp	x10, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGE
Lloh36:
	ldr	x10, [x10, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x10]
	cmp	x9, x20
	csel	x21, x11, x10, lo
LBB0_11:
	str	x21, [x8, x19, lsl #3]
LBB0_12:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_13:
Lloh38:
	adrp	x10, _BTC_RSSI_STATE_MEDIUM@GOTPAGE
Lloh39:
	ldr	x10, [x10, _BTC_RSSI_STATE_MEDIUM@GOTPAGEOFF]
Lloh40:
	ldr	x13, [x10]
Lloh41:
	adrp	x10, _BTC_RSSI_STATE_STAY_MEDIUM@GOTPAGE
Lloh42:
	ldr	x10, [x10, _BTC_RSSI_STATE_STAY_MEDIUM@GOTPAGEOFF]
Lloh43:
	ldr	x12, [x10]
	ldrsw	x10, [sp, #12]
	cmp	x11, x13
	ccmp	x11, x12, #4, ne
	b.ne	LBB0_16
; %bb.14:
Lloh44:
	adrp	x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGE
Lloh45:
	ldr	x11, [x11, _BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT@GOTPAGEOFF]
Lloh46:
	ldr	x11, [x11]
	add	x11, x11, x22
	cmp	x11, x10
	b.ls	LBB0_17
; %bb.15:
	cmp	x10, x20
	csel	x21, x9, x12, lo
	b	LBB0_11
LBB0_16:
Lloh47:
	adrp	x9, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGE
Lloh48:
	ldr	x9, [x9, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x10, x22
	csel	x21, x13, x9, lo
	b	LBB0_11
LBB0_17:
Lloh50:
	adrp	x9, _BTC_RSSI_STATE_HIGH@GOTPAGE
Lloh51:
	ldr	x9, [x9, _BTC_RSSI_STATE_HIGH@GOTPAGEOFF]
Lloh52:
	ldr	x21, [x9]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_GET_S4_WIFI_RSSI,4,2       ; @BTC_GET_S4_WIFI_RSSI
	.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,8,3 ; @BTC_RSSI_COEX_THRESH_TOL_8192E_2ANT
	.comm	_BTC_RSSI_STATE_HIGH,8,3        ; @BTC_RSSI_STATE_HIGH
	.comm	_BTC_RSSI_STATE_STAY_HIGH,8,3   ; @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], wifi 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_wifi_rssi_state
.subsections_via_symbols
