	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rtl8723_dm_bt_check_wifi_state ## -- Begin function _rtl8723_dm_bt_check_wifi_state
	.p2align	4, 0x90
__rtl8723_dm_bt_check_wifi_state:       ## @_rtl8723_dm_bt_check_wifi_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_rtl_priv
	cmpq	$0, 32(%rax)
	movq	_BT_COEX_STATE_WIFI_IDLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	je	LBB0_4
## %bb.1:
	notl	%edx
	andl	(%rax), %edx
	movl	%edx, (%rax)
	movq	_BT_COEX_STATE_WIFI_UPLINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, %esi
	notl	%esi
	andl	%edx, %esi
	orl	%ecx, %edx
	cmpq	$0, 24(%rax)
	cmovel	%esi, %edx
	movl	%edx, (%rax)
	cmpq	$0, 16(%rax)
	movq	_BT_COEX_STATE_WIFI_DOWNLINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_3
## %bb.2:
	orl	%edx, %ecx
	jmp	LBB0_5
LBB0_4:
	orl	(%rax), %edx
	movl	%edx, (%rax)
	movq	_BT_COEX_STATE_WIFI_UPLINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%edx, %esi
	movl	%esi, (%rax)
	movq	_BT_COEX_STATE_WIFI_DOWNLINK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%esi, %ecx
	jmp	LBB0_5
LBB0_3:
	notl	%ecx
	andl	%edx, %ecx
LBB0_5:
	movl	%ecx, (%rax)
	movq	8(%rax), %rsi
	movq	_WIRELESS_MODE_G@GOTPCREL(%rip), %rdi
	movq	_BT_COEX_STATE_WIFI_LEGACY@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	(%rdi), %rsi
	je	LBB0_7
## %bb.6:
	movq	_WIRELESS_MODE_B@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_7
## %bb.8:
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	40(%rax), %rdx
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_10
## %bb.9:
	movq	_BT_COEX_STATE_WIFI_HT40@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movq	_BT_COEX_STATE_WIFI_HT20@GOTPCREL(%rip), %rdx
	jmp	LBB0_11
LBB0_7:
	orl	%edx, %ecx
	movl	%ecx, (%rax)
	movq	_BT_COEX_STATE_WIFI_HT20@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	notl	%esi
	andl	%ecx, %esi
	movl	%esi, (%rax)
	movq	_BT_COEX_STATE_WIFI_HT40@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%esi, %edx
	jmp	LBB0_12
LBB0_10:
	movq	_BT_COEX_STATE_WIFI_HT20@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%rax)
	movq	_BT_COEX_STATE_WIFI_HT40@GOTPCREL(%rip), %rdx
LBB0_11:
	movl	(%rdx), %edx
	notl	%edx
	andl	%ecx, %edx
LBB0_12:
	movl	%edx, (%rax)
	movq	_bt_operation_on@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	movq	_BT_COEX_STATE_BT30@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	je	LBB0_14
## %bb.13:
	orl	%ecx, %edx
	jmp	LBB0_15
LBB0_14:
	notl	%ecx
	andl	%ecx, %edx
LBB0_15:
	movl	%edx, (%rax)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_COEX_STATE_WIFI_IDLE,4,2    ## @BT_COEX_STATE_WIFI_IDLE
	.comm	_BT_COEX_STATE_WIFI_UPLINK,4,2  ## @BT_COEX_STATE_WIFI_UPLINK
	.comm	_BT_COEX_STATE_WIFI_DOWNLINK,4,2 ## @BT_COEX_STATE_WIFI_DOWNLINK
	.comm	_WIRELESS_MODE_G,8,3            ## @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,8,3            ## @WIRELESS_MODE_B
	.comm	_BT_COEX_STATE_WIFI_LEGACY,4,2  ## @BT_COEX_STATE_WIFI_LEGACY
	.comm	_BT_COEX_STATE_WIFI_HT20,4,2    ## @BT_COEX_STATE_WIFI_HT20
	.comm	_BT_COEX_STATE_WIFI_HT40,4,2    ## @BT_COEX_STATE_WIFI_HT40
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ## @HT_CHANNEL_WIDTH_20_40
	.comm	_bt_operation_on,8,3            ## @bt_operation_on
	.comm	_BT_COEX_STATE_BT30,4,2         ## @BT_COEX_STATE_BT30
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__rtl8723_dm_bt_check_wifi_state ; -- Begin function _rtl8723_dm_bt_check_wifi_state
	.p2align	2
__rtl8723_dm_bt_check_wifi_state:       ; @_rtl8723_dm_bt_check_wifi_state
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_rtl_priv
	ldr	x9, [x0, #32]
Lloh0:
	adrp	x8, _BT_COEX_STATE_WIFI_IDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_COEX_STATE_WIFI_IDLE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x9, LBB0_3
; %bb.1:
	ldr	w9, [x0]
	bic	w8, w9, w8
Lloh3:
	adrp	x9, _BT_COEX_STATE_WIFI_UPLINK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_UPLINK@GOTPAGEOFF]
	str	w8, [x0]
Lloh5:
	ldr	w9, [x9]
	bic	w10, w8, w9
	orr	w8, w9, w8
	ldp	x11, x9, [x0, #16]
	cmp	x9, #0
	csel	w8, w10, w8, eq
	str	w8, [x0]
Lloh6:
	adrp	x9, _BT_COEX_STATE_WIFI_DOWNLINK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_DOWNLINK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	cbz	x11, LBB0_4
; %bb.2:
	orr	w8, w9, w8
	b	LBB0_5
LBB0_3:
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh9:
	adrp	x9, _BT_COEX_STATE_WIFI_UPLINK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_UPLINK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x0]
Lloh12:
	adrp	x9, _BT_COEX_STATE_WIFI_DOWNLINK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_DOWNLINK@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
LBB0_4:
	bic	w8, w8, w9
LBB0_5:
	str	w8, [x0]
	ldr	x10, [x0, #8]
Lloh15:
	adrp	x9, _WIRELESS_MODE_G@GOTPAGE
Lloh16:
	ldr	x9, [x9, _WIRELESS_MODE_G@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x9]
Lloh18:
	adrp	x9, _WIRELESS_MODE_B@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WIRELESS_MODE_B@GOTPAGEOFF]
Lloh20:
	ldr	x12, [x9]
Lloh21:
	adrp	x9, _BT_COEX_STATE_WIFI_LEGACY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_LEGACY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	cmp	x10, x11
	ccmp	x10, x12, #4, ne
	b.ne	LBB0_7
; %bb.6:
	orr	w8, w8, w9
	str	w8, [x0]
Lloh24:
	adrp	x9, _BT_COEX_STATE_WIFI_HT20@GOTPAGE
Lloh25:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_HT20@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	bic	w8, w8, w9
	b	LBB0_10
LBB0_7:
	bic	w8, w8, w9
	str	w8, [x0]
	ldr	x9, [x0, #40]
Lloh27:
	adrp	x10, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh28:
	ldr	x10, [x10, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
Lloh30:
	adrp	x9, _BT_COEX_STATE_WIFI_HT40@GOTPAGE
Lloh31:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_HT40@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh33:
	adrp	x9, _BT_COEX_STATE_WIFI_HT20@GOTPAGE
Lloh34:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_HT20@GOTPAGEOFF]
	b	LBB0_11
LBB0_9:
Lloh35:
	adrp	x9, _BT_COEX_STATE_WIFI_HT20@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_HT20@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	orr	w8, w9, w8
LBB0_10:
	str	w8, [x0]
Lloh38:
	adrp	x9, _BT_COEX_STATE_WIFI_HT40@GOTPAGE
Lloh39:
	ldr	x9, [x9, _BT_COEX_STATE_WIFI_HT40@GOTPAGEOFF]
LBB0_11:
	ldr	w9, [x9]
	bic	w8, w8, w9
	str	w8, [x0]
Lloh40:
	adrp	x9, _bt_operation_on@GOTPAGE
Lloh41:
	ldr	x9, [x9, _bt_operation_on@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x9]
Lloh43:
	adrp	x9, _BT_COEX_STATE_BT30@GOTPAGE
Lloh44:
	ldr	x9, [x9, _BT_COEX_STATE_BT30@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	cbz	x10, LBB0_13
; %bb.12:
	orr	w8, w8, w9
	b	LBB0_14
LBB0_13:
	bic	w8, w8, w9
LBB0_14:
	str	w8, [x0]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_COEX_STATE_WIFI_IDLE,4,2    ; @BT_COEX_STATE_WIFI_IDLE
	.comm	_BT_COEX_STATE_WIFI_UPLINK,4,2  ; @BT_COEX_STATE_WIFI_UPLINK
	.comm	_BT_COEX_STATE_WIFI_DOWNLINK,4,2 ; @BT_COEX_STATE_WIFI_DOWNLINK
	.comm	_WIRELESS_MODE_G,8,3            ; @WIRELESS_MODE_G
	.comm	_WIRELESS_MODE_B,8,3            ; @WIRELESS_MODE_B
	.comm	_BT_COEX_STATE_WIFI_LEGACY,4,2  ; @BT_COEX_STATE_WIFI_LEGACY
	.comm	_BT_COEX_STATE_WIFI_HT20,4,2    ; @BT_COEX_STATE_WIFI_HT20
	.comm	_BT_COEX_STATE_WIFI_HT40,4,2    ; @BT_COEX_STATE_WIFI_HT40
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ; @HT_CHANNEL_WIDTH_20_40
	.comm	_bt_operation_on,8,3            ; @bt_operation_on
	.comm	_BT_COEX_STATE_BT30,4,2         ; @BT_COEX_STATE_BT30
.subsections_via_symbols
