	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aic_common_set_type            ## -- Begin function aic_common_set_type
	.p2align	4, 0x90
_aic_common_set_type:                   ## @aic_common_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_irq_data_get_irq_chip_data
	addl	$-128, %ebx
	cmpl	$3, %ebx
	ja	LBB0_6
## %bb.1:
	movq	(%rax), %rcx
	movq	_AT91_AIC_SRCTYPE_HIGH@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rbx,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_2:
	movl	(%rcx), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.3:
	movq	_AT91_AIC_SRCTYPE_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_AT91_AIC_SRCTYPE_RISING@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movl	(%rcx), %eax
	testl	%eax, (%r15)
	je	LBB0_6
## %bb.5:
	movq	_AT91_AIC_SRCTYPE_FALLING@GOTPCREL(%rip), %rax
LBB0_8:
	movq	_AT91_AIC_SRCTYPE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	(%r14), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_AT91_AIC_SRCTYPE_HIGH,4,2      ## @AT91_AIC_SRCTYPE_HIGH
	.comm	_AT91_AIC_SRCTYPE_RISING,4,2    ## @AT91_AIC_SRCTYPE_RISING
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AT91_AIC_SRCTYPE_LOW,4,2       ## @AT91_AIC_SRCTYPE_LOW
	.comm	_AT91_AIC_SRCTYPE_FALLING,4,2   ## @AT91_AIC_SRCTYPE_FALLING
	.comm	_AT91_AIC_SRCTYPE,4,2           ## @AT91_AIC_SRCTYPE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aic_common_set_type            ; -- Begin function aic_common_set_type
	.p2align	2
_aic_common_set_type:                   ; @aic_common_set_type
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	sub	w10, w21, #128
	cmp	w10, #3
	b.hi	LBB0_8
; %bb.1:
	ldr	x9, [x0]
Lloh0:
	adrp	x8, _AT91_AIC_SRCTYPE_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AT91_AIC_SRCTYPE_HIGH@GOTPAGEOFF]
Lloh2:
	adrp	x11, lJTI0_0@PAGE
Lloh3:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_2
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_2:
	ldr	w8, [x20]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.3:
Lloh4:
	adrp	x8, _AT91_AIC_SRCTYPE_LOW@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AT91_AIC_SRCTYPE_LOW@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:
Lloh6:
	adrp	x8, _AT91_AIC_SRCTYPE_RISING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AT91_AIC_SRCTYPE_RISING@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
	ldr	w8, [x20]
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _AT91_AIC_SRCTYPE_FALLING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AT91_AIC_SRCTYPE_FALLING@GOTPAGEOFF]
LBB0_7:
	mov	w0, #0
Lloh10:
	adrp	x9, _AT91_AIC_SRCTYPE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AT91_AIC_SRCTYPE@GOTPAGEOFF]
	ldr	w8, [x8]
Lloh12:
	ldr	w9, [x9]
	ldr	w10, [x19]
	bic	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.comm	_AT91_AIC_SRCTYPE_HIGH,4,2      ; @AT91_AIC_SRCTYPE_HIGH
	.comm	_AT91_AIC_SRCTYPE_RISING,4,2    ; @AT91_AIC_SRCTYPE_RISING
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AT91_AIC_SRCTYPE_LOW,4,2       ; @AT91_AIC_SRCTYPE_LOW
	.comm	_AT91_AIC_SRCTYPE_FALLING,4,2   ; @AT91_AIC_SRCTYPE_FALLING
	.comm	_AT91_AIC_SRCTYPE,4,2           ; @AT91_AIC_SRCTYPE
.subsections_via_symbols
