	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a1ant_media_status_notify ## -- Begin function ex_btc8821a1ant_media_status_notify
	.p2align	4, 0x90
_ex_btc8821a1ant_media_status_notify:   ## @ex_btc8821a1ant_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -84(%rbp)
	cmpq	$0, 24(%rdi)
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	jne	LBB0_12
## %bb.2:
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	jne	LBB0_12
## %bb.3:
	movq	%rsi, %r15
	movq	_BTC_GET_BL_WIFI_UNDER_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-84(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	cmpl	$0, -84(%rbp)
	je	LBB0_5
## %bb.4:
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	%rbx, %rdi
	callq	_btc8821a1ant_coex_under_5g
	jmp	LBB0_12
LBB0_5:
	movq	_BTC_MEDIA_CONNECT@GOTPCREL(%rip), %r12
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	cmpq	%r15, (%r12)
	jne	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
LBB0_8:
	movq	_BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	cmpq	%r15, (%r12)
	jne	LBB0_11
## %bb.9:
	movq	-96(%rbp), %rax
	cmpq	$14, %rax
	jg	LBB0_11
## %bb.10:
	movq	$0, -80(%rbp)
	movq	%rax, -72(%rbp)
	movq	_BTC_GET_U4_WIFI_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movq	-104(%rbp), %rax
	movq	_BTC_WIFI_BW_HT40@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	shlq	$4, %rdx
	orq	$32, %rdx
	movq	%rdx, -64(%rbp)
LBB0_11:
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movq	-72(%rbp), %rcx
	movq	%rcx, 8(%rax)
	movq	-64(%rbp), %rcx
	movq	%rcx, 16(%rax)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %r8
	shlq	$16, %rax
	shlq	$8, %r8
	orq	%rax, %r8
	orq	-64(%rbp), %r8
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	leaq	-80(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$102, %esi
	movl	$3, %edx
	callq	*(%rbx)
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ## @BTC_GET_BL_WIFI_UNDER_5G
	.comm	_COMP_BT_COEXIST,4,2            ## @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BTCoex], RunCoexistMechanism(), return for 5G <===\n"

	.comm	_BTC_MEDIA_CONNECT,8,3          ## @BTC_MEDIA_CONNECT
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], MEDIA connect notify\n"

L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], MEDIA disconnect notify\n"

	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BTC_GET_U1_WIFI_CENTRAL_CHNL,4,2 ## @BTC_GET_U1_WIFI_CENTRAL_CHNL
	.comm	_BTC_GET_U4_WIFI_BW,4,2         ## @BTC_GET_U4_WIFI_BW
	.comm	_BTC_WIFI_BW_HT40,8,3           ## @BTC_WIFI_BW_HT40
L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], FW write 0x66 = 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a1ant_media_status_notify ; -- Begin function ex_btc8821a1ant_media_status_notify
	.p2align	2
_ex_btc8821a1ant_media_status_notify:   ; @ex_btc8821a1ant_media_status_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	str	wzr, [sp, #12]
	ldp	x8, x20, [x0, #24]
	cbnz	x8, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbnz	x8, LBB0_12
; %bb.2:
Lloh3:
	adrp	x8, _coex_sta@GOTPAGE
Lloh4:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
; %bb.3:
	mov	x21, x1
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.4:
Lloh9:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh10:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
Lloh15:
	adrp	x3, l_.str@PAGE
Lloh16:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8821a1ant_coex_under_5g
	b	LBB0_12
LBB0_5:
Lloh17:
	adrp	x25, _BTC_MEDIA_CONNECT@GOTPAGE
Lloh18:
	ldr	x25, [x25, _BTC_MEDIA_CONNECT@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh19:
	adrp	x22, _COMP_BT_COEXIST@GOTPAGE
Lloh20:
	ldr	x22, [x22, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh21:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh22:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh23:
	adrp	x24, _coex_dm@GOTPAGE
Lloh24:
	ldr	x24, [x24, _coex_dm@GOTPAGEOFF]
	cmp	x8, x21
	b.ne	LBB0_7
; %bb.6:
Lloh25:
	adrp	x3, l_.str.1@PAGE
Lloh26:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	b	LBB0_8
LBB0_7:
Lloh27:
	adrp	x3, l_.str.2@PAGE
Lloh28:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x24]
	str	xzr, [x8, #8]
LBB0_8:
	ldr	x8, [x19, #8]
Lloh29:
	adrp	x9, _BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPAGE
Lloh30:
	ldr	x9, [x9, _BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x9]
	add	x2, sp, #16
	mov	x0, x19
	blr	x8
	ldr	x8, [x25]
	cmp	x8, x21
	b.ne	LBB0_11
; %bb.9:
	ldr	x8, [sp, #16]
	cmp	x8, #14
	b.gt	LBB0_11
; %bb.10:
	stp	xzr, x8, [sp, #32]
	ldr	x8, [x19, #8]
Lloh32:
	adrp	x9, _BTC_GET_U4_WIFI_BW@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_BW@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #24]
Lloh35:
	adrp	x9, _BTC_WIFI_BW_HT40@GOTPAGE
Lloh36:
	ldr	x9, [x9, _BTC_WIFI_BW_HT40@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	mov	w10, #32
	mov	w11, #48
	cmp	x8, x9
	csel	x8, x11, x10, eq
	str	x8, [sp, #48]
LBB0_11:
	ldr	x8, [x24]
	ldr	x8, [x8]
	str	xzr, [x8]
	ldp	x10, x9, [sp, #32]
	str	x9, [x8, #8]
	ldp	x11, x9, [sp, #40]
	str	x9, [x8, #16]
	ldr	w1, [x22]
	ldr	w2, [x23]
	lsl	x8, x11, #8
	orr	x8, x8, x10, lsl #16
	ldr	x9, [sp, #48]
	orr	x8, x8, x9
	str	x8, [sp]
Lloh38:
	adrp	x3, l_.str.3@PAGE
Lloh39:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19]
	add	x3, sp, #32
	mov	x0, x19
	mov	w1, #102
	mov	w2, #3
	blr	x8
LBB0_12:
	ldr	x8, [sp, #56]
Lloh40:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh41:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh42:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_GET_BL_WIFI_UNDER_5G,4,2   ; @BTC_GET_BL_WIFI_UNDER_5G
	.comm	_COMP_BT_COEXIST,4,2            ; @COMP_BT_COEXIST
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BTCoex], RunCoexistMechanism(), return for 5G <===\n"

	.comm	_BTC_MEDIA_CONNECT,8,3          ; @BTC_MEDIA_CONNECT
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], MEDIA connect notify\n"

l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], MEDIA disconnect notify\n"

	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BTC_GET_U1_WIFI_CENTRAL_CHNL,4,2 ; @BTC_GET_U1_WIFI_CENTRAL_CHNL
	.comm	_BTC_GET_U4_WIFI_BW,4,2         ; @BTC_GET_U4_WIFI_BW
	.comm	_BTC_WIFI_BW_HT40,8,3           ; @BTC_WIFI_BW_HT40
l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], FW write 0x66 = 0x%x\n"

.subsections_via_symbols
