	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8723e_dm_bt_coexist_2_ant
__rtl8723e_dm_bt_coexist_2_ant:         ## @_rtl8723e_dm_bt_coexist_2_ant
	.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
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	__rtl8723_dm_bt_check_wifi_state
	movq	_hal_coex_8723@GOTPCREL(%rip), %r13
	cmpq	$0, 8(%r13)
	je	LBB0_2
## %bb.1:
	movl	(%r12), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
LBB0_2:
	movl	(%r13), %r13d
	movq	%r14, %rdi
	callq	_rtl8723e_dm_bt_inq_page_monitor
	movq	%r14, %rdi
	callq	_rtl8723e_dm_bt_reset_action_profile_state
	movq	%r14, %rdi
	callq	_rtl8723e_dm_bt_is_2_ant_common_action
	testq	%rax, %rax
	je	LBB0_3
## %bb.11:
	movq	_BT_COEX_MECH_COMMON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_3:
	movq	_BTINFO_B_HID@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_6
## %bb.4:
	movq	_BTINFO_B_SCO_BUSY@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_BTINFO_B_SCO_ESCO@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_8
LBB0_6:
	movq	_BT_COEX_STATE_BTINFO_B_HID_SCOESCO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_BT_COEX_MECH_HID_SCO_ESCO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.3(%rip), %rcx
LBB0_7:
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8723e_dm_bt_2_ant_hid_sco_esco ## TAILCALL
LBB0_8:
	movq	_BTINFO_B_FTP@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	jne	LBB0_12
## %bb.9:
	movq	_BTINFO_B_A2DP@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_10
LBB0_12:
	movq	_BT_COEX_STATE_BTINFO_B_FTP_A2DP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_BT_COEX_MECH_FTP_A2DP@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.4(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8723e_dm_bt_2_ant_ftp_a2dp  ## TAILCALL
LBB0_10:
	movq	_BT_COEX_STATE_BTINFO_B_HID_SCOESCO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_BT_COEX_MECH_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rax, (%rbx)
	movl	(%r12), %esi
	movl	(%r15), %edx
	leaq	L_.str.5(%rip), %rcx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_DMESG,4,2                  ## @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BTCoex] Get bt info by fw!!\n"

	.comm	_hal_coex_8723,16,3             ## @hal_coex_8723
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex] c2h for bt_info not rcvd yet!!\n"

	.comm	_BT_COEX_MECH_COMMON,8,3        ## @BT_COEX_MECH_COMMON
L_.str.2:                               ## @.str.2
	.asciz	"Action 2-Ant common.\n"

	.comm	_BTINFO_B_HID,4,2               ## @BTINFO_B_HID
	.comm	_BTINFO_B_SCO_BUSY,4,2          ## @BTINFO_B_SCO_BUSY
	.comm	_BTINFO_B_SCO_ESCO,4,2          ## @BTINFO_B_SCO_ESCO
	.comm	_BT_COEX_STATE_BTINFO_B_HID_SCOESCO,4,2 ## @BT_COEX_STATE_BTINFO_B_HID_SCOESCO
	.comm	_BT_COEX_MECH_HID_SCO_ESCO,8,3  ## @BT_COEX_MECH_HID_SCO_ESCO
L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], BTInfo: bHid|bSCOBusy|bSCOeSCO\n"

	.comm	_BTINFO_B_FTP,4,2               ## @BTINFO_B_FTP
	.comm	_BTINFO_B_A2DP,4,2              ## @BTINFO_B_A2DP
	.comm	_BT_COEX_STATE_BTINFO_B_FTP_A2DP,4,2 ## @BT_COEX_STATE_BTINFO_B_FTP_A2DP
	.comm	_BT_COEX_MECH_FTP_A2DP,8,3      ## @BT_COEX_MECH_FTP_A2DP
L_.str.4:                               ## @.str.4
	.asciz	"BTInfo: bFTP|bA2DP\n"

	.comm	_BT_COEX_MECH_NONE,8,3          ## @BT_COEX_MECH_NONE
L_.str.5:                               ## @.str.5
	.asciz	"[BTCoex], BTInfo: undefined case!!!!\n"

	.no_dead_strip	__rtl8723e_dm_bt_coexist_2_ant
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8723e_dm_bt_coexist_2_ant
__rtl8723e_dm_bt_coexist_2_ant:         ; @_rtl8723e_dm_bt_coexist_2_ant
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_rtl_priv
	mov	x20, x0
Lloh0:
	adrp	x22, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x22, [x22, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x21, _DBG_DMESG@GOTPAGE
Lloh3:
	ldr	x21, [x21, _DBG_DMESG@GOTPAGEOFF]
	ldr	w2, [x21]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	bl	_RT_TRACE
	mov	x0, x19
	bl	__rtl8723_dm_bt_check_wifi_state
Lloh6:
	adrp	x23, _hal_coex_8723@GOTPAGE
Lloh7:
	ldr	x23, [x23, _hal_coex_8723@GOTPAGEOFF]
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
LBB0_2:
	ldr	w23, [x23]
	mov	x0, x19
	bl	_rtl8723e_dm_bt_inq_page_monitor
	mov	x0, x19
	bl	_rtl8723e_dm_bt_reset_action_profile_state
	mov	x0, x19
	bl	_rtl8723e_dm_bt_is_2_ant_common_action
	cbz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x8, _BT_COEX_MECH_COMMON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BT_COEX_MECH_COMMON@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	stp	x8, x8, [x20]
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_RT_TRACE
LBB0_4:
Lloh18:
	adrp	x8, _BTINFO_B_HID@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTINFO_B_HID@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_7
; %bb.5:
Lloh21:
	adrp	x8, _BTINFO_B_SCO_BUSY@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTINFO_B_SCO_BUSY@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_7
; %bb.6:
Lloh24:
	adrp	x8, _BTINFO_B_SCO_ESCO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTINFO_B_SCO_ESCO@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_9
LBB0_7:
Lloh27:
	adrp	x8, _BT_COEX_STATE_BTINFO_B_HID_SCOESCO@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BT_COEX_STATE_BTINFO_B_HID_SCOESCO@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
Lloh30:
	adrp	x9, _BT_COEX_MECH_HID_SCO_ESCO@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BT_COEX_MECH_HID_SCO_ESCO@GOTPAGEOFF]
	str	w8, [x20, #16]
Lloh32:
	ldr	x8, [x9]
	stp	x8, x8, [x20]
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh33:
	adrp	x3, l_.str.3@PAGE
Lloh34:
	add	x3, x3, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtl8723e_dm_bt_2_ant_hid_sco_esco
LBB0_9:
Lloh35:
	adrp	x8, _BTINFO_B_FTP@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTINFO_B_FTP@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	tst	w8, w23
	b.ne	LBB0_11
; %bb.10:
Lloh38:
	adrp	x8, _BTINFO_B_A2DP@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BTINFO_B_A2DP@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_12
LBB0_11:
Lloh41:
	adrp	x8, _BT_COEX_STATE_BTINFO_B_FTP_A2DP@GOTPAGE
Lloh42:
	ldr	x8, [x8, _BT_COEX_STATE_BTINFO_B_FTP_A2DP@GOTPAGEOFF]
Lloh43:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
Lloh44:
	adrp	x9, _BT_COEX_MECH_FTP_A2DP@GOTPAGE
Lloh45:
	ldr	x9, [x9, _BT_COEX_MECH_FTP_A2DP@GOTPAGEOFF]
	str	w8, [x20, #16]
Lloh46:
	ldr	x8, [x9]
	stp	x8, x8, [x20]
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh47:
	adrp	x3, l_.str.4@PAGE
Lloh48:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_rtl8723e_dm_bt_2_ant_ftp_a2dp
LBB0_12:
Lloh49:
	adrp	x8, _BT_COEX_STATE_BTINFO_B_HID_SCOESCO@GOTPAGE
Lloh50:
	ldr	x8, [x8, _BT_COEX_STATE_BTINFO_B_HID_SCOESCO@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	ldr	w9, [x20, #16]
	orr	w8, w9, w8
Lloh52:
	adrp	x9, _BT_COEX_MECH_NONE@GOTPAGE
Lloh53:
	ldr	x9, [x9, _BT_COEX_MECH_NONE@GOTPAGEOFF]
	str	w8, [x20, #16]
Lloh54:
	ldr	x8, [x9]
	stp	x8, x8, [x20]
	ldr	w1, [x22]
	ldr	w2, [x21]
Lloh55:
	adrp	x3, l_.str.5@PAGE
Lloh56:
	add	x3, x3, l_.str.5@PAGEOFF
	b	LBB0_8
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_DMESG,4,2                  ; @DBG_DMESG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BTCoex] Get bt info by fw!!\n"

	.comm	_hal_coex_8723,16,3             ; @hal_coex_8723
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex] c2h for bt_info not rcvd yet!!\n"

	.comm	_BT_COEX_MECH_COMMON,8,3        ; @BT_COEX_MECH_COMMON
l_.str.2:                               ; @.str.2
	.asciz	"Action 2-Ant common.\n"

	.comm	_BTINFO_B_HID,4,2               ; @BTINFO_B_HID
	.comm	_BTINFO_B_SCO_BUSY,4,2          ; @BTINFO_B_SCO_BUSY
	.comm	_BTINFO_B_SCO_ESCO,4,2          ; @BTINFO_B_SCO_ESCO
	.comm	_BT_COEX_STATE_BTINFO_B_HID_SCOESCO,4,2 ; @BT_COEX_STATE_BTINFO_B_HID_SCOESCO
	.comm	_BT_COEX_MECH_HID_SCO_ESCO,8,3  ; @BT_COEX_MECH_HID_SCO_ESCO
l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], BTInfo: bHid|bSCOBusy|bSCOeSCO\n"

	.comm	_BTINFO_B_FTP,4,2               ; @BTINFO_B_FTP
	.comm	_BTINFO_B_A2DP,4,2              ; @BTINFO_B_A2DP
	.comm	_BT_COEX_STATE_BTINFO_B_FTP_A2DP,4,2 ; @BT_COEX_STATE_BTINFO_B_FTP_A2DP
	.comm	_BT_COEX_MECH_FTP_A2DP,8,3      ; @BT_COEX_MECH_FTP_A2DP
l_.str.4:                               ; @.str.4
	.asciz	"BTInfo: bFTP|bA2DP\n"

	.comm	_BT_COEX_MECH_NONE,8,3          ; @BT_COEX_MECH_NONE
l_.str.5:                               ; @.str.5
	.asciz	"[BTCoex], BTInfo: undefined case!!!!\n"

	.no_dead_strip	__rtl8723e_dm_bt_coexist_2_ant
.subsections_via_symbols
