	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx2_test_xilinx
_vx2_test_xilinx:                       ## @vx2_test_xilinx
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_snd_printdd
	movq	_CDSP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_VX_CDSP_TEST0_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	orl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vx_outl
	movq	_ISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movq	_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movq	_VX_STATUS_VAL_TEST0_MASK@GOTPCREL(%rip), %r14
	notl	%eax
	testl	%eax, (%r14)
	jne	LBB0_3
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_3:
	movl	(%r15), %esi
	movl	(%r12), %edx
	notl	%edx
	andl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vx_outl
	movq	_ISR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	testl	%eax, (%r14)
	je	LBB0_4
## %bb.5:
	movq	(%rbx), %rdx
	movq	_VX_TYPE_BOARD@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_10
## %bb.6:
	movq	%r13, %r14
	movq	_CDSP@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_VX_CDSP_TEST1_MASK@GOTPCREL(%rip), %r13
	orl	(%r13), %edx
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_vx_outl
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movq	_VX_STATUS_VAL_TEST1_MASK@GOTPCREL(%rip), %r14
	notl	%eax
	testl	%eax, (%r14)
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	callq	_snd_printdd
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	movl	(%r15), %esi
	movl	(%r13), %edx
	notl	%edx
	andl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vx_outl
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movq	_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	testl	%eax, (%r14)
	je	LBB0_9
LBB0_10:
	leaq	L_.str.5(%rip), %rdi
	callq	_snd_printdd
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"testing xilinx...\n"

	.comm	_CDSP,4,2                       ## @CDSP
	.comm	_VX_CDSP_TEST0_MASK,4,2         ## @VX_CDSP_TEST0_MASK
	.comm	_ISR,4,2                        ## @ISR
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_VX_STATUS_VAL_TEST0_MASK,4,2   ## @VX_STATUS_VAL_TEST0_MASK
L_.str.1:                               ## @.str.1
	.asciz	"bad!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"bad! #2\n"

	.comm	_VX_TYPE_BOARD,8,3              ## @VX_TYPE_BOARD
	.comm	_VX_CDSP_TEST1_MASK,4,2         ## @VX_CDSP_TEST1_MASK
	.comm	_VX_STATUS_VAL_TEST1_MASK,4,2   ## @VX_STATUS_VAL_TEST1_MASK
L_.str.3:                               ## @.str.3
	.asciz	"bad! #3\n"

L_.str.4:                               ## @.str.4
	.asciz	"bad! #4\n"

L_.str.5:                               ## @.str.5
	.asciz	"ok, xilinx fine.\n"

	.no_dead_strip	_vx2_test_xilinx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx2_test_xilinx
_vx2_test_xilinx:                       ; @vx2_test_xilinx
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printdd
Lloh2:
	adrp	x20, _CDSP@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CDSP@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x19]
Lloh4:
	adrp	x23, _VX_CDSP_TEST0_MASK@GOTPAGE
Lloh5:
	ldr	x23, [x23, _VX_CDSP_TEST0_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_vx_outl
Lloh6:
	adrp	x21, _ISR@GOTPAGE
Lloh7:
	ldr	x21, [x21, _ISR@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vx_inl
Lloh8:
	adrp	x22, _STATUS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_vx_inl
Lloh10:
	adrp	x24, _VX_STATUS_VAL_TEST0_MASK@GOTPAGE
Lloh11:
	ldr	x24, [x24, _VX_STATUS_VAL_TEST0_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	bics	wzr, w8, w0
	b.ne	LBB0_2
; %bb.1:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_2:
	ldr	w1, [x20]
	ldr	w8, [x19]
	ldr	w9, [x23]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_vx_outl
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vx_inl
	ldr	w1, [x22]
	mov	x0, x19
	bl	_vx_inl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.3:
	ldr	x8, [x19]
Lloh14:
	adrp	x9, _VX_TYPE_BOARD@GOTPAGE
Lloh15:
	ldr	x9, [x9, _VX_TYPE_BOARD@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	w1, [x20]
Lloh17:
	adrp	x23, _VX_CDSP_TEST1_MASK@GOTPAGE
Lloh18:
	ldr	x23, [x23, _VX_CDSP_TEST1_MASK@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_vx_outl
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vx_inl
	ldr	w1, [x22]
	mov	x0, x19
	bl	_vx_inl
Lloh19:
	adrp	x24, _VX_STATUS_VAL_TEST1_MASK@GOTPAGE
Lloh20:
	ldr	x24, [x24, _VX_STATUS_VAL_TEST1_MASK@GOTPAGEOFF]
	ldr	w8, [x24]
	bics	wzr, w8, w0
	b.ne	LBB0_8
; %bb.5:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_snd_printdd
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	ldr	w1, [x20]
	ldr	w8, [x19]
	ldr	w9, [x23]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_vx_outl
	ldr	w1, [x21]
	mov	x0, x19
	bl	_vx_inl
	ldr	w1, [x22]
	mov	x0, x19
	bl	_vx_inl
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_11
LBB0_9:
Lloh28:
	adrp	x0, l_.str.5@PAGE
Lloh29:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_snd_printdd
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"testing xilinx...\n"

	.comm	_CDSP,4,2                       ; @CDSP
	.comm	_VX_CDSP_TEST0_MASK,4,2         ; @VX_CDSP_TEST0_MASK
	.comm	_ISR,4,2                        ; @ISR
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_VX_STATUS_VAL_TEST0_MASK,4,2   ; @VX_STATUS_VAL_TEST0_MASK
l_.str.1:                               ; @.str.1
	.asciz	"bad!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"bad! #2\n"

	.comm	_VX_TYPE_BOARD,8,3              ; @VX_TYPE_BOARD
	.comm	_VX_CDSP_TEST1_MASK,4,2         ; @VX_CDSP_TEST1_MASK
	.comm	_VX_STATUS_VAL_TEST1_MASK,4,2   ; @VX_STATUS_VAL_TEST1_MASK
l_.str.3:                               ; @.str.3
	.asciz	"bad! #3\n"

l_.str.4:                               ; @.str.4
	.asciz	"bad! #4\n"

l_.str.5:                               ; @.str.5
	.asciz	"ok, xilinx fine.\n"

	.no_dead_strip	_vx2_test_xilinx
.subsections_via_symbols
