	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remap_intr                     ## -- Begin function remap_intr
	.p2align	4, 0x90
_remap_intr:                            ## @remap_intr
	.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
	movl	%edx, %r14d
	movl	%esi, %r13d
	movq	%rdi, %r15
	leal	63(%r13), %ebx
	testl	%esi, %esi
	cmovnsl	%esi, %ebx
	sarl	$6, %ebx
	movq	_CCE_NUM_INT_CSRS@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	(%rax), %ebx
	setl	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	$-2, %eax
	movl	%r13d, %ecx
	roll	%cl, %eax
	movq	(%r15), %rcx
	movslq	%ebx, %rdx
	andl	%eax, (%rcx,%rdx,4)
	leal	7(%r13), %eax
	testl	%r13d, %r13d
	cmovnsl	%r13d, %eax
	andl	$-8, %eax
	subl	%eax, %r13d
	movq	_CCE_INT_MAP@GOTPCREL(%rip), %rbx
	movslq	%eax, %r12
	movq	(%rbx), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	callq	_read_csr
	shll	$3, %r13d
	movl	$255, %esi
	movl	%r13d, %ecx
	shll	%cl, %esi
	notl	%esi
	movzbl	%r14b, %edx
	shll	%cl, %edx
	andl	%eax, %esi
	orl	%esi, %edx
	addq	(%rbx), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_write_csr                      ## TAILCALL
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dd_dev_err                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CCE_NUM_INT_CSRS,4,2           ## @CCE_NUM_INT_CSRS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"remap interrupt err\n"

	.comm	_CCE_INT_MAP,8,3                ## @CCE_INT_MAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_remap_intr                     ; -- Begin function remap_intr
	.p2align	2
_remap_intr:                            ; @remap_intr
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	w8, w1, #63
	cmp	w1, #0
	csel	w8, w8, w1, lt
	asr	w22, w8, #6
Lloh0:
	adrp	x8, _CCE_NUM_INT_CSRS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CCE_NUM_INT_CSRS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w22, w8
	cset	w0, lt
	bl	_likely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w8, #1
	lsl	w8, w8, w21
	ldr	x9, [x19]
	sbfiz	x10, x22, #2, #32
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	add	w8, w21, #7
	cmp	w21, #0
	csel	w8, w8, w21, lt
	and	w8, w8, #0xfffffff8
	sub	w21, w21, w8
Lloh3:
	adrp	x22, _CCE_INT_MAP@GOTPAGE
Lloh4:
	ldr	x22, [x22, _CCE_INT_MAP@GOTPAGEOFF]
	ldr	x9, [x22]
	sxtw	x23, w8
	add	x1, x9, x23
	mov	x0, x19
	bl	_read_csr
	lsl	w8, w21, #3
	mov	w9, #255
	lsl	w9, w9, w8
	bic	w9, w0, w9
	and	w10, w20, #0xff
	lsl	w8, w10, w8
	orr	w2, w9, w8
	ldr	x8, [x22]
	add	x1, x8, x23
	mov	x0, x19
	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
	b	_write_csr
LBB0_2:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	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
	b	_dd_dev_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_CCE_NUM_INT_CSRS,4,2           ; @CCE_NUM_INT_CSRS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"remap interrupt err\n"

	.comm	_CCE_INT_MAP,8,3                ; @CCE_INT_MAP
.subsections_via_symbols
