	.file	"extr_pmbus_core.c_pmbus_add_attribute.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pmbus_add_attribute, @function
pmbus_add_attribute:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 4[rdi]
	mov	rbx, rdi
	movsx	rdx, DWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rdi]
	lea	ecx, -1[rax]
	cmp	edx, ecx
	jge	.L7
.L2:
	lea	eax, 1[rdx]
	mov	DWORD PTR [rbx], eax
	xor	eax, eax
	mov	QWORD PTR [rdi+rdx*8], rbp
	mov	QWORD PTR 8[rdi+rdx*8], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	add	eax, DWORD PTR PMBUS_ATTR_ALLOC_SIZE[rip]
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	lea	esi, 0[0+rax*8]
	mov	r12d, eax
	call	krealloc@PLT
	mov	rdi, rax
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	test	rdi, rdi
	je	.L1
	mov	QWORD PTR 8[rbx], rdi
	movsx	rdx, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbx], r12d
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	pmbus_add_attribute, .-pmbus_add_attribute
	.comm	PMBUS_ATTR_ALLOC_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_pmbus_core.c_pmbus_add_attribute.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pmbus_add_attribute, %function
pmbus_add_attribute:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldm	r0, {r3, ip}
	sub	r2, ip, #1
	cmp	r3, r2
	push	{r4, r5, r6, lr}
	ldr	r2, [r0, #8]
	mov	r4, r0
	mov	r6, r1
	bge	.L7
.L2:
	mov	ip, #0
	add	r1, r3, #1
	str	r1, [r4]
	add	r1, r2, r3, lsl #2
	str	r6, [r2, r3, lsl #2]
	mov	r0, ip
	str	ip, [r1, #4]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r1, .L9
	ldr	r3, .L9+4
	ldr	r5, [r1]
	mov	r0, r2
	add	r5, ip, r5
	ldr	r2, [r3]
	lsl	r1, r5, #2
	bl	krealloc
	subs	r2, r0, #0
	ldrne	r3, [r4]
	strne	r2, [r4, #8]
	strne	r5, [r4, #4]
	bne	.L2
.L8:
	ldr	r3, .L9+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	PMBUS_ATTR_ALLOC_SIZE
	.word	GFP_KERNEL
	.word	ENOMEM
	.size	pmbus_add_attribute, .-pmbus_add_attribute
	.comm	PMBUS_ATTR_ALLOC_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
