	.file	"extr_mfi_drive.c_mfi_pd_get_list.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mfi_pd_get_list
	.type	mfi_pd_get_list, @function
mfi_pd_get_list:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edi
	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
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, 1024
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	esi, DWORD PTR MFI_DCMD_PD_GET_LIST[rip]
	mov	ecx, ebx
	mov	rdx, rax
	push	r12
	.cfi_def_cfa_offset 64
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, r13d
	call	mfi_dcmd_command@PLT
	pop	rdx
	.cfi_def_cfa_offset 56
	pop	rcx
	.cfi_def_cfa_offset 48
	test	rax, rax
	js	.L9
	mov	eax, DWORD PTR 0[rbp]
	cmp	eax, ebx
	jle	.L10
	mov	ebx, eax
.L2:
	mov	rdi, rbp
	mov	esi, ebx
	call	reallocf@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L11
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, -1
	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
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, -1
	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
.L10:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	QWORD PTR [r14], rbp
	xor	eax, eax
	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	mfi_pd_get_list, .-mfi_pd_get_list
	.comm	MFI_DCMD_PD_GET_LIST,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_mfi_drive.c_mfi_pd_get_list.c"
	.text
	.align	2
	.global	mfi_pd_get_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	mfi_pd_get_list, %function
mfi_pd_get_list:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, #0
	mov	r8, r0
	mov	r10, r1
	mov	r7, r2
	mov	r6, r4
	mov	r5, #1024
	ldr	r9, .L12
	sub	sp, sp, #16
	b	.L2
.L11:
	mov	r3, r5
	mov	r2, r4
	mov	r0, r8
	stmib	sp, {r6, r7}
	ldr	r1, [r9]
	str	r6, [sp]
	bl	mfi_dcmd_command
	cmp	r0, #0
	blt	.L9
	ldr	r3, [r4]
	cmp	r3, r5
	ble	.L10
	mov	r5, r3
.L2:
	mov	r0, r4
	mov	r1, r5
	bl	reallocf
	subs	r4, r0, #0
	bne	.L11
	mvn	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r0, r4
	bl	free
	mvn	r0, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r0, #0
	str	r4, [r10]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	.align	2
.L12:
	.word	MFI_DCMD_PD_GET_LIST
	.size	mfi_pd_get_list, .-mfi_pd_get_list
	.comm	MFI_DCMD_PD_GET_LIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
