	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exhalbtc_set_ant_num           ## -- Begin function exhalbtc_set_ant_num
	.p2align	4, 0x90
_exhalbtc_set_ant_num:                  ## @exhalbtc_set_ant_num
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_rtl_btc_coexist
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	_BT_COEX_ANT_TYPE_PG@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_3
## %bb.2:
	movq	%r14, 16(%rax)
	movq	%r14, 8(%rax)
	jmp	LBB0_10
LBB0_3:
	movq	_BT_COEX_ANT_TYPE_ANTDIV@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_5
## %bb.4:
	movq	%r14, 8(%rax)
	jmp	LBB0_10
LBB0_5:
	movq	_BT_COEX_ANT_TYPE_DETECTED@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_10
## %bb.6:
	movq	%r14, 8(%rax)
	movq	(%r15), %rcx
	movq	(%rcx), %rcx
	cmpl	$1, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	_BTC_ANTENNA_AT_AUX_PORT@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_8:
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BT_COEX_ANT_TYPE_PG,8,3        ## @BT_COEX_ANT_TYPE_PG
	.comm	_BT_COEX_ANT_TYPE_ANTDIV,8,3    ## @BT_COEX_ANT_TYPE_ANTDIV
	.comm	_BT_COEX_ANT_TYPE_DETECTED,8,3  ## @BT_COEX_ANT_TYPE_DETECTED
	.comm	_BTC_ANTENNA_AT_AUX_PORT,4,2    ## @BTC_ANTENNA_AT_AUX_PORT
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,4,2   ## @BTC_ANTENNA_AT_MAIN_PORT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exhalbtc_set_ant_num           ; -- Begin function exhalbtc_set_ant_num
	.p2align	2
_exhalbtc_set_ant_num:                  ; @exhalbtc_set_ant_num
	.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, x2
	mov	x21, x1
	mov	x20, x0
	bl	_rtl_btc_coexist
	cbz	x0, LBB0_10
; %bb.1:
Lloh0:
	adrp	x8, _BT_COEX_ANT_TYPE_PG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BT_COEX_ANT_TYPE_PG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.2:
	stp	x19, x19, [x0, #8]
	b	LBB0_10
LBB0_3:
Lloh3:
	adrp	x8, _BT_COEX_ANT_TYPE_ANTDIV@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BT_COEX_ANT_TYPE_ANTDIV@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.4:
	str	x19, [x0, #8]
	b	LBB0_10
LBB0_5:
Lloh6:
	adrp	x8, _BT_COEX_ANT_TYPE_DETECTED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BT_COEX_ANT_TYPE_DETECTED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_10
; %bb.6:
	str	x19, [x0, #8]
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_8
; %bb.7:
Lloh9:
	adrp	x8, _BTC_ANTENNA_AT_AUX_PORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BTC_ANTENNA_AT_AUX_PORT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	str	w8, [x0]
LBB0_10:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_BT_COEX_ANT_TYPE_PG,8,3        ; @BT_COEX_ANT_TYPE_PG
	.comm	_BT_COEX_ANT_TYPE_ANTDIV,8,3    ; @BT_COEX_ANT_TYPE_ANTDIV
	.comm	_BT_COEX_ANT_TYPE_DETECTED,8,3  ; @BT_COEX_ANT_TYPE_DETECTED
	.comm	_BTC_ANTENNA_AT_AUX_PORT,4,2    ; @BTC_ANTENNA_AT_AUX_PORT
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,4,2   ; @BTC_ANTENNA_AT_MAIN_PORT
.subsections_via_symbols
