	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx2_validate_irq
_vx2_validate_irq:                      ## @vx2_validate_irq
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	_INTCSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VX_INTCSR_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_VX_PCI_INTERRUPT_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.1:
	orl	%edx, %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_vx_outl
	movq	_VX_CDSP_VALID_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rbx), %edx
	orl	(%rax), %edx
	jmp	LBB0_3
LBB0_2:
	notl	%eax
	andl	%eax, %edx
	movq	%rbx, %rdi
	callq	_vx_outl
	movq	_VX_CDSP_VALID_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	andl	(%rbx), %edx
LBB0_3:
	movl	%edx, (%rbx)
	movq	_CDSP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_vx_outl                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_INTCSR,4,2                     ## @INTCSR
	.comm	_VX_INTCSR_VALUE,4,2            ## @VX_INTCSR_VALUE
	.comm	_VX_PCI_INTERRUPT_MASK,4,2      ## @VX_PCI_INTERRUPT_MASK
	.comm	_VX_CDSP_VALID_IRQ_MASK,4,2     ## @VX_CDSP_VALID_IRQ_MASK
	.comm	_CDSP,4,2                       ## @CDSP
	.no_dead_strip	_vx2_validate_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx2_validate_irq
_vx2_validate_irq:                      ; @vx2_validate_irq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x8, x1
	mov	x19, x0
Lloh0:
	adrp	x9, _INTCSR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTCSR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
Lloh3:
	adrp	x9, _VX_INTCSR_VALUE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VX_INTCSR_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _VX_PCI_INTERRUPT_MASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _VX_PCI_INTERRUPT_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cbz	w8, LBB0_2
; %bb.1:
	orr	w2, w10, w9
	mov	x0, x19
	bl	_vx_outl
Lloh9:
	adrp	x8, _VX_CDSP_VALID_IRQ_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VX_CDSP_VALID_IRQ_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w2, w9, w8
	b	LBB0_3
LBB0_2:
	bic	w2, w9, w10
	mov	x0, x19
	bl	_vx_outl
Lloh12:
	adrp	x8, _VX_CDSP_VALID_IRQ_MASK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VX_CDSP_VALID_IRQ_MASK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w2, w9, w8
LBB0_3:
	str	w2, [x19]
Lloh15:
	adrp	x8, _CDSP@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CDSP@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vx_outl
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_INTCSR,4,2                     ; @INTCSR
	.comm	_VX_INTCSR_VALUE,4,2            ; @VX_INTCSR_VALUE
	.comm	_VX_PCI_INTERRUPT_MASK,4,2      ; @VX_PCI_INTERRUPT_MASK
	.comm	_VX_CDSP_VALID_IRQ_MASK,4,2     ; @VX_CDSP_VALID_IRQ_MASK
	.comm	_CDSP,4,2                       ; @CDSP
	.no_dead_strip	_vx2_validate_irq
.subsections_via_symbols
