	.file	"extr_oid_mgt.c_mgt_set_varlen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mgt_set_varlen
	.type	mgt_set_varlen, @function
mgt_set_varlen:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	DWORD PTR 12[rsp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR OID_NUM_LAST[rip], ebx
	lea	rbx, [rbx+rbx*2]
	setbe	dil
	sal	rbx, 2
	call	BUG_ON@PLT
	mov	rax, QWORD PTR isl_oid[rip]
	mov	rsi, rbp
	add	rax, rbx
	mov	edi, DWORD PTR 4[rax]
	and	edi, DWORD PTR OID_FLAG_TYPE[rip]
	mov	r15d, DWORD PTR [rax]
	mov	r14d, DWORD PTR 8[rax]
	call	mgt_cpu_to_le@PLT
	mov	rdi, r12
	call	islpci_get_state@PLT
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	cmp	rax, QWORD PTR PRV_STATE_READY[rip]
	jge	.L13
.L4:
	test	rbp, rbp
	je	.L1
	mov	rax, QWORD PTR isl_oid[rip]
	mov	rsi, rbp
	mov	edi, DWORD PTR 4[rax+rbx]
	and	edi, DWORD PTR OID_FLAG_TYPE[rip]
	call	mgt_le_to_cpu@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L14
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	eax, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR PIMFOR_OP_SET[rip]
	mov	rcx, rbp
	mov	edx, r14d
	mov	edi, DWORD PTR [r12]
	lea	r9, 16[rsp]
	lea	r8d, [r15+rax]
	call	islpci_mgt_transaction@PLT
	mov	r13d, eax
	test	eax, eax
	je	.L3
.L5:
	mov	r13d, DWORD PTR EIO[rip]
	neg	r13d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, QWORD PTR 16[rsp]
	mov	rax, QWORD PTR [rdi]
	mov	r12d, DWORD PTR [rax]
	call	islpci_mgt_release@PLT
	cmp	DWORD PTR PIMFOR_OP_ERROR[rip], r12d
	jne	.L4
	jmp	.L5
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mgt_set_varlen, .-mgt_set_varlen
	.comm	isl_oid,8,8
	.comm	PRV_STATE_READY,8,8
	.comm	PIMFOR_OP_SET,4,4
	.comm	PIMFOR_OP_ERROR,4,4
	.comm	OID_NUM_LAST,4,4
	.comm	OID_FLAG_TYPE,4,4
	.comm	EIO,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_oid_mgt.c_mgt_set_varlen.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mgt_set_varlen
	.syntax unified
	.arm
	.fpu softvfp
	.type	mgt_set_varlen, %function
mgt_set_varlen:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	mov	r5, r2
	mov	r6, r0
	ldr	r2, .L15
	mov	r7, r3
	ldr	r2, [r2]
	ldr	r3, .L15+4
	cmp	r2, r1
	ldr	r8, .L15+8
	movhi	r0, #0
	movls	r0, #1
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	BUG_ON
	ldr	r2, [r8]
	add	r4, r4, r4, lsl #1
	ldr	r9, .L15+12
	add	r3, r2, r4, lsl #2
	ldr	r0, [r3, #4]
	ldr	r1, [r9]
	lsl	r4, r4, #2
	and	r0, r0, r1
	mov	r1, r5
	ldr	fp, [r3, #8]
	ldr	r10, [r2, r4]
	bl	mgt_cpu_to_le
	mov	r0, r6
	bl	islpci_get_state
	ldr	r3, .L15+16
	ldr	r3, [r3]
	cmp	r0, r3
	bge	.L13
.L2:
	ldr	r3, .L15+20
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L4:
	cmp	r5, #0
	beq	.L1
	ldr	r3, [r8]
	ldr	r2, [r9]
	add	r4, r3, r4
	ldr	r0, [r4, #4]
	mov	r1, r5
	and	r0, r0, r2
	bl	mgt_le_to_cpu
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r1, .L15+24
	add	r7, r10, r7
	str	r7, [sp]
	add	r3, sp, #8
	ldr	r0, [r6]
	ldr	r1, [r1]
	mov	r2, fp
	str	r3, [sp, #4]
	mov	r3, r5
	bl	islpci_mgt_transaction
	subs	r6, r0, #0
	bne	.L2
	ldr	r0, [sp, #8]
	ldr	r3, [r0]
	ldr	r7, [r3]
	bl	islpci_mgt_release
	ldr	r3, .L15+28
	ldr	r3, [r3]
	cmp	r3, r7
	bne	.L4
	b	.L2
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	OID_NUM_LAST
	.word	.LC0
	.word	isl_oid
	.word	OID_FLAG_TYPE
	.word	PRV_STATE_READY
	.word	EIO
	.word	PIMFOR_OP_SET
	.word	PIMFOR_OP_ERROR
	.size	mgt_set_varlen, .-mgt_set_varlen
	.comm	isl_oid,4,4
	.comm	PRV_STATE_READY,4,4
	.comm	PIMFOR_OP_SET,4,4
	.comm	PIMFOR_OP_ERROR,4,4
	.comm	OID_NUM_LAST,4,4
	.comm	OID_FLAG_TYPE,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
