	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ls_intc_set_type
_ls_intc_set_type:                      ## @ls_intc_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	%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	%esi, %r14d
	movq	%rdi, %rbx
	callq	_irq_data_get_irq_chip_data
	movq	%rax, %r15
	leal	-128(%r14), %eax
	cmpl	$4, %eax
	jae	LBB0_1
## %bb.2:
	movl	(%rbx), %r12d
	cltq
	leaq	L_switch.table.ls_intc_set_type(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	leaq	L_switch.table.ls_intc_set_type.1(%rip), %rdx
	movl	(%rdx,%rax,4), %r13d
	movq	_LS_REG_INTC_EDGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_ls_intc_set_bit
	movq	_LS_REG_INTC_POL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	callq	_ls_intc_set_bit
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_irqd_set_trigger_type
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_irq_setup_alt_chip             ## TAILCALL
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_LS_REG_INTC_EDGE,4,2           ## @LS_REG_INTC_EDGE
	.comm	_LS_REG_INTC_POL,4,2            ## @LS_REG_INTC_POL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_ls_intc_set_type
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ## @switch.table.ls_intc_set_type
L_switch.table.ls_intc_set_type:
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ls_intc_set_type
_ls_intc_set_type:                      ; @ls_intc_set_type
	.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, x1
	mov	x20, x0
	bl	_irq_data_get_irq_chip_data
	sub	w8, w19, #128
	cmp	w8, #4
	b.hs	LBB0_2
; %bb.1:
	mov	x21, x0
	sbfiz	x8, x8, #2, #32
Lloh0:
	adrp	x9, l_switch.table.ls_intc_set_type@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ls_intc_set_type@PAGEOFF
	ldr	w3, [x9, x8]
Lloh2:
	adrp	x9, l_switch.table.ls_intc_set_type.1@PAGE
Lloh3:
	add	x9, x9, l_switch.table.ls_intc_set_type.1@PAGEOFF
	ldr	w22, [x20]
	ldr	w23, [x9, x8]
Lloh4:
	adrp	x8, _LS_REG_INTC_EDGE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LS_REG_INTC_EDGE@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x22
	bl	_ls_intc_set_bit
Lloh7:
	adrp	x8, _LS_REG_INTC_POL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LS_REG_INTC_POL@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x21
	mov	x2, x22
	mov	x3, x23
	bl	_ls_intc_set_bit
	mov	x0, x20
	mov	x1, x19
	bl	_irqd_set_trigger_type
	mov	x0, x20
	mov	x1, 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	_irq_setup_alt_chip
LBB0_2:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	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
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_LS_REG_INTC_EDGE,4,2           ; @LS_REG_INTC_EDGE
	.comm	_LS_REG_INTC_POL,4,2            ; @LS_REG_INTC_POL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_ls_intc_set_type
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @switch.table.ls_intc_set_type
l_switch.table.ls_intc_set_type:
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1

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

.subsections_via_symbols
