	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx2_test_and_ack
_vx2_test_and_ack:                      ## @vx2_test_and_ack
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VX_STAT_XILINX_LOADED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rdi, %rbx
	movq	_STATUS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_vx_inl
	movq	_VX_STATUS_MEMIRQ_MASK@GOTPCREL(%rip), %r12
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.5:
	movl	(%r15), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vx_outl
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_vx_outl
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_vx_inl
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_vx_outl
	jmp	LBB0_6
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_6:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VX_STAT_XILINX_LOADED,4,2      ## @VX_STAT_XILINX_LOADED
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_STATUS,4,2                     ## @STATUS
	.comm	_VX_STATUS_MEMIRQ_MASK,4,2      ## @VX_STATUS_MEMIRQ_MASK
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_vx2_test_and_ack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx2_test_and_ack
_vx2_test_and_ack:                      ; @vx2_test_and_ack
	.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
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VX_STAT_XILINX_LOADED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VX_STAT_XILINX_LOADED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x20, _STATUS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _STATUS@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_vx_inl
Lloh5:
	adrp	x21, _VX_STATUS_MEMIRQ_MASK@GOTPAGE
Lloh6:
	ldr	x21, [x21, _VX_STATUS_MEMIRQ_MASK@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_vx_outl
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vx_inl
	ldr	w1, [x20]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_vx_outl
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vx_inl
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_vx_outl
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh7:
	adrp	x8, _ENXIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_STAT_XILINX_LOADED,4,2      ; @VX_STAT_XILINX_LOADED
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_STATUS,4,2                     ; @STATUS
	.comm	_VX_STATUS_MEMIRQ_MASK,4,2      ; @VX_STATUS_MEMIRQ_MASK
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_vx2_test_and_ack
.subsections_via_symbols
