	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a1ant_pnp_notify     ## -- Begin function ex_btc8821a1ant_pnp_notify
	.p2align	4, 0x90
_ex_btc8821a1ant_pnp_notify:            ## @ex_btc8821a1ant_pnp_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %r14
	movl	$0, -44(%rbp)
	movq	_BTC_GET_BL_WIFI_UNDER_5G@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	*8(%rdi)
	cmpl	$0, -44(%rbp)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	%rbx, %rdi
	callq	_btc8821a1ant_coex_under_5g
	jmp	LBB0_6
LBB0_2:
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_BTC_WIFI_PNP_SLEEP@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_4
## %bb.3:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$0, (%rax)
	movl	$1, (%rbx)
	movq	_BTC_PS_WIFI_NATIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a1ant_power_save_state
	movq	_NORMAL_EXEC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a1ant_ps_tdma
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_btc8821a1ant_coex_table_with_type
	movq	_BTC_ANT_PATH_BT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_btc8821a1ant_set_ant_path
	jmp	LBB0_6
LBB0_4:
	movq	_BTC_WIFI_PNP_WAKE_UP@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_6
## %bb.5:
	movl	(%r12), %esi
	movl	(%r13), %edx
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movl	$0, (%rbx)
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_btc8821a1ant_init_hw_config
	movq	%rbx, %rdi
	callq	_btc8821a1ant_init_coex_dm
	movq	%rbx, %rdi
	callq	_btc8821a1ant_query_bt_info
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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"

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

	.comm	_BTC_WIFI_PNP_SLEEP,8,3         ## @BTC_WIFI_PNP_SLEEP
L_.str.2:                               ## @.str.2
	.asciz	"[BTCoex], Pnp notify to SLEEP\n"

	.comm	_coex_sta,8,3                   ## @coex_sta
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ## @BTC_PS_WIFI_NATIVE
	.comm	_NORMAL_EXEC,4,2                ## @NORMAL_EXEC
	.comm	_BTC_ANT_PATH_BT,4,2            ## @BTC_ANT_PATH_BT
	.comm	_BTC_WIFI_PNP_WAKE_UP,8,3       ## @BTC_WIFI_PNP_WAKE_UP
L_.str.3:                               ## @.str.3
	.asciz	"[BTCoex], Pnp notify to WAKE UP\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a1ant_pnp_notify     ; -- Begin function ex_btc8821a1ant_pnp_notify
	.p2align	2
_ex_btc8821a1ant_pnp_notify:            ; @ex_btc8821a1ant_pnp_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x1
	mov	x19, x0
	str	wzr, [sp, #12]
	ldp	x8, x20, [x0, #8]
Lloh0:
	adrp	x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_UNDER_5G@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	add	x2, sp, #12
	blr	x8
	ldr	w8, [sp, #12]
Lloh3:
	adrp	x22, _COMP_BT_COEXIST@GOTPAGE
Lloh4:
	ldr	x22, [x22, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _DBG_LOUD@GOTPAGE
Lloh6:
	ldr	x23, [x23, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x23]
	cbz	w8, LBB0_2
; %bb.1:
Lloh7:
	adrp	x3, l_.str@PAGE
Lloh8:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x19
	bl	_btc8821a1ant_coex_under_5g
	b	LBB0_6
LBB0_2:
Lloh9:
	adrp	x3, l_.str.1@PAGE
Lloh10:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh11:
	adrp	x8, _BTC_WIFI_PNP_SLEEP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTC_WIFI_PNP_SLEEP@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.3:
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh14:
	adrp	x3, l_.str.2@PAGE
Lloh15:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh16:
	adrp	x8, _coex_sta@GOTPAGE
Lloh17:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	str	xzr, [x8]
	mov	w8, #1
	str	w8, [x19]
Lloh19:
	adrp	x8, _BTC_PS_WIFI_NATIVE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _BTC_PS_WIFI_NATIVE@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a1ant_power_save_state
Lloh22:
	adrp	x20, _NORMAL_EXEC@GOTPAGE
Lloh23:
	ldr	x20, [x20, _NORMAL_EXEC@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a1ant_ps_tdma
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #2
	bl	_btc8821a1ant_coex_table_with_type
Lloh24:
	adrp	x8, _BTC_ANT_PATH_BT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTC_ANT_PATH_BT@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	bl	_btc8821a1ant_set_ant_path
	b	LBB0_6
LBB0_4:
Lloh27:
	adrp	x8, _BTC_WIFI_PNP_WAKE_UP@GOTPAGE
Lloh28:
	ldr	x8, [x8, _BTC_WIFI_PNP_WAKE_UP@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_6
; %bb.5:
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh30:
	adrp	x3, l_.str.3@PAGE
Lloh31:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
	str	wzr, [x19]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	bl	_btc8821a1ant_init_hw_config
	mov	x0, x19
	bl	_btc8821a1ant_init_coex_dm
	mov	x0, x19
	bl	_btc8821a1ant_query_bt_info
LBB0_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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.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"

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

	.comm	_BTC_WIFI_PNP_SLEEP,8,3         ; @BTC_WIFI_PNP_SLEEP
l_.str.2:                               ; @.str.2
	.asciz	"[BTCoex], Pnp notify to SLEEP\n"

	.comm	_coex_sta,8,3                   ; @coex_sta
	.comm	_BTC_PS_WIFI_NATIVE,4,2         ; @BTC_PS_WIFI_NATIVE
	.comm	_NORMAL_EXEC,4,2                ; @NORMAL_EXEC
	.comm	_BTC_ANT_PATH_BT,4,2            ; @BTC_ANT_PATH_BT
	.comm	_BTC_WIFI_PNP_WAKE_UP,8,3       ; @BTC_WIFI_PNP_WAKE_UP
l_.str.3:                               ; @.str.3
	.asciz	"[BTCoex], Pnp notify to WAKE UP\n"

.subsections_via_symbols
