	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function exhalbtc_bind_bt_coex_withadapter
LCPI0_0:
	.long	0                               ## 0x0
	.long	5                               ## 0x5
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_exhalbtc_bind_bt_coex_withadapter
	.p2align	4, 0x90
_exhalbtc_bind_bt_coex_withadapter:     ## @exhalbtc_bind_bt_coex_withadapter
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_rtl_btc_coexist
	movq	%rax, %rbx
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.1:
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.2:
	movl	(%r14), %ecx
	cmpl	$128, %ecx
	jne	LBB0_3
## %bb.4:
	movq	_BTC_INTF_USB@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	je	LBB0_6
	jmp	LBB0_7
LBB0_3:
	movq	_BTC_INTF_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	$129, %ecx
	jne	LBB0_7
LBB0_6:
	movq	_BTC_INTF_PCI@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	movl	%eax, 68(%rbx)
	movl	$1, (%rbx)
	incl	64(%rbx)
	movq	%r14, 56(%rbx)
	movl	$0, 48(%rbx)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [0,5,0,0]
	movups	%xmm0, 32(%rbx)
	movq	%r14, %rdi
	callq	_rtl_get_hwpg_bt_type
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_exhalbtc_set_chip_type
	movq	%r14, %rdi
	callq	_rtl_get_hwpg_ant_num
	movq	_BT_COEX_ANT_TYPE_PG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_exhalbtc_set_ant_num
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	%r14, %rdi
	callq	_rtl_get_hwpg_single_ant_path
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_exhalbtc_set_single_ant_path
	movq	%r14, %rdi
	callq	_rtl_get_hwpg_package_type
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movq	%r14, %rdi
	callq	_rtl_get_hwpg_package_type
	cmpl	$1, %eax
	jne	LBB0_9
LBB0_10:
	leaq	L_.str.1(%rip), %rcx
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str(%rip), %rcx
	movl	$1, %eax
LBB0_11:
	movl	%eax, 8(%rbx)
	movq	_COMP_BT_COEXIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_RT_TRACE
	movq	%r14, %rdi
	callq	_rtl_get_hwpg_rfe_type
	movl	%eax, 24(%rbx)
	movq	$0, 16(%rbx)
	movl	$1, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BTC_INTF_PCI,4,2               ## @BTC_INTF_PCI
	.comm	_BTC_INTF_USB,4,2               ## @BTC_INTF_USB
	.comm	_BTC_INTF_UNKNOWN,4,2           ## @BTC_INTF_UNKNOWN
	.comm	_BT_COEX_ANT_TYPE_PG,4,2        ## @BT_COEX_ANT_TYPE_PG
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,4,2   ## @BTC_ANTENNA_AT_MAIN_PORT
	.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], Package Type = TFBGA\n"

L_.str.1:                               ## @.str.1
	.asciz	"[BTCoex], Package Type = Non-TFBGA\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function exhalbtc_bind_bt_coex_withadapter
lCPI0_0:
	.long	0                               ; 0x0
	.long	5                               ; 0x5
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_exhalbtc_bind_bt_coex_withadapter
	.p2align	2
_exhalbtc_bind_bt_coex_withadapter:     ; @exhalbtc_bind_bt_coex_withadapter
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	bl	_rtl_btc_coexist
	cbz	x0, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_8
LBB0_3:
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _BTC_INTF_PCI@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BTC_INTF_PCI@GOTPAGEOFF]
Lloh2:
	adrp	x10, _BTC_INTF_USB@GOTPAGE
Lloh3:
	ldr	x10, [x10, _BTC_INTF_USB@GOTPAGEOFF]
Lloh4:
	adrp	x11, _BTC_INTF_UNKNOWN@GOTPAGE
Lloh5:
	ldr	x11, [x11, _BTC_INTF_UNKNOWN@GOTPAGEOFF]
	cmp	w8, #128
	csel	x10, x10, x11, eq
	cmp	w8, #129
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	mov	w9, #1
	str	w9, [x19]
	ldr	w9, [x19, #64]
	add	w9, w9, #1
	stp	w9, w8, [x19, #64]
	str	x20, [x19, #56]
	str	wzr, [x19, #48]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	str	q0, [x19, #32]
	mov	x0, x20
	bl	_rtl_get_hwpg_bt_type
	mov	x1, x0
	mov	x0, x19
	bl	_exhalbtc_set_chip_type
	mov	x0, x20
	bl	_rtl_get_hwpg_ant_num
	mov	x2, x0
Lloh8:
	adrp	x8, _BT_COEX_ANT_TYPE_PG@GOTPAGE
Lloh9:
	ldr	x8, [x8, _BT_COEX_ANT_TYPE_PG@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_exhalbtc_set_ant_num
Lloh11:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19, #28]
	mov	x0, x20
	bl	_rtl_get_hwpg_single_ant_path
	mov	x1, x0
	mov	x0, x19
	bl	_exhalbtc_set_single_ant_path
	mov	x0, x20
	bl	_rtl_get_hwpg_package_type
	cbz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_rtl_get_hwpg_package_type
	cmp	w0, #1
	b.ne	LBB0_6
LBB0_5:
	mov	w8, #0
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	mov	w8, #1
LBB0_7:
	str	w8, [x19, #8]
Lloh18:
	adrp	x8, _COMP_BT_COEXIST@GOTPAGE
Lloh19:
	ldr	x8, [x8, _COMP_BT_COEXIST@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_RT_TRACE
	mov	x0, x20
	bl	_rtl_get_hwpg_rfe_type
	str	w0, [x19, #24]
	str	xzr, [x19, #16]
	mov	w0, #1
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_BTC_INTF_PCI,4,2               ; @BTC_INTF_PCI
	.comm	_BTC_INTF_USB,4,2               ; @BTC_INTF_USB
	.comm	_BTC_INTF_UNKNOWN,4,2           ; @BTC_INTF_UNKNOWN
	.comm	_BT_COEX_ANT_TYPE_PG,4,2        ; @BT_COEX_ANT_TYPE_PG
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,4,2   ; @BTC_ANTENNA_AT_MAIN_PORT
	.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], Package Type = TFBGA\n"

l_.str.1:                               ; @.str.1
	.asciz	"[BTCoex], Package Type = Non-TFBGA\n"

.subsections_via_symbols
