	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8723b1ant_media_status_notify ## -- Begin function ex_btc8723b1ant_media_status_notify
	.p2align	4, 0x90
_ex_btc8723b1ant_media_status_notify:   ## @ex_btc8723b1ant_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	64(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movl	$0, -84(%rbp)
	cmpq	$0, 56(%rdi)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 48(%rdi)
	jne	LBB0_10
## %bb.2:
	movq	_coex_sta@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	$0, 8(%rax)
	jne	LBB0_10
## %bb.3:
	movq	%rsi, %r15
	movq	_BTC_MEDIA_CONNECT@GOTPCREL(%rip), %r13
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpq	%r15, (%r13)
	jne	LBB0_5
## %bb.4:
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_FORCE_EXEC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$8, %ecx
	callq	_halbtc8723b1ant_ps_tdma
	movq	_BTC_ANT_PATH_PTA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_halbtc8723b1ant_set_ant_path
	movq	_BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-84(%rbp), %rdx
	movq	%rbx, %rdi
	callq	*8(%rbx)
	xorl	%r12d, %r12d
	cmpl	$0, -84(%rbp)
	sete	%r12b
	movq	%rbx, %rdi
	movl	$1741, %esi                     ## imm = 0x6CD
	xorl	%edx, %edx
	callq	*16(%rbx)
	shll	$4, %r12d
	movq	%rbx, %rdi
	movl	$1743, %esi                     ## imm = 0x6CF
	movl	%r12d, %edx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$1072, %esi                     ## imm = 0x430
	callq	*40(%rbx)
	movq	_coex_dm@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	movl	%eax, 28(%rcx)
	movq	%rbx, %rdi
	movl	$1076, %esi                     ## imm = 0x434
	callq	*40(%rbx)
	movq	(%r12), %rcx
	movl	%eax, 24(%rcx)
	movq	%rbx, %rdi
	movl	$1066, %esi                     ## imm = 0x42A
	callq	*32(%rbx)
	movq	(%r12), %rcx
	movl	%eax, 20(%rcx)
	movq	%rbx, %rdi
	movl	$1110, %esi                     ## imm = 0x456
	callq	*24(%rbx)
	movq	(%r12), %rcx
	movl	%eax, 16(%rcx)
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_RT_TRACE
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, 8(%rax)
	movq	%rbx, %rdi
	movl	$1741, %esi                     ## imm = 0x6CD
	xorl	%edx, %edx
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$1743, %esi                     ## imm = 0x6CF
	xorl	%edx, %edx
	callq	*16(%rbx)
	movq	(%r12), %rax
	movl	$0, (%rax)
LBB0_6:
	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, (%r13)
	jne	LBB0_9
## %bb.7:
	movq	-96(%rbp), %rax
	cmpq	$14, %rax
	jg	LBB0_9
## %bb.8:
	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	_BTC_WIFI_BW_HT40@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	cmpq	-104(%rbp), %rax
	sete	%cl
	shlq	$4, %rcx
	orq	$32, %rcx
	movq	%rcx, -64(%rbp)
LBB0_9:
	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
	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	%rbx, %rdi
	movl	$102, %esi
	movl	$3, %edx
	callq	*(%rbx)
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_coex_sta,8,3                   ## @coex_sta
	.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"

	.comm	_FORCE_EXEC,4,2                 ## @FORCE_EXEC
	.comm	_BTC_ANT_PATH_PTA,4,2           ## @BTC_ANT_PATH_PTA
	.comm	_BTC_GET_BL_WIFI_UNDER_B_MODE,4,2 ## @BTC_GET_BL_WIFI_UNDER_B_MODE
	.comm	_coex_dm,8,3                    ## @coex_dm
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
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_btc8723b1ant_media_status_notify ; -- Begin function ex_btc8723b1ant_media_status_notify
	.p2align	2
_ex_btc8723b1ant_media_status_notify:   ; @ex_btc8723b1ant_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, #56]
	cbnz	x8, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #48]
	cbnz	x8, LBB0_10
; %bb.2:
Lloh3:
	adrp	x26, _coex_sta@GOTPAGE
Lloh4:
	ldr	x26, [x26, _coex_sta@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	x8, [x8, #8]
	cbnz	x8, LBB0_10
; %bb.3:
	mov	x21, x1
Lloh5:
	adrp	x25, _BTC_MEDIA_CONNECT@GOTPAGE
Lloh6:
	ldr	x25, [x25, _BTC_MEDIA_CONNECT@GOTPAGEOFF]
	ldr	x8, [x25]
Lloh7:
	adrp	x22, _COMP_BT_COEXIST@GOTPAGE
Lloh8:
	ldr	x22, [x22, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh9:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh10:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh11:
	adrp	x24, _coex_dm@GOTPAGE
Lloh12:
	ldr	x24, [x24, _coex_dm@GOTPAGEOFF]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.4:
Lloh13:
	adrp	x3, l_.str@PAGE
Lloh14:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh15:
	adrp	x26, _FORCE_EXEC@GOTPAGE
Lloh16:
	ldr	x26, [x26, _FORCE_EXEC@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #8
	bl	_halbtc8723b1ant_ps_tdma
Lloh17:
	adrp	x8, _BTC_ANT_PATH_PTA@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTC_ANT_PATH_PTA@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x26]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
	bl	_halbtc8723b1ant_set_ant_path
	ldr	x8, [x19, #8]
Lloh20:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_B_MODE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x9]
	add	x2, sp, #12
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
	cmp	w8, #0
	cset	w26, eq
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1741
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #16]
	lsl	w2, w26, #4
	mov	x0, x19
	mov	w1, #1743
	blr	x8
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1072
	blr	x8
	ldr	x8, [x24]
	str	w0, [x8, #28]
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1076
	blr	x8
	ldr	x8, [x24]
	str	w0, [x8, #24]
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #1066
	blr	x8
	ldr	x8, [x24]
	str	w0, [x8, #20]
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #1110
	blr	x8
	ldr	x8, [x24]
	str	w0, [x8, #16]
	b	LBB0_6
LBB0_5:
Lloh23:
	adrp	x3, l_.str.1@PAGE
Lloh24:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	ldr	x8, [x24]
	str	xzr, [x8, #8]
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1741
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #1743
	mov	w2, #0
	blr	x8
	ldr	x8, [x26]
	str	wzr, [x8]
LBB0_6:
	ldr	x8, [x19, #8]
Lloh25:
	adrp	x9, _BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPAGE
Lloh26:
	ldr	x9, [x9, _BTC_GET_U1_WIFI_CENTRAL_CHNL@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x9]
	add	x2, sp, #16
	mov	x0, x19
	blr	x8
	ldr	x8, [x25]
	cmp	x8, x21
	b.ne	LBB0_9
; %bb.7:
	ldr	x8, [sp, #16]
	cmp	x8, #14
	b.gt	LBB0_9
; %bb.8:
	stp	xzr, x8, [sp, #32]
	ldr	x8, [x19, #8]
Lloh28:
	adrp	x9, _BTC_GET_U4_WIFI_BW@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_BW@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x9]
	add	x2, sp, #24
	mov	x0, x19
	blr	x8
Lloh31:
	adrp	x8, _BTC_WIFI_BW_HT40@GOTPAGE
Lloh32:
	ldr	x8, [x8, _BTC_WIFI_BW_HT40@GOTPAGEOFF]
Lloh33:
	ldr	x8, [x8]
	ldr	x9, [sp, #24]
	mov	w10, #32
	mov	w11, #48
	cmp	x8, x9
	csel	x8, x11, x10, eq
	str	x8, [sp, #48]
LBB0_9:
	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]
Lloh34:
	adrp	x3, l_.str.2@PAGE
Lloh35:
	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
LBB0_10:
	ldr	x8, [sp, #56]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	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_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_coex_sta,8,3                   ; @coex_sta
	.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"

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

.subsections_via_symbols
