	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_8723e_bt_wifi_media_status_notify ## -- Begin function rtl_8723e_bt_wifi_media_status_notify
	.p2align	4, 0x90
_rtl_8723e_bt_wifi_media_status_notify: ## @rtl_8723e_bt_wifi_media_status_notify
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_rtl_priv
	movl	$0, -48(%rbp)
	cmpl	$0, (%rax)
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	_RT_MEDIA_CONNECT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	xorl	%eax, %eax
	cmpl	%r15d, %r12d
	sete	%al
	movl	%eax, -52(%rbp)
	movq	%r14, %rdi
	callq	_mgnt_link_status_query
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	8(%rbx), %eax
	movl	%eax, -48(%rbp)
	shll	$8, %eax
	jmp	LBB0_4
LBB0_2:
	xorl	%eax, %eax
LBB0_4:
	xorl	%r8d, %r8d
	cmpl	%r15d, %r12d
	sete	%r8b
	movq	16(%rbx), %rcx
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rdx
	xorl	%edi, %edi
	cmpq	(%rdx), %rcx
	sete	%dil
	shll	$4, %edi
	orl	$32, %edi
	movl	%edi, -44(%rbp)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_DMESG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	shll	$16, %r8d
	orl	%eax, %r8d
	orl	%edi, %r8d
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	leaq	-52(%rbp), %rcx
	movq	%r14, %rdi
	movl	$25, %esi
	movl	$3, %edx
	callq	_rtl8723e_fill_h2c_cmd
LBB0_5:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_7
## %bb.6:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_MEDIA_CONNECT,4,2           ## @RT_MEDIA_CONNECT
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ## @HT_CHANNEL_WIDTH_20_40
	.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], FW write 0x19=0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl_8723e_bt_wifi_media_status_notify ; -- Begin function rtl_8723e_bt_wifi_media_status_notify
	.p2align	2
_rtl_8723e_bt_wifi_media_status_notify: ; @rtl_8723e_bt_wifi_media_status_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_rtl_priv
	str	wzr, [sp, #16]
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _RT_MEDIA_CONNECT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RT_MEDIA_CONNECT@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	cmp	w22, w21
	cset	w8, eq
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_mgnt_link_status_query
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
	str	w8, [sp, #16]
	lsl	w8, w8, #8
	b	LBB0_4
LBB0_3:
	mov	w8, #0
LBB0_4:
	cmp	w22, w21
	cset	w9, eq
	ldr	x10, [x20, #16]
Lloh6:
	adrp	x11, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh7:
	ldr	x11, [x11, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	cmp	x10, x11
	mov	w10, #32
	mov	w11, #48
	csel	w10, w11, w10, eq
	str	w10, [sp, #20]
Lloh9:
	adrp	x11, _COMP_BT_COEXIST@GOTPAGE
Lloh10:
	ldr	x11, [x11, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x11]
Lloh12:
	adrp	x11, _DBG_DMESG@GOTPAGE
Lloh13:
	ldr	x11, [x11, _DBG_DMESG@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x11]
	orr	w8, w8, w9, lsl #16
	orr	w4, w8, w10
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	add	x3, sp, #12
	mov	x0, x19
	mov	w1, #25
	mov	w2, #3
	bl	_rtl8723e_fill_h2c_cmd
LBB0_5:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_7
; %bb.6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_MEDIA_CONNECT,4,2           ; @RT_MEDIA_CONNECT
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ; @HT_CHANNEL_WIDTH_20_40
	.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], FW write 0x19=0x%x\n"

.subsections_via_symbols
