	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8723b2ant_run_coexist_mechanism
_btc8723b2ant_run_coexist_mechanism:    ## @btc8723b2ant_run_coexist_mechanism
	.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	%rdi, %r14
	movq	32(%rdi), %rbx
	movl	$0, -60(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	$0, -48(%rbp)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpq	$0, 16(%r14)
	je	LBB0_3
## %bb.1:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	movq	_coex_sta@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
LBB0_2:
	movq	%rbx, %rdi
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_5:
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_algorithm
	movq	(%r15), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_7
## %bb.6:
	cmpq	$129, %rax
	je	LBB0_7
## %bb.33:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_btc8723b2ant_action_bt_inquiry ## TAILCALL
LBB0_7:
	movq	%rax, %r15
	movq	_BTC_GET_BL_WIFI_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	_BTC_GET_BL_WIFI_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	_BTC_GET_BL_WIFI_ROAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	cmpl	$0, -56(%rbp)
	jne	LBB0_10
## %bb.8:
	cmpl	$0, -52(%rbp)
	jne	LBB0_10
## %bb.9:
	cmpl	$0, -48(%rbp)
	jne	LBB0_10
## %bb.11:
	movq	_BTC_GET_U4_WIFI_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	movl	-60(%rbp), %r9d
	cmpl	$131071, %r9d                   ## imm = 0x1FFFF
	jg	LBB0_13
## %bb.12:
	movq	_WIFI_P2P_GO_CONNECTED@GOTPCREL(%rip), %rax
	testl	%r9d, (%rax)
	je	LBB0_14
LBB0_13:
	movl	%r9d, %r8d
	sarl	$16, %r8d
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.5(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	xorl	%eax, %eax
	cmpq	$0, 24(%r14)
	setne	%al
	movl	%eax, -44(%rbp)
	movq	_BTC_SET_BL_MIRACAST_PLUS_BT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_wifi_multi_port
	jmp	LBB0_32
LBB0_10:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_wifi_link_process
LBB0_32:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movl	$0, -44(%rbp)
	movq	_BTC_SET_BL_MIRACAST_PLUS_BT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r15d, (%rax)
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.6(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_is_common_action
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.7(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$0, 4(%rax)
	jmp	LBB0_32
LBB0_16:
	movq	_coex_dm@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	(%rax), %r9d
	movl	8(%rax), %r8d
	cmpl	%r8d, %r9d
	je	LBB0_18
## %bb.17:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.8(%rip), %rcx
	movq	%rbx, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	(%r15), %rax
	movl	$0, 4(%rax)
	movl	(%rax), %r9d
LBB0_18:
	addl	$-128, %r9d
	cmpl	$9, %r9d
	ja	LBB0_30
## %bb.19:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r9,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_20:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.9(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_sco
	jmp	LBB0_31
LBB0_30:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.19(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_coex_alloff
	jmp	LBB0_31
LBB0_25:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.14(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_pan_hs
	jmp	LBB0_31
LBB0_27:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.16(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_pan_edr_hid
	jmp	LBB0_31
LBB0_26:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.15(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_pan_edr_a2dp
	jmp	LBB0_31
LBB0_24:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.13(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_pan_edr
	jmp	LBB0_31
LBB0_28:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.17(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_hid_a2dp_pan_edr
	jmp	LBB0_31
LBB0_29:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.18(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_hid_a2dp
	jmp	LBB0_31
LBB0_21:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.10(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_hid
	jmp	LBB0_31
LBB0_23:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.12(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_a2dp_pan_hs
	jmp	LBB0_31
LBB0_22:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.11(%rip), %rcx
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_btc8723b2ant_action_a2dp
LBB0_31:
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 8(%rax)
	jmp	LBB0_32
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_20
	.long	L0_0_set_25
	.long	L0_0_set_27
	.long	L0_0_set_26
	.long	L0_0_set_24
	.long	L0_0_set_28
	.long	L0_0_set_29
	.long	L0_0_set_21
	.long	L0_0_set_23
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.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], RunCoexistMechanism()===>\n"

L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Manual CTRL <===\n"

	.comm	_coex_sta,8,3                   ## @coex_sta
L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], wifi is under IPS !!!\n"

L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], BT is under inquiry/page scan !!\n"

	.comm	_BTC_GET_BL_WIFI_SCAN,4,2       ## @BTC_GET_BL_WIFI_SCAN
	.comm	_BTC_GET_BL_WIFI_LINK,4,2       ## @BTC_GET_BL_WIFI_LINK
	.comm	_BTC_GET_BL_WIFI_ROAM,4,2       ## @BTC_GET_BL_WIFI_ROAM
L_.str.4:                               ## @.str.4
	.asciz	"[BTCoex], WiFi is under Link Process !!\n"

	.comm	_BTC_GET_U4_WIFI_LINK_STATUS,4,2 ## @BTC_GET_U4_WIFI_LINK_STATUS
	.comm	_WIFI_P2P_GO_CONNECTED,4,2      ## @WIFI_P2P_GO_CONNECTED
L_.str.5:                               ## @.str.5
	.asciz	"############# [BTCoex],  Multi-Port num_of_wifi_link = %d, wifi_link_status = 0x%x\n"

	.comm	_BTC_SET_BL_MIRACAST_PLUS_BT,4,2 ## @BTC_SET_BL_MIRACAST_PLUS_BT
	.comm	_coex_dm,8,3                    ## @coex_dm
L_.str.6:                               ## @.str.6
	.asciz	"[BTCoex], Algorithm = %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"[BTCoex], Action 2-Ant common\n"

L_.str.8:                               ## @.str.8
	.asciz	"[BTCoex], preAlgorithm=%d, curAlgorithm=%d\n"

L_.str.9:                               ## @.str.9
	.asciz	"[BTCoex], Action 2-Ant, algorithm = SCO\n"

L_.str.10:                              ## @.str.10
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HID\n"

L_.str.11:                              ## @.str.11
	.asciz	"[BTCoex], Action 2-Ant, algorithm = A2DP\n"

L_.str.12:                              ## @.str.12
	.asciz	"[BTCoex], Action 2-Ant, algorithm = A2DP+PAN(HS)\n"

L_.str.13:                              ## @.str.13
	.asciz	"[BTCoex], Action 2-Ant, algorithm = PAN(EDR)\n"

L_.str.14:                              ## @.str.14
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HS mode\n"

L_.str.15:                              ## @.str.15
	.asciz	"[BTCoex], Action 2-Ant, algorithm = PAN+A2DP\n"

L_.str.16:                              ## @.str.16
	.asciz	"[BTCoex], Action 2-Ant, algorithm = PAN(EDR)+HID\n"

L_.str.17:                              ## @.str.17
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HID+A2DP+PAN\n"

L_.str.18:                              ## @.str.18
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HID+A2DP\n"

L_.str.19:                              ## @.str.19
	.asciz	"[BTCoex], Action 2-Ant, algorithm = coexist All Off!!\n"

	.no_dead_strip	_btc8723b2ant_run_coexist_mechanism
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function btc8723b2ant_run_coexist_mechanism
_btc8723b2ant_run_coexist_mechanism:    ; @btc8723b2ant_run_coexist_mechanism
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	ldr	x20, [x0, #32]
	stp	xzr, xzr, [sp, #32]
	str	wzr, [sp, #28]
Lloh0:
	adrp	x24, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x24, [x24, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh2:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh6:
	adrp	x3, l_.str.1@PAGE
Lloh7:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:
Lloh8:
	adrp	x22, _coex_sta@GOTPAGE
Lloh9:
	ldr	x22, [x22, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh10:
	adrp	x3, l_.str.2@PAGE
Lloh11:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_RT_TRACE
LBB0_5:
	mov	x0, x19
	bl	_btc8723b2ant_action_algorithm
	mov	x21, x0
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.6:
	cmp	x21, #129
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh12:
	adrp	x3, l_.str.3@PAGE
Lloh13:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_btc8723b2ant_action_bt_inquiry
LBB0_8:
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x9]
	add	x2, sp, #36
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
Lloh17:
	adrp	x9, _BTC_GET_BL_WIFI_LINK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_LINK@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	add	x2, sp, #32
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
	add	x2, sp, #28
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #36]
	cbnz	w8, LBB0_14
; %bb.9:
	ldr	w8, [sp, #32]
	cbnz	w8, LBB0_14
; %bb.10:
	ldr	w8, [sp, #28]
	cbnz	w8, LBB0_14
; %bb.11:
	ldr	x8, [x19, #8]
Lloh23:
	adrp	x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x9]
	add	x2, sp, #44
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #44]
	cmp	w8, #32, lsl #12                ; =131072
	b.ge	LBB0_13
; %bb.12:
Lloh26:
	adrp	x9, _WIFI_P2P_GO_CONNECTED@GOTPAGE
Lloh27:
	ldr	x9, [x9, _WIFI_P2P_GO_CONNECTED@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
LBB0_13:
	asr	w9, w8, #16
	ldr	w1, [x24]
	ldr	w2, [x23]
	stp	x9, x8, [sp]
Lloh29:
	adrp	x3, l_.str.5@PAGE
Lloh30:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w8, ne
	str	w8, [sp, #40]
	ldr	x8, [x19]
Lloh31:
	adrp	x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	add	x2, sp, #40
	mov	x0, x19
	blr	x8
	mov	x0, x19
	bl	_btc8723b2ant_action_wifi_multi_port
	b	LBB0_15
LBB0_14:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh34:
	adrp	x3, l_.str.4@PAGE
Lloh35:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_wifi_link_process
LBB0_15:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_16:
	str	wzr, [sp, #40]
	ldr	x8, [x19]
Lloh36:
	adrp	x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGE
Lloh37:
	ldr	x9, [x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	add	x2, sp, #40
	mov	x0, x19
	blr	x8
Lloh39:
	adrp	x22, _coex_dm@GOTPAGE
Lloh40:
	ldr	x22, [x22, _coex_dm@GOTPAGEOFF]
	ldr	x8, [x22]
	str	w21, [x8]
	ldr	w1, [x24]
	ldr	w2, [x23]
	str	x21, [sp]
Lloh41:
	adrp	x3, l_.str.6@PAGE
Lloh42:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_is_common_action
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh43:
	adrp	x3, l_.str.7@PAGE
Lloh44:
	add	x3, x3, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x22]
	str	wzr, [x8, #4]
	b	LBB0_15
LBB0_18:
	ldr	x9, [x22]
	ldr	w8, [x9]
	ldr	w9, [x9, #8]
	cmp	w8, w9
	b.eq	LBB0_20
; %bb.19:
	ldr	w1, [x24]
	ldr	w2, [x23]
	stp	x9, x8, [sp]
Lloh45:
	adrp	x3, l_.str.8@PAGE
Lloh46:
	add	x3, x3, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x22]
	str	wzr, [x8, #4]
	ldr	w8, [x8]
LBB0_20:
	sub	w8, w8, #128
	cmp	w8, #9
	b.hi	LBB0_23
; %bb.21:
Lloh47:
	adrp	x9, lJTI0_0@PAGE
Lloh48:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_22
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_22:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh49:
	adrp	x3, l_.str.9@PAGE
Lloh50:
	add	x3, x3, l_.str.9@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_sco
	b	LBB0_33
LBB0_23:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh51:
	adrp	x3, l_.str.19@PAGE
Lloh52:
	add	x3, x3, l_.str.19@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_coex_alloff
	b	LBB0_33
LBB0_24:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh53:
	adrp	x3, l_.str.14@PAGE
Lloh54:
	add	x3, x3, l_.str.14@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_pan_hs
	b	LBB0_33
LBB0_25:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh55:
	adrp	x3, l_.str.16@PAGE
Lloh56:
	add	x3, x3, l_.str.16@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_pan_edr_hid
	b	LBB0_33
LBB0_26:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh57:
	adrp	x3, l_.str.15@PAGE
Lloh58:
	add	x3, x3, l_.str.15@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_pan_edr_a2dp
	b	LBB0_33
LBB0_27:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh59:
	adrp	x3, l_.str.13@PAGE
Lloh60:
	add	x3, x3, l_.str.13@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_pan_edr
	b	LBB0_33
LBB0_28:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh61:
	adrp	x3, l_.str.17@PAGE
Lloh62:
	add	x3, x3, l_.str.17@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_hid_a2dp_pan_edr
	b	LBB0_33
LBB0_29:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh63:
	adrp	x3, l_.str.18@PAGE
Lloh64:
	add	x3, x3, l_.str.18@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_hid_a2dp
	b	LBB0_33
LBB0_30:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh65:
	adrp	x3, l_.str.10@PAGE
Lloh66:
	add	x3, x3, l_.str.10@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_hid
	b	LBB0_33
LBB0_31:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh67:
	adrp	x3, l_.str.12@PAGE
Lloh68:
	add	x3, x3, l_.str.12@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_a2dp_pan_hs
	b	LBB0_33
LBB0_32:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh69:
	adrp	x3, l_.str.11@PAGE
Lloh70:
	add	x3, x3, l_.str.11@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8723b2ant_action_a2dp
LBB0_33:
	ldr	x8, [x22]
	ldr	w9, [x8]
	str	w9, [x8, #8]
	b	LBB0_15
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.loh AdrpAdd	Lloh63, Lloh64
	.loh AdrpAdd	Lloh65, Lloh66
	.loh AdrpAdd	Lloh67, Lloh68
	.loh AdrpAdd	Lloh69, Lloh70
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_22-LBB0_22)>>2
	.byte	(LBB0_24-LBB0_22)>>2
	.byte	(LBB0_25-LBB0_22)>>2
	.byte	(LBB0_26-LBB0_22)>>2
	.byte	(LBB0_27-LBB0_22)>>2
	.byte	(LBB0_28-LBB0_22)>>2
	.byte	(LBB0_29-LBB0_22)>>2
	.byte	(LBB0_30-LBB0_22)>>2
	.byte	(LBB0_31-LBB0_22)>>2
	.byte	(LBB0_32-LBB0_22)>>2
                                        ; -- End function
	.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], RunCoexistMechanism()===>\n"

l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Manual CTRL <===\n"

	.comm	_coex_sta,8,3                   ; @coex_sta
l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], wifi is under IPS !!!\n"

l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], BT is under inquiry/page scan !!\n"

	.comm	_BTC_GET_BL_WIFI_SCAN,4,2       ; @BTC_GET_BL_WIFI_SCAN
	.comm	_BTC_GET_BL_WIFI_LINK,4,2       ; @BTC_GET_BL_WIFI_LINK
	.comm	_BTC_GET_BL_WIFI_ROAM,4,2       ; @BTC_GET_BL_WIFI_ROAM
l_.str.4:                               ; @.str.4
	.asciz	"[BTCoex], WiFi is under Link Process !!\n"

	.comm	_BTC_GET_U4_WIFI_LINK_STATUS,4,2 ; @BTC_GET_U4_WIFI_LINK_STATUS
	.comm	_WIFI_P2P_GO_CONNECTED,4,2      ; @WIFI_P2P_GO_CONNECTED
l_.str.5:                               ; @.str.5
	.asciz	"############# [BTCoex],  Multi-Port num_of_wifi_link = %d, wifi_link_status = 0x%x\n"

	.comm	_BTC_SET_BL_MIRACAST_PLUS_BT,4,2 ; @BTC_SET_BL_MIRACAST_PLUS_BT
	.comm	_coex_dm,8,3                    ; @coex_dm
l_.str.6:                               ; @.str.6
	.asciz	"[BTCoex], Algorithm = %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"[BTCoex], Action 2-Ant common\n"

l_.str.8:                               ; @.str.8
	.asciz	"[BTCoex], preAlgorithm=%d, curAlgorithm=%d\n"

l_.str.9:                               ; @.str.9
	.asciz	"[BTCoex], Action 2-Ant, algorithm = SCO\n"

l_.str.10:                              ; @.str.10
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HID\n"

l_.str.11:                              ; @.str.11
	.asciz	"[BTCoex], Action 2-Ant, algorithm = A2DP\n"

l_.str.12:                              ; @.str.12
	.asciz	"[BTCoex], Action 2-Ant, algorithm = A2DP+PAN(HS)\n"

l_.str.13:                              ; @.str.13
	.asciz	"[BTCoex], Action 2-Ant, algorithm = PAN(EDR)\n"

l_.str.14:                              ; @.str.14
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HS mode\n"

l_.str.15:                              ; @.str.15
	.asciz	"[BTCoex], Action 2-Ant, algorithm = PAN+A2DP\n"

l_.str.16:                              ; @.str.16
	.asciz	"[BTCoex], Action 2-Ant, algorithm = PAN(EDR)+HID\n"

l_.str.17:                              ; @.str.17
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HID+A2DP+PAN\n"

l_.str.18:                              ; @.str.18
	.asciz	"[BTCoex], Action 2-Ant, algorithm = HID+A2DP\n"

l_.str.19:                              ; @.str.19
	.asciz	"[BTCoex], Action 2-Ant, algorithm = coexist All Off!!\n"

	.no_dead_strip	_btc8723b2ant_run_coexist_mechanism
.subsections_via_symbols
