	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xcv_setup_link                 ## -- Begin function xcv_setup_link
	.p2align	4, 0x90
_xcv_setup_link:                        ## @xcv_setup_link
	.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	_xcv@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	testl	%edi, %edi
	je	LBB0_2
## %bb.4:
	xorl	%ebx, %ebx
	cmpl	$10, %esi
	setne	%bl
	addl	%ebx, %ebx
	cmpl	$100, %esi
	movl	$1, %ecx
	cmovel	%ecx, %ebx
	movq	_XCV_CTL@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	(%rax), %rdi
	callq	_readq_relaxed
	andl	$-4, %eax
	orl	%eax, %ebx
	movq	(%r14), %rax
	movq	(%r15), %rsi
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writeq_relaxed
	movq	(%r14), %rax
	movq	_XCV_RESET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_readq_relaxed
	movq	_TX_DATA_RESET@GOTPCREL(%rip), %rcx
	movq	_RX_DATA_RESET@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	(%r14), %rcx
	movq	(%rbx), %rsi
	addq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_writeq_relaxed
	movq	(%r14), %rax
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_readq_relaxed
	movq	_TX_PKT_RESET@GOTPCREL(%rip), %rcx
	movq	_RX_PKT_RESET@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	(%r14), %rcx
	movq	(%rbx), %rsi
	addq	(%rcx), %rsi
	movl	%eax, %edi
	callq	_writeq_relaxed
	movq	(%r14), %rax
	movq	_XCV_BATCH_CRD_RET@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	(%rax), %rsi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_writeq_relaxed                 ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_2:
	movq	_XCV_RESET@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	callq	_readq_relaxed
	movq	_TX_PKT_RESET@GOTPCREL(%rip), %rcx
	movq	_RX_PKT_RESET@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	orl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rax
	movq	(%rbx), %rsi
	addq	(%rax), %rsi
	callq	_writeq_relaxed
	movq	(%r14), %rax
	movq	(%rbx), %rdi
	addq	(%rax), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_readq_relaxed                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_xcv,8,3                        ## @xcv
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"XCV init not done, probe may have failed\n"

	.comm	_XCV_CTL,8,3                    ## @XCV_CTL
	.comm	_XCV_RESET,8,3                  ## @XCV_RESET
	.comm	_TX_DATA_RESET,4,2              ## @TX_DATA_RESET
	.comm	_RX_DATA_RESET,4,2              ## @RX_DATA_RESET
	.comm	_TX_PKT_RESET,4,2               ## @TX_PKT_RESET
	.comm	_RX_PKT_RESET,4,2               ## @RX_PKT_RESET
	.comm	_XCV_BATCH_CRD_RET,8,3          ## @XCV_BATCH_CRD_RET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_xcv_setup_link                 ; -- Begin function xcv_setup_link
	.p2align	2
_xcv_setup_link:                        ; @xcv_setup_link
	.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
Lloh0:
	adrp	x19, _xcv@GOTPAGE
Lloh1:
	ldr	x19, [x19, _xcv@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_3
; %bb.1:
	cbz	w0, LBB0_4
; %bb.2:
	cmp	w1, #10
	cset	w9, ne
	lsl	w9, w9, #1
	cmp	w1, #100
	csinc	w20, w9, wzr, ne
	ldr	x8, [x8]
Lloh2:
	adrp	x21, _XCV_CTL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _XCV_CTL@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_readq_relaxed
	and	w8, w0, #0xfffffffc
	orr	w0, w8, w20
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_writeq_relaxed
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh4:
	adrp	x20, _XCV_RESET@GOTPAGE
Lloh5:
	ldr	x20, [x20, _XCV_RESET@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readq_relaxed
Lloh6:
	adrp	x8, _TX_DATA_RESET@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_DATA_RESET@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _RX_DATA_RESET@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RX_DATA_RESET@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeq_relaxed
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readq_relaxed
Lloh12:
	adrp	x8, _TX_PKT_RESET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TX_PKT_RESET@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _RX_PKT_RESET@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RX_PKT_RESET@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w0
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeq_relaxed
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh18:
	adrp	x9, _XCV_BATCH_CRD_RET@GOTPAGE
Lloh19:
	ldr	x9, [x9, _XCV_BATCH_CRD_RET@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	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
	b	_writeq_relaxed
LBB0_3:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	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
	b	_pr_err
LBB0_4:
	ldr	x8, [x8]
Lloh23:
	adrp	x20, _XCV_RESET@GOTPAGE
Lloh24:
	ldr	x20, [x20, _XCV_RESET@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readq_relaxed
Lloh25:
	adrp	x8, _TX_PKT_RESET@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TX_PKT_RESET@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _RX_PKT_RESET@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RX_PKT_RESET@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bic	w0, w0, w8
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writeq_relaxed
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x0, x9, x8
	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
	b	_readq_relaxed
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_xcv,8,3                        ; @xcv
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"XCV init not done, probe may have failed\n"

	.comm	_XCV_CTL,8,3                    ; @XCV_CTL
	.comm	_XCV_RESET,8,3                  ; @XCV_RESET
	.comm	_TX_DATA_RESET,4,2              ; @TX_DATA_RESET
	.comm	_RX_DATA_RESET,4,2              ; @RX_DATA_RESET
	.comm	_TX_PKT_RESET,4,2               ; @TX_PKT_RESET
	.comm	_RX_PKT_RESET,4,2               ; @RX_PKT_RESET
	.comm	_XCV_BATCH_CRD_RET,8,3          ; @XCV_BATCH_CRD_RET
.subsections_via_symbols
