	.file	"extr_intel_display.c_intel_surf_alignment.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_surf_alignment, @function
intel_surf_alignment:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 4[rdi]
	call	to_i915@PLT
	cmp	ebp, 1
	je	.L6
	mov	edi, DWORD PTR [rbx]
	cmp	edi, 132
	je	.L3
	jg	.L4
	lea	eax, -128[rdi]
	cmp	eax, 3
	ja	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1048576
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	edi, 133
	jne	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	intel_linear_alignment@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rax
	call	INTEL_GEN@PLT
	cmp	eax, 8
	setg	al
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	movzx	eax, al
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	sal	eax, 18
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	call	MISSING_CASE@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, 4096
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	intel_surf_alignment, .-intel_surf_alignment
	.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_display.c_intel_surf_alignment.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_surf_alignment, %function
intel_surf_alignment:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	mov	r4, r0
	ldr	r0, [r0, #4]
	bl	to_i915
	cmp	r5, #1
	beq	.L6
	ldr	r3, [r4]
	cmp	r3, #132
	beq	.L3
	bgt	.L4
	sub	r2, r3, #128
	cmp	r2, #3
	bhi	.L5
	mov	r0, #1048576
	pop	{r4, r5, r6, pc}
.L4:
	cmp	r3, #133
	bne	.L5
	pop	{r4, r5, r6, lr}
	b	intel_linear_alignment
.L3:
	bl	INTEL_GEN
	cmp	r0, #8
	movle	r0, #0
	movgt	r0, #262144
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r3
	bl	MISSING_CASE
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L6:
	mov	r0, #4096
	pop	{r4, r5, r6, pc}
	.size	intel_surf_alignment, .-intel_surf_alignment
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
