	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function btc8821a1ant_set_ant_path
_btc8821a1ant_set_ant_path:             ## @btc8821a1ant_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_5
## %bb.1:
	movl	$76, %esi
	callq	*24(%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	*16(%rbx)
	movq	%rbx, %rdi
	movl	$2421, %esi                     ## imm = 0x975
	movl	$3, %edx
	movl	$3, %ecx
	callq	*(%rbx)
	movq	%rbx, %rdi
	movl	$3252, %esi                     ## imm = 0xCB4
	movl	$119, %edx
	callq	*8(%rbx)
	movq	40(%rbx), %rax
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movabsq	$4294967297, %rax               ## imm = 0x100000001
	jmp	LBB0_3
LBB0_5:
	testl	%ecx, %ecx
	je	LBB0_7
## %bb.6:
	movl	$76, %esi
	callq	*24(%rbx)
	movq	_BIT23@GOTPCREL(%rip), %rcx
	movq	_BIT24@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	movl	$76, %esi
	callq	*16(%rbx)
	movq	%rbx, %rdi
	movl	$1893, %esi                     ## imm = 0x765
	movl	$24, %edx
	movl	$3, %ecx
	jmp	LBB0_8
LBB0_4:
	movabsq	$4294967296, %rax               ## imm = 0x100000000
LBB0_3:
	movq	%rax, -24(%rbp)
	leaq	-24(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$101, %esi
	movl	$2, %edx
	callq	*32(%rbx)
	jmp	LBB0_9
LBB0_7:
	movl	$1893, %esi                     ## imm = 0x765
	movl	$24, %edx
	xorl	%ecx, %ecx
LBB0_8:
	callq	*(%rbx)
LBB0_9:
	movq	%rbx, %rdi
	movl	$3252, %esi                     ## imm = 0xCB4
	cmpl	$130, %r14d
	je	LBB0_15
## %bb.10:
	cmpl	$128, %r14d
	jne	LBB0_14
## %bb.11:
	movl	$119, %edx
	jmp	LBB0_12
LBB0_15:
	movl	$119, %edx
	callq	*8(%rbx)
	movq	(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_16
LBB0_13:
	movq	%rbx, %rdi
	movl	$3255, %esi                     ## imm = 0xCB7
	movl	$48, %edx
	movl	$1, %ecx
	jmp	LBB0_17
LBB0_14:
	movl	$102, %edx
LBB0_12:
	callq	*8(%rbx)
	movq	(%rbx), %rax
	movq	40(%rbx), %rcx
	movq	_BTC_ANTENNA_AT_MAIN_PORT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_13
LBB0_16:
	movq	%rbx, %rdi
	movl	$3255, %esi                     ## imm = 0xCB7
	movl	$48, %edx
	movl	$2, %ecx
LBB0_17:
	callq	*%rax
	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	_btc8821a1ant_set_ant_path
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function btc8821a1ant_set_ant_path
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_btc8821a1ant_set_ant_path:             ; @btc8821a1ant_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_3
; %bb.1:
	ldr	x8, [x19, #24]
	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, #16]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #2421
	mov	w2, #3
	mov	w3, #3
	blr	x8
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3252
	mov	w2, #119
	blr	x8
	ldr	x8, [x19, #40]
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
	b.ne	LBB0_5
; %bb.2:
	movi.2s	v0, #1
	b	LBB0_6
LBB0_3:
	cbz	w3, LBB0_12
; %bb.4:
	ldr	x8, [x19, #24]
	mov	x0, x19
	mov	w1, #76
	blr	x8
Lloh9:
	adrp	x8, _BIT23@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BIT23@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _BIT24@GOTPAGE
Lloh13:
	ldr	x9, [x9, _BIT24@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w2, w0, w8
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	w1, #76
	blr	x8
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #24
	mov	w3, #3
	b	LBB0_13
LBB0_5:
Lloh15:
	adrp	x8, lCPI0_0@PAGE
Lloh16:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
LBB0_6:
	str	d0, [sp, #8]
	ldr	x8, [x19, #32]
	add	x3, sp, #8
	mov	x0, x19
	mov	w1, #101
	mov	w2, #2
	blr	x8
	cmp	w20, #130
	b.eq	LBB0_14
LBB0_7:
	cmp	w20, #128
	b.ne	LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3252
	mov	w2, #119
	b	LBB0_10
LBB0_9:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3252
	mov	w2, #102
LBB0_10:
	blr	x8
	ldr	x9, [x19, #40]
Lloh17:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x8]
	ldr	x8, [x19]
	cmp	x9, x10
	b.ne	LBB0_15
LBB0_11:
	mov	x0, x19
	mov	w1, #3255
	mov	w2, #48
	mov	w3, #1
	b	LBB0_16
LBB0_12:
	ldr	x8, [x19]
	mov	x0, x19
	mov	w1, #1893
	mov	w2, #24
LBB0_13:
	blr	x8
	cmp	w20, #130
	b.ne	LBB0_7
LBB0_14:
	ldr	x8, [x19, #8]
	mov	x0, x19
	mov	w1, #3252
	mov	w2, #119
	blr	x8
	ldr	x9, [x19, #40]
Lloh20:
	adrp	x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BTC_ANTENNA_AT_MAIN_PORT@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x8]
	ldr	x8, [x19]
	cmp	x9, x10
	b.ne	LBB0_11
LBB0_15:
	mov	x0, x19
	mov	w1, #3255
	mov	w2, #48
	mov	w3, #2
LBB0_16:
	blr	x8
	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
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdr	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.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	_btc8821a1ant_set_ant_path
.subsections_via_symbols
