	.file	"extr_libzfs_pool_os.c_find_start_block.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	find_start_block, @function
find_start_block:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 56
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR ZPOOL_CONFIG_CHILDREN[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR MAXOFFSET_T[rip]
	lea	rcx, 24[rsp]
	lea	rdx, 16[rsp]
	mov	QWORD PTR 32[rsp], rax
	call	nvlist_lookup_nvlist_array@PLT
	test	rax, rax
	jne	.L2
	xor	ebx, ebx
	cmp	QWORD PTR 24[rsp], 0
	je	.L18
.L3:
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR [rax+rbx*8]
	call	find_start_block
	mov	rdx, QWORD PTR MAXOFFSET_T[rip]
	mov	QWORD PTR 32[rsp], rax
	cmp	rax, rdx
	jne	.L1
	add	rbx, 1
	cmp	QWORD PTR 24[rsp], rbx
	ja	.L3
.L10:
	mov	rax, rdx
.L1:
	mov	rsi, QWORD PTR 40[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L19
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR ZPOOL_CONFIG_WHOLE_DISK[rip]
	lea	rdx, 12[rsp]
	mov	rdi, rbp
	call	nvlist_lookup_uint64@PLT
	test	rax, rax
	jne	.L5
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	jne	.L6
.L5:
	mov	rax, QWORD PTR MAXOFFSET_T[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	lea	rsi, 32[rsp]
	mov	rdi, rbp
	call	read_efi_label@PLT
	test	rax, rax
	mov	rax, QWORD PTR 32[rsp]
	cmovs	rax, QWORD PTR MAXOFFSET_T[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	mov	rdx, QWORD PTR MAXOFFSET_T[rip]
	jmp	.L10
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	find_start_block, .-find_start_block
	.comm	ZPOOL_CONFIG_WHOLE_DISK,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,4,4
	.comm	MAXOFFSET_T,8,8
	.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_libzfs_pool_os.c_find_start_block.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_start_block, %function
find_start_block:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L19
	ldr	r3, .L19+4
	sub	sp, sp, #24
	ldr	ip, [r5]
	ldr	lr, .L19+8
	ldr	r1, [r3]
	add	r2, sp, #4
	add	r3, sp, #8
	ldr	lr, [lr]
	str	lr, [sp, #20]
	mov	lr,#0
	mov	r6, r0
	str	ip, [sp, #12]
	bl	nvlist_lookup_nvlist_array
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L17
.L3:
	ldr	r3, [sp, #4]
	ldr	r0, [r3, r4, lsl #2]
	bl	find_start_block
	ldr	r3, [r5]
	str	r0, [sp, #12]
	cmp	r0, r3
	bne	.L1
	ldr	r2, [sp, #8]
	add	r4, r4, #1
	cmp	r2, r4
	bhi	.L3
.L10:
	mov	r0, r3
.L1:
	ldr	r3, .L19+8
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L18
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L19+12
	mov	r0, r6
	ldr	r1, [r3]
	add	r2, sp, #16
	bl	nvlist_lookup_uint64
	cmp	r0, #0
	bne	.L8
	ldr	r3, [sp, #16]
	cmp	r3, #0
	bne	.L6
.L8:
	ldr	r0, [r5]
	b	.L1
.L6:
	mov	r0, r6
	add	r1, sp, #12
	bl	read_efi_label
	cmp	r0, #0
	blt	.L8
	ldr	r0, [sp, #12]
	b	.L1
.L17:
	ldr	r3, [r5]
	b	.L10
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	MAXOFFSET_T
	.word	ZPOOL_CONFIG_CHILDREN
	.word	.LC0
	.word	ZPOOL_CONFIG_WHOLE_DISK
	.size	find_start_block, .-find_start_block
	.comm	ZPOOL_CONFIG_WHOLE_DISK,4,4
	.comm	ZPOOL_CONFIG_CHILDREN,4,4
	.comm	MAXOFFSET_T,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
