	.file	"extr_cypress_dpm.c_cypress_enable_display_gap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cypress_enable_display_gap
	.type	cypress_enable_display_gap, @function
cypress_enable_display_gap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR CG_DISPLAY_GAP_CNTL[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	RREG32@PLT
	mov	ebp, DWORD PTR DISP1_GAP_MASK[rip]
	mov	edi, DWORD PTR R600_PM_DISPLAY_GAP_IGNORE[rip]
	or	ebp, DWORD PTR DISP2_GAP_MASK[rip]
	not	ebp
	and	ebp, eax
	call	DISP1_GAP@PLT
	mov	edi, DWORD PTR R600_PM_DISPLAY_GAP_IGNORE[rip]
	mov	r12d, ebp
	mov	ebp, eax
	call	DISP2_GAP@PLT
	mov	esi, DWORD PTR DISP1_GAP_MCHG_MASK[rip]
	mov	edi, DWORD PTR R600_PM_DISPLAY_GAP_VBLANK[rip]
	or	ebp, eax
	or	esi, DWORD PTR DISP2_GAP_MCHG_MASK[rip]
	not	esi
	or	ebp, r12d
	and	ebp, esi
	call	DISP1_GAP_MCHG@PLT
	mov	edi, DWORD PTR R600_PM_DISPLAY_GAP_IGNORE[rip]
	mov	ebx, eax
	call	DISP2_GAP_MCHG@PLT
	mov	edi, DWORD PTR CG_DISPLAY_GAP_CNTL[rip]
	or	ebx, eax
	mov	esi, ebx
	pop	rbx
	.cfi_def_cfa_offset 24
	or	esi, ebp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	WREG32@PLT
	.cfi_endproc
.LFE0:
	.size	cypress_enable_display_gap, .-cypress_enable_display_gap
	.comm	R600_PM_DISPLAY_GAP_VBLANK,4,4
	.comm	R600_PM_DISPLAY_GAP_IGNORE,4,4
	.comm	DISP2_GAP_MCHG_MASK,4,4
	.comm	DISP2_GAP_MASK,4,4
	.comm	DISP1_GAP_MCHG_MASK,4,4
	.comm	DISP1_GAP_MASK,4,4
	.comm	CG_DISPLAY_GAP_CNTL,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_cypress_dpm.c_cypress_enable_display_gap.c"
	.text
	.align	2
	.global	cypress_enable_display_gap
	.syntax unified
	.arm
	.fpu softvfp
	.type	cypress_enable_display_gap, %function
cypress_enable_display_gap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L4
	ldr	r6, .L4+4
	ldr	r0, [r7]
	bl	RREG32
	ldr	r2, .L4+8
	ldr	r3, .L4+12
	mov	r4, r0
	ldr	r0, [r6]
	ldr	r5, [r3]
	ldr	r8, [r2]
	bl	DISP1_GAP
	orr	r8, r8, r5
	mov	r5, r0
	ldr	r0, [r6]
	bl	DISP2_GAP
	ldr	r2, .L4+16
	ldr	r3, .L4+20
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L4+24
	bic	r8, r4, r8
	orr	r4, r5, r0
	orr	r1, r1, r2
	ldr	r0, [r3]
	orr	r4, r4, r8
	bic	r4, r4, r1
	bl	DISP1_GAP_MCHG
	mov	r5, r0
	ldr	r0, [r6]
	bl	DISP2_GAP_MCHG
	orr	r1, r5, r0
	orr	r1, r1, r4
	ldr	r0, [r7]
	pop	{r4, r5, r6, r7, r8, lr}
	b	WREG32
.L5:
	.align	2
.L4:
	.word	CG_DISPLAY_GAP_CNTL
	.word	R600_PM_DISPLAY_GAP_IGNORE
	.word	DISP1_GAP_MASK
	.word	DISP2_GAP_MASK
	.word	DISP1_GAP_MCHG_MASK
	.word	DISP2_GAP_MCHG_MASK
	.word	R600_PM_DISPLAY_GAP_VBLANK
	.size	cypress_enable_display_gap, .-cypress_enable_display_gap
	.comm	R600_PM_DISPLAY_GAP_VBLANK,4,4
	.comm	R600_PM_DISPLAY_GAP_IGNORE,4,4
	.comm	DISP2_GAP_MCHG_MASK,4,4
	.comm	DISP2_GAP_MASK,4,4
	.comm	DISP1_GAP_MCHG_MASK,4,4
	.comm	DISP1_GAP_MASK,4,4
	.comm	CG_DISPLAY_GAP_CNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
