	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csky_mpintc_set_type
_csky_mpintc_set_type:                  ## @csky_mpintc_set_type
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $esi killed $esi def $rsi
	movq	_IRQ_TYPE_SENSE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	addl	$-128, %esi
	cmpl	$3, %esi
	ja	LBB0_3
## %bb.1:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rsi,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	movq	___trigger@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	$1, (%rax,%rcx,4)
	jmp	LBB0_5
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
LBB0_4:
	movq	___trigger@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	$0, (%rax,%rcx,4)
	jmp	LBB0_5
LBB0_6:
	movq	___trigger@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	$2, (%rax,%rcx,4)
	jmp	LBB0_5
LBB0_7:
	movq	___trigger@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rdi), %rcx
	movl	$3, (%rax,%rcx,4)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ## @IRQ_TYPE_SENSE_MASK
	.comm	___trigger,8,3                  ## @__trigger
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_csky_mpintc_set_type
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csky_mpintc_set_type
_csky_mpintc_set_type:                  ; @csky_mpintc_set_type
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x9, _IRQ_TYPE_SENSE_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IRQ_TYPE_SENSE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w9, w9, w1
	sub	w9, w9, #128
	cmp	w9, #3
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x0
Lloh3:
	adrp	x10, lJTI0_0@PAGE
Lloh4:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w0, #0
Lloh5:
	adrp	x9, ___trigger@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___trigger@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	x8, [x8]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
	ret
LBB0_3:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_4:
	mov	w0, #0
Lloh11:
	adrp	x9, ___trigger@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___trigger@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x8]
	str	wzr, [x9, x8, lsl #2]
	ret
LBB0_5:
	mov	w0, #0
Lloh14:
	adrp	x9, ___trigger@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___trigger@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	ldr	x8, [x8]
	mov	w10, #2
	str	w10, [x9, x8, lsl #2]
	ret
LBB0_6:
	mov	w0, #0
Lloh17:
	adrp	x9, ___trigger@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___trigger@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	ldr	x8, [x8]
	mov	w10, #3
	str	w10, [x9, x8, lsl #2]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_IRQ_TYPE_SENSE_MASK,4,2        ; @IRQ_TYPE_SENSE_MASK
	.comm	___trigger,8,3                  ; @__trigger
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_csky_mpintc_set_type
.subsections_via_symbols
