	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc8723b1ant_run_coexist_mechanism
_halbtc8723b1ant_run_coexist_mechanism: ## @halbtc8723b1ant_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	$56, %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	56(%rdi), %rbx
	movl	$0, -48(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -72(%rbp)
	movl	$0, -68(%rbp)
	movl	$0, -44(%rbp)
	movq	_BTC_IOT_PEER_UNKNOWN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -88(%rbp)
	movl	$0, -64(%rbp)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	cmpq	$0, 24(%r14)
	je	LBB0_3
## %bb.1:
	movl	(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.4:
	movl	(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_2
LBB0_5:
	movq	_coex_sta@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.6:
	movl	(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rcx
LBB0_2:
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_7:
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.48:
	movl	(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_halbtc8723b1ant_action_bt_whck_test ## TAILCALL
LBB0_8:
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_BT_8723B_1ANT_BT_STATUS_ACL_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	movq	_BT_8723B_1ANT_BT_STATUS_SCO_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
LBB0_11:
	movl	$1, -68(%rbp)
LBB0_12:
	movq	_BTC_SET_BL_INC_SCAN_DEV_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	movq	_BTC_GET_BL_WIFI_CONNECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_BL_WIFI_BUSY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_U4_WIFI_LINK_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movl	-64(%rbp), %eax
	cmpl	$131071, %eax                   ## imm = 0x1FFFF
	jg	LBB0_14
## %bb.13:
	movq	_WIFI_P2P_GO_CONNECTED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_22
LBB0_14:
	cmpq	$0, 40(%r14)
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	je	LBB0_16
## %bb.15:
	movl	$1, %ebx
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	jmp	LBB0_17
LBB0_16:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
LBB0_17:
	callq	_halbtc8723b1ant_limited_tx
	movl	%ebx, -44(%rbp)
	movq	_BTC_SET_BL_MIRACAST_PLUS_BT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	*8(%r14)
	movl	(%r15), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$5, %r8d
	callq	_halbtc8723b1ant_limited_rx
	cmpq	$0, 48(%r14)
	jne	LBB0_19
## %bb.18:
	cmpl	$0, -72(%rbp)
	je	LBB0_21
LBB0_19:
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	jne	LBB0_20
LBB0_21:
	movq	%r14, %rdi
	callq	_halbtc8723b1ant_action_wifi_multiport
	jmp	LBB0_47
LBB0_22:
	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	*8(%r14)
	movq	_BTC_GET_U4_WIFI_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	cmpq	$0, 40(%r14)
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	je	LBB0_34
## %bb.23:
	cmpl	$0, -48(%rbp)
	je	LBB0_34
## %bb.24:
	movq	%r14, %rdi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_halbtc8723b1ant_limited_tx
	movq	_BTC_GET_U1_IOT_PEER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	-88(%rbp), %rax
	movq	_BTC_IOT_PEER_CISCO@GOTPCREL(%rip), %rcx
	movl	32(%r14), %edx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.25:
	movq	_BTC_IOT_PEER_BROADCOM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_29
## %bb.26:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	jmp	LBB0_27
LBB0_34:
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_halbtc8723b1ant_limited_tx
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$5, %r8d
	callq	_halbtc8723b1ant_limited_rx
	xorl	%esi, %esi
	jmp	LBB0_35
LBB0_29:
	testl	%edx, %edx
	je	LBB0_31
## %bb.30:
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
LBB0_27:
	xorl	%ecx, %ecx
	movl	$5, %r8d
LBB0_28:
	callq	_halbtc8723b1ant_limited_rx
	movl	$1, %esi
LBB0_35:
	movq	%r14, %rdi
	callq	_halbtc8723b1ant_sw_mechanism
	movq	_BTC_GET_BL_HS_OPERATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-76(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_36
LBB0_20:
	movq	%r14, %rdi
	callq	_halbtc8723b1ant_action_bt_inquiry
LBB0_47:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_36:
	cmpl	$0, -76(%rbp)
	je	LBB0_38
## %bb.37:
	movq	%r14, %rdi
	callq	_halbtc8723b1ant_action_hs
	jmp	LBB0_47
LBB0_38:
	cmpl	$0, -48(%rbp)
	je	LBB0_39
## %bb.46:
	movq	%r14, %rdi
	callq	_halbtc8723b1ant_action_wifi_connected
	jmp	LBB0_47
LBB0_31:
	movl	-80(%rbp), %eax
	movq	_BTC_WIFI_BW_HT40@GOTPCREL(%rip), %rcx
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	cmpl	(%rcx), %eax
	jne	LBB0_33
## %bb.32:
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$16, %r8d
	jmp	LBB0_28
LBB0_39:
	movl	$0, -60(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movl	(%r15), %esi
	movl	(%r13), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	_BTC_GET_BL_WIFI_SCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_BL_WIFI_LINK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movq	_BTC_GET_BL_WIFI_ROAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%r14)
	movl	-60(%rbp), %eax
	testl	%eax, %eax
	jne	LBB0_42
## %bb.40:
	cmpl	$0, -56(%rbp)
	jne	LBB0_42
## %bb.41:
	cmpl	$0, -52(%rbp)
	jne	LBB0_42
## %bb.45:
	movq	%r14, %rdi
	callq	_btc8723b1ant_action_wifi_not_conn
	jmp	LBB0_47
LBB0_33:
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	movl	$8, %r8d
	jmp	LBB0_28
LBB0_42:
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_44
## %bb.43:
	callq	_btc8723b1ant_action_wifi_not_conn_scan
	jmp	LBB0_47
LBB0_44:
	callq	_btc8723b1ant_act_wifi_not_conn_asso_auth
	jmp	LBB0_47
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_IOT_PEER_UNKNOWN,8,3       ## @BTC_IOT_PEER_UNKNOWN
	.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"

L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Stop Coex DM <===\n"

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

	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_BUSY,8,3 ## @BT_8723B_1ANT_BT_STATUS_ACL_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_SCO_BUSY,8,3 ## @BT_8723B_1ANT_BT_STATUS_SCO_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY,8,3 ## @BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY
	.comm	_BTC_SET_BL_INC_SCAN_DEV_NUM,4,2 ## @BTC_SET_BL_INC_SCAN_DEV_NUM
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ## @BTC_GET_BL_WIFI_CONNECTED
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ## @BTC_GET_BL_WIFI_BUSY
	.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
	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_BTC_SET_BL_MIRACAST_PLUS_BT,4,2 ## @BTC_SET_BL_MIRACAST_PLUS_BT
	.comm	_BTC_GET_U4_WIFI_BW,4,2         ## @BTC_GET_U4_WIFI_BW
	.comm	_BTC_GET_U1_IOT_PEER,4,2        ## @BTC_GET_U1_IOT_PEER
	.comm	_BTC_IOT_PEER_CISCO,8,3         ## @BTC_IOT_PEER_CISCO
	.comm	_BTC_IOT_PEER_BROADCOM,8,3      ## @BTC_IOT_PEER_BROADCOM
	.comm	_BTC_WIFI_BW_HT40,4,2           ## @BTC_WIFI_BW_HT40
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ## @BTC_GET_BL_HS_OPERATION
L_.str.4:                               ## @.str.4
	.asciz	"[BTCoex], wifi is non connected-idle !!!\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
	.no_dead_strip	_halbtc8723b1ant_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 halbtc8723b1ant_run_coexist_mechanism
_halbtc8723b1ant_run_coexist_mechanism: ; @halbtc8723b1ant_run_coexist_mechanism
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, #56]
	stur	wzr, [x29, #-52]
	str	wzr, [sp, #56]
	str	xzr, [sp, #48]
	str	wzr, [sp, #44]
Lloh0:
	adrp	x8, _BTC_IOT_PEER_UNKNOWN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BTC_IOT_PEER_UNKNOWN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #32]
	str	wzr, [sp, #28]
Lloh3:
	adrp	x24, _COMP_BT_COEXIST@GOTPAGE
Lloh4:
	ldr	x24, [x24, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh5:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh11:
	adrp	x3, l_.str.2@PAGE
Lloh12:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh13:
	adrp	x22, _coex_sta@GOTPAGE
Lloh14:
	ldr	x22, [x22, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x8, #16]
	cbz	x9, LBB0_7
; %bb.5:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh15:
	adrp	x3, l_.str.3@PAGE
Lloh16:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_RT_TRACE
LBB0_7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh17:
	adrp	x3, l_.str.3@PAGE
Lloh18:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_halbtc8723b1ant_action_bt_whck_test
LBB0_9:
Lloh19:
	adrp	x8, _coex_dm@GOTPAGE
Lloh20:
	ldr	x8, [x8, _coex_dm@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _BT_8723B_1ANT_BT_STATUS_ACL_BUSY@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BT_8723B_1ANT_BT_STATUS_ACL_BUSY@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
Lloh25:
	adrp	x9, _BT_8723B_1ANT_BT_STATUS_SCO_BUSY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BT_8723B_1ANT_BT_STATUS_SCO_BUSY@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.11:
Lloh28:
	adrp	x9, _BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
LBB0_12:
	mov	w8, #1
	str	w8, [sp, #48]
LBB0_13:
	ldr	x8, [x19, #8]
Lloh31:
	adrp	x9, _BTC_SET_BL_INC_SCAN_DEV_NUM@GOTPAGE
Lloh32:
	ldr	x9, [x9, _BTC_SET_BL_INC_SCAN_DEV_NUM@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x9]
	add	x2, sp, #48
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh34:
	adrp	x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGE
Lloh35:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_CONNECTED@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x9]
	sub	x2, x29, #52
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh37:
	adrp	x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGE
Lloh38:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_BUSY@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x9]
	add	x2, sp, #52
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh40:
	adrp	x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGE
Lloh41:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_LINK_STATUS@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x9]
	add	x2, sp, #28
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #28]
	cmp	w8, #32, lsl #12                ; =131072
	b.ge	LBB0_15
; %bb.14:
Lloh43:
	adrp	x9, _WIFI_P2P_GO_CONNECTED@GOTPAGE
Lloh44:
	ldr	x9, [x9, _WIFI_P2P_GO_CONNECTED@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_22
LBB0_15:
	ldr	x8, [x19, #40]
Lloh46:
	adrp	x20, _NORMAL_EXEC@GOTPAGE
Lloh47:
	ldr	x20, [x20, _NORMAL_EXEC@GOTPAGEOFF]
	ldr	w1, [x20]
	cbz	x8, LBB0_17
; %bb.16:
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	bl	_halbtc8723b1ant_limited_tx
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_halbtc8723b1ant_limited_tx
	mov	w21, #0
LBB0_18:
	str	w21, [sp, #44]
	ldr	x8, [x19, #8]
Lloh48:
	adrp	x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGE
Lloh49:
	ldr	x9, [x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGEOFF]
Lloh50:
	ldr	w1, [x9]
	add	x2, sp, #44
	mov	x0, x19
	blr	x8
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #5
	bl	_halbtc8723b1ant_limited_rx
	ldr	x8, [x19, #48]
	cbnz	x8, LBB0_20
; %bb.19:
	ldr	w8, [sp, #52]
	cbz	w8, LBB0_21
LBB0_20:
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbnz	x8, LBB0_35
LBB0_21:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_wifi_multiport
	b	LBB0_36
LBB0_22:
	str	wzr, [sp, #44]
	ldr	x8, [x19, #8]
Lloh51:
	adrp	x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGE
Lloh52:
	ldr	x9, [x9, _BTC_SET_BL_MIRACAST_PLUS_BT@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x9]
	add	x2, sp, #44
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh54:
	adrp	x9, _BTC_GET_U4_WIFI_BW@GOTPAGE
Lloh55:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_BW@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	ldr	x8, [x19, #40]
Lloh57:
	adrp	x21, _NORMAL_EXEC@GOTPAGE
Lloh58:
	ldr	x21, [x21, _NORMAL_EXEC@GOTPAGEOFF]
	ldr	w1, [x21]
	cbz	x8, LBB0_27
; %bb.23:
	ldur	w8, [x29, #-52]
	cbz	w8, LBB0_27
; %bb.24:
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1
	mov	w4, #0
	mov	w5, #1
	bl	_halbtc8723b1ant_limited_tx
	ldr	x8, [x19]
Lloh59:
	adrp	x9, _BTC_GET_U1_IOT_PEER@GOTPAGE
Lloh60:
	ldr	x9, [x9, _BTC_GET_U1_IOT_PEER@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x9]
	add	x2, sp, #32
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #32]
Lloh62:
	adrp	x9, _BTC_IOT_PEER_CISCO@GOTPAGE
Lloh63:
	ldr	x9, [x9, _BTC_IOT_PEER_CISCO@GOTPAGEOFF]
Lloh64:
	ldr	x9, [x9]
	ldr	w2, [x19, #32]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.25:
Lloh65:
	adrp	x9, _BTC_IOT_PEER_BROADCOM@GOTPAGE
Lloh66:
	ldr	x9, [x9, _BTC_IOT_PEER_BROADCOM@GOTPAGEOFF]
Lloh67:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_28
; %bb.26:
	ldr	w1, [x21]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #5
	bl	_halbtc8723b1ant_limited_rx
	mov	w21, #1
	b	LBB0_34
LBB0_27:
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #0
	mov	w5, #0
	bl	_halbtc8723b1ant_limited_tx
	ldr	w1, [x21]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	mov	w4, #5
	bl	_halbtc8723b1ant_limited_rx
	mov	w21, #0
	b	LBB0_34
LBB0_28:
	cbz	w2, LBB0_30
; %bb.29:
	ldr	w1, [x21]
	mov	w21, #1
	mov	x0, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #5
	b	LBB0_33
LBB0_30:
	ldr	w8, [sp, #24]
Lloh68:
	adrp	x9, _BTC_WIFI_BW_HT40@GOTPAGE
Lloh69:
	ldr	x9, [x9, _BTC_WIFI_BW_HT40@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
	ldr	w1, [x21]
	mov	w21, #1
	mov	x0, x19
	cmp	w8, w9
	b.ne	LBB0_32
; %bb.31:
	mov	w2, #0
	mov	w3, #1
	mov	w4, #16
	b	LBB0_33
LBB0_32:
	mov	w2, #0
	mov	w3, #1
	mov	w4, #8
LBB0_33:
	bl	_halbtc8723b1ant_limited_rx
LBB0_34:
	mov	x0, x19
	mov	x1, x21
	bl	_halbtc8723b1ant_sw_mechanism
	ldr	x8, [x19]
Lloh71:
	adrp	x9, _BTC_GET_BL_HS_OPERATION@GOTPAGE
Lloh72:
	ldr	x9, [x9, _BTC_GET_BL_HS_OPERATION@GOTPAGEOFF]
Lloh73:
	ldr	w1, [x9]
	add	x2, sp, #56
	mov	x0, x19
	blr	x8
	ldr	x8, [x22]
	ldr	x8, [x8]
	cbz	x8, LBB0_37
LBB0_35:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_bt_inquiry
LBB0_36:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_37:
	ldr	w8, [sp, #56]
	cbz	w8, LBB0_39
; %bb.38:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_hs
	b	LBB0_36
LBB0_39:
	ldur	w8, [x29, #-52]
	cbz	w8, LBB0_41
; %bb.40:
	mov	x0, x19
	bl	_halbtc8723b1ant_action_wifi_connected
	b	LBB0_36
LBB0_41:
	str	xzr, [sp, #16]
	str	wzr, [sp, #12]
	ldr	w1, [x24]
	ldr	w2, [x23]
Lloh74:
	adrp	x3, l_.str.4@PAGE
Lloh75:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19]
Lloh76:
	adrp	x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGE
Lloh77:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_SCAN@GOTPAGEOFF]
Lloh78:
	ldr	w1, [x9]
	add	x2, sp, #20
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh79:
	adrp	x9, _BTC_GET_BL_WIFI_LINK@GOTPAGE
Lloh80:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_LINK@GOTPAGEOFF]
Lloh81:
	ldr	w1, [x9]
	add	x2, sp, #16
	mov	x0, x19
	blr	x8
	ldr	x8, [x19]
Lloh82:
	adrp	x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGE
Lloh83:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_ROAM@GOTPAGEOFF]
Lloh84:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #20]
	cbnz	w8, LBB0_45
; %bb.42:
	ldr	w9, [sp, #16]
	cbnz	w9, LBB0_45
; %bb.43:
	ldr	w9, [sp, #12]
	cbnz	w9, LBB0_45
; %bb.44:
	mov	x0, x19
	bl	_btc8723b1ant_action_wifi_not_conn
	b	LBB0_36
LBB0_45:
	mov	x0, x19
	cbz	w8, LBB0_47
; %bb.46:
	bl	_btc8723b1ant_action_wifi_not_conn_scan
	b	LBB0_36
LBB0_47:
	bl	_btc8723b1ant_act_wifi_not_conn_asso_auth
	b	LBB0_36
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh76, Lloh77, Lloh78
	.loh AdrpAdd	Lloh74, Lloh75
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_IOT_PEER_UNKNOWN,8,3       ; @BTC_IOT_PEER_UNKNOWN
	.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"

l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], RunCoexistMechanism(), return for Stop Coex DM <===\n"

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

	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_BUSY,8,3 ; @BT_8723B_1ANT_BT_STATUS_ACL_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_SCO_BUSY,8,3 ; @BT_8723B_1ANT_BT_STATUS_SCO_BUSY
	.comm	_BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY,8,3 ; @BT_8723B_1ANT_BT_STATUS_ACL_SCO_BUSY
	.comm	_BTC_SET_BL_INC_SCAN_DEV_NUM,4,2 ; @BTC_SET_BL_INC_SCAN_DEV_NUM
	.comm	_BTC_GET_BL_WIFI_CONNECTED,4,2  ; @BTC_GET_BL_WIFI_CONNECTED
	.comm	_BTC_GET_BL_WIFI_BUSY,4,2       ; @BTC_GET_BL_WIFI_BUSY
	.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
	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_BTC_SET_BL_MIRACAST_PLUS_BT,4,2 ; @BTC_SET_BL_MIRACAST_PLUS_BT
	.comm	_BTC_GET_U4_WIFI_BW,4,2         ; @BTC_GET_U4_WIFI_BW
	.comm	_BTC_GET_U1_IOT_PEER,4,2        ; @BTC_GET_U1_IOT_PEER
	.comm	_BTC_IOT_PEER_CISCO,8,3         ; @BTC_IOT_PEER_CISCO
	.comm	_BTC_IOT_PEER_BROADCOM,8,3      ; @BTC_IOT_PEER_BROADCOM
	.comm	_BTC_WIFI_BW_HT40,4,2           ; @BTC_WIFI_BW_HT40
	.comm	_BTC_GET_BL_HS_OPERATION,4,2    ; @BTC_GET_BL_HS_OPERATION
l_.str.4:                               ; @.str.4
	.asciz	"[BTCoex], wifi is non connected-idle !!!\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
	.no_dead_strip	_halbtc8723b1ant_run_coexist_mechanism
.subsections_via_symbols
