	.file	"extr_mfi_cmd.c_mfi_lookup_volume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mfi_lookup_volume
	.type	mfi_lookup_volume, @function
mfi_lookup_volume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	xor	edx, edx
	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, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	mov	rdi, r12
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rsi, 8[rsp]
	call	strtol@PLT
	mov	rdx, QWORD PTR 8[rsp]
	cmp	BYTE PTR [rdx], 0
	jne	.L2
.L11:
	mov	QWORD PTR [r15], rax
	xor	eax, eax
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L13
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	lea	rdx, 16[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	ecx, 16
	mov	edi, ebp
	push	0
	.cfi_def_cfa_offset 128
	mov	esi, DWORD PTR MFI_DCMD_LD_GET_LIST[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	call	mfi_dcmd_command@PLT
	pop	rdx
	.cfi_def_cfa_offset 120
	pop	rcx
	.cfi_def_cfa_offset 112
	test	rax, rax
	js	.L8
	cmp	QWORD PTR 16[rsp], 0
	je	.L4
	xor	ebx, ebx
	lea	r13, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 24[rsp]
	mov	rdx, r13
	mov	edi, ebp
	lea	r14, 0[0+rbx*8]
	mov	rsi, QWORD PTR [rax+rbx*8]
	call	mfi_query_disk@PLT
	test	rax, rax
	js	.L5
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, r12
	call	strcmp@PLT
	test	rax, rax
	je	.L14
.L5:
	add	rbx, 1
	cmp	QWORD PTR 16[rsp], rbx
	ja	.L6
.L4:
	mov	eax, DWORD PTR EINVAL[rip]
	mov	DWORD PTR errno[rip], eax
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR 24[rsp]
	mov	rax, QWORD PTR [rax+r14]
	jmp	.L11
.L8:
	mov	eax, -1
	jmp	.L1
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mfi_lookup_volume, .-mfi_lookup_volume
	.comm	errno,4,4
	.comm	MFI_DCMD_LD_GET_LIST,4,4
	.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_mfi_cmd.c_mfi_lookup_volume.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mfi_lookup_volume
	.syntax unified
	.arm
	.fpu softvfp
	.type	mfi_lookup_volume, %function
mfi_lookup_volume:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L18
	sub	sp, sp, #40
	mov	r6, r1
	mov	r5, r0
	mov	r7, r2
	mov	r0, r1
	mov	r2, #0
	add	r1, sp, #24
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	strtol
	ldr	r2, [sp, #24]
	mov	r3, r0
	ldrb	r0, [r2]	@ zero_extendqisi2
	cmp	r0, #0
	bne	.L2
.L14:
	str	r3, [r7]
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, #0
	ldr	r3, .L18+4
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #8
	add	r2, sp, #28
	bl	mfi_dcmd_command
	cmp	r0, r4
	blt	.L8
	ldr	r3, [sp, #28]
	cmp	r3, r4
	beq	.L4
.L6:
	ldr	r3, [sp, #32]
	mov	r0, r5
	ldr	r1, [r3, r4, lsl #2]
	add	r2, sp, #20
	bl	mfi_query_disk
	cmp	r0, #0
	lsl	r8, r4, #2
	blt	.L5
	mov	r0, r6
	ldr	r1, [sp, #20]
	bl	strcmp
	cmp	r0, #0
	beq	.L17
.L5:
	ldr	r3, [sp, #28]
	add	r4, r4, #1
	cmp	r3, r4
	bhi	.L6
.L4:
	ldr	r2, .L18+8
	ldr	r3, .L18+12
	ldr	r2, [r2]
	mvn	r0, #0
	str	r2, [r3]
	b	.L1
.L17:
	ldr	r3, [sp, #32]
	ldr	r3, [r3, r8]
	b	.L14
.L8:
	mvn	r0, #0
	b	.L1
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	MFI_DCMD_LD_GET_LIST
	.word	EINVAL
	.word	errno
	.size	mfi_lookup_volume, .-mfi_lookup_volume
	.comm	errno,4,4
	.comm	MFI_DCMD_LD_GET_LIST,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
