	.file	"extr_regcache.c_regcache_set_val.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	regcache_set_val
	.type	regcache_set_val, @function
regcache_set_val:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, edx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	regcache_get_val@PLT
	mov	r8d, eax
	mov	eax, 1
	cmp	r8d, r13d
	je	.L1
	mov	rax, QWORD PTR 8[rbp]
	mov	edi, DWORD PTR 0[rbp]
	test	rax, rax
	je	.L3
	imul	ebx, edi
	xor	edx, edx
	mov	esi, r13d
	lea	rdi, [r12+rbx]
	call	rax
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	edi, 2
	je	.L5
	cmp	edi, 4
	je	.L5
	cmp	edi, 1
	je	.L5
	xor	eax, eax
	call	BUG@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, ebx
	xor	eax, eax
	mov	DWORD PTR [r12+rdx*4], r13d
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	regcache_set_val, .-regcache_set_val
	.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_regcache.c_regcache_set_val.c"
	.text
	.align	2
	.global	regcache_set_val
	.syntax unified
	.arm
	.fpu softvfp
	.type	regcache_set_val, %function
regcache_set_val:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	mov	r5, r0
	mov	r7, r1
	mov	r8, r2
	bl	regcache_get_val
	cmp	r0, r4
	beq	.L7
	ldm	r5, {r0, r6}
	cmp	r6, #0
	beq	.L3
	mov	r1, r4
	mov	r2, #0
	mla	r0, r8, r0, r7
	blx	r6
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	cmp	r0, #2
	beq	.L5
	cmp	r0, #4
	beq	.L5
	cmp	r0, #1
	beq	.L5
	bl	BUG
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	mov	r0, r6
	str	r4, [r7, r8, lsl #2]
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
	.size	regcache_set_val, .-regcache_set_val
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
