	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8723b2ant_media_status_notify ## -- Begin function ex_btc8723b2ant_media_status_notify
	.p2align	4, 0x90
_ex_btc8723b2ant_media_status_notify:   ## @ex_btc8723b2ant_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	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movq	$0, -88(%rbp)
	movq	_BTC_MEDIA_CONNECT@GOTPCREL(%rip), %r13
	cmpq	%rsi, (%r13)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-96(%rbp), %rdx
	movq	%r15, %rdi
	callq	*8(%r15)
	cmpq	%rbx, (%r13)
	jne	LBB0_7
## %bb.1:
	movq	-96(%rbp), %rax
	cmpq	$14, %rax
	jg	LBB0_7
## %bb.2:
	movq	$1, -80(%rbp)
	movq	%rax, -72(%rbp)
	movq	_BTC_GET_U4_WIFI_BW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rdx
	movq	%r15, %rdi
	callq	*8(%r15)
	movq	-104(%rbp), %rax
	movq	_BTC_WIFI_BW_HT40@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	_BTC_GET_U1_AP_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-88(%rbp), %rdx
	movq	%r15, %rdi
	callq	*8(%r15)
	cmpq	$9, -88(%rbp)
	jg	LBB0_5
LBB0_3:
	movq	$48, -64(%rbp)
	jmp	LBB0_6
LBB0_5:
	movq	$32, -64(%rbp)
LBB0_6:
	movl	$1, %r12d
LBB0_7:
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	%r12, (%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
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %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.2(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	leaq	-80(%rbp), %rcx
	movq	%r15, %rdi
	movl	$102, %esi
	movl	$3, %edx
	callq	*(%r15)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_9
## %bb.8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_MEDIA_CONNECT,8,3          ## @BTC_MEDIA_CONNECT
	.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], MEDIA connect notify\n"

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

	.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
	.comm	_BTC_GET_U1_AP_NUM,4,2          ## @BTC_GET_U1_AP_NUM
	.comm	_coex_dm,8,3                    ## @coex_dm
L_.str.2:                               ## @.str.2
	.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_btc8723b2ant_media_status_notify ; -- Begin function ex_btc8723b2ant_media_status_notify
	.p2align	2
_ex_btc8723b2ant_media_status_notify:   ; @ex_btc8723b2ant_media_status_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	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, #56]
	ldr	x20, [x0, #16]
	stp	xzr, xzr, [sp, #32]
	str	xzr, [sp, #48]
	str	xzr, [sp, #8]
Lloh3:
	adrp	x24, _BTC_MEDIA_CONNECT@GOTPAGE
Lloh4:
	ldr	x24, [x24, _BTC_MEDIA_CONNECT@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh5:
	adrp	x22, _COMP_BT_COEXIST@GOTPAGE
Lloh6:
	ldr	x22, [x22, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh7:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh8:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh9:
	adrp	x9, l_.str.1@PAGE
Lloh10:
	add	x9, x9, l_.str.1@PAGEOFF
Lloh11:
	adrp	x10, l_.str@PAGE
Lloh12:
	add	x10, x10, l_.str@PAGEOFF
	cmp	x8, x21
	csel	x3, x10, x9, eq
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x19, #8]
Lloh13:
	adrp	x9, _BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPAGE
Lloh14:
	ldr	x9, [x9, _BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x9]
	add	x2, sp, #16
	mov	x0, x19
	blr	x8
	mov	x8, #0
	ldr	x10, [x24]
	ldr	x9, [sp, #16]
	cmp	x10, x21
	ccmp	x9, #14, #0, eq
	b.gt	LBB0_6
; %bb.1:
	mov	w8, #1
	stp	x8, x9, [sp, #32]
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x9, _BTC_GET_U4_WIFI_BW@GOTPAGE
Lloh17:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_BW@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #24]
Lloh19:
	adrp	x9, _BTC_WIFI_BW_HT40@GOTPAGE
Lloh20:
	ldr	x9, [x9, _BTC_WIFI_BW_HT40@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, _BTC_GET_U1_AP_NUM@GOTPAGE
Lloh23:
	ldr	x9, [x9, _BTC_GET_U1_AP_NUM@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x9]
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	x8, [sp, #8]
	cmp	x8, #9
	b.gt	LBB0_4
LBB0_3:
	mov	w8, #48
	b	LBB0_5
LBB0_4:
	mov	w8, #32
LBB0_5:
	str	x8, [sp, #48]
	mov	w8, #1
LBB0_6:
Lloh25:
	adrp	x9, _coex_dm@GOTPAGE
Lloh26:
	ldr	x9, [x9, _coex_dm@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	ldr	x9, [x9]
	str	x8, [x9]
	ldp	x10, x8, [sp, #32]
	str	x8, [x9, #8]
	ldp	x11, x8, [sp, #40]
	str	x8, [x9, #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]
Lloh28:
	adrp	x3, l_.str.2@PAGE
Lloh29:
	add	x3, x3, l_.str.2@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
	ldr	x8, [sp, #56]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_MEDIA_CONNECT,8,3          ; @BTC_MEDIA_CONNECT
	.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], MEDIA connect notify\n"

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

	.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
	.comm	_BTC_GET_U1_AP_NUM,4,2          ; @BTC_GET_U1_AP_NUM
	.comm	_coex_dm,8,3                    ; @coex_dm
l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], FW write 0x66=0x%x\n"

.subsections_via_symbols
