	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st_irq_xlate
_st_irq_xlate:                          ## @st_irq_xlate
	.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	%ecx, %r13d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_dev_get_drvdata
	leal	-128(%r12), %ecx
	cmpl	$8, %ecx
	ja	LBB0_8
## %bb.1:
	movq	%rax, %r15
	movl	%r14d, %esi
	xorl	%r14d, %r14d
	movq	_ST_A9_IRQ_EN_EXT_0@GOTPCREL(%rip), %rax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	movq	_ST_A9_IRQ_EN_PL310_L2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_14
LBB0_6:
	movq	_ST_A9_IRQ_EN_PMU_1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	_ST_A9_IRQ_EN_PMU_0@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_ST_A9_IRQ_EN_EXT_2@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_ST_A9_IRQ_EN_EXT_1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	_ST_A9_IRQ_EN_CTI_1@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_3:
	movq	_ST_A9_IRQ_EN_CTI_0@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movl	%r12d, %edi
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.11:
	callq	_ST_A9_IRQ_N_SEL
	jmp	LBB0_13
LBB0_12:
	callq	_ST_A9_FIQ_N_SEL
LBB0_13:
	orl	%eax, (%r15)
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_2
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_14
	.long	L0_0_set_4
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_ST_A9_IRQ_EN_EXT_0,4,2         ## @ST_A9_IRQ_EN_EXT_0
	.comm	_ST_A9_IRQ_EN_EXT_1,4,2         ## @ST_A9_IRQ_EN_EXT_1
	.comm	_ST_A9_IRQ_EN_EXT_2,4,2         ## @ST_A9_IRQ_EN_EXT_2
	.comm	_ST_A9_IRQ_EN_CTI_0,4,2         ## @ST_A9_IRQ_EN_CTI_0
	.comm	_ST_A9_IRQ_EN_CTI_1,4,2         ## @ST_A9_IRQ_EN_CTI_1
	.comm	_ST_A9_IRQ_EN_PMU_0,4,2         ## @ST_A9_IRQ_EN_PMU_0
	.comm	_ST_A9_IRQ_EN_PMU_1,4,2         ## @ST_A9_IRQ_EN_PMU_1
	.comm	_ST_A9_IRQ_EN_PL310_L2,4,2      ## @ST_A9_IRQ_EN_PL310_L2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unrecognised device %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_st_irq_xlate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st_irq_xlate
_st_irq_xlate:                          ; @st_irq_xlate
	.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	x22, x3
	mov	x21, x2
	mov	x20, x1
	mov	x23, x0
	bl	_dev_get_drvdata
	sub	w9, w20, #128
	cmp	w9, #8
	b.hi	LBB0_3
; %bb.1:
	mov	x19, x0
	mov	w0, #0
Lloh0:
	adrp	x8, _ST_A9_IRQ_EN_EXT_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ST_A9_IRQ_EN_EXT_0@GOTPAGEOFF]
Lloh2:
	adrp	x10, lJTI0_0@PAGE
Lloh3:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, ls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r	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x20
	mov	x1, x21
	cbz	w22, LBB0_12
; %bb.11:
	bl	_ST_A9_IRQ_N_SEL
	b	LBB0_13
LBB0_12:
	bl	_ST_A9_FIQ_N_SEL
LBB0_13:
	mov	x8, x0
	mov	w0, #0
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_14:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.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
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
                                        ; -- End function
	.comm	_ST_A9_IRQ_EN_EXT_0,4,2         ; @ST_A9_IRQ_EN_EXT_0
	.comm	_ST_A9_IRQ_EN_EXT_1,4,2         ; @ST_A9_IRQ_EN_EXT_1
	.comm	_ST_A9_IRQ_EN_EXT_2,4,2         ; @ST_A9_IRQ_EN_EXT_2
	.comm	_ST_A9_IRQ_EN_CTI_0,4,2         ; @ST_A9_IRQ_EN_CTI_0
	.comm	_ST_A9_IRQ_EN_CTI_1,4,2         ; @ST_A9_IRQ_EN_CTI_1
	.comm	_ST_A9_IRQ_EN_PMU_0,4,2         ; @ST_A9_IRQ_EN_PMU_0
	.comm	_ST_A9_IRQ_EN_PMU_1,4,2         ; @ST_A9_IRQ_EN_PMU_1
	.comm	_ST_A9_IRQ_EN_PL310_L2,4,2      ; @ST_A9_IRQ_EN_PL310_L2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unrecognised device %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_st_irq_xlate
.subsections_via_symbols
