	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a2ant_set_ant_path
_btc8821a2ant_set_ant_path:             ## @btc8821a2ant_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	$0, -24(%rbp)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$76, %esi
	callq	*(%rbx)
	movq	_BIT23@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	_BIT24@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$76, %esi
	callq	*24(%rbx)
	movq	%rbx, %rdi
	movl	$2420, %esi                     ## imm = 0x974
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	*24(%rbx)
	movq	32(%rbx), %rax
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	sete	%dl
	movl	%edx, -24(%rbp)
	movl	$1, -20(%rbp)
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$101, %esi
	movl	$2, %edx
	callq	*16(%rbx)
LBB0_2:
	cmpl	$128, %r14d
	je	LBB0_3
## %bb.4:
	cmpl	$129, %r14d
	jne	LBB0_7
## %bb.5:
	movl	$2, %ecx
	jmp	LBB0_6
LBB0_3:
	movl	$1, %ecx
LBB0_6:
	movq	%rbx, %rdi
	movl	$3255, %esi                     ## imm = 0xCB7
	movl	$48, %edx
	callq	*8(%rbx)
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BIT23,4,2                      ## @BIT23
	.comm	_BIT24,4,2                      ## @BIT24
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ## @BTC_ANTENNA_AT_MAIN_PORT
	.no_dead_strip	_btc8821a2ant_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 btc8821a2ant_set_ant_path
_btc8821a2ant_set_ant_path:             ; @btc8821a2ant_set_ant_path
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	xzr, [sp, #8]
	cbz	w2, LBB0_2
; %bb.1:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #76
	blr	x8
Lloh0:
	adrp	x8, _BIT23@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BIT23@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w0, w8
Lloh3:
	adrp	x9, _BIT24@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BIT24@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w8, w9
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #2420
	mov	w2, #1023
	blr	x8
	ldr	x8, [x19, #32]
Lloh6:
	adrp	x9, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	mov	w9, #1
	stp	w8, w9, [sp, #8]
	ldr	x8, [x19, #16]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #101
	mov	w2, #2
	blr	x8
LBB0_2:
	cmp	w20, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w20, #129
	b.ne	LBB0_7
; %bb.4:
	mov	w3, #2
	b	LBB0_6
LBB0_5:
	mov	w3, #1
LBB0_6:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3255
	mov	w2, #48
	blr	x8
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BIT23,4,2                      ; @BIT23
	.comm	_BIT24,4,2                      ; @BIT24
	.comm	_BTC_ANTENNA_AT_MAIN_PORT,8,3   ; @BTC_ANTENNA_AT_MAIN_PORT
	.no_dead_strip	_btc8821a2ant_set_ant_path
.subsections_via_symbols
