	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8192e2ant_action_sco
_btc8192e2ant_action_sco:               ## @btc8192e2ant_action_sco
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$2, %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	callq	_btc8192e2ant_wifi_rssi_state
	movq	%rax, %rbx
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_btc8192e2ant_switch_ss_type
	movl	(%r13), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$8, %r8d
	callq	_btc8192e2ant_limited_rx
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$6, %edx
	callq	_btc8192e2ant_fw_dac_swing_lvl
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$4, %edx
	callq	_btc8192e2ant_coex_table_with_type
	movq	%r14, %rdi
	movl	$3, %esi
	movl	$34, %edx
	movl	$42, %ecx
	callq	_btc8192e2ant_bt_rssi_state
	movq	_BTC_RSSI_STATE_LOW@GOTPCREL(%rip), %rcx
	movl	$13, %r12d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.1:
	movq	_BTC_RSSI_STATE_STAY_LOW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	_BTC_RSSI_STATE_MEDIUM@GOTPCREL(%rip), %rcx
	movl	$9, %r12d
	movl	$2, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.3:
	movq	_BTC_RSSI_STATE_STAY_MEDIUM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movq	_BTC_RSSI_STATE_HIGH@GOTPCREL(%rip), %rcx
	movl	$4, %r15d
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	_BTC_RSSI_STATE_STAY_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
LBB0_6:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_btc8192e2ant_dec_bt_pwr
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	movl	%r12d, %ecx
	callq	_btc8192e2ant_ps_tdma
LBB0_7:
	movq	_BTC_GET_U4_WIFI_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_WIFI_BW_HT40@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%esi, %esi
	cmpq	-48(%rbp), %rax
	sete	%sil
	movq	_BTC_RSSI_STATE_HIGH@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	sete	%al
	movq	_BTC_RSSI_STATE_STAY_HIGH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rbx
	sete	%bl
	orb	%al, %bl
	movq	%r14, %rdi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_btc8192e2ant_sw_mechanism1
	movzbl	%bl, %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$6, %r8d
	callq	_btc8192e2ant_sw_mechanism2
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_RSSI_STATE_STAY_LOW,8,3    ## @BTC_RSSI_STATE_STAY_LOW
	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_BTC_RSSI_STATE_LOW,8,3         ## @BTC_RSSI_STATE_LOW
	.comm	_BTC_RSSI_STATE_MEDIUM,8,3      ## @BTC_RSSI_STATE_MEDIUM
	.comm	_BTC_RSSI_STATE_STAY_MEDIUM,8,3 ## @BTC_RSSI_STATE_STAY_MEDIUM
	.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	_BTC_GET_U4_WIFI_BW,4,2         ## @BTC_GET_U4_WIFI_BW
	.comm	_BTC_WIFI_BW_HT40,8,3           ## @BTC_WIFI_BW_HT40
	.no_dead_strip	_btc8192e2ant_action_sco
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8192e2ant_action_sco
_btc8192e2ant_action_sco:               ; @btc8192e2ant_action_sco
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	w1, #0
	mov	w2, #2
	mov	w3, #15
	mov	w4, #0
	bl	_btc8192e2ant_wifi_rssi_state
	mov	x20, x0
Lloh0:
	adrp	x22, _NORMAL_EXEC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _NORMAL_EXEC@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	bl	_btc8192e2ant_switch_ss_type
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #8
	bl	_btc8192e2ant_limited_rx
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #6
	bl	_btc8192e2ant_fw_dac_swing_lvl
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #4
	bl	_btc8192e2ant_coex_table_with_type
	mov	x0, x19
	mov	w1, #3
	mov	w2, #34
	mov	w3, #42
	bl	_btc8192e2ant_bt_rssi_state
Lloh2:
	adrp	x8, _BTC_RSSI_STATE_LOW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BTC_RSSI_STATE_LOW@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _BTC_RSSI_STATE_STAY_LOW@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BTC_RSSI_STATE_STAY_LOW@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
Lloh8:
	adrp	x24, _BTC_RSSI_STATE_HIGH@GOTPAGE
Lloh9:
	ldr	x24, [x24, _BTC_RSSI_STATE_HIGH@GOTPAGEOFF]
Lloh10:
	adrp	x23, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGE
Lloh11:
	ldr	x23, [x23, _BTC_RSSI_STATE_STAY_HIGH@GOTPAGEOFF]
	b.ne	LBB0_2
; %bb.1:
	mov	w2, #0
	mov	w21, #13
	b	LBB0_4
LBB0_2:
Lloh12:
	adrp	x8, _BTC_RSSI_STATE_MEDIUM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTC_RSSI_STATE_MEDIUM@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
Lloh15:
	adrp	x9, _BTC_RSSI_STATE_STAY_MEDIUM@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BTC_RSSI_STATE_STAY_MEDIUM@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_6
; %bb.3:
	mov	w21, #9
	mov	w2, #2
LBB0_4:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_btc8192e2ant_dec_bt_pwr
	ldr	w1, [x22]
	mov	x0, x19
	mov	w2, #1
	mov	x3, x21
	bl	_btc8192e2ant_ps_tdma
LBB0_5:
	ldr	x8, [x19]
Lloh18:
	adrp	x9, _BTC_GET_U4_WIFI_BW@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_BW@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
Lloh21:
	adrp	x8, _BTC_WIFI_BW_HT40@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTC_WIFI_BW_HT40@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	cset	w1, eq
	ldr	x8, [x24]
	cmp	x20, x8
	ldr	x8, [x23]
	ccmp	x20, x8, #4, ne
	cset	w20, eq
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_btc8192e2ant_sw_mechanism1
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #6
	bl	_btc8192e2ant_sw_mechanism2
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	x8, [x24]
	mov	w21, #9
	mov	w2, #4
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.7:
	ldr	x8, [x23]
	cmp	x0, x8
	b.ne	LBB0_5
	b	LBB0_4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_RSSI_STATE_STAY_LOW,8,3    ; @BTC_RSSI_STATE_STAY_LOW
	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_BTC_RSSI_STATE_LOW,8,3         ; @BTC_RSSI_STATE_LOW
	.comm	_BTC_RSSI_STATE_MEDIUM,8,3      ; @BTC_RSSI_STATE_MEDIUM
	.comm	_BTC_RSSI_STATE_STAY_MEDIUM,8,3 ; @BTC_RSSI_STATE_STAY_MEDIUM
	.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	_BTC_GET_U4_WIFI_BW,4,2         ; @BTC_GET_U4_WIFI_BW
	.comm	_BTC_WIFI_BW_HT40,8,3           ; @BTC_WIFI_BW_HT40
	.no_dead_strip	_btc8192e2ant_action_sco
.subsections_via_symbols
