	.file	"extr_zfs_znode.c_zfs_obj_to_path_impl.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"<xattrdir>"
	.text
	.p2align 4
	.type	zfs_obj_to_path_impl, @function
zfs_obj_to_path_impl:
.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
	.cfi_offset 15, -24
	mov	r15, rcx
	mov	ecx, 8
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 136
	mov	QWORD PTR -112[rbp], rdx
	mov	QWORD PTR -120[rbp], r8
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, r9d
	mov	QWORD PTR -88[rbp], rdx
	lea	r9, -72[rbp]
	lea	r13, -1[r8+rax]
	mov	r8d, 1
	mov	QWORD PTR -80[rbp], 0
	mov	BYTE PTR 0[r13], 0
	mov	edx, DWORD PTR ZFS_UNLINKED_SET[rip]
	mov	esi, DWORD PTR MASTER_NODE_OBJ[rip]
	mov	QWORD PTR -176[rbp], rax
	call	zap_lookup@PLT
	mov	edi, eax
	call	VERIFY0@PLT
	mov	rsi, QWORD PTR -72[rbp]
	mov	rdx, r12
	mov	rdi, rbx
	call	zap_lookup_int@PLT
	mov	r8d, DWORD PTR ESTALE[rip]
	test	eax, eax
	je	.L1
	cmp	DWORD PTR ENOENT[rip], eax
	mov	r8d, eax
	jne	.L1
	mov	eax, DWORD PTR MAXNAMELEN[rip]
	mov	rsi, rsp
	mov	QWORD PTR -136[rbp], rsp
	add	eax, 2
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rsi, rax
	and	rdx, -16
	mov	rax, rsi
	cmp	rsp, rax
	je	.L23
.L41:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L41
.L23:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L42
.L24:
	lea	rax, -92[rbp]
	mov	QWORD PTR -128[rbp], 0
	mov	r14, rsp
	mov	QWORD PTR -144[rbp], rax
	lea	rax, -64[rbp]
	mov	QWORD PTR -152[rbp], rax
	lea	rax, -80[rbp]
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -160[rbp], rax
	.p2align 4,,10
	.p2align 3
.L25:
	mov	r8, QWORD PTR -144[rbp]
	mov	rcx, QWORD PTR -152[rbp]
	mov	rdx, r15
	mov	rdi, rbx
	mov	rsi, QWORD PTR -88[rbp]
	call	zfs_obj_to_pobj@PLT
	test	eax, eax
	jne	.L38
	cmp	QWORD PTR -64[rbp], r12
	je	.L43
	mov	eax, DWORD PTR -92[rbp]
	mov	BYTE PTR [r14], 47
	lea	r8, 1[r14]
	test	eax, eax
	je	.L8
	lea	rsi, .LC0[rip]
	mov	rdi, r8
	call	sprintf@PLT
.L9:
	mov	rdi, r14
	call	strlen@PLT
	xor	edi, edi
	sub	r13, rax
	cmp	QWORD PTR -120[rbp], r13
	mov	r12, rax
	setbe	dil
	call	ASSERT@PLT
	mov	rdx, r12
	mov	rsi, r13
	mov	rdi, r14
	call	bcopy@PLT
	mov	r12, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -88[rbp]
	cmp	rax, QWORD PTR -112[rbp]
	je	.L10
	mov	rcx, QWORD PTR -80[rbp]
	mov	QWORD PTR -128[rbp], rax
	mov	QWORD PTR -104[rbp], rcx
.L10:
	mov	r8d, DWORD PTR FTAG[rip]
	mov	rcx, QWORD PTR -160[rbp]
	mov	rsi, r12
	mov	rdi, rbx
	lea	rdx, -88[rbp]
	call	zfs_grab_sa_handle@PLT
	test	eax, eax
	jne	.L44
	mov	eax, DWORD PTR MAXNAMELEN[rip]
	mov	rsp, QWORD PTR -136[rbp]
	add	eax, 2
	mov	rcx, rsp
	cdqe
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L13
.L45:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L45
.L13:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	je	.L14
	or	QWORD PTR -8[rsp+rdx], 0
.L14:
	cmp	QWORD PTR -104[rbp], 0
	mov	r14, rsp
	je	.L25
	mov	edx, DWORD PTR FTAG[rip]
	mov	rsi, QWORD PTR -104[rbp]
	mov	rdi, QWORD PTR -128[rbp]
	call	zfs_release_sa_handle@PLT
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L43:
	cmp	BYTE PTR 0[r13], 47
	mov	r8d, eax
	je	.L7
	mov	BYTE PTR -1[r13], 47
	sub	r13, 1
.L7:
	mov	rax, QWORD PTR -88[rbp]
	mov	rsp, QWORD PTR -136[rbp]
	test	rax, rax
	je	.L18
	cmp	QWORD PTR -112[rbp], rax
	jne	.L21
.L18:
	mov	rdx, QWORD PTR -176[rbp]
	mov	rdi, QWORD PTR -120[rbp]
	mov	rsi, r13
	add	rdx, rdi
	sub	rdx, r13
	call	memmove@PLT
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L46
	lea	rsp, -40[rbp]
	mov	eax, r8d
	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
.L8:
	.cfi_restore_state
	mov	rdi, -1
	mov	QWORD PTR -168[rbp], r8
	call	ZFS_DIRENT_OBJ@PLT
	mov	rsi, QWORD PTR -64[rbp]
	mov	rdx, r12
	mov	rdi, rbx
	mov	r8, QWORD PTR -168[rbp]
	mov	ecx, eax
	call	zap_value_search@PLT
	test	eax, eax
	je	.L9
.L38:
	mov	r8d, eax
.L5:
	mov	rax, QWORD PTR -88[rbp]
	mov	rsp, QWORD PTR -136[rbp]
	test	rax, rax
	je	.L1
	cmp	QWORD PTR -112[rbp], rax
	je	.L1
.L21:
	xor	edi, edi
	cmp	QWORD PTR -80[rbp], 0
	mov	DWORD PTR -104[rbp], r8d
	setne	dil
	call	ASSERT@PLT
	mov	edx, DWORD PTR FTAG[rip]
	mov	rsi, QWORD PTR -80[rbp]
	mov	rdi, QWORD PTR -88[rbp]
	call	zfs_release_sa_handle@PLT
	mov	r8d, DWORD PTR -104[rbp]
	test	r8d, r8d
	jne	.L1
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L44:
	mov	r8d, eax
	mov	rax, QWORD PTR -128[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L42:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L24
.L46:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zfs_obj_to_path_impl, .-zfs_obj_to_path_impl
	.comm	ZFS_UNLINKED_SET,4,4
	.comm	MAXNAMELEN,4,4
	.comm	MASTER_NODE_OBJ,4,4
	.comm	FTAG,4,4
	.comm	ESTALE,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_zfs_znode.c_zfs_obj_to_path_impl.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"<xattrdir>\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_obj_to_path_impl, %function
zfs_obj_to_path_impl:
	@ args = 8, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #60
	mov	r6, #0
	mov	ip, r3
	mov	lr, #1
	mov	r9, r2
	mov	r5, r1
	mov	r7, r0
	ldr	r8, [fp, #4]
	ldr	r3, [fp, #8]
	ldr	r1, .L36
	str	r2, [fp, #-72]
	str	r8, [fp, #-76]
	sub	r4, r3, #1
	ldr	r3, .L36+4
	ldr	r1, [r1]
	str	r1, [fp, #-40]
	mov	r1,#0
	ldr	r2, .L36+8
	strb	r6, [r8, r4]
	ldr	r1, [r3]
	sub	r3, fp, #52
	ldr	r2, [r2]
	str	r9, [fp, #-60]
	str	r6, [fp, #-56]
	str	lr, [sp]
	str	r3, [sp, #4]
	mov	r3, #4
	str	ip, [fp, #-68]
	bl	zap_lookup
	bl	VERIFY0
	mov	r2, r5
	mov	r0, r7
	ldr	r1, [fp, #-52]
	bl	zap_lookup_int
	subs	r3, r0, #0
	add	r4, r8, r4
	beq	.L32
	ldr	r2, .L36+12
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L1
	ldr	r3, .L36+16
	str	sp, [fp, #-80]
	ldr	r3, [r3]
	ldr	r10, .L36+20
	add	r3, r3, #9
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r9, r6
	str	r6, [fp, #-64]
	add	r6, sp, #8
.L19:
	sub	r2, fp, #44
	ldr	r1, [fp, #-60]
	str	r2, [sp]
	mov	r0, r7
	ldr	r2, [fp, #-68]
	sub	r3, fp, #48
	bl	zfs_obj_to_pobj
	cmp	r0, #0
	bne	.L29
	ldr	r8, [fp, #-48]
	cmp	r8, r5
	beq	.L33
	mov	r2, r6
	mov	r1, #47
	ldr	r3, [fp, #-44]
	strb	r1, [r2], #1
	cmp	r3, #0
	beq	.L8
	mov	r0, r2
	ldr	r1, .L36+24
	bl	sprintf
.L9:
	mov	r0, r6
	bl	strlen
	mov	r5, r0
	ldr	r3, [fp, #-76]
	sub	r4, r4, r0
	cmp	r3, r4
	movhi	r0, #0
	movls	r0, #1
	bl	ASSERT
	mov	r2, r5
	mov	r1, r4
	mov	r0, r6
	bl	bcopy
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-72]
	ldr	r5, [fp, #-48]
	cmp	r3, r2
	ldr	r2, [r10]
	strne	r3, [fp, #-64]
	ldrne	r9, [fp, #-56]
	mov	r1, r5
	str	r2, [sp]
	mov	r0, r7
	sub	r3, fp, #56
	sub	r2, fp, #60
	bl	zfs_grab_sa_handle
	cmp	r0, #0
	bne	.L34
	ldr	r3, .L36+16
	ldr	sp, [fp, #-80]
	ldr	r3, [r3]
	cmp	r9, #0
	add	r3, r3, #9
	bic	r3, r3, #7
	sub	sp, sp, r3
	add	r6, sp, #8
	beq	.L19
	mov	r1, r9
	ldr	r2, [r10]
	ldr	r0, [fp, #-64]
	bl	zfs_release_sa_handle
	b	.L19
.L32:
	ldr	r3, .L36+28
	ldr	r3, [r3]
.L1:
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L35
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mvn	r1, #0
	mvn	r0, #0
	str	r2, [fp, #-84]
	bl	ZFS_DIRENT_OBJ
	ldr	r2, [fp, #-84]
	mov	r3, r0
	str	r2, [sp]
	mov	r1, r8
	mov	r2, r5
	mov	r0, r7
	bl	zap_value_search
	cmp	r0, #0
	beq	.L9
.L29:
	mov	r3, r0
.L5:
	ldr	r2, [fp, #-60]
	ldr	sp, [fp, #-80]
	cmp	r2, #0
	beq	.L1
	ldr	r1, [fp, #-72]
	cmp	r1, r2
	beq	.L1
.L18:
	ldr	r0, [fp, #-56]
	str	r3, [fp, #-64]
	subs	r0, r0, #0
	movne	r0, #1
	bl	ASSERT
	ldr	r2, .L36+20
	ldr	r1, [fp, #-56]
	ldr	r2, [r2]
	ldr	r0, [fp, #-60]
	bl	zfs_release_sa_handle
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L1
.L15:
	ldr	r3, [fp, #8]
	ldr	r0, [fp, #-76]
	mov	r1, r4
	add	r2, r0, r3
	sub	r2, r2, r4
	bl	memmove
	mov	r3, #0
	b	.L1
.L33:
	ldrb	r2, [r4]	@ zero_extendqisi2
	mov	r3, r0
	cmp	r2, #47
	movne	r2, #47
	subne	r4, r4, #1
	strbne	r2, [r4]
.L7:
	ldr	r2, [fp, #-60]
	ldr	sp, [fp, #-80]
	cmp	r2, #0
	beq	.L15
	ldr	r1, [fp, #-72]
	cmp	r1, r2
	bne	.L18
	b	.L15
.L34:
	ldr	r2, [fp, #-64]
	mov	r3, r0
	str	r2, [fp, #-60]
	str	r9, [fp, #-56]
	b	.L5
.L35:
	bl	__stack_chk_fail
.L37:
	.align	2
.L36:
	.word	.LC1
	.word	MASTER_NODE_OBJ
	.word	ZFS_UNLINKED_SET
	.word	ENOENT
	.word	MAXNAMELEN
	.word	FTAG
	.word	.LC0
	.word	ESTALE
	.size	zfs_obj_to_path_impl, .-zfs_obj_to_path_impl
	.comm	ZFS_UNLINKED_SET,4,4
	.comm	MAXNAMELEN,4,4
	.comm	MASTER_NODE_OBJ,4,4
	.comm	FTAG,4,4
	.comm	ESTALE,4,4
	.comm	ENOENT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
