	.file	"extr_tilcdc_crtc.c_tilcdc_crtc_enable_irqs.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tilcdc_crtc_enable_irqs, @function
tilcdc_crtc_enable_irqs:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	esi, -1
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	call	tilcdc_clear_irqstatus@PLT
	cmp	DWORD PTR [rbx], 1
	je	.L5
	mov	edx, DWORD PTR LCDC_V2_UNDERFLOW_INT_ENA[rip]
	mov	esi, DWORD PTR LCDC_INT_ENABLE_SET_REG[rip]
	mov	rdi, rbp
	or	edx, DWORD PTR LCDC_V2_END_OF_FRAME0_INT_ENA[rip]
	or	edx, DWORD PTR LCDC_FRAME_DONE[rip]
	or	edx, DWORD PTR LCDC_SYNC_LOST[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	tilcdc_write@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR LCDC_RASTER_CTRL_REG[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR LCDC_V1_SYNC_LOST_INT_ENA[rip]
	or	edx, DWORD PTR LCDC_V1_FRAME_DONE_INT_ENA[rip]
	or	edx, DWORD PTR LCDC_V1_UNDERFLOW_INT_ENA[rip]
	call	tilcdc_set@PLT
	mov	edx, DWORD PTR LCDC_V1_END_OF_FRAME_INT_ENA[rip]
	mov	esi, DWORD PTR LCDC_DMA_CTRL_REG[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	tilcdc_set@PLT
	.cfi_endproc
.LFE0:
	.size	tilcdc_crtc_enable_irqs, .-tilcdc_crtc_enable_irqs
	.comm	LCDC_V2_UNDERFLOW_INT_ENA,4,4
	.comm	LCDC_V2_END_OF_FRAME0_INT_ENA,4,4
	.comm	LCDC_V1_UNDERFLOW_INT_ENA,4,4
	.comm	LCDC_V1_SYNC_LOST_INT_ENA,4,4
	.comm	LCDC_V1_FRAME_DONE_INT_ENA,4,4
	.comm	LCDC_V1_END_OF_FRAME_INT_ENA,4,4
	.comm	LCDC_SYNC_LOST,4,4
	.comm	LCDC_RASTER_CTRL_REG,4,4
	.comm	LCDC_INT_ENABLE_SET_REG,4,4
	.comm	LCDC_FRAME_DONE,4,4
	.comm	LCDC_DMA_CTRL_REG,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_tilcdc_crtc.c_tilcdc_crtc_enable_irqs.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tilcdc_crtc_enable_irqs, %function
tilcdc_crtc_enable_irqs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, [r0]
	mvn	r1, #0
	mov	r4, r0
	bl	tilcdc_clear_irqstatus
	ldr	r3, [r5]
	cmp	r3, #1
	beq	.L5
	ldr	r3, .L6
	ldr	r2, .L6+4
	ldr	r0, .L6+8
	ldr	r2, [r2]
	ldr	r1, .L6+12
	ldr	r3, [r3]
	ldr	r0, [r0]
	orr	r3, r3, r2
	ldr	r2, [r1]
	ldr	r1, .L6+16
	orr	r3, r3, r0
	ldr	r1, [r1]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	orr	r2, r3, r2
	b	tilcdc_write
.L5:
	ldr	r1, .L6+20
	ldr	r3, .L6+24
	ldr	r2, .L6+28
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, .L6+32
	orr	r3, r3, r0
	orr	r2, r3, r2
	mov	r0, r4
	ldr	r1, [r1]
	bl	tilcdc_set
	ldr	r2, .L6+36
	ldr	r3, .L6+40
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	tilcdc_set
.L7:
	.align	2
.L6:
	.word	LCDC_V2_UNDERFLOW_INT_ENA
	.word	LCDC_V2_END_OF_FRAME0_INT_ENA
	.word	LCDC_FRAME_DONE
	.word	LCDC_SYNC_LOST
	.word	LCDC_INT_ENABLE_SET_REG
	.word	LCDC_V1_FRAME_DONE_INT_ENA
	.word	LCDC_V1_SYNC_LOST_INT_ENA
	.word	LCDC_V1_UNDERFLOW_INT_ENA
	.word	LCDC_RASTER_CTRL_REG
	.word	LCDC_V1_END_OF_FRAME_INT_ENA
	.word	LCDC_DMA_CTRL_REG
	.size	tilcdc_crtc_enable_irqs, .-tilcdc_crtc_enable_irqs
	.comm	LCDC_V2_UNDERFLOW_INT_ENA,4,4
	.comm	LCDC_V2_END_OF_FRAME0_INT_ENA,4,4
	.comm	LCDC_V1_UNDERFLOW_INT_ENA,4,4
	.comm	LCDC_V1_SYNC_LOST_INT_ENA,4,4
	.comm	LCDC_V1_FRAME_DONE_INT_ENA,4,4
	.comm	LCDC_V1_END_OF_FRAME_INT_ENA,4,4
	.comm	LCDC_SYNC_LOST,4,4
	.comm	LCDC_RASTER_CTRL_REG,4,4
	.comm	LCDC_INT_ENABLE_SET_REG,4,4
	.comm	LCDC_FRAME_DONE,4,4
	.comm	LCDC_DMA_CTRL_REG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
