	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function uniphier_aidet_irq_set_type
_uniphier_aidet_irq_set_type:           ## @uniphier_aidet_irq_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	addl	$-128, %esi
	cmpl	$4, %esi
	jae	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	movslq	%esi, %rax
	leaq	L_switch.table.uniphier_aidet_irq_set_type(%rip), %rcx
	movl	(%rcx,%rax,4), %r14d
	leaq	L_switch.table.uniphier_aidet_irq_set_type.1(%rip), %rcx
	movl	(%rcx,%rax,4), %edx
	movl	(%rbx), %esi
	callq	_uniphier_aidet_detconf_update
	movq	%rbx, %rdi
	movl	%r14d, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_irq_chip_set_type_parent       ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_uniphier_aidet_irq_set_type
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.uniphier_aidet_irq_set_type
L_switch.table.uniphier_aidet_irq_set_type:
	.long	129                             ## 0x81
	.long	129                             ## 0x81
	.long	130                             ## 0x82
	.long	130                             ## 0x82

	.p2align	2                               ## @switch.table.uniphier_aidet_irq_set_type.1
L_switch.table.uniphier_aidet_irq_set_type.1:
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function uniphier_aidet_irq_set_type
_uniphier_aidet_irq_set_type:           ; @uniphier_aidet_irq_set_type
	.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
	sub	w8, w1, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x19, x0
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.uniphier_aidet_irq_set_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.uniphier_aidet_irq_set_type@PAGEOFF
	ldr	w20, [x9, x8]
	ldr	x0, [x0, #8]
Lloh2:
	adrp	x9, l_switch.table.uniphier_aidet_irq_set_type.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.uniphier_aidet_irq_set_type.1@PAGEOFF
	ldr	w2, [x9, x8]
	ldr	w1, [x19]
	bl	_uniphier_aidet_detconf_update
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_irq_chip_set_type_parent
LBB0_2:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_uniphier_aidet_irq_set_type
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.uniphier_aidet_irq_set_type
l_switch.table.uniphier_aidet_irq_set_type:
	.long	129                             ; 0x81
	.long	129                             ; 0x81
	.long	130                             ; 0x82
	.long	130                             ; 0x82

	.p2align	2                               ; @switch.table.uniphier_aidet_irq_set_type.1
l_switch.table.uniphier_aidet_irq_set_type.1:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1

.subsections_via_symbols
