	.file	"extr_sentelic.c_fsp_attr_set_flags.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fsp_attr_set_flags, @function
fsp_attr_set_flags:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rsi, QWORD PTR [rdi]
	test	rcx, rcx
	je	.L8
	lea	rdi, [rdx+rcx]
.L7:
	movzx	eax, BYTE PTR [rdx]
	cmp	al, 67
	je	.L3
	cmp	al, 99
	je	.L4
	mov	rax, QWORD PTR EINVAL[rip]
	neg	rax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR FSPDRV_FLAG_EN_OPC[rip]
	or	DWORD PTR [rsi], eax
.L6:
	add	rdx, 1
	cmp	rdx, rdi
	jne	.L7
	mov	rax, rcx
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	eax, DWORD PTR FSPDRV_FLAG_EN_OPC[rip]
	not	eax
	and	DWORD PTR [rsi], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	xor	eax, eax
	ret
	.cfi_endproc
.LFE0:
	.size	fsp_attr_set_flags, .-fsp_attr_set_flags
	.comm	FSPDRV_FLAG_EN_OPC,4,4
	.comm	EINVAL,8,8
	.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_sentelic.c_fsp_attr_set_flags.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fsp_attr_set_flags, %function
fsp_attr_set_flags:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r3, #0
	push	{r4, lr}
	ldr	lr, [r0]
	beq	.L8
	add	ip, r2, r3
	ldr	r0, .L13
	sub	ip, ip, #1
	sub	r2, r2, #1
.L7:
	ldrb	r1, [r2, #1]!	@ zero_extendqisi2
	cmp	r1, #67
	beq	.L3
	cmp	r1, #99
	beq	.L4
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L3:
	ldr	r1, [lr]
	ldr	r4, [r0]
	orr	r1, r1, r4
	str	r1, [lr]
.L6:
	cmp	r2, ip
	bne	.L7
.L8:
	mov	r0, r3
	pop	{r4, pc}
.L4:
	ldr	r4, [r0]
	ldr	r1, [lr]
	bic	r1, r1, r4
	str	r1, [lr]
	b	.L6
.L14:
	.align	2
.L13:
	.word	FSPDRV_FLAG_EN_OPC
	.word	EINVAL
	.size	fsp_attr_set_flags, .-fsp_attr_set_flags
	.comm	FSPDRV_FLAG_EN_OPC,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
