	.file	"extr_t3_hw.c_t3_intr_enable.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	t3_intr_enable
	.type	t3_intr_enable, @function
t3_intr_enable:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR PL_INTR_MASK[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	DWORD PTR [rdi], eax
	lea	rdi, intr_en_avp.1961[rip]
	call	ARRAY_SIZE@PLT
	xor	ecx, ecx
	lea	rsi, intr_en_avp.1961[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	t3_write_regs@PLT
	mov	rax, QWORD PTR T3_REV_C[rip]
	mov	edx, 46137343
	mov	rdi, rbp
	cmp	QWORD PTR 8[rbp], rax
	mov	eax, 62914559
	mov	esi, DWORD PTR A_TP_INT_ENABLE[rip]
	cmovl	edx, eax
	call	t3_write_reg@PLT
	cmp	QWORD PTR 8[rbp], 0
	mov	edx, DWORD PTR CPLSW_INTR_MASK[rip]
	jle	.L3
	mov	esi, DWORD PTR A_CPL_INTR_ENABLE[rip]
	or	edx, DWORD PTR F_CIM_OVFL_ERROR[rip]
	mov	rdi, rbp
	call	t3_write_reg@PLT
	mov	esi, DWORD PTR A_ULPTX_INT_ENABLE[rip]
	mov	edx, DWORD PTR ULPTX_INTR_MASK[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR F_PBL_BOUND_ERR_CH0[rip]
	or	edx, DWORD PTR F_PBL_BOUND_ERR_CH1[rip]
	call	t3_write_reg@PLT
.L4:
	mov	rdi, rbp
	call	calc_gpio_intr@PLT
	mov	esi, DWORD PTR A_T3DBG_INT_ENABLE[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	t3_write_reg@PLT
	mov	rdi, rbp
	call	is_pcie@PLT
	test	rax, rax
	je	.L5
	mov	edx, DWORD PTR PCIE_INTR_MASK[rip]
	mov	esi, DWORD PTR A_PCIE_INT_ENABLE[rip]
	mov	rdi, rbp
	call	t3_write_reg@PLT
.L6:
	mov	edx, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR A_PL_INT_ENABLE0[rip]
	mov	rdi, rbp
	call	t3_write_reg@PLT
	mov	esi, DWORD PTR A_PL_INT_ENABLE0[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	t3_read_reg@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR PCIX_INTR_MASK[rip]
	mov	esi, DWORD PTR A_PCIX_INT_ENABLE[rip]
	mov	rdi, rbp
	call	t3_write_reg@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR A_CPL_INTR_ENABLE[rip]
	mov	rdi, rbp
	call	t3_write_reg@PLT
	mov	edx, DWORD PTR ULPTX_INTR_MASK[rip]
	mov	esi, DWORD PTR A_ULPTX_INT_ENABLE[rip]
	mov	rdi, rbp
	call	t3_write_reg@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	t3_intr_enable, .-t3_intr_enable
	.section	.rodata
	.align 32
	.type	intr_en_avp.1961, @object
	.size	intr_en_avp.1961, 160
intr_en_avp.1961:
	.long	140
	.zero	4
	.quad	129
	.long	144
	.zero	4
	.quad	135
	.long	143
	.zero	4
	.quad	135
	.long	146
	.zero	4
	.quad	135
	.long	145
	.zero	4
	.quad	137
	.long	139
	.zero	4
	.quad	128
	.long	141
	.zero	4
	.quad	130
	.long	142
	.zero	4
	.quad	131
	.long	146
	.zero	4
	.quad	138
	.long	143
	.zero	4
	.quad	132
	.comm	ULPTX_INTR_MASK,4,4
	.comm	T3_REV_C,8,8
	.comm	PL_INTR_MASK,4,4
	.comm	PCIX_INTR_MASK,4,4
	.comm	PCIE_INTR_MASK,4,4
	.comm	F_PBL_BOUND_ERR_CH1,4,4
	.comm	F_PBL_BOUND_ERR_CH0,4,4
	.comm	F_CIM_OVFL_ERROR,4,4
	.comm	CPLSW_INTR_MASK,4,4
	.comm	A_ULPTX_INT_ENABLE,4,4
	.comm	A_TP_INT_ENABLE,4,4
	.comm	A_T3DBG_INT_ENABLE,4,4
	.comm	A_PL_INT_ENABLE0,4,4
	.comm	A_PCIX_INT_ENABLE,4,4
	.comm	A_PCIE_INT_ENABLE,4,4
	.comm	A_CPL_INTR_ENABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_t3_hw.c_t3_intr_enable.c"
	.text
	.align	2
	.global	t3_intr_enable
	.syntax unified
	.arm
	.fpu softvfp
	.type	t3_intr_enable, %function
t3_intr_enable:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L10
	ldr	r0, .L10+4
	ldr	r3, [r3]
	str	r3, [r4]
	bl	ARRAY_SIZE
	mov	r3, #0
	mov	r2, r0
	ldr	r1, .L10+4
	mov	r0, r4
	bl	t3_write_regs
	ldr	r3, .L10+8
	ldr	ip, [r4, #4]
	ldr	r2, [r3]
	ldr	r0, .L10+12
	ldr	r3, .L10+16
	ldr	r1, .L10+20
	cmp	ip, r2
	movge	r2, r0
	movlt	r2, r1
	mov	r0, r4
	ldr	r1, [r3]
	bl	t3_write_reg
	ldr	r3, [r4, #4]
	ldr	r2, .L10+24
	cmp	r3, #0
	ble	.L3
	ldr	r3, .L10+28
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+32
	orr	r2, r1, r2
	mov	r0, r4
	ldr	r1, [r3]
	bl	t3_write_reg
	ldr	r1, .L10+36
	ldr	r3, .L10+40
	ldr	r2, .L10+44
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L10+48
	orr	r3, r3, r0
	ldr	r1, [r1]
	mov	r0, r4
	orr	r2, r3, r2
	bl	t3_write_reg
.L4:
	ldr	r3, .L10+52
	mov	r0, r4
	ldr	r5, [r3]
	bl	calc_gpio_intr
	mov	r1, r5
	mov	r2, r0
	mov	r0, r4
	bl	t3_write_reg
	mov	r0, r4
	bl	is_pcie
	cmp	r0, #0
	ldrne	r2, .L10+56
	ldrne	r3, .L10+60
	ldreq	r2, .L10+64
	ldreq	r3, .L10+68
	ldr	r5, .L10+72
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r2, [r2]
	bl	t3_write_reg
	ldr	r1, [r5]
	mov	r0, r4
	ldr	r2, [r4]
	bl	t3_write_reg
	mov	r0, r4
	ldr	r1, [r5]
	pop	{r4, r5, r6, lr}
	b	t3_read_reg
.L3:
	ldr	r3, .L10+32
	mov	r0, r4
	ldr	r1, [r3]
	ldr	r2, [r2]
	bl	t3_write_reg
	ldr	r3, .L10+48
	ldr	r2, .L10+40
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	t3_write_reg
	b	.L4
.L11:
	.align	2
.L10:
	.word	PL_INTR_MASK
	.word	.LANCHOR0
	.word	T3_REV_C
	.word	46137343
	.word	A_TP_INT_ENABLE
	.word	62914559
	.word	CPLSW_INTR_MASK
	.word	F_CIM_OVFL_ERROR
	.word	A_CPL_INTR_ENABLE
	.word	F_PBL_BOUND_ERR_CH0
	.word	ULPTX_INTR_MASK
	.word	F_PBL_BOUND_ERR_CH1
	.word	A_ULPTX_INT_ENABLE
	.word	A_T3DBG_INT_ENABLE
	.word	PCIE_INTR_MASK
	.word	A_PCIE_INT_ENABLE
	.word	PCIX_INTR_MASK
	.word	A_PCIX_INT_ENABLE
	.word	A_PL_INT_ENABLE0
	.size	t3_intr_enable, .-t3_intr_enable
	.comm	ULPTX_INTR_MASK,4,4
	.comm	T3_REV_C,4,4
	.comm	PL_INTR_MASK,4,4
	.comm	PCIX_INTR_MASK,4,4
	.comm	PCIE_INTR_MASK,4,4
	.comm	F_PBL_BOUND_ERR_CH1,4,4
	.comm	F_PBL_BOUND_ERR_CH0,4,4
	.comm	F_CIM_OVFL_ERROR,4,4
	.comm	CPLSW_INTR_MASK,4,4
	.comm	A_ULPTX_INT_ENABLE,4,4
	.comm	A_TP_INT_ENABLE,4,4
	.comm	A_T3DBG_INT_ENABLE,4,4
	.comm	A_PL_INT_ENABLE0,4,4
	.comm	A_PCIX_INT_ENABLE,4,4
	.comm	A_PCIE_INT_ENABLE,4,4
	.comm	A_CPL_INTR_ENABLE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	intr_en_avp.4245, %object
	.size	intr_en_avp.4245, 80
intr_en_avp.4245:
	.word	140
	.word	129
	.word	144
	.word	135
	.word	143
	.word	135
	.word	146
	.word	135
	.word	145
	.word	137
	.word	139
	.word	128
	.word	141
	.word	130
	.word	142
	.word	131
	.word	146
	.word	138
	.word	143
	.word	132
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
