	.file	"extr_mfi_foreign.c_foreign_show_cfg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"arrays"
.LC1:
	.string	"array"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to get foreign config %d"
	.align 8
.LC3:
	.string	"Foreign configuration preview %d"
	.section	.rodata.str1.1
.LC4:
	.string	"Foreign configuration %d"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"%s: %d arrays, %d volumes, %d spares\n"
	.section	.rodata.str1.1
.LC6:
	.string	""
.LC7:
	.string	" ID%d "
.LC8:
	.string	"(%6s) %-8s |"
.LC9:
	.string	"volume spans %d %s\n"
.LC10:
	.string	"      array %u @ "
.LC11:
	.string	"(%6s)\n"
.LC12:
	.string	"        drive MISSING"
.LC13:
	.string	"        drive %u %s\n"
	.text
	.p2align 4
	.type	foreign_show_cfg, @function
foreign_show_cfg:
.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	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	mov	esi, 16
	sub	rsp, 168
	.cfi_def_cfa_offset 224
	mov	DWORD PTR 20[rsp], ecx
	lea	r13, 48[rsp]
	mov	rdi, r13
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 152[rsp], rax
	xor	eax, eax
	call	bzero@PLT
	lea	rdx, 40[rsp]
	mov	rcx, r13
	mov	rsi, rbx
	mov	r8d, 16
	mov	edi, ebp
	mov	DWORD PTR 48[rsp], r12d
	call	mfi_config_read_opcode@PLT
	test	rax, rax
	js	.L28
	cmp	QWORD PTR MFI_DCMD_CFG_FOREIGN_PREVIEW[rip], rbx
	lea	r13, 80[rsp]
	mov	edx, r12d
	je	.L29
	lea	rsi, .LC4[rip]
	mov	rdi, r13
	call	sprintf@PLT
.L5:
	mov	edi, DWORD PTR 20[rsp]
	mov	rsi, QWORD PTR 40[rsp]
	test	edi, edi
	jne	.L30
	mov	ecx, DWORD PTR 4[rsi]
	mov	r8d, DWORD PTR 8[rsi]
	lea	rdi, .LC5[rip]
	xor	eax, eax
	mov	edx, DWORD PTR [rsi]
	mov	r12, QWORD PTR 24[rsi]
	mov	rsi, r13
	call	printf@PLT
	mov	rdi, QWORD PTR 40[rsp]
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L8
	movsx	rdx, DWORD PTR 12[rdi]
	sub	eax, 1
	add	rax, 1
	imul	rax, rdx
	add	r12, rax
.L8:
	mov	ecx, DWORD PTR 4[rdi]
	test	ecx, ecx
	jle	.L7
	lea	rax, 69[rsp]
	lea	rbx, .LC13[rip]
	mov	QWORD PTR 24[rsp], rax
	lea	rax, 74[rsp]
	mov	QWORD PTR 8[rsp], rax
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 16[r12]
	mov	rdi, QWORD PTR 24[rsp]
	mov	esi, 5
	call	format_stripe@PLT
	mov	eax, DWORD PTR 8[r12]
	mov	edi, DWORD PTR 12[r12]
	lea	esi, -1[rax]
	call	mfi_raid_level@PLT
	mov	r15, QWORD PTR 8[rsp]
	mov	r8d, DWORD PTR HN_AUTOSCALE[rip]
	lea	rcx, .LC6[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR [r12]
	mov	r9d, DWORD PTR HN_B[rip]
	mov	esi, 6
	or	r9d, DWORD PTR HN_NOSPACE[rip]
	mov	rdi, r15
	or	r9d, DWORD PTR HN_DECIMAL[rip]
	mov	edx, DWORD PTR [rax]
	sal	edx, 9
	call	humanize_number@PLT
	mov	esi, DWORD PTR 20[rsp]
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rdx, rbp
	mov	rsi, r15
	xor	eax, eax
	lea	rdi, .LC8[rip]
	call	printf@PLT
	mov	esi, DWORD PTR 8[r12]
	lea	rax, .LC0[rip]
	lea	rdx, .LC1[rip]
	lea	rdi, .LC9[rip]
	cmp	esi, 1
	cmovg	rdx, rax
	xor	eax, eax
	xor	ebp, ebp
	call	printf@PLT
	mov	edx, DWORD PTR 8[r12]
	test	edx, edx
	jle	.L13
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rax, QWORD PTR [r12]
	lea	r14, 0[0+rbp*8]
	lea	rdi, .LC10[rip]
	mov	esi, DWORD PTR 4[rax+r14]
	xor	eax, eax
	call	printf@PLT
	mov	rax, QWORD PTR [r12]
	mov	r15, QWORD PTR 8[rsp]
	lea	rcx, .LC6[rip]
	mov	r8d, DWORD PTR HN_AUTOSCALE[rip]
	mov	r9d, DWORD PTR HN_B[rip]
	mov	esi, 6
	mov	edx, DWORD PTR [rax+rbp*8]
	mov	rdi, r15
	or	r9d, DWORD PTR HN_NOSPACE[rip]
	or	r9d, DWORD PTR HN_DECIMAL[rip]
	sal	edx, 9
	call	humanize_number@PLT
	mov	rsi, r15
	lea	rdi, .LC11[rip]
	xor	eax, eax
	call	printf@PLT
	mov	rax, QWORD PTR 40[rsp]
	mov	rdx, QWORD PTR [r12]
	mov	r8d, DWORD PTR 4[rdx+r14]
	imul	r8d, DWORD PTR 12[rax]
	xor	r14d, r14d
	movsx	r8, r8d
	add	r8, QWORD PTR 24[rax]
	mov	eax, DWORD PTR [r8]
	mov	r15, r8
	test	eax, eax
	jg	.L12
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR [rax]
	add	r14, 1
	call	mfi_pdstate@PLT
	mov	esi, r13d
	mov	rdi, rbx
	mov	rdx, rax
	xor	eax, eax
	call	printf@PLT
	cmp	DWORD PTR [r15], r14d
	jle	.L16
.L12:
	mov	rax, QWORD PTR 8[r15]
	lea	rax, [rax+r14*8]
	mov	r13d, DWORD PTR 4[rax]
	cmp	r13d, 65535
	jne	.L14
	lea	rdi, .LC12[rip]
	add	r14, 1
	call	puts@PLT
	cmp	DWORD PTR [r15], r14d
	jg	.L12
.L16:
	add	rbp, 1
	cmp	DWORD PTR 8[r12], ebp
	jg	.L10
.L13:
	mov	rdi, QWORD PTR 40[rsp]
	add	DWORD PTR 20[rsp], 1
	movsx	rax, DWORD PTR 16[rdi]
	add	r12, rax
	mov	eax, DWORD PTR 20[rsp]
	cmp	DWORD PTR 4[rdi], eax
	jg	.L11
	jmp	.L7
.L30:
	mov	edi, ebp
	mov	rdx, r13
	call	dump_config@PLT
	mov	rdi, QWORD PTR 40[rsp]
.L7:
	call	free@PLT
	xor	r12d, r12d
.L1:
	mov	rax, QWORD PTR 152[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L31
	add	rsp, 168
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L29:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	call	sprintf@PLT
	jmp	.L5
.L28:
	mov	r12d, DWORD PTR errno[rip]
	lea	rdi, .LC2[rip]
	mov	esi, r12d
	call	warn@PLT
	mov	edi, ebp
	call	close@PLT
	jmp	.L1
.L31:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	foreign_show_cfg, .-foreign_show_cfg
	.comm	errno,4,4
	.comm	MFI_DCMD_CFG_FOREIGN_PREVIEW,8,8
	.comm	HN_NOSPACE,4,4
	.comm	HN_DECIMAL,4,4
	.comm	HN_B,4,4
	.comm	HN_AUTOSCALE,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_foreign.c_foreign_show_cfg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"arrays\000"
	.align	2
.LC1:
	.ascii	"array\000"
	.align	2
.LC2:
	.ascii	"Failed to get foreign config %d\000"
	.align	2
.LC3:
	.ascii	"Foreign configuration preview %d\000"
	.align	2
.LC4:
	.ascii	"Foreign configuration %d\000"
	.align	2
.LC5:
	.ascii	"%s: %d arrays, %d volumes, %d spares\012\000"
	.align	2
.LC6:
	.ascii	"\000"
	.align	2
.LC7:
	.ascii	" ID%d \000"
	.align	2
.LC8:
	.ascii	"(%6s) %-8s |\000"
	.align	2
.LC9:
	.ascii	"volume spans %d %s\012\000"
	.align	2
.LC10:
	.ascii	"      array %u @ \000"
	.align	2
.LC11:
	.ascii	"(%6s)\012\000"
	.align	2
.LC12:
	.ascii	"        drive MISSING\000"
	.align	2
.LC13:
	.ascii	"        drive %u %s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	foreign_show_cfg, %function
foreign_show_cfg:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r3
	sub	sp, sp, #124
	ldr	r3, .L29
	mov	r5, r0
	mov	r6, r1
	add	r0, sp, #20
	mov	r1, #16
	mov	r4, r2
	ldr	r3, [r3]
	str	r3, [sp, #116]
	mov	r3,#0
	bl	bzero
	mov	r2, #16
	mov	r1, r6
	str	r2, [sp]
	mov	r0, r5
	add	r3, sp, #20
	add	r2, sp, r2
	str	r4, [sp, #20]
	bl	mfi_config_read_opcode
	cmp	r0, #0
	blt	.L26
	ldr	r3, .L29+4
	mov	r2, r4
	ldr	r3, [r3]
	cmp	r3, r6
	add	r6, sp, #52
	ldreq	r1, .L29+8
	ldrne	r1, .L29+12
	mov	r0, r6
	bl	sprintf
	cmp	r7, #0
	ldr	r0, [sp, #16]
	bne	.L27
	ldm	r0, {r2, r3, ip}
	ldr	r8, [r0, #20]
	mov	r1, r6
	ldr	r0, .L29+16
	str	ip, [sp]
	bl	printf
	ldr	r0, [sp, #16]
	ldr	r3, [r0]
	cmp	r3, #0
	ldrgt	r2, [r0, #12]
	mlagt	r8, r2, r3, r8
	ldr	r3, [r0, #4]
	cmp	r3, #0
	ble	.L7
	mov	r3, #0
	ldr	r7, .L29+20
	ldr	r9, .L29+24
	str	r3, [sp, #12]
.L11:
	ldr	r2, [r8, #12]
	mov	r1, #5
	add	r0, sp, #36
	bl	format_stripe
	ldr	r1, [r8, #4]
	ldr	r0, [r8, #8]
	sub	r1, r1, #1
	bl	mfi_raid_level
	mov	r4, r0
	ldr	r2, .L29+28
	ldr	r3, .L29+32
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r0, .L29+36
	ldr	r2, [r8]
	orr	r3, r3, r1
	ldr	r1, .L29+40
	ldr	r0, [r0]
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r0
	lsl	r2, r2, #9
	str	r3, [sp, #4]
	str	r1, [sp]
	ldr	r3, .L29+44
	mov	r1, #6
	add	r0, sp, #44
	bl	humanize_number
	ldr	r1, [sp, #12]
	ldr	r0, .L29+48
	bl	printf
	mov	r2, r4
	add	r1, sp, #44
	ldr	r0, .L29+52
	bl	printf
	ldr	r1, [r8, #4]
	ldr	r3, .L29+56
	cmp	r1, #1
	ldr	r2, .L29+60
	ldr	r0, .L29+64
	movle	r2, r3
	bl	printf
	ldr	r3, [r8, #4]
	cmp	r3, #0
	movgt	r6, #0
	ldrgt	r5, .L29+68
	ble	.L13
.L10:
	ldr	r3, [r8]
	ldr	r0, .L29+72
	add	r3, r3, r6, lsl #3
	ldr	r1, [r3, #4]
	bl	printf
	ldr	r2, .L29+28
	ldr	r3, .L29+32
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r0, .L29+36
	ldr	r2, [r8]
	orr	r3, r3, r1
	ldr	r1, .L29+40
	ldr	r0, [r0]
	ldr	r2, [r2, r6, lsl #3]
	ldr	r1, [r1]
	orr	r3, r3, r0
	lsl	r2, r2, #9
	str	r3, [sp, #4]
	str	r1, [sp]
	ldr	r3, .L29+44
	mov	r1, #6
	add	r0, sp, #44
	bl	humanize_number
	add	r1, sp, #44
	ldr	r0, .L29+76
	bl	printf
	ldr	r2, [r8]
	ldr	r1, [sp, #16]
	lsl	r3, r6, #3
	add	r3, r2, r3
	ldr	r10, [r3, #4]
	ldr	r2, [r1, #12]
	ldr	r3, [r1, #20]
	mul	r10, r2, r10
	ldr	r2, [r10, r3]
	add	r10, r10, r3
	cmp	r2, #0
	movgt	r4, #0
	bgt	.L12
	b	.L16
.L14:
	ldr	r0, [r3, r4, lsl #3]
	bl	mfi_pdstate
	mov	r1, fp
	mov	r2, r0
	mov	r0, r7
	bl	printf
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L16
.L12:
	ldr	r3, [r10, #4]
	add	r2, r3, r4, lsl #3
	ldr	fp, [r2, #4]
	cmp	fp, r5
	bne	.L14
	mov	r0, r9
	bl	puts
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L12
.L16:
	ldr	r3, [r8, #4]
	add	r6, r6, #1
	cmp	r3, r6
	bgt	.L10
.L13:
	ldr	r3, [sp, #12]
	ldr	r0, [sp, #16]
	add	r3, r3, #1
	mov	r1, r3
	ldr	r2, [r0, #4]
	str	r3, [sp, #12]
	ldr	r3, [r0, #16]
	cmp	r2, r1
	add	r8, r8, r3
	bgt	.L11
	b	.L7
.L27:
	mov	r1, r0
	mov	r2, r6
	mov	r0, r5
	bl	dump_config
	ldr	r0, [sp, #16]
.L7:
	bl	free
	mov	r4, #0
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r4
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r3, .L29+80
	ldr	r0, .L29+84
	ldr	r4, [r3]
	mov	r1, r4
	bl	warn
	mov	r0, r5
	bl	close
	b	.L1
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC14
	.word	MFI_DCMD_CFG_FOREIGN_PREVIEW
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC13
	.word	.LC12
	.word	HN_NOSPACE
	.word	HN_B
	.word	HN_DECIMAL
	.word	HN_AUTOSCALE
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC1
	.word	.LC0
	.word	.LC9
	.word	65535
	.word	.LC10
	.word	.LC11
	.word	errno
	.word	.LC2
	.size	foreign_show_cfg, .-foreign_show_cfg
	.comm	errno,4,4
	.comm	MFI_DCMD_CFG_FOREIGN_PREVIEW,4,4
	.comm	HN_NOSPACE,4,4
	.comm	HN_DECIMAL,4,4
	.comm	HN_B,4,4
	.comm	HN_AUTOSCALE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
