	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_coex_media_status_notify   ## -- Begin function rtw_coex_media_status_notify
	.p2align	4, 0x90
_rtw_coex_media_status_notify:          ## @rtw_coex_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	%r14
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	cmpq	$0, (%rdi)
	jne	LBB0_7
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_COEX_MEDIA_CONNECT_5G@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	_COEX_SCBD_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rtw_coex_write_scbd
	movq	_COEX_SET_ANT_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtw_coex_set_ant_path
	movq	_COEX_RSN_5GMEDIA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_COEX_MEDIA_CONNECT@GOTPCREL(%rip), %rax
	movq	_COEX_SCBD_ACTIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	cmpq	%r14, (%rax)
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rtw_coex_write_scbd
	movq	_COEX_SET_ANT_2G@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_rtw_coex_set_ant_path
	movq	_COEX_WLPRI_RX_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_rtw_coex_set_wl_pri_mask
	movq	_COEX_H2C69_WL_LEAKAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rsi, -80(%rbp)
	movq	_PARA1_H2C69_EN_5MS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	-72(%rbp), %rdx
	movq	%rax, -72(%rbp)
	movq	%rbx, %rdi
	callq	_rtw_fw_bt_wifi_control
	movl	$1, 8(%rbx)
	movq	_COEX_RSN_2GMEDIA@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtw_coex_write_scbd
	movq	_COEX_WLPRI_RX_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_rtw_coex_set_wl_pri_mask
	movq	_COEX_RSN_MEDIADISCON@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rtw_coex_run_coex
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rtw_coex_update_wl_ch_info
LBB0_7:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-24(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_COEX_MEDIA_CONNECT_5G,8,3      ## @COEX_MEDIA_CONNECT_5G
	.comm	_COEX_SCBD_ACTIVE,4,2           ## @COEX_SCBD_ACTIVE
	.comm	_COEX_SET_ANT_5G,4,2            ## @COEX_SET_ANT_5G
	.comm	_COEX_RSN_5GMEDIA,4,2           ## @COEX_RSN_5GMEDIA
	.comm	_COEX_MEDIA_CONNECT,8,3         ## @COEX_MEDIA_CONNECT
	.comm	_COEX_SET_ANT_2G,4,2            ## @COEX_SET_ANT_2G
	.comm	_COEX_WLPRI_RX_CCK,4,2          ## @COEX_WLPRI_RX_CCK
	.comm	_COEX_H2C69_WL_LEAKAP,8,3       ## @COEX_H2C69_WL_LEAKAP
	.comm	_PARA1_H2C69_EN_5MS,8,3         ## @PARA1_H2C69_EN_5MS
	.comm	_COEX_RSN_2GMEDIA,4,2           ## @COEX_RSN_2GMEDIA
	.comm	_COEX_RSN_MEDIADISCON,4,2       ## @COEX_RSN_MEDIADISCON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_coex_media_status_notify   ; -- Begin function rtw_coex_media_status_notify
	.p2align	2
_rtw_coex_media_status_notify:          ; @rtw_coex_media_status_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	q0, [sp]
	ldr	x8, [x0]
	cbnz	x8, LBB0_7
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _COEX_MEDIA_CONNECT_5G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _COEX_MEDIA_CONNECT_5G@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _COEX_SCBD_ACTIVE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COEX_SCBD_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_rtw_coex_write_scbd
Lloh9:
	adrp	x8, _COEX_SET_ANT_5G@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COEX_SET_ANT_5G@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_rtw_coex_set_ant_path
Lloh12:
	adrp	x8, _COEX_RSN_5GMEDIA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COEX_RSN_5GMEDIA@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh14:
	adrp	x8, _COEX_MEDIA_CONNECT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _COEX_MEDIA_CONNECT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
Lloh17:
	adrp	x9, _COEX_SCBD_ACTIVE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _COEX_SCBD_ACTIVE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x9]
	cmp	x8, x19
	b.ne	LBB0_5
; %bb.4:
	mov	w21, #1
	mov	x0, x20
	mov	w2, #1
	bl	_rtw_coex_write_scbd
Lloh20:
	adrp	x8, _COEX_SET_ANT_2G@GOTPAGE
Lloh21:
	ldr	x8, [x8, _COEX_SET_ANT_2G@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w1, #1
	bl	_rtw_coex_set_ant_path
Lloh23:
	adrp	x8, _COEX_WLPRI_RX_CCK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _COEX_WLPRI_RX_CCK@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_rtw_coex_set_wl_pri_mask
Lloh26:
	adrp	x8, _COEX_H2C69_WL_LEAKAP@GOTPAGE
Lloh27:
	ldr	x8, [x8, _COEX_H2C69_WL_LEAKAP@GOTPAGEOFF]
Lloh28:
	adrp	x9, _PARA1_H2C69_EN_5MS@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PARA1_H2C69_EN_5MS@GOTPAGEOFF]
Lloh30:
	ldr	x1, [x8]
Lloh31:
	ldr	x8, [x9]
	mov	x9, sp
	orr	x2, x9, #0x8
	stp	x1, x8, [sp]
	mov	x0, x20
	bl	_rtw_fw_bt_wifi_control
	str	w21, [x20, #8]
Lloh32:
	adrp	x8, _COEX_RSN_2GMEDIA@GOTPAGE
Lloh33:
	ldr	x8, [x8, _COEX_RSN_2GMEDIA@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
	mov	x0, x20
	mov	w2, #0
	bl	_rtw_coex_write_scbd
Lloh34:
	adrp	x8, _COEX_WLPRI_RX_CCK@GOTPAGE
Lloh35:
	ldr	x8, [x8, _COEX_WLPRI_RX_CCK@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_rtw_coex_set_wl_pri_mask
Lloh37:
	adrp	x8, _COEX_RSN_MEDIADISCON@GOTPAGE
Lloh38:
	ldr	x8, [x8, _COEX_RSN_MEDIADISCON@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_rtw_coex_run_coex
	mov	x0, x20
	mov	x1, x19
	bl	_rtw_coex_update_wl_ch_info
LBB0_7:
	ldur	x8, [x29, #-40]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh30
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_COEX_MEDIA_CONNECT_5G,8,3      ; @COEX_MEDIA_CONNECT_5G
	.comm	_COEX_SCBD_ACTIVE,4,2           ; @COEX_SCBD_ACTIVE
	.comm	_COEX_SET_ANT_5G,4,2            ; @COEX_SET_ANT_5G
	.comm	_COEX_RSN_5GMEDIA,4,2           ; @COEX_RSN_5GMEDIA
	.comm	_COEX_MEDIA_CONNECT,8,3         ; @COEX_MEDIA_CONNECT
	.comm	_COEX_SET_ANT_2G,4,2            ; @COEX_SET_ANT_2G
	.comm	_COEX_WLPRI_RX_CCK,4,2          ; @COEX_WLPRI_RX_CCK
	.comm	_COEX_H2C69_WL_LEAKAP,8,3       ; @COEX_H2C69_WL_LEAKAP
	.comm	_PARA1_H2C69_EN_5MS,8,3         ; @PARA1_H2C69_EN_5MS
	.comm	_COEX_RSN_2GMEDIA,4,2           ; @COEX_RSN_2GMEDIA
	.comm	_COEX_RSN_MEDIADISCON,4,2       ; @COEX_RSN_MEDIADISCON
.subsections_via_symbols
