	.file	"extr_vega10_ih.c_vega10_ih_rb_cntl.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vega10_ih_rb_cntl, @function
vega10_ih_rb_cntl:
.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
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR [rdi]
	mov	rbx, rdi
	test	eax, eax
	lea	edi, 3[rax]
	cmovns	edi, eax
	sar	edi, 2
	call	order_base_2@PLT
	cmp	QWORD PTR 8[rbx], 1
	mov	edx, DWORD PTR MC_SPACE[rip]
	mov	edi, ebp
	sbb	ecx, ecx
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	mov	r12d, eax
	and	ecx, 3
	add	ecx, 1
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR WPTR_OVERFLOW_CLEAR[rip]
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR WPTR_OVERFLOW_ENABLE[rip]
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR RB_SIZE[rip]
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	mov	ecx, r12d
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR WPTR_WRITEBACK_ENABLE[rip]
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR MC_SNOOP[rip]
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR MC_RO[rip]
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	xor	ecx, ecx
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR MC_VMID[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	ecx, ecx
	mov	esi, DWORD PTR IH_RB_CNTL[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	edi, eax
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	REG_SET_FIELD@PLT
	.cfi_endproc
.LFE0:
	.size	vega10_ih_rb_cntl, .-vega10_ih_rb_cntl
	.comm	WPTR_WRITEBACK_ENABLE,4,4
	.comm	WPTR_OVERFLOW_ENABLE,4,4
	.comm	WPTR_OVERFLOW_CLEAR,4,4
	.comm	RB_SIZE,4,4
	.comm	MC_VMID,4,4
	.comm	MC_SPACE,4,4
	.comm	MC_SNOOP,4,4
	.comm	MC_RO,4,4
	.comm	IH_RB_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_vega10_ih.c_vega10_ih_rb_cntl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vega10_ih_rb_cntl, %function
vega10_ih_rb_cntl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	cmp	r3, #0
	mov	r4, r0
	add	r0, r3, #3
	movlt	r3, r0
	asr	r0, r3, #2
	mov	r6, r1
	bl	order_base_2
	mov	r5, r0
	ldr	r3, [r4, #4]
	ldr	r2, .L6
	ldr	r4, .L6+4
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #4
	ldr	r1, [r4]
	mov	r0, r6
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r3, .L6+8
	ldr	r1, [r4]
	ldr	r2, [r3]
	mov	r3, #1
	bl	REG_SET_FIELD
	ldr	r3, .L6+12
	ldr	r1, [r4]
	ldr	r2, [r3]
	mov	r3, #1
	bl	REG_SET_FIELD
	ldr	r2, .L6+16
	mov	r3, r5
	ldr	r1, [r4]
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	ldr	r3, .L6+20
	ldr	r1, [r4]
	ldr	r2, [r3]
	mov	r3, #1
	bl	REG_SET_FIELD
	ldr	r3, .L6+24
	ldr	r1, [r4]
	ldr	r2, [r3]
	mov	r3, #1
	bl	REG_SET_FIELD
	ldr	r3, .L6+28
	ldr	r1, [r4]
	ldr	r2, [r3]
	mov	r3, #0
	bl	REG_SET_FIELD
	ldr	r3, .L6+32
	ldr	r1, [r4]
	ldr	r2, [r3]
	pop	{r4, r5, r6, lr}
	mov	r3, #0
	b	REG_SET_FIELD
.L7:
	.align	2
.L6:
	.word	MC_SPACE
	.word	IH_RB_CNTL
	.word	WPTR_OVERFLOW_CLEAR
	.word	WPTR_OVERFLOW_ENABLE
	.word	RB_SIZE
	.word	WPTR_WRITEBACK_ENABLE
	.word	MC_SNOOP
	.word	MC_RO
	.word	MC_VMID
	.size	vega10_ih_rb_cntl, .-vega10_ih_rb_cntl
	.comm	WPTR_WRITEBACK_ENABLE,4,4
	.comm	WPTR_OVERFLOW_ENABLE,4,4
	.comm	WPTR_OVERFLOW_CLEAR,4,4
	.comm	RB_SIZE,4,4
	.comm	MC_VMID,4,4
	.comm	MC_SPACE,4,4
	.comm	MC_SNOOP,4,4
	.comm	MC_RO,4,4
	.comm	IH_RB_CNTL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
