	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_read_bt_coexist_info_from_hwpg ## -- Begin function rtl8723e_read_bt_coexist_info_from_hwpg
	.p2align	4, 0x90
_rtl8723e_read_bt_coexist_info_from_hwpg: ## @rtl8723e_read_bt_coexist_info_from_hwpg
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	testl	%r12d, %r12d
	je	LBB0_1
## %bb.2:
	movl	$0, (%rbx)
	movq	_BT_RTL8723A@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_ANT_X2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movl	$0, 8(%rbx)
	movq	_BT_RADIO_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_3
LBB0_1:
	movq	_REG_MULTI_FUNC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl_read_dword
	movl	%eax, %r12d
	movl	$18, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	movl	%ecx, (%rbx)
	movq	_RF_OPTION4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %eax
	movq	_BT_RTL8723A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	movl	%eax, %ecx
	andl	$1, %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$1, %ecx
	movl	%ecx, 8(%rbx)
	shrl	$5, %eax
	andl	$1, %eax
LBB0_3:
	movl	%eax, 12(%rbx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl8723e_bt_var_init           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ## @REG_MULTI_FUNC_CTRL
	.comm	_RF_OPTION4,8,3                 ## @RF_OPTION4
	.comm	_BT_RTL8723A,8,3                ## @BT_RTL8723A
	.comm	_ANT_X2,4,2                     ## @ANT_X2
	.comm	_BT_RADIO_SHARED,4,2            ## @BT_RADIO_SHARED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723e_read_bt_coexist_info_from_hwpg ; -- Begin function rtl8723e_read_bt_coexist_info_from_hwpg
	.p2align	2
_rtl8723e_read_bt_coexist_info_from_hwpg: ; @rtl8723e_read_bt_coexist_info_from_hwpg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_rtl_priv
	mov	x20, x0
	cbz	w22, LBB0_2
; %bb.1:
	str	wzr, [x20]
Lloh0:
	adrp	x8, _BT_RTL8723A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_RTL8723A@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20, #16]
Lloh3:
	adrp	x8, _ANT_X2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ANT_X2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, wzr, [x20, #4]
Lloh6:
	adrp	x8, _BT_RADIO_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_RADIO_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _REG_MULTI_FUNC_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_MULTI_FUNC_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtl_read_dword
	mov	x22, x0
	mov	w0, #18
	bl	_BIT
	tst	w0, w22
	cset	w8, ne
	str	w8, [x20]
Lloh12:
	adrp	x8, _RF_OPTION4@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RF_OPTION4@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x21, x8, lsl #2]
Lloh15:
	adrp	x9, _BT_RTL8723A@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BT_RTL8723A@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x9, [x20, #16]
	and	w9, w8, #0x1
	ubfx	w10, w8, #4, #1
	stp	w9, w10, [x20, #4]
	ubfx	w8, w8, #5, #1
LBB0_3:
	str	w8, [x20, #12]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_rtl8723e_bt_var_init
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ; @REG_MULTI_FUNC_CTRL
	.comm	_RF_OPTION4,8,3                 ; @RF_OPTION4
	.comm	_BT_RTL8723A,8,3                ; @BT_RTL8723A
	.comm	_ANT_X2,4,2                     ; @ANT_X2
	.comm	_BT_RADIO_SHARED,4,2            ; @BT_RADIO_SHARED
.subsections_via_symbols
