	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function halbtc8723b1ant_set_ant_path
_halbtc8723b1ant_set_ant_path:          ## @halbtc8723b1ant_set_ant_path
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r13
	movq	72(%rdi), %r12
	movl	$0, -68(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	_coex_dm@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, (%rax)
	movq	_BTC_GET_BL_EXT_SWITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-76(%rbp), %rdx
	callq	*48(%rdi)
	movq	_BTC_GET_U4_WIFI_FW_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-68(%rbp), %rdx
	movq	%r13, %rdi
	callq	*48(%r13)
	movl	-68(%rbp), %eax
	cmpl	$786432, %eax                   ## imm = 0xC0000
	setl	%cl
	cmpl	$0, -76(%rbp)
	setne	%dl
	orb	%cl, %dl
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.1:
	movl	%edx, %ebx
	movq	_BTC_RF_A@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	movl	$1048575, %ecx                  ## imm = 0xFFFFF
	movl	$1920, %r8d                     ## imm = 0x780
	callq	*56(%r13)
	cmpl	$1572864, -68(%rbp)             ## imm = 0x180000
	jl	LBB0_3
## %bb.2:
	movl	$1, -64(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	$110, %esi
	movl	$1, %edx
	callq	*24(%r13)
	jmp	LBB0_4
LBB0_6:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.7:
	movl	%edx, %ebx
	cmpl	$1572864, %eax                  ## imm = 0x180000
	jl	LBB0_9
## %bb.8:
	movl	$1, -64(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	$110, %esi
	movl	$1, %edx
	callq	*24(%r13)
	jmp	LBB0_10
LBB0_3:
	movq	%r13, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	movl	$24, %edx
	callq	*40(%r13)
LBB0_4:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	%r13, %rdi
	movl	$1902, %esi                     ## imm = 0x76E
	movl	$4, %edx
	callq	*40(%r13)
	movq	%r13, %rdi
	movl	$103, %esi
	movl	$32, %edx
	xorl	%ecx, %ecx
	callq	*32(%r13)
	movq	%r13, %rdi
	movl	$57, %esi
	movl	$8, %edx
	movl	$1, %ecx
	callq	*32(%r13)
	movq	%r13, %rdi
	movl	$2420, %esi                     ## imm = 0x974
	movl	$255, %edx
	callq	*40(%r13)
	movq	%r13, %rdi
	movl	$2372, %esi                     ## imm = 0x944
	movl	$3, %edx
	movl	$3, %ecx
	callq	*32(%r13)
	movq	%r13, %rdi
	movl	$2352, %esi                     ## imm = 0x930
	movl	$119, %edx
	callq	*40(%r13)
	movq	%r13, %rdi
	movl	$76, %esi
	callq	*(%r13)
	movq	_BIT23@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testb	%bl, %bl
	je	LBB0_29
## %bb.5:
	notl	%ecx
	andl	%ecx, %eax
	movq	_BIT24@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	%r13, %rdi
	movl	$76, %esi
	movl	%eax, %edx
	callq	*16(%r13)
	movq	%r13, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	xorl	%edx, %edx
	callq	*16(%r13)
	movq	64(%r13), %rax
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	%edx, -64(%rbp)
	movl	$1, -60(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	$101, %esi
	movl	$2, %edx
	callq	*24(%r13)
	jmp	LBB0_22
LBB0_29:
	orl	%eax, %ecx
	movq	_BIT24@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	%ecx, %edx
	movq	%r13, %rdi
	movl	$76, %esi
	callq	*16(%r13)
	movq	%r13, %rdi
	movl	$100, %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	*32(%r13)
	movq	64(%r13), %rax
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	%edx, -64(%rbp)
	movl	$0, -60(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	$101, %esi
	movl	$2, %edx
	callq	*24(%r13)
	jmp	LBB0_30
LBB0_11:
	cmpl	$1572863, %eax                  ## imm = 0x17FFFF
	movb	%dl, -41(%rbp)                  ## 1-byte Spill
	jle	LBB0_12
## %bb.15:
	movq	%r13, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	callq	*8(%r13)
	testl	%eax, %eax
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_19
## %bb.16:
	movl	$0, -64(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%r13, %rdi
	movl	$110, %esi
	movl	$1, %edx
	callq	*24(%r13)
	jmp	LBB0_19
LBB0_9:
	movq	%r13, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	movl	$24, %edx
	callq	*40(%r13)
LBB0_10:
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movq	%r13, %rdi
	movl	$1902, %esi                     ## imm = 0x76E
	movl	$4, %edx
	callq	*40(%r13)
	movq	_BTC_GET_BL_WIFI_IS_IN_MP_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	callq	*48(%r13)
	xorl	%ecx, %ecx
	cmpl	$0, -72(%rbp)
	setne	%cl
	movq	%r13, %rdi
	movl	$103, %esi
	movl	$32, %edx
	callq	*32(%r13)
	movq	%r13, %rdi
	movl	$76, %esi
	callq	*(%r13)
	movq	_BIT23@GOTPCREL(%rip), %rcx
	movq	_BIT24@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r13, %rdi
	movl	$76, %esi
	callq	*16(%r13)
	testb	%bl, %bl
	je	LBB0_30
LBB0_22:
	testl	%r15d, %r15d
	jne	LBB0_24
## %bb.23:
	movq	(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, 8(%rax)
	je	LBB0_42
LBB0_24:
	cmpl	$130, %r12d
	je	LBB0_27
## %bb.25:
	cmpl	$128, %r12d
	movq	32(%r13), %rax
	movq	64(%r13), %rcx
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_28
LBB0_26:
	movq	%r13, %rdi
	movl	$2348, %esi                     ## imm = 0x92C
	movl	$3, %edx
	movl	$1, %ecx
	callq	*%rax
	jmp	LBB0_42
LBB0_27:
	movq	32(%r13), %rax
	movq	64(%r13), %rcx
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_26
LBB0_28:
	movq	%r13, %rdi
	movl	$2348, %esi                     ## imm = 0x92C
	movl	$3, %edx
	movl	$2, %ecx
	callq	*%rax
	jmp	LBB0_42
LBB0_12:
	movl	$1, %ebx
	movq	_DBG_LOUD@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movl	$1181, %esi                     ## imm = 0x49D
	callq	*8(%r13)
	movl	%eax, %r14d
	xorl	%edi, %edi
	callq	_BIT
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r15), %edx
	testl	%r14d, %eax
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	%r12, %rdi
	leaq	L_.str(%rip), %rcx
	movl	%ebx, %r8d
	callq	_RT_TRACE
	movl	$50, %edi
	callq	_mdelay
	incl	%ebx
	cmpl	$22, %ebx
	jne	LBB0_13
	jmp	LBB0_18
LBB0_17:
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movl	%ebx, %r8d
	callq	_RT_TRACE
LBB0_18:
	movq	%r13, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	xorl	%edx, %edx
	callq	*40(%r13)
	movq	_coex_dm@GOTPCREL(%rip), %r14
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_19:
	movq	%r13, %rdi
	movl	$1902, %esi                     ## imm = 0x76E
	callq	*8(%r13)
	cmpl	$12, %eax
	je	LBB0_21
## %bb.20:
	movq	%r13, %rdi
	movl	$1902, %esi                     ## imm = 0x76E
	movl	$12, %edx
	callq	*40(%r13)
LBB0_21:
	movq	%r13, %rdi
	movl	$103, %esi
	movl	$32, %edx
	movl	$1, %ecx
	callq	*32(%r13)
	cmpb	$0, -41(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_22
LBB0_30:
	testl	%r15d, %r15d
	jne	LBB0_32
## %bb.31:
	movq	(%r14), %rax
	movslq	(%rax), %rcx
	cmpq	%rcx, 8(%rax)
	je	LBB0_42
LBB0_32:
	cmpl	$130, %r12d
	je	LBB0_36
## %bb.33:
	cmpl	$128, %r12d
	jne	LBB0_38
## %bb.34:
	movq	16(%r13), %rax
	movq	64(%r13), %rcx
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_37
LBB0_35:
	movq	%r13, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	xorl	%edx, %edx
	jmp	LBB0_41
LBB0_36:
	movq	16(%r13), %rax
	movq	64(%r13), %rcx
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_35
LBB0_37:
	movq	%r13, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	movl	$640, %edx                      ## imm = 0x280
	jmp	LBB0_41
LBB0_38:
	movq	16(%r13), %rax
	movq	64(%r13), %rcx
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_40
## %bb.39:
	movq	%r13, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	movl	$512, %edx                      ## imm = 0x200
	jmp	LBB0_41
LBB0_40:
	movq	%r13, %rdi
	movl	$2376, %esi                     ## imm = 0x948
	movl	$128, %edx
LBB0_41:
	callq	*%rax
LBB0_42:
	movq	(%r14), %rax
	movslq	(%rax), %rcx
	movq	%rcx, 8(%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_coex_dm,8,3                    ## @coex_dm
	.comm	_BTC_GET_BL_EXT_SWITCH,4,2      ## @BTC_GET_BL_EXT_SWITCH
	.comm	_BTC_GET_U4_WIFI_FW_VER,4,2     ## @BTC_GET_U4_WIFI_FW_VER
	.comm	_BTC_RF_A,4,2                   ## @BTC_RF_A
	.comm	_BTC_GET_BL_WIFI_IS_IN_MP_MODE,4,2 ## @BTC_GET_BL_WIFI_IS_IN_MP_MODE
	.comm	_BIT23,4,2                      ## @BIT23
	.comm	_BIT24,4,2                      ## @BIT24
	.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], ########### BT is calibrating (wait cnt=%d) ###########\n"

L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], ********** BT is NOT calibrating (wait cnt=%d)**********\n"

	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ## @BTC_ANTENNA_AT_MAIN_PORT
	.no_dead_strip	_halbtc8723b1ant_set_ant_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function halbtc8723b1ant_set_ant_path
_halbtc8723b1ant_set_ant_path:          ; @halbtc8723b1ant_set_ant_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x4
	mov	x24, x3
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x22, [x0, #72]
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x25, _coex_dm@GOTPAGE
Lloh1:
	ldr	x25, [x25, _coex_dm@GOTPAGEOFF]
	ldr	x8, [x25]
	str	w1, [x8]
	ldr	x8, [x0, #48]
Lloh2:
	adrp	x9, _BTC_GET_BL_EXT_SWITCH@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BTC_GET_BL_EXT_SWITCH@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	add	x2, sp, #24
	blr	x8
	ldr	x8, [x19, #48]
Lloh5:
	adrp	x9, _BTC_GET_U4_WIFI_FW_VER@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BTC_GET_U4_WIFI_FW_VER@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	add	x2, sp, #28
	mov	x0, x19
	blr	x8
	ldp	w9, w8, [sp, #24]
	cmp	w8, #192, lsl #12               ; =786432
	ccmp	w9, #0, #0, ge
	cset	w27, ne
	cbz	w24, LBB0_3
; %bb.1:
	ldr	x8, [x19, #56]
Lloh8:
	adrp	x9, _BTC_RF_A@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BTC_RF_A@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	mov	w22, #1
	mov	x0, x19
	mov	w2, #1
	mov	w3, #1048575
	mov	w4, #1920
	blr	x8
	ldr	w8, [sp, #28]
	cmp	w8, #384, lsl #12               ; =1572864
	b.lt	LBB0_6
; %bb.2:
	str	w22, [sp, #8]
	ldr	x8, [x19, #24]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #110
	mov	w2, #1
	blr	x8
	b	LBB0_7
LBB0_3:
	mov	w9, #1572863
	cmp	w8, w9
	cbz	w23, LBB0_10
; %bb.4:
	b.le	LBB0_13
; %bb.5:
	mov	w8, #1
	str	w8, [sp, #8]
	ldr	x8, [x19, #24]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #110
	mov	w2, #1
	blr	x8
	b	LBB0_14
LBB0_6:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #24
	blr	x8
LBB0_7:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1902
	mov	w2, #4
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #103
	mov	w2, #32
	mov	w3, #0
	blr	x8
	ldr	x8, [x19, #32]
	mov	w22, #1
	mov	x0, x19
	mov	w1, #57
	mov	w2, #8
	mov	w3, #1
	blr	x8
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #2420
	mov	w2, #255
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #2372
	mov	w2, #3
	mov	w3, #3
	blr	x8
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #2352
	mov	w2, #119
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #76
	blr	x8
Lloh11:
	adrp	x8, _BIT23@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BIT23@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	w27, LBB0_9
; %bb.8:
	bic	w8, w0, w8
Lloh14:
	adrp	x9, _BIT24@GOTPAGE
Lloh15:
	ldr	x9, [x9, _BIT24@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #0
	blr	x8
	ldr	x8, [x19, #64]
Lloh17:
	adrp	x9, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	stp	w8, w22, [sp, #8]
	ldr	x8, [x19, #24]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #101
	mov	w2, #2
	blr	x8
	b	LBB0_15
LBB0_9:
	orr	w8, w8, w0
Lloh20:
	adrp	x9, _BIT24@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BIT24@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	bic	w2, w8, w9
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #100
	mov	w2, #1
	mov	w3, #0
	blr	x8
	ldr	x8, [x19, #64]
Lloh23:
	adrp	x9, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh24:
	ldr	x9, [x9, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, ne
	stp	w8, wzr, [sp, #8]
	ldr	x8, [x19, #24]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #101
	mov	w2, #2
	blr	x8
	b	LBB0_30
LBB0_10:
	b.le	LBB0_22
; %bb.11:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #1893
	blr	x8
	cbz	w0, LBB0_27
; %bb.12:
	str	wzr, [sp, #8]
	ldr	x8, [x19, #24]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #110
	mov	w2, #1
	blr	x8
	b	LBB0_27
LBB0_13:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #24
	blr	x8
LBB0_14:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1902
	mov	w2, #4
	blr	x8
	ldr	x8, [x19, #48]
Lloh26:
	adrp	x9, _BTC_GET_BL_WIFI_IS_IN_MP_MODE@GOTPAGE
Lloh27:
	ldr	x9, [x9, _BTC_GET_BL_WIFI_IS_IN_MP_MODE@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x9]
	add	x2, sp, #20
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #20]
	cmp	w8, #0
	cset	w3, ne
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #103
	mov	w2, #32
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #76
	blr	x8
Lloh29:
	adrp	x8, _BIT23@GOTPAGE
Lloh30:
	ldr	x8, [x8, _BIT23@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
Lloh32:
	adrp	x9, _BIT24@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BIT24@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	tbz	w27, #0, LBB0_30
LBB0_15:
	cbnz	w21, LBB0_17
; %bb.16:
	ldr	x8, [x25]
	ldrsw	x9, [x8]
	ldr	x8, [x8, #8]
	cmp	x8, x9
	b.eq	LBB0_42
LBB0_17:
	cmp	w20, #130
	b.eq	LBB0_20
; %bb.18:
	cmp	w20, #128
	ldr	x9, [x19, #64]
Lloh35:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh37:
	ldr	x10, [x8]
	ldr	x8, [x19, #32]
	cmp	x9, x10
	b.ne	LBB0_21
LBB0_19:
	mov	x0, x19
	mov	w1, #2348
	mov	w2, #3
	mov	w3, #1
	blr	x8
	b	LBB0_42
LBB0_20:
	ldr	x9, [x19, #64]
Lloh38:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh40:
	ldr	x10, [x8]
	ldr	x8, [x19, #32]
	cmp	x9, x10
	b.ne	LBB0_19
LBB0_21:
	mov	x0, x19
	mov	w1, #2348
	mov	w2, #3
	mov	w3, #2
	blr	x8
	b	LBB0_42
LBB0_22:
	mov	w23, #1
Lloh41:
	adrp	x28, _COMP_BT_COEXIST@GOTPAGE
Lloh42:
	ldr	x28, [x28, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh43:
	adrp	x26, _DBG_LOUD@GOTPAGE
Lloh44:
	ldr	x26, [x26, _DBG_LOUD@GOTPAGEOFF]
Lloh45:
	adrp	x24, l_.str@PAGE
Lloh46:
	add	x24, x24, l_.str@PAGEOFF
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #1181
	blr	x8
	mov	x25, x0
	mov	w0, #0
	bl	_BIT
	ldr	w1, [x28]
	ldr	w2, [x26]
	tst	w0, w25
	b.eq	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	mov	x0, x22
	mov	x3, x24
	mov	x4, x23
	bl	_RT_TRACE
	mov	w0, #50
	bl	_mdelay
	add	w23, w23, #1
	cmp	w23, #22
	b.ne	LBB0_23
	b	LBB0_26
LBB0_25:
Lloh47:
	adrp	x3, l_.str.1@PAGE
Lloh48:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	x4, x23
	bl	_RT_TRACE
LBB0_26:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #0
	blr	x8
Lloh49:
	adrp	x25, _coex_dm@GOTPAGE
Lloh50:
	ldr	x25, [x25, _coex_dm@GOTPAGEOFF]
LBB0_27:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #1902
	blr	x8
	cmp	w0, #12
	b.eq	LBB0_29
; %bb.28:
	ldr	x8, [x19, #40]
	mov	x0, x19
	mov	w1, #1902
	mov	w2, #12
	blr	x8
LBB0_29:
	ldr	x8, [x19, #32]
	mov	x0, x19
	mov	w1, #103
	mov	w2, #32
	mov	w3, #1
	blr	x8
	tbnz	w27, #0, LBB0_15
LBB0_30:
	cbnz	w21, LBB0_32
; %bb.31:
	ldr	x8, [x25]
	ldrsw	x9, [x8]
	ldr	x8, [x8, #8]
	cmp	x8, x9
	b.eq	LBB0_42
LBB0_32:
	cmp	w20, #130
	b.eq	LBB0_36
; %bb.33:
	cmp	w20, #128
	b.ne	LBB0_38
; %bb.34:
	ldr	x9, [x19, #64]
Lloh51:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh52:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh53:
	ldr	x10, [x8]
	ldr	x8, [x19, #16]
	cmp	x9, x10
	b.ne	LBB0_37
LBB0_35:
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #0
	b	LBB0_41
LBB0_36:
	ldr	x9, [x19, #64]
Lloh54:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh55:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh56:
	ldr	x10, [x8]
	ldr	x8, [x19, #16]
	cmp	x9, x10
	b.ne	LBB0_35
LBB0_37:
	mov	x0, x19
	mov	w1, #2376
	mov	w2, #640
	b	LBB0_41
LBB0_38:
	ldr	x9, [x19, #64]
Lloh57:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh58:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh59:
	ldr	x10, [x8]
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #2376
	cmp	x9, x10
	b.ne	LBB0_40
; %bb.39:
	mov	w2, #512
	b	LBB0_41
LBB0_40:
	mov	w2, #128
LBB0_41:
	blr	x8
LBB0_42:
	ldr	x8, [x25]
	ldrsw	x9, [x8]
	str	x9, [x8, #8]
	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
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.cfi_endproc
                                        ; -- End function
	.comm	_coex_dm,8,3                    ; @coex_dm
	.comm	_BTC_GET_BL_EXT_SWITCH,4,2      ; @BTC_GET_BL_EXT_SWITCH
	.comm	_BTC_GET_U4_WIFI_FW_VER,4,2     ; @BTC_GET_U4_WIFI_FW_VER
	.comm	_BTC_RF_A,4,2                   ; @BTC_RF_A
	.comm	_BTC_GET_BL_WIFI_IS_IN_MP_MODE,4,2 ; @BTC_GET_BL_WIFI_IS_IN_MP_MODE
	.comm	_BIT23,4,2                      ; @BIT23
	.comm	_BIT24,4,2                      ; @BIT24
	.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], ########### BT is calibrating (wait cnt=%d) ###########\n"

l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], ********** BT is NOT calibrating (wait cnt=%d)**********\n"

	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ; @BTC_ANTENNA_AT_MAIN_PORT
	.no_dead_strip	_halbtc8723b1ant_set_ant_path
.subsections_via_symbols
