	.file	"extr_i915_gem_stolen.c_gen6_get_stolen_reserved.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"GEN6_STOLEN_RESERVED = %08x\n"
	.text
	.p2align 4
	.type	gen6_get_stolen_reserved, @function
gen6_get_stolen_reserved:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR GEN6_STOLEN_RESERVED[rip]
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	I915_READ@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	mov	ebx, eax
	call	DRM_DEBUG_DRIVER@PLT
	test	DWORD PTR GEN6_STOLEN_RESERVED_ENABLE[rip], ebx
	je	.L1
	mov	eax, DWORD PTR GEN6_STOLEN_RESERVED_ADDR_MASK[rip]
	and	eax, ebx
	mov	DWORD PTR [r12], eax
	mov	eax, DWORD PTR GEN6_STOLEN_RESERVED_SIZE_MASK[rip]
	and	eax, ebx
	cmp	eax, 130
	je	.L3
	jg	.L4
	cmp	eax, 128
	je	.L5
	cmp	eax, 129
	jne	.L7
	mov	DWORD PTR 0[rbp], 262144
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	cmp	eax, 131
	jne	.L7
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], 131072
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], 524288
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	DWORD PTR 0[rbp], 1048576
	mov	edi, DWORD PTR GEN6_STOLEN_RESERVED_SIZE_MASK[rip]
	and	edi, ebx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	MISSING_CASE@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	DWORD PTR 0[rbp], 1048576
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	gen6_get_stolen_reserved, .-gen6_get_stolen_reserved
	.comm	GEN6_STOLEN_RESERVED_SIZE_MASK,4,4
	.comm	GEN6_STOLEN_RESERVED_ENABLE,4,4
	.comm	GEN6_STOLEN_RESERVED_ADDR_MASK,4,4
	.comm	GEN6_STOLEN_RESERVED,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_stolen.c_gen6_get_stolen_reserved.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"GEN6_STOLEN_RESERVED = %08x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gen6_get_stolen_reserved, %function
gen6_get_stolen_reserved:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, lr}
	ldr	r0, [r3]
	mov	r6, r1
	mov	r5, r2
	bl	I915_READ
	mov	r4, r0
	ldr	r0, .L14+4
	mov	r1, r4
	bl	DRM_DEBUG_DRIVER
	ldr	r3, .L14+8
	ldr	r3, [r3]
	tst	r4, r3
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L14+12
	ldr	r2, .L14+16
	ldr	r3, [r3]
	and	r3, r3, r4
	str	r3, [r6]
	ldr	r3, [r2]
	and	r3, r3, r4
	sub	r3, r3, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L4:
	mov	r3, #131072
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L8:
	mov	r3, #524288
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r3, #262144
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L6:
	mov	r3, #1048576
	str	r3, [r5]
	pop	{r4, r5, r6, pc}
.L3:
	mov	r3, #1048576
	str	r3, [r5]
	ldr	r0, [r2]
	and	r0, r0, r4
	pop	{r4, r5, r6, lr}
	b	MISSING_CASE
.L15:
	.align	2
.L14:
	.word	GEN6_STOLEN_RESERVED
	.word	.LC0
	.word	GEN6_STOLEN_RESERVED_ENABLE
	.word	GEN6_STOLEN_RESERVED_ADDR_MASK
	.word	GEN6_STOLEN_RESERVED_SIZE_MASK
	.size	gen6_get_stolen_reserved, .-gen6_get_stolen_reserved
	.comm	GEN6_STOLEN_RESERVED_SIZE_MASK,4,4
	.comm	GEN6_STOLEN_RESERVED_ENABLE,4,4
	.comm	GEN6_STOLEN_RESERVED_ADDR_MASK,4,4
	.comm	GEN6_STOLEN_RESERVED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
