	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_int_registers
_check_int_registers:                   ## @check_int_registers
	.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
	movq	_CCE_INT_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_read_csr
	movq	%rax, %r15
	movl	(%r12), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_write_csr
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_read_csr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_CCE_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	$-1, %rdx
	callq	_write_csr
	movq	_CCE_INT_STATUS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_read_csr
	testq	%rax, %rax
	jne	LBB0_4
## %bb.2:
	movq	_CCE_INT_FORCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	$-1, %rdx
	callq	_write_csr
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_read_csr
	cmpq	$-1, %rax
	je	LBB0_3
LBB0_4:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_write_csr
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_dd_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_CCE_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movq	$-1, %rdx
	callq	_write_csr
	movl	(%r12), %esi
	movq	%rbx, %rdi
	movq	%r15, %rdx
	callq	_write_csr
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_CCE_INT_MASK,4,2               ## @CCE_INT_MASK
	.comm	_CCE_INT_CLEAR,4,2              ## @CCE_INT_CLEAR
	.comm	_CCE_INT_STATUS,4,2             ## @CCE_INT_STATUS
	.comm	_CCE_INT_FORCE,4,2              ## @CCE_INT_FORCE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Interrupt registers not properly mapped by VMM\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_check_int_registers
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_int_registers
_check_int_registers:                   ; @check_int_registers
	.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	x21, _CCE_INT_MASK@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CCE_INT_MASK@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_read_csr
	mov	x20, x0
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, #0
	bl	_write_csr
	ldr	w1, [x21]
	mov	x0, x19
	bl	_read_csr
	cbnz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x22, _CCE_INT_CLEAR@GOTPAGE
Lloh3:
	ldr	x22, [x22, _CCE_INT_CLEAR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, #-1
	bl	_write_csr
Lloh4:
	adrp	x23, _CCE_INT_STATUS@GOTPAGE
Lloh5:
	ldr	x23, [x23, _CCE_INT_STATUS@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_read_csr
	cbnz	x0, LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _CCE_INT_FORCE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCE_INT_FORCE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #-1
	bl	_write_csr
	ldr	w1, [x23]
	mov	x0, x19
	bl	_read_csr
	cmn	x0, #1
	b.eq	LBB0_5
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_write_csr
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dd_dev_err
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	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_5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, #-1
	bl	_write_csr
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_write_csr
	mov	w0, #0
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CCE_INT_MASK,4,2               ; @CCE_INT_MASK
	.comm	_CCE_INT_CLEAR,4,2              ; @CCE_INT_CLEAR
	.comm	_CCE_INT_STATUS,4,2             ; @CCE_INT_STATUS
	.comm	_CCE_INT_FORCE,4,2              ; @CCE_INT_FORCE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Interrupt registers not properly mapped by VMM\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_check_int_registers
.subsections_via_symbols
