	.file	"extr_dsl_dir.c_dsl_dir_hold.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"looking up %s in obj%lld\n"
.LC2:
	.string	"next=%p (%s) tail=%p\n"
	.text
	.p2align 4
	.globl	dsl_dir_hold
	.type	dsl_dir_hold, @function
dsl_dir_hold:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13, rdx
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rsi
	sub	rsp, 88
	mov	QWORD PTR -128[rbp], rcx
	mov	QWORD PTR -120[rbp], r8
	mov	rcx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ZFS_MAX_DATASET_NAME_LEN[rip]
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L41:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L41
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L42
.L4:
	lea	rdx, -88[rbp]
	mov	rsi, rsp
	mov	QWORD PTR -80[rbp], 0
	mov	r12, rsp
	call	getcomponent@PLT
	mov	DWORD PTR -108[rbp], eax
	test	eax, eax
	je	.L43
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L44
	mov	eax, DWORD PTR -108[rbp]
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	call	spa_name@PLT
	mov	rdi, rsp
	mov	rsi, rax
	call	strcmp@PLT
	test	rax, rax
	jne	.L45
	mov	rdi, rbx
	call	dsl_pool_config_held@PLT
	mov	edi, eax
	call	ASSERT@PLT
	mov	esi, DWORD PTR 4[rbx]
	lea	r8, -72[rbp]
	mov	rcx, r13
	xor	edx, edx
	mov	rdi, rbx
	call	dsl_dir_hold_obj@PLT
	mov	DWORD PTR -108[rbp], eax
	test	eax, eax
	jne	.L1
	mov	rdi, QWORD PTR -88[rbp]
	lea	rax, -92[rbp]
	lea	r14, -80[rbp]
	mov	QWORD PTR -104[rbp], rax
	test	rdi, rdi
	jne	.L12
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L47:
	mov	rax, QWORD PTR -88[rbp]
	xor	edi, edi
	cmp	BYTE PTR [rax], 0
	setne	dil
	call	ASSERT@PLT
	mov	rax, QWORD PTR -88[rbp]
	cmp	BYTE PTR [rax], 64
	je	.L9
	mov	rdi, QWORD PTR -72[rbp]
	call	dsl_dir_phys@PLT
	mov	rsi, r12
	lea	rdi, .LC1[rip]
	movsx	rdx, DWORD PTR [rax]
	xor	eax, eax
	call	dprintf@PLT
	mov	rdi, QWORD PTR -72[rbp]
	call	dsl_dir_phys@PLT
	mov	r9, QWORD PTR -104[rbp]
	mov	edi, DWORD PTR [rbx]
	mov	ecx, 4
	mov	esi, DWORD PTR [rax]
	mov	r8d, 1
	mov	rdx, r12
	call	zap_lookup@PLT
	test	eax, eax
	jne	.L46
	mov	esi, DWORD PTR -92[rbp]
	lea	r8, -64[rbp]
	mov	rcx, r13
	mov	rdx, r12
	mov	rdi, rbx
	call	dsl_dir_hold_obj@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L8
	mov	rdi, QWORD PTR -72[rbp]
	mov	rsi, r13
	call	dsl_dir_rele@PLT
	mov	r8, QWORD PTR -64[rbp]
	mov	rdi, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], r8
	mov	QWORD PTR -88[rbp], rdi
	test	rdi, rdi
	je	.L15
.L12:
	mov	rdx, r14
	mov	rsi, r12
	call	getcomponent@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L47
.L8:
	mov	rdi, QWORD PTR -72[rbp]
	mov	rsi, r13
	call	dsl_dir_rele@PLT
	mov	DWORD PTR -108[rbp], r15d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L42:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L45:
	mov	edi, DWORD PTR EXDEV[rip]
	call	SET_ERROR@PLT
	mov	DWORD PTR -108[rbp], eax
	jmp	.L1
.L11:
	mov	rax, QWORD PTR -88[rbp]
	mov	r8, QWORD PTR -72[rbp]
	test	rax, rax
	jne	.L14
	mov	DWORD PTR -108[rbp], 0
	.p2align 4,,10
	.p2align 3
.L15:
	cmp	QWORD PTR -120[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -88[rbp]
	mov	r15d, DWORD PTR -108[rbp]
.L17:
	mov	rbx, QWORD PTR -120[rbp]
	mov	DWORD PTR -108[rbp], r15d
	mov	QWORD PTR [rbx], rax
.L19:
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR [rax], r8
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8, QWORD PTR -72[rbp]
.L14:
	cmp	QWORD PTR -120[rbp], 0
	je	.L16
	mov	rdx, QWORD PTR -80[rbp]
	test	rdx, rdx
	je	.L17
	cmp	BYTE PTR [rdx], 0
	je	.L17
.L16:
	mov	rdi, r8
	mov	rsi, r13
	call	dsl_dir_rele@PLT
	mov	rsi, QWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -120[rbp]
	lea	rdx, .LC0[rip]
	lea	rdi, .LC2[rip]
	test	rsi, rsi
	cmovne	rdx, rsi
	xor	eax, eax
	call	dprintf@PLT
	mov	edi, DWORD PTR ENOENT[rip]
	call	SET_ERROR@PLT
	mov	DWORD PTR -108[rbp], eax
.L39:
	mov	r8, QWORD PTR -72[rbp]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L46:
	cmp	DWORD PTR ENOENT[rip], eax
	je	.L11
	mov	r15d, eax
	jmp	.L8
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dsl_dir_hold, .-dsl_dir_hold
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	EXDEV,4,4
	.comm	ENOENT,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_dsl_dir.c_dsl_dir_hold.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"looking up %s in obj%lld\012\000"
	.align	2
.LC2:
	.ascii	"next=%p (%s) tail=%p\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dsl_dir_hold
	.syntax unified
	.arm
	.fpu softvfp
	.type	dsl_dir_hold, %function
dsl_dir_hold:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	mov	ip, #0
	mov	r8, r2
	ldr	r2, .L45
	mov	r6, r0
	mov	r0, r1
	ldr	r1, [r2]
	str	r3, [fp, #-68]
	add	r1, r1, #7
	ldr	r3, .L45+4
	bic	r1, r1, #7
	sub	sp, sp, r1
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	add	r5, sp, #8
	ldr	r3, [fp, #4]
	mov	r1, r5
	sub	r2, fp, #60
	str	ip, [fp, #-56]
	str	r3, [fp, #-64]
	bl	getcomponent
	subs	r7, r0, #0
	beq	.L40
.L1:
	ldr	r3, .L45+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L41
	mov	r0, r7
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L40:
	ldr	r0, [r6, #8]
	bl	spa_name
	mov	r1, r0
	mov	r0, r5
	bl	strcmp
	cmp	r0, #0
	bne	.L42
	mov	r0, r6
	bl	dsl_pool_config_held
	bl	ASSERT
	sub	r3, fp, #52
	str	r3, [sp]
	mov	r2, r7
	mov	r3, r8
	mov	r0, r6
	ldr	r1, [r6, #4]
	bl	dsl_dir_hold_obj
	subs	r7, r0, #0
	bne	.L1
	ldr	r0, [fp, #-60]
	cmp	r0, #0
	beq	.L38
	ldr	r10, .L45+8
	b	.L9
.L44:
	ldr	r3, [fp, #-60]
	ldrb	r0, [r3]	@ zero_extendqisi2
	subs	r0, r0, #0
	movne	r0, #1
	bl	ASSERT
	ldr	r3, [fp, #-60]
	ldrb	r2, [r3]	@ zero_extendqisi2
	cmp	r2, #64
	beq	.L6
	ldr	r0, [fp, #-52]
	bl	dsl_dir_phys
	mov	r1, r5
	ldr	r2, [r0]
	mov	r0, r10
	bl	dprintf
	ldr	r0, [fp, #-52]
	ldr	r9, [r6]
	bl	dsl_dir_phys
	sub	r3, fp, #48
	ldr	r1, [r0]
	str	r3, [sp, #4]
	mov	r3, #1
	mov	r0, r9
	str	r3, [sp]
	mov	r2, r5
	mov	r3, #4
	bl	zap_lookup
	cmp	r0, #0
	bne	.L43
	sub	r3, fp, #44
	str	r3, [sp]
	mov	r2, r5
	mov	r3, r8
	mov	r0, r6
	ldr	r1, [fp, #-48]
	bl	dsl_dir_hold_obj
	subs	r4, r0, #0
	bne	.L5
	mov	r1, r8
	ldr	r0, [fp, #-52]
	bl	dsl_dir_rele
	ldr	r0, [fp, #-56]
	ldr	r2, [fp, #-44]
	cmp	r0, #0
	str	r0, [fp, #-60]
	str	r2, [fp, #-52]
	beq	.L12
.L9:
	mov	r1, r5
	sub	r2, fp, #56
	bl	getcomponent
	subs	r4, r0, #0
	beq	.L44
.L5:
	mov	r1, r8
	ldr	r0, [fp, #-52]
	mov	r7, r4
	bl	dsl_dir_rele
	b	.L1
.L42:
	ldr	r3, .L45+12
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	r7, r0
	b	.L1
.L6:
	ldr	r2, [fp, #-52]
.L11:
	ldr	r1, [fp, #-64]
	cmp	r1, #0
	beq	.L13
	ldr	r1, [fp, #-56]
	cmp	r1, #0
	beq	.L14
	ldrb	r1, [r1]	@ zero_extendqisi2
	cmp	r1, #0
	beq	.L14
.L13:
	mov	r1, r8
	mov	r0, r2
	bl	dsl_dir_rele
	ldr	r1, [fp, #-60]
	ldr	r2, .L45+16
	cmp	r1, #0
	movne	r2, r1
	ldr	r3, [fp, #-64]
	ldr	r0, .L45+20
	bl	dprintf
	ldr	r3, .L45+24
	ldr	r0, [r3]
	bl	SET_ERROR
	mov	r7, r0
.L38:
	ldr	r2, [fp, #-52]
.L12:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L16
	mov	r4, r7
	ldr	r3, [fp, #-60]
.L14:
	mov	r7, r4
	ldr	r1, [fp, #-64]
	str	r3, [r1]
.L16:
	ldr	r3, [fp, #-68]
	str	r2, [r3]
	b	.L1
.L43:
	ldr	r3, .L45+24
	ldr	r3, [r3]
	cmp	r3, r0
	movne	r4, r0
	bne	.L5
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-52]
	cmp	r3, #0
	moveq	r7, r3
	bne	.L11
	b	.L12
.L41:
	bl	__stack_chk_fail
.L46:
	.align	2
.L45:
	.word	ZFS_MAX_DATASET_NAME_LEN
	.word	.LC3
	.word	.LC1
	.word	EXDEV
	.word	.LC0
	.word	.LC2
	.word	ENOENT
	.size	dsl_dir_hold, .-dsl_dir_hold
	.comm	ZFS_MAX_DATASET_NAME_LEN,4,4
	.comm	EXDEV,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
