	.file	"extr_zfs_log.c_zfs_log_create.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zfs_log_create
	.type	zfs_log_create, @function
zfs_log_create:
.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
	mov	r14, r9
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, r9
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR 112[rsp]
	mov	r15, QWORD PTR 120[rsp]
	mov	QWORD PTR [rsp], rcx
	mov	QWORD PTR 16[rsp], rax
	mov	rax, QWORD PTR 128[rsp]
	mov	QWORD PTR 8[rsp], rax
	call	strlen@PLT
	mov	rsi, r13
	mov	rdi, r12
	mov	DWORD PTR 24[rsp], eax
	call	zil_replaying@PLT
	test	rax, rax
	je	.L40
.L1:
	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
.L40:
	.cfi_restore_state
	mov	rdi, QWORD PTR [rsp]
	call	zfs_xattr_owner_unlinked@PLT
	test	rax, rax
	jne	.L1
	xor	edx, edx
	test	r15, r15
	je	.L5
	movsx	rdx, DWORD PTR [r15]
	mov	rax, QWORD PTR 24[r15]
	lea	rdx, [rax+rdx*8]
.L5:
	mov	QWORD PTR 32[rsp], 0
	mov	rax, QWORD PTR 8[rsp]
	mov	edi, DWORD PTR [rax]
	test	DWORD PTR ATTR_XVATTR[rip], edi
	jne	.L41
.L6:
	mov	eax, DWORD PTR 24[rsp]
	add	eax, 1
	cmp	ebp, DWORD PTR TX_CREATE_ATTR[rip]
	cdqe
	mov	QWORD PTR 24[rsp], rax
	je	.L7
	cmp	ebp, DWORD PTR TX_MKDIR_ATTR[rip]
	je	.L7
	cmp	ebp, DWORD PTR TX_CREATE[rip]
	je	.L7
	cmp	ebp, DWORD PTR TX_MKDIR[rip]
	je	.L7
	cmp	ebp, DWORD PTR TX_MKXATTR[rip]
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	QWORD PTR 40[rsp], 56
	mov	rax, QWORD PTR 24[rsp]
	lea	rsi, 56[rdx+rax]
	add	rsi, QWORD PTR 32[rsp]
.L9:
	mov	rdi, rbp
	call	zil_itx_create@PLT
	mov	edi, DWORD PTR 12[rbx]
	mov	ecx, DWORD PTR DNODE_SHIFT[rip]
	mov	rbp, rax
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR [rbx]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR 44[rbp], edi
	sar	esi, cl
	mov	DWORD PTR 48[rbp], eax
	call	LR_FOID_SET_SLOTS@PLT
	mov	eax, DWORD PTR 8[rbx]
	mov	rdi, rbx
	mov	DWORD PTR 40[rbp], eax
	call	ZTOUID@PLT
	mov	edi, eax
	call	KUID_TO_SUID@PLT
	mov	edi, eax
	call	IS_EPHEMERAL@PLT
	test	eax, eax
	je	.L42
	mov	rax, QWORD PTR 16[r15]
	mov	QWORD PTR 32[rbp], rax
.L11:
	mov	rdi, rbx
	call	ZTOGID@PLT
	mov	edi, eax
	call	KGID_TO_SGID@PLT
	mov	edi, eax
	call	IS_EPHEMERAL@PLT
	test	eax, eax
	je	.L43
	mov	rax, QWORD PTR 8[r15]
	mov	QWORD PTR 24[rbp], rax
.L13:
	mov	rdi, rbx
	call	ZTOZSB@PLT
	mov	edi, eax
	call	SA_ZPL_GEN@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, 8
	lea	rdx, 16[rbp]
	mov	esi, eax
	call	sa_lookup@PLT
	mov	rdx, QWORD PTR 8[rbp]
	mov	rdi, rbx
	mov	QWORD PTR [rsp], rdx
	call	ZTOZSB@PLT
	mov	edi, eax
	call	SA_ZPL_CRTIME@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, 16
	mov	esi, eax
	call	sa_lookup@PLT
	mov	rdi, rbx
	call	ZTOZSB@PLT
	mov	edi, eax
	call	SA_ZPL_RDEV@PLT
	mov	edi, DWORD PTR 4[rbx]
	mov	ecx, 8
	mov	rdx, rbp
	mov	esi, eax
	call	sa_lookup@PLT
	test	rax, rax
	jne	.L44
.L14:
	mov	rax, QWORD PTR 40[rsp]
	lea	rbx, 0[rbp+rax]
	mov	rax, QWORD PTR 8[rsp]
	mov	eax, DWORD PTR [rax]
	test	DWORD PTR ATTR_XVATTR[rip], eax
	jne	.L45
.L15:
	mov	rax, QWORD PTR 16[rsp]
	test	rax, rax
	je	.L16
	mov	eax, DWORD PTR 16[rax]
	mov	QWORD PTR 0[rbp], 0
	mov	DWORD PTR 28[rbp], eax
	test	r15, r15
	je	.L17
	mov	eax, DWORD PTR 4[r15]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR [r15]
.L20:
	mov	rcx, QWORD PTR 16[rsp]
	mov	DWORD PTR 8[rbp], eax
	mov	edx, 0
	mov	rsi, rbx
	movsx	rax, DWORD PTR [rcx]
	test	DWORD PTR VSA_ACE_ACLFLAGS[rip], eax
	mov	rdi, QWORD PTR 8[rcx]
	cmove	rax, rdx
	mov	QWORD PTR 16[rbp], rax
	call	bcopy@PLT
	xor	edi, edi
	call	ZIL_ACE_LENGTH@PLT
	cdqe
	add	rbx, rax
.L16:
	test	r15, r15
	je	.L19
	mov	rsi, rbx
	mov	rdi, r15
	call	zfs_log_fuid_ids@PLT
	mov	rdi, r15
	mov	rsi, rax
	call	zfs_log_fuid_domains@PLT
	mov	rbx, rax
.L19:
	mov	rdx, QWORD PTR 24[rsp]
	mov	rsi, rbx
	mov	rdi, r14
	call	bcopy@PLT
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rdx, r13
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	rdi, r12
	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
	jmp	zil_itx_assign@PLT
	.p2align 4,,10
	.p2align 3
.L44:
	.cfi_restore_state
	mov	QWORD PTR 0[rbp], 0
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L17:
	mov	DWORD PTR 24[rbp], 0
	xor	eax, eax
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L41:
	mov	QWORD PTR 40[rsp], rdx
	call	ZIL_XVAT_SIZE@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	QWORD PTR 32[rsp], rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L45:
	mov	rsi, QWORD PTR 8[rsp]
	mov	rdi, rbx
	call	zfs_log_xvattr@PLT
	mov	rbx, QWORD PTR 32[rsp]
	add	rbx, QWORD PTR 40[rsp]
	add	rbx, rbp
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L43:
	mov	rdi, rbx
	call	ZTOGID@PLT
	mov	edi, eax
	call	KGID_TO_SGID@PLT
	cdqe
	mov	QWORD PTR 24[rbp], rax
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rdi, rbx
	call	ZTOUID@PLT
	mov	edi, eax
	call	KUID_TO_SUID@PLT
	cdqe
	mov	QWORD PTR 32[rbp], rax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L8:
	xor	edi, edi
	mov	QWORD PTR 40[rsp], rdx
	call	ZIL_ACE_LENGTH@PLT
	mov	rdx, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 24[rsp]
	mov	QWORD PTR 40[rsp], 32
	cdqe
	lea	rsi, 32[rdx+rcx]
	add	rsi, QWORD PTR 32[rsp]
	add	rsi, rax
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	zfs_log_create, .-zfs_log_create
	.comm	VSA_ACE_ACLFLAGS,4,4
	.comm	TX_MKXATTR,4,4
	.comm	TX_MKDIR_ATTR,4,4
	.comm	TX_MKDIR,4,4
	.comm	TX_CREATE_ATTR,4,4
	.comm	TX_CREATE,4,4
	.comm	DNODE_SHIFT,4,4
	.comm	ATTR_XVATTR,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_log.c_zfs_log_create.c"
	.text
	.align	2
	.global	zfs_log_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	zfs_log_create, %function
zfs_log_create:
	@ args = 20, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	ldr	r10, [sp, #68]
	mov	r6, r0
	mov	r0, r10
	mov	r7, r1
	mov	r4, r2
	mov	r8, r3
	bl	strlen
	mov	r3, r0
	str	r3, [sp, #4]
	ldr	r3, [sp, #80]
	mov	r1, r7
	mov	r0, r6
	ldr	r5, [sp, #64]
	ldr	fp, [sp, #72]
	ldr	r9, [sp, #76]
	str	r3, [sp]
	bl	zil_replaying
	cmp	r0, #0
	beq	.L37
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L37:
	mov	r0, r8
	bl	zfs_xattr_owner_unlinked
	subs	r3, r0, #0
	str	r3, [sp, #8]
	bne	.L1
	ldr	r3, [sp]
	cmp	r9, #0
	ldr	r0, [r3]
	ldr	r3, .L42
	ldrne	r2, [r9]
	ldrne	r1, [r9, #16]
	ldr	r3, [r3]
	moveq	r2, r9
	addne	r2, r1, r2, lsl #2
	ands	r3, r0, r3
	streq	r3, [sp, #12]
	bne	.L38
.L6:
	ldr	r3, .L42+4
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L7
	ldr	r3, .L42+8
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L7
	ldr	r3, .L42+12
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L7
	ldr	r3, .L42+16
	ldr	r3, [r3]
	cmp	r4, r3
	beq	.L7
	ldr	r3, .L42+20
	ldr	r3, [r3]
	cmp	r4, r3
	bne	.L8
.L7:
	ldr	r3, [sp, #4]
	add	r1, r3, #33
	ldr	r3, [sp, #12]
	add	r1, r1, r2
	add	r1, r1, r3
	mov	r3, #32
	str	r3, [sp, #16]
.L9:
	mov	r0, r4
	bl	zil_itx_create
	mov	r4, r0
	ldr	r3, .L42+24
	ldr	r2, [r8, #12]
	ldr	r1, [r5]
	ldr	r0, [r5, #12]
	ldr	r3, [r3]
	str	r2, [r4, #28]
	asr	r1, r1, r3
	str	r0, [r4, #24]
	bl	LR_FOID_SET_SLOTS
	ldr	r3, [r5, #8]
	mov	r0, r5
	str	r3, [r4, #20]
	bl	ZTOUID
	bl	KUID_TO_SUID
	bl	IS_EPHEMERAL
	cmp	r0, #0
	beq	.L39
	ldr	r3, [r9, #12]
	str	r3, [r4, #16]
.L11:
	mov	r0, r5
	bl	ZTOGID
	bl	KGID_TO_SGID
	bl	IS_EPHEMERAL
	cmp	r0, #0
	beq	.L40
	ldr	r3, [r9, #8]
	str	r3, [r4, #12]
.L13:
	mov	r0, r5
	ldr	r8, [r5, #4]
	bl	ZTOZSB
	bl	SA_ZPL_GEN
	mov	r3, #4
	mov	r1, r0
	add	r2, r4, #8
	mov	r0, r8
	bl	sa_lookup
	mov	r0, r5
	ldr	r8, [r5, #4]
	bl	ZTOZSB
	bl	SA_ZPL_CRTIME
	mov	r3, #8
	mov	r1, r0
	ldr	r2, [r4, #4]
	mov	r0, r8
	bl	sa_lookup
	mov	r0, r5
	ldr	r5, [r5, #4]
	bl	ZTOZSB
	bl	SA_ZPL_RDEV
	mov	r3, #4
	mov	r1, r0
	mov	r2, r4
	mov	r0, r5
	bl	sa_lookup
	cmp	r0, #0
	movne	r3, #0
	ldr	r2, [sp]
	strne	r3, [r4]
	ldr	r3, .L42
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [sp, #16]
	tst	r2, r3
	add	r5, r4, r1
	bne	.L41
.L15:
	cmp	fp, #0
	beq	.L16
	mov	r2, #0
	ldr	r3, [fp, #8]
	cmp	r9, r2
	str	r2, [r4]
	str	r3, [r4, #16]
	ldmne	r9, {r2, r3}
	strne	r2, [sp, #8]
	ldr	r2, .L42+28
	strne	r3, [r4, #12]
	ldr	r2, [r2]
	ldr	r3, [fp]
	streq	r9, [r4, #12]
	tst	r3, r2
	moveq	r3, #0
	ldr	r1, [sp, #8]
	mov	r2, #0
	ldr	r0, [fp, #4]
	str	r1, [r4, #4]
	str	r3, [r4, #8]
	mov	r1, r5
	bl	bcopy
	mov	r0, #0
	bl	ZIL_ACE_LENGTH
	add	r5, r5, r0
.L16:
	cmp	r9, #0
	beq	.L19
	mov	r1, r5
	mov	r0, r9
	bl	zfs_log_fuid_ids
	mov	r1, r0
	mov	r0, r9
	bl	zfs_log_fuid_domains
	mov	r5, r0
.L19:
	ldr	r3, [sp, #4]
	mov	r1, r5
	add	r2, r3, #1
	mov	r0, r10
	bl	bcopy
	mov	r2, r7
	mov	r1, r4
	mov	r0, r6
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	zil_itx_assign
.L41:
	mov	r0, r5
	ldr	r1, [sp]
	bl	zfs_log_xvattr
	ldr	r3, [sp, #12]
	ldr	r2, [sp, #16]
	add	r5, r3, r2
	add	r5, r4, r5
	b	.L15
.L38:
	str	r2, [sp, #16]
	bl	ZIL_XVAT_SIZE
	ldr	r2, [sp, #16]
	str	r0, [sp, #12]
	b	.L6
.L40:
	mov	r0, r5
	bl	ZTOGID
	bl	KGID_TO_SGID
	str	r0, [r4, #12]
	b	.L13
.L39:
	mov	r0, r5
	bl	ZTOUID
	bl	KUID_TO_SUID
	str	r0, [r4, #16]
	b	.L11
.L8:
	mov	r0, #0
	str	r2, [sp, #20]
	bl	ZIL_ACE_LENGTH
	mov	r3, #20
	str	r3, [sp, #16]
	ldr	r3, [sp, #4]
	ldr	r2, [sp, #20]
	add	r3, r3, #21
	add	r1, r3, r2
	ldr	r3, [sp, #12]
	add	r1, r1, r3
	add	r1, r1, r0
	b	.L9
.L43:
	.align	2
.L42:
	.word	ATTR_XVATTR
	.word	TX_CREATE_ATTR
	.word	TX_MKDIR_ATTR
	.word	TX_CREATE
	.word	TX_MKDIR
	.word	TX_MKXATTR
	.word	DNODE_SHIFT
	.word	VSA_ACE_ACLFLAGS
	.size	zfs_log_create, .-zfs_log_create
	.comm	VSA_ACE_ACLFLAGS,4,4
	.comm	TX_MKXATTR,4,4
	.comm	TX_MKDIR_ATTR,4,4
	.comm	TX_MKDIR,4,4
	.comm	TX_CREATE_ATTR,4,4
	.comm	TX_CREATE,4,4
	.comm	DNODE_SHIFT,4,4
	.comm	ATTR_XVATTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
