	.file	"extr_smartreflex.c_sr_modify_reg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sr_modify_reg, @function
sr_modify_reg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	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, esi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, ecx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR [rdi]
	cmp	rax, QWORD PTR SR_TYPE_V1[rip]
	je	.L6
.L2:
	cmp	rax, QWORD PTR SR_TYPE_V2[rip]
	je	.L7
.L3:
	mov	edi, DWORD PTR 8[r12]
	add	edi, ebp
	call	__raw_readl@PLT
	mov	esi, DWORD PTR 8[r12]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	ebx, eax
	mov	edi, ebx
	add	esi, ebp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	and	edi, r13d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	xor	edi, eax
	jmp	__raw_writel@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	cmp	DWORD PTR ERRCONFIG_V1[rip], esi
	jne	.L2
	or	r13d, DWORD PTR ERRCONFIG_STATUS_V1_MASK[rip]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR ERRCONFIG_V2[rip], ebp
	jne	.L3
	or	r13d, DWORD PTR ERRCONFIG_VPBOUNDINTST_V2[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	sr_modify_reg, .-sr_modify_reg
	.comm	SR_TYPE_V2,8,8
	.comm	SR_TYPE_V1,8,8
	.comm	ERRCONFIG_VPBOUNDINTST_V2,4,4
	.comm	ERRCONFIG_V2,4,4
	.comm	ERRCONFIG_V1,4,4
	.comm	ERRCONFIG_STATUS_V1_MASK,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_smartreflex.c_sr_modify_reg.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sr_modify_reg, %function
sr_modify_reg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, .L7
	ldr	ip, [r5]
	ldr	r0, [r0]
	mov	r6, r1
	cmp	ip, r0
	mov	r7, r2
	mov	r4, r3
	beq	.L6
.L2:
	ldr	r3, .L7+4
	ldr	r3, [r3]
	cmp	ip, r3
	bne	.L3
	ldr	r3, .L7+8
	ldr	r3, [r3]
	cmp	r3, r6
	ldreq	r3, .L7+12
	ldreq	r3, [r3]
	orreq	r7, r7, r3
.L3:
	ldr	r0, [r5, #4]
	add	r0, r6, r0
	bl	__raw_readl
	ldr	r1, [r5, #4]
	eor	r4, r4, r0
	and	r4, r4, r7
	eor	r0, r0, r4
	add	r1, r6, r1
	pop	{r4, r5, r6, r7, r8, lr}
	b	__raw_writel
.L6:
	ldr	r3, .L7+16
	ldr	r3, [r3]
	cmp	r3, r1
	bne	.L2
	ldr	r3, .L7+20
	ldr	r3, [r3]
	orr	r7, r2, r3
	b	.L3
.L8:
	.align	2
.L7:
	.word	SR_TYPE_V1
	.word	SR_TYPE_V2
	.word	ERRCONFIG_V2
	.word	ERRCONFIG_VPBOUNDINTST_V2
	.word	ERRCONFIG_V1
	.word	ERRCONFIG_STATUS_V1_MASK
	.size	sr_modify_reg, .-sr_modify_reg
	.comm	SR_TYPE_V2,4,4
	.comm	SR_TYPE_V1,4,4
	.comm	ERRCONFIG_VPBOUNDINTST_V2,4,4
	.comm	ERRCONFIG_V2,4,4
	.comm	ERRCONFIG_V1,4,4
	.comm	ERRCONFIG_STATUS_V1_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
