	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vxp_test_and_ack
_vxp_test_and_ack:                      ## @vxp_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -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	_DIALOG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_vx_inb
	movq	_VXP_DLG_MEMIRQ_MASK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.5:
	movl	(%r14), %esi
	movq	_VXP_DLG_ACK_MEMIRQ_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vx_outb
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_vx_inb
	movl	(%r14), %esi
	movl	(%r15), %edx
	notl	%edx
	andl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_vx_outb
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	movq	_EIO@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	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	_DIALOG,4,2                     ## @DIALOG
	.comm	_VXP_DLG_MEMIRQ_MASK,4,2        ## @VXP_DLG_MEMIRQ_MASK
	.comm	_EIO,4,2                        ## @EIO
	.comm	_VXP_DLG_ACK_MEMIRQ_MASK,4,2    ## @VXP_DLG_ACK_MEMIRQ_MASK
	.no_dead_strip	_vxp_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 vxp_test_and_ack
_vxp_test_and_ack:                      ; @vxp_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, _DIALOG@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DIALOG@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_vx_inb
Lloh5:
	adrp	x8, _VXP_DLG_MEMIRQ_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VXP_DLG_MEMIRQ_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.2:
	ldr	w1, [x20]
	ldr	w8, [x19]
Lloh8:
	adrp	x21, _VXP_DLG_ACK_MEMIRQ_MASK@GOTPAGE
Lloh9:
	ldr	x21, [x21, _VXP_DLG_ACK_MEMIRQ_MASK@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_vx_outb
	ldr	w1, [x20]
	mov	x0, x19
	bl	_vx_inb
	ldr	w1, [x20]
	ldr	w8, [x19]
	ldr	w9, [x21]
	bic	w2, w8, w9
	mov	x0, x19
	bl	_vx_outb
	mov	w0, #0
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _ENXIO@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	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 AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VX_STAT_XILINX_LOADED,4,2      ; @VX_STAT_XILINX_LOADED
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_DIALOG,4,2                     ; @DIALOG
	.comm	_VXP_DLG_MEMIRQ_MASK,4,2        ; @VXP_DLG_MEMIRQ_MASK
	.comm	_EIO,4,2                        ; @EIO
	.comm	_VXP_DLG_ACK_MEMIRQ_MASK,4,2    ; @VXP_DLG_ACK_MEMIRQ_MASK
	.no_dead_strip	_vxp_test_and_ack
.subsections_via_symbols
