	.file	"extr_bhnd_nvram_data_sprom_subr.c_bhnd_sprom_opcode_set_revs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"invalid revision range: %hhu-%hhu\n"
	.text
	.p2align 4
	.type	bhnd_sprom_opcode_set_revs, @function
bhnd_sprom_opcode_set_revs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR SPROM_OP_REV_MAX[rip]
	cmp	rax, rdx
	cmovle	rdx, rax
	cmp	rsi, rdx
	jg	.L5
	cmp	rax, r12
	jge	.L2
.L5:
	mov	rcx, r12
	mov	rdx, r13
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	SPROM_OP_BAD@PLT
	mov	r14d, DWORD PTR EINVAL[rip]
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	bhnd_sprom_opcode_clear_var@PLT
	mov	r14d, eax
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 4
	xor	esi, esi
	call	memset@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r12
	mov	rsi, r13
	call	bit_nset@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r14d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bhnd_sprom_opcode_set_revs, .-bhnd_sprom_opcode_set_revs
	.comm	SPROM_OP_REV_MAX,8,8
	.comm	EINVAL,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_bhnd_nvram_data_sprom_subr.c_bhnd_sprom_opcode_set_revs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"invalid revision range: %hhu-%hhu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bhnd_sprom_opcode_set_revs, %function
bhnd_sprom_opcode_set_revs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L6
	push	{r4, r5, r6, r7, r8, lr}
	ldr	ip, [r3]
	mov	r4, r2
	cmp	ip, r2
	movlt	r3, ip
	movge	r3, r2
	cmp	ip, r2
	movge	ip, #0
	movlt	ip, #1
	cmp	r1, r3
	orrgt	ip, ip, #1
	cmp	ip, #0
	mov	r5, r1
	beq	.L2
	mov	r3, r2
	mov	r2, r1
	ldr	r1, .L6+4
	bl	SPROM_OP_BAD
	ldr	r3, .L6+8
	ldr	r7, [r3]
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r6, r0
	bl	bhnd_sprom_opcode_clear_var
	subs	r7, r0, #0
	bne	.L1
	mov	r1, r7
	mov	r2, #4
	ldr	r0, [r6]
	bl	memset
	mov	r2, r4
	mov	r1, r5
	ldr	r0, [r6]
	bl	bit_nset
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	SPROM_OP_REV_MAX
	.word	.LC0
	.word	EINVAL
	.size	bhnd_sprom_opcode_set_revs, .-bhnd_sprom_opcode_set_revs
	.comm	SPROM_OP_REV_MAX,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
