	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a2ant_periodical     ## -- Begin function ex_btc8821a2ant_periodical
	.p2align	4, 0x90
_ex_btc8821a2ant_periodical:            ## @ex_btc8821a2ant_periodical
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_coex_sta@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	cmpl	$5, %ecx
	jg	LBB0_3
## %bb.1:
	incl	%ecx
	movl	%ecx, (%rax)
	cmpl	$3, %ecx
	jne	LBB0_3
## %bb.2:
	movl	(%r15), %esi
	movl	(%r12), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	_BTC_ANT_WIFI_AT_MAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_btc8821a2ant_set_ant_path
LBB0_3:
	cmpq	$0, (%rbx)
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_btc8821a2ant_query_bt_info     ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	callq	_btc8821a2ant_monitor_bt_ctr
	movq	%rbx, %rdi
	callq	_btc8821a2ant_monitor_wifi_ctr
	movq	%rbx, %rdi
	callq	_btc8821a2ant_is_wifi_status_changed
	testq	%rax, %rax
	jne	LBB0_8
## %bb.5:
	movq	_coex_dm@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_btc8821a2ant_run_coexist_mechanism ## TAILCALL
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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], ==========================Periodical===========================\n"

	.comm	_coex_sta,8,3                   ## @coex_sta
L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], Set GNT_BT control by PTA\n"

	.comm	_BTC_ANT_WIFI_AT_MAIN,4,2       ## @BTC_ANT_WIFI_AT_MAIN
	.comm	_coex_dm,8,3                    ## @coex_dm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ex_btc8821a2ant_periodical     ; -- Begin function ex_btc8821a2ant_periodical
	.p2align	2
_ex_btc8821a2ant_periodical:            ; @ex_btc8821a2ant_periodical
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x21, _COMP_BT_COEXIST@GOTPAGE
Lloh1:
	ldr	x21, [x21, _COMP_BT_COEXIST@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x22, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x22, [x22, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x20
	bl	_RT_TRACE
Lloh6:
	adrp	x8, _coex_sta@GOTPAGE
Lloh7:
	ldr	x8, [x8, _coex_sta@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	w9, [x8]
	cmp	w9, #5
	b.gt	LBB0_3
; %bb.1:
	add	w9, w9, #1
	str	w9, [x8]
	cmp	w9, #3
	b.ne	LBB0_3
; %bb.2:
	ldr	w1, [x21]
	ldr	w2, [x22]
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_ANT_WIFI_AT_MAIN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTC_ANT_WIFI_AT_MAIN@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_btc8821a2ant_set_ant_path
LBB0_3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_btc8821a2ant_query_bt_info
LBB0_5:
	mov	x0, x19
	bl	_btc8821a2ant_monitor_bt_ctr
	mov	x0, x19
	bl	_btc8821a2ant_monitor_wifi_ctr
	mov	x0, x19
	bl	_btc8821a2ant_is_wifi_status_changed
	cbnz	x0, LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _coex_dm@GOTPAGE
Lloh15:
	ldr	x8, [x8, _coex_dm@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_btc8821a2ant_run_coexist_mechanism
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.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], ==========================Periodical===========================\n"

	.comm	_coex_sta,8,3                   ; @coex_sta
l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], Set GNT_BT control by PTA\n"

	.comm	_BTC_ANT_WIFI_AT_MAIN,4,2       ; @BTC_ANT_WIFI_AT_MAIN
	.comm	_coex_dm,8,3                    ; @coex_dm
.subsections_via_symbols
