	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723be_read_bt_coexist_info_from_hwpg ## -- Begin function rtl8723be_read_bt_coexist_info_from_hwpg
	.p2align	4, 0x90
_rtl8723be_read_bt_coexist_info_from_hwpg: ## @rtl8723be_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, %r14
	movl	%esi, %r15d
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	24(%rax), %rax
	movq	(%rax), %r12
	testl	%r15d, %r15d
	je	LBB0_1
## %bb.3:
	movl	$0, (%rbx)
	movq	_BT_RTL8723B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	_ANT_X2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	jmp	LBB0_4
LBB0_1:
	movq	_REG_MULTI_FUNC_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtl_read_dword
	movl	%eax, %r15d
	movl	$18, %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%r15d, %eax
	setne	%cl
	movl	%ecx, (%rbx)
	movq	_EEPROM_RF_BT_SETTING_8723B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r14,%rax,4), %eax
	movq	_BT_RTL8723B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 16(%rbx)
	movl	%eax, %ecx
	andl	$1, %ecx
	movl	%ecx, 4(%rbx)
	testb	$64, %al
	jne	LBB0_2
LBB0_4:
	movq	_ANT_MAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_2:
	movq	_ANT_AUX@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	cmpl	$1, %eax
	movq	_ANT_X2@GOTPCREL(%rip), %rax
	cmoveq	_ANT_X1@GOTPCREL(%rip), %rax
	movq	_ANT_MAIN@GOTPCREL(%rip), %rcx
	cmoveq	_ANT_AUX@GOTPCREL(%rip), %rcx
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	(%rcx), %rax
	movq	%rax, 8(%rbx)
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ## @REG_MULTI_FUNC_CTRL
	.comm	_EEPROM_RF_BT_SETTING_8723B,8,3 ## @EEPROM_RF_BT_SETTING_8723B
	.comm	_BT_RTL8723B,8,3                ## @BT_RTL8723B
	.comm	_ANT_AUX,8,3                    ## @ANT_AUX
	.comm	_ANT_MAIN,8,3                   ## @ANT_MAIN
	.comm	_ANT_X2,8,3                     ## @ANT_X2
	.comm	_ANT_X1,8,3                     ## @ANT_X1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl8723be_read_bt_coexist_info_from_hwpg ; -- Begin function rtl8723be_read_bt_coexist_info_from_hwpg
	.p2align	2
_rtl8723be_read_bt_coexist_info_from_hwpg: ; @rtl8723be_read_bt_coexist_info_from_hwpg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	bl	_rtl_priv
	mov	x19, x0
	ldr	x8, [x0, #24]
	ldr	x25, [x8]
Lloh0:
	adrp	x24, _ANT_X2@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ANT_X2@GOTPAGEOFF]
Lloh2:
	adrp	x22, _ANT_MAIN@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ANT_MAIN@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ANT_AUX@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ANT_AUX@GOTPAGEOFF]
	cbz	w21, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _BT_RTL8723B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_RTL8723B@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	ldr	x8, [x24]
	stp	wzr, w8, [x19]
	ldr	x8, [x22]
	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, x19
	bl	_rtl_read_dword
	mov	x21, x0
	mov	w0, #18
	bl	_BIT
	tst	w0, w21
	cset	w8, ne
	str	w8, [x19]
Lloh12:
	adrp	x8, _EEPROM_RF_BT_SETTING_8723B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EEPROM_RF_BT_SETTING_8723B@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	ldr	w8, [x20, x8, lsl #2]
Lloh15:
	adrp	x9, _BT_RTL8723B@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BT_RTL8723B@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	str	x9, [x19, #16]
	and	w9, w8, #0x1
	str	w9, [x19, #4]
	tst	w8, #0x40
	csel	x8, x22, x23, eq
	ldr	x8, [x8]
LBB0_3:
	str	x8, [x19, #8]
	ldr	w8, [x25]
	cbz	w8, LBB0_5
; %bb.4:
Lloh18:
	adrp	x9, _ANT_X1@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ANT_X1@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x9, x24, eq
	ldr	x8, [x8]
	str	w8, [x19, #4]
	csel	x8, x23, x22, eq
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_5:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MULTI_FUNC_CTRL,4,2        ; @REG_MULTI_FUNC_CTRL
	.comm	_EEPROM_RF_BT_SETTING_8723B,8,3 ; @EEPROM_RF_BT_SETTING_8723B
	.comm	_BT_RTL8723B,8,3                ; @BT_RTL8723B
	.comm	_ANT_AUX,8,3                    ; @ANT_AUX
	.comm	_ANT_MAIN,8,3                   ; @ANT_MAIN
	.comm	_ANT_X2,8,3                     ; @ANT_X2
	.comm	_ANT_X1,8,3                     ; @ANT_X1
.subsections_via_symbols
