	.file	"extr_intel_pm.c_i845_update_wm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Setting FIFO watermarks - A: %d\n"
	.text
	.p2align 4
	.type	i845_update_wm, @function
i845_update_wm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	edi, DWORD PTR 8[rdi]
	call	to_i915@PLT
	mov	rdi, rax
	mov	rbx, rax
	call	single_enabled_crtc@PLT
	test	rax, rax
	je	.L1
	mov	rbp, QWORD PTR [rax]
	mov	r12d, DWORD PTR pessimal_latency_ns[rip]
	mov	rdi, rbx
	mov	esi, DWORD PTR PLANE_A[rip]
	call	[QWORD PTR [rbx]]
	mov	edi, DWORD PTR 0[rbp]
	mov	r8d, r12d
	mov	ecx, 4
	mov	edx, eax
	lea	rsi, i845_wm_info[rip]
	call	intel_calculate_wm@PLT
	mov	edi, DWORD PTR FW_BLC[rip]
	mov	ebp, eax
	call	I915_READ@PLT
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	and	eax, -4096
	mov	ebx, eax
	call	DRM_DEBUG_KMS@PLT
	or	ebx, ebp
	mov	edi, DWORD PTR FW_BLC[rip]
	mov	esi, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	or	esi, 768
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	I915_WRITE@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i845_update_wm, .-i845_update_wm
	.comm	pessimal_latency_ns,4,4
	.comm	i845_wm_info,4,4
	.comm	PLANE_A,4,4
	.comm	FW_BLC,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_intel_pm.c_i845_update_wm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Setting FIFO watermarks - A: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i845_update_wm, %function
i845_update_wm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r0, [r0, #4]
	sub	sp, sp, #8
	bl	to_i915
	mov	r4, r0
	bl	single_enabled_crtc
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L5
	ldr	r2, [r0]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r3, [r4]
	ldr	r4, [r2]
	blx	r3
	ldr	r3, .L5+4
	mov	r2, r0
	ldr	r3, [r3]
	ldr	r1, .L5+8
	str	r3, [sp]
	mov	r0, r4
	mov	r3, #4
	bl	intel_calculate_wm
	ldr	r6, .L5+12
	mov	r5, r0
	ldr	r0, [r6]
	bl	I915_READ
	bic	r3, r0, #4080
	mov	r1, r5
	bic	r3, r3, #15
	ldr	r0, .L5+16
	orr	r4, r3, r5
	bl	DRM_DEBUG_KMS
	ldr	r0, [r6]
	orr	r1, r4, #768
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	I915_WRITE
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L6:
	.align	2
.L5:
	.word	PLANE_A
	.word	pessimal_latency_ns
	.word	i845_wm_info
	.word	FW_BLC
	.word	.LC0
	.size	i845_update_wm, .-i845_update_wm
	.comm	pessimal_latency_ns,4,4
	.comm	i845_wm_info,4,4
	.comm	PLANE_A,4,4
	.comm	FW_BLC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
