	.file	"extr_dpu_hw_vbif.c_dpu_hw_set_mem_type.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	dpu_hw_set_mem_type, @function
dpu_hw_set_mem_type:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L1
	cmp	DWORD PTR MAX_XIN_COUNT[rip], esi
	jle	.L1
	cmp	esi, 15
	jg	.L1
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	cmp	esi, 7
	jg	.L12
	mov	r13d, DWORD PTR VBIF_OUT_AXI_AMEMTYPE_CONF0[rip]
	and	esi, 7
.L4:
	lea	ebx, 0[0+rsi*4]
	mov	rdi, r12
	mov	esi, r13d
	call	DPU_REG_READ@PLT
	mov	ecx, ebx
	mov	esi, 7
	add	rsp, 8
	.cfi_def_cfa_offset 40
	sal	esi, cl
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	mov	rdi, r12
	mov	edx, esi
	mov	esi, r13d
	not	edx
	and	eax, edx
	mov	edx, ebp
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	and	edx, 7
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	sal	edx, cl
	or	edx, eax
	jmp	DPU_REG_WRITE@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	r13d, DWORD PTR VBIF_OUT_AXI_AMEMTYPE_CONF1[rip]
	sub	esi, 8
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	dpu_hw_set_mem_type, .-dpu_hw_set_mem_type
	.comm	VBIF_OUT_AXI_AMEMTYPE_CONF1,4,4
	.comm	VBIF_OUT_AXI_AMEMTYPE_CONF0,4,4
	.comm	MAX_XIN_COUNT,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_dpu_hw_vbif.c_dpu_hw_set_mem_type.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dpu_hw_set_mem_type, %function
dpu_hw_set_mem_type:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r5, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	cmp	r1, #15
	movle	r3, #0
	movgt	r3, #1
	mov	r6, r2
	ldr	r2, .L10
	ldr	r2, [r2]
	cmp	r2, r1
	orrle	r3, r3, #1
	cmp	r3, #0
	popne	{r4, r5, r6, r7, r8, pc}
	cmp	r1, #7
	ldrgt	r3, .L10+4
	ldrle	r3, .L10+8
	subgt	r4, r1, #8
	ldr	r7, [r3]
	andle	r4, r1, #7
	mov	r0, r5
	mov	r1, r7
	bl	DPU_REG_READ
	mov	r3, #7
	lsl	r4, r4, #2
	and	r2, r6, r3
	bic	r3, r0, r3, lsl r4
	mov	r1, r7
	mov	r0, r5
	orr	r2, r3, r2, lsl r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	DPU_REG_WRITE
.L11:
	.align	2
.L10:
	.word	MAX_XIN_COUNT
	.word	VBIF_OUT_AXI_AMEMTYPE_CONF1
	.word	VBIF_OUT_AXI_AMEMTYPE_CONF0
	.size	dpu_hw_set_mem_type, .-dpu_hw_set_mem_type
	.comm	VBIF_OUT_AXI_AMEMTYPE_CONF1,4,4
	.comm	VBIF_OUT_AXI_AMEMTYPE_CONF0,4,4
	.comm	MAX_XIN_COUNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
