	.file	"extr_i915_gem_tiling.c_i915_gem_get_tiling.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unknown tiling mode\n"
	.text
	.p2align 4
	.globl	i915_gem_get_tiling
	.type	i915_gem_get_tiling, @function
i915_gem_get_tiling:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	mov	rsi, rdx
	mov	r13, QWORD PTR 8[rdi]
	mov	edx, DWORD PTR 16[rbx]
	call	drm_gem_object_lookup@PLT
	mov	edi, eax
	call	to_intel_bo@PLT
	mov	rdi, rbp
	mov	r12, rax
	lea	r14, 4[rax]
	call	mutex_lock@PLT
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR [rbx], eax
	cmp	eax, 129
	je	.L2
	cmp	eax, 130
	je	.L3
	cmp	eax, 128
	je	.L12
	lea	rdi, .LC0[rip]
	call	DRM_ERROR@PLT
	mov	rax, QWORD PTR 8[rbx]
.L6:
	cmp	QWORD PTR I915_BIT_6_SWIZZLE_9_17[rip], rax
	jne	.L7
	mov	rax, QWORD PTR I915_BIT_6_SWIZZLE_9[rip]
	mov	QWORD PTR 8[rbx], rax
.L7:
	cmp	QWORD PTR I915_BIT_6_SWIZZLE_9_10_17[rip], rax
	jne	.L8
	mov	rax, QWORD PTR I915_BIT_6_SWIZZLE_9_10[rip]
	mov	QWORD PTR 8[rbx], rax
.L8:
	mov	rdi, r14
	call	drm_gem_object_unreference@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[r13]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR I915_BIT_6_SWIZZLE_NONE[rip]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rax, QWORD PTR 0[r13]
	mov	QWORD PTR 8[rbx], rax
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	i915_gem_get_tiling, .-i915_gem_get_tiling
	.comm	I915_BIT_6_SWIZZLE_NONE,8,8
	.comm	I915_BIT_6_SWIZZLE_9_17,8,8
	.comm	I915_BIT_6_SWIZZLE_9_10_17,8,8
	.comm	I915_BIT_6_SWIZZLE_9_10,8,8
	.comm	I915_BIT_6_SWIZZLE_9,8,8
	.comm	ENOENT,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_i915_gem_tiling.c_i915_gem_get_tiling.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unknown tiling mode\012\000"
	.text
	.align	2
	.global	i915_gem_get_tiling
	.syntax unified
	.arm
	.fpu softvfp
	.type	i915_gem_get_tiling, %function
i915_gem_get_tiling:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r1, r2
	ldr	r2, [r4, #8]
	mov	r5, r0
	ldr	r7, [r0, #4]
	bl	drm_gem_object_lookup
	bl	to_intel_bo
	mov	r6, r0
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, [r6], #4
	cmp	r3, #129
	str	r3, [r4]
	beq	.L2
	cmp	r3, #130
	beq	.L3
	cmp	r3, #128
	beq	.L12
	ldr	r0, .L13
	bl	DRM_ERROR
	ldr	r3, [r4, #4]
.L6:
	ldr	r2, .L13+4
	mov	r0, r6
	ldr	r2, [r2]
	cmp	r2, r3
	ldreq	r3, .L13+8
	ldr	r2, .L13+12
	ldreq	r3, [r3]
	ldr	r2, [r2]
	streq	r3, [r4, #4]
	cmp	r2, r3
	ldreq	r3, .L13+16
	ldreq	r3, [r3]
	streq	r3, [r4, #4]
	bl	drm_gem_object_unreference
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r3, [r7]
	str	r3, [r4, #4]
	b	.L6
.L12:
	ldr	r3, [r7, #4]
	str	r3, [r4, #4]
	b	.L6
.L3:
	ldr	r3, .L13+20
	ldr	r3, [r3]
	str	r3, [r4, #4]
	b	.L6
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	I915_BIT_6_SWIZZLE_9_17
	.word	I915_BIT_6_SWIZZLE_9
	.word	I915_BIT_6_SWIZZLE_9_10_17
	.word	I915_BIT_6_SWIZZLE_9_10
	.word	I915_BIT_6_SWIZZLE_NONE
	.size	i915_gem_get_tiling, .-i915_gem_get_tiling
	.comm	I915_BIT_6_SWIZZLE_NONE,4,4
	.comm	I915_BIT_6_SWIZZLE_9_17,4,4
	.comm	I915_BIT_6_SWIZZLE_9_10_17,4,4
	.comm	I915_BIT_6_SWIZZLE_9_10,4,4
	.comm	I915_BIT_6_SWIZZLE_9,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
