	.file	"extr_ialloc.c_udf_new_inode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	udf_new_inode
	.type	udf_new_inode, @function
udf_new_inode:
.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
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	r15, QWORD PTR 24[rdi]
	mov	DWORD PTR 8[rsp], esi
	mov	rdi, r15
	call	UDF_SB@PLT
	mov	rdi, rbp
	mov	QWORD PTR [rsp], rax
	call	UDF_I@PLT
	mov	rdi, rbp
	mov	eax, DWORD PTR 40[rax]
	mov	DWORD PTR 12[rsp], eax
	call	UDF_I@PLT
	mov	rdi, r15
	mov	r14, rax
	call	new_inode@PLT
	mov	r12, rax
	test	rax, rax
	je	.L25
	mov	eax, DWORD PTR ENOSPC[rip]
	mov	rdi, r12
	neg	eax
	mov	DWORD PTR 0[r13], eax
	call	UDF_I@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	esi, DWORD PTR UDF_FLAG_USE_EXTENDED_FE[rip]
	mov	rbx, rax
	call	UDF_QUERY_FLAG@PLT
	test	rax, rax
	je	.L4
	mov	rcx, QWORD PTR [rsp]
	mov	DWORD PTR [rbx], 1
	mov	rax, QWORD PTR UDF_VERS_USE_EXTENDED_FE[rip]
	cmp	QWORD PTR [rcx], rax
	jl	.L26
.L23:
	mov	rax, QWORD PTR 24[r12]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR [rax]
	sub	rdi, 4
	call	kzalloc@PLT
	mov	QWORD PTR 48[rbx], rax
	test	rax, rax
	je	.L27
	mov	edx, DWORD PTR 44[r14]
	mov	rdi, QWORD PTR 24[rbp]
	mov	r8, r13
	xor	esi, esi
	mov	ecx, DWORD PTR 12[rsp]
	call	udf_new_block@PLT
	mov	DWORD PTR 12[rsp], eax
	mov	eax, DWORD PTR 0[r13]
	test	eax, eax
	jne	.L28
	mov	rdi, QWORD PTR [rsp]
	lea	rax, 8[rdi]
	mov	rdi, rax
	mov	QWORD PTR 16[rsp], rax
	call	mutex_lock@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR 16[rdi]
	test	rax, rax
	je	.L9
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR [rsp], rdx
	call	udf_sb_lvidiu@PLT
	mov	rdx, QWORD PTR [rsp]
	mov	edi, DWORD PTR 8[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	rax, QWORD PTR [rdx]
	mov	QWORD PTR [rsp], rax
	call	S_ISDIR@PLT
	mov	r8, QWORD PTR 24[rsp]
	test	rax, rax
	jne	.L29
	mov	esi, 1
	mov	rdi, r8
	call	le32_add_cpu@PLT
.L11:
	mov	rax, QWORD PTR [rsp]
	mov	edi, DWORD PTR [rax]
	call	le64_to_cpu@PLT
	mov	edi, eax
	lea	edx, 17[rax]
	mov	DWORD PTR 4[rbx], eax
	add	edi, 1
	cmove	edi, edx
	call	cpu_to_le64@PLT
	mov	rcx, QWORD PTR [rsp]
	mov	rdi, r15
	mov	DWORD PTR [rcx], eax
	call	udf_updated_lvid@PLT
.L9:
	mov	rdi, QWORD PTR 16[rsp]
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	DWORD PTR [r12], eax
	xor	eax, eax
	call	current_fsuid@PLT
	mov	DWORD PTR 64[r12], eax
	mov	eax, DWORD PTR 0[rbp]
	test	DWORD PTR S_ISGID[rip], eax
	jne	.L30
	xor	eax, eax
	call	current_fsgid@PLT
	mov	DWORD PTR 60[r12], eax
.L14:
	mov	eax, DWORD PTR 12[rsp]
	lea	rsi, 40[rbx]
	xor	edx, edx
	mov	rdi, r15
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR 44[r14]
	mov	DWORD PTR 44[rbx], eax
	call	udf_get_lb_pblock@PLT
	mov	rdi, QWORD PTR 24[r12]
	mov	esi, DWORD PTR UDF_FLAG_USE_AD_IN_ICB[rip]
	mov	QWORD PTR 48[r12], 0
	mov	DWORD PTR 56[r12], eax
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	call	UDF_QUERY_FLAG@PLT
	test	rax, rax
	je	.L15
	mov	eax, DWORD PTR ICBTAG_FLAG_AD_IN_ICB[rip]
	mov	DWORD PTR 12[rbx], eax
.L16:
	mov	rdi, QWORD PTR 24[r12]
	call	current_fs_time@PLT
	mov	rdi, r12
	mov	DWORD PTR 8[rbx], eax
	mov	DWORD PTR 32[r12], eax
	mov	DWORD PTR 36[r12], eax
	mov	DWORD PTR 40[r12], eax
	call	insert_inode_hash@PLT
	mov	rdi, r12
	call	mark_inode_dirty@PLT
	mov	rdi, r12
	call	vfs_dq_alloc_inode@PLT
	test	rax, rax
	jne	.L31
	mov	DWORD PTR 0[r13], 0
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L30:
	.cfi_restore_state
	mov	eax, DWORD PTR 60[rbp]
	mov	edi, DWORD PTR 8[rsp]
	mov	DWORD PTR 60[r12], eax
	call	S_ISDIR@PLT
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L26:
	mov	QWORD PTR [rcx], rax
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR [rbx], 0
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, QWORD PTR 24[r12]
	mov	esi, DWORD PTR UDF_FLAG_USE_SHORT_AD[rip]
	call	UDF_QUERY_FLAG@PLT
	test	rax, rax
	je	.L17
	mov	eax, DWORD PTR ICBTAG_FLAG_AD_SHORT[rip]
	mov	DWORD PTR 12[rbx], eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L29:
	lea	rdi, 4[r8]
	mov	esi, 1
	call	le32_add_cpu@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR ICBTAG_FLAG_AD_LONG[rip]
	mov	DWORD PTR 12[rbx], eax
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L25:
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	mov	DWORD PTR 0[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r12
	xor	r12d, r12d
	call	iput@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, r12
	xor	r12d, r12d
	call	iput@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	neg	eax
	mov	DWORD PTR 0[r13], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdi, r12
	call	vfs_dq_drop@PLT
	mov	eax, DWORD PTR S_NOQUOTA[rip]
	or	DWORD PTR 16[r12], eax
	mov	rdi, r12
	mov	QWORD PTR 8[r12], 0
	xor	r12d, r12d
	call	iput@PLT
	mov	eax, DWORD PTR EDQUOT[rip]
	neg	eax
	mov	DWORD PTR 0[r13], eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	udf_new_inode, .-udf_new_inode
	.comm	UDF_VERS_USE_EXTENDED_FE,8,8
	.comm	UDF_FLAG_USE_SHORT_AD,4,4
	.comm	UDF_FLAG_USE_EXTENDED_FE,4,4
	.comm	UDF_FLAG_USE_AD_IN_ICB,4,4
	.comm	S_NOQUOTA,4,4
	.comm	S_ISGID,4,4
	.comm	ICBTAG_FLAG_AD_SHORT,4,4
	.comm	ICBTAG_FLAG_AD_LONG,4,4
	.comm	ICBTAG_FLAG_AD_IN_ICB,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOSPC,4,4
	.comm	ENOMEM,4,4
	.comm	EDQUOT,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_ialloc.c_udf_new_inode.c"
	.text
	.align	2
	.global	udf_new_inode
	.syntax unified
	.arm
	.fpu softvfp
	.type	udf_new_inode, %function
udf_new_inode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r10, [r0, #12]
	sub	sp, sp, #28
	mov	r6, r0
	mov	r0, r10
	mov	r7, r2
	str	r1, [sp, #12]
	bl	UDF_SB
	mov	r8, r0
	mov	r0, r6
	bl	UDF_I
	mov	r3, r0
	mov	r0, r6
	ldr	fp, [r3, #28]
	bl	UDF_I
	mov	r9, r0
	mov	r0, r10
	bl	new_inode
	subs	r4, r0, #0
	beq	.L24
	ldr	r3, .L29
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r7]
	bl	UDF_I
	ldr	r3, .L29+4
	mov	r5, r0
	ldr	r1, [r3]
	ldr	r0, [r4, #12]
	bl	UDF_QUERY_FLAG
	cmp	r0, #0
	beq	.L4
	mov	r1, #1
	ldr	r3, .L29+8
	ldr	r2, [r8]
	ldr	r3, [r3]
	str	r1, [r5]
	cmp	r2, r3
	ldr	r2, [r4, #12]
	strlt	r3, [r8]
	ldr	r0, [r2]
	ldr	r3, .L29+12
	sub	r0, r0, #4
	ldr	r1, [r3]
	bl	kzalloc
	mov	r3, r0
	str	r0, [r5, #36]
.L6:
	cmp	r3, #0
	beq	.L25
	ldr	r2, [r9, #32]
	str	r7, [sp]
	mov	r3, fp
	mov	r1, #0
	ldr	r0, [r6, #12]
	bl	udf_new_block
	ldr	r3, [r7]
	str	r0, [sp, #16]
	cmp	r3, #0
	bne	.L26
	add	fp, r8, #4
	mov	r0, fp
	bl	mutex_lock
	ldr	r3, [r8, #8]
	cmp	r3, #0
	beq	.L9
	mov	r0, r8
	ldr	r8, [r3]
	bl	udf_sb_lvidiu
	mov	r3, r0
	ldr	r0, [sp, #12]
	ldr	r8, [r8]
	str	r3, [sp, #20]
	bl	S_ISDIR
	ldr	r3, [sp, #20]
	cmp	r0, #0
	moveq	r0, r3
	mov	r1, #1
	addne	r0, r3, #4
	bl	le32_add_cpu
	ldr	r0, [r8]
	bl	le64_to_cpu
	adds	r3, r0, #1
	str	r0, [r5, #4]
	movne	r0, r3
	moveq	r0, #16
	bl	cpu_to_le64
	str	r0, [r8]
	mov	r0, r10
	bl	udf_updated_lvid
.L9:
	mov	r0, fp
	bl	mutex_unlock
	ldr	r8, [sp, #12]
	str	r8, [r4]
	bl	current_fsuid
	ldr	r3, .L29+16
	ldr	r2, [r6]
	ldr	r3, [r3]
	str	r0, [r4, #40]
	tst	r2, r3
	bne	.L27
	bl	current_fsgid
	str	r0, [r4, #36]
.L14:
	ldr	r3, [r9, #32]
	ldr	r2, [sp, #16]
	str	r3, [r5, #32]
	str	r2, [r5, #28]
	add	r1, r5, #28
	mov	r2, #0
	mov	r0, r10
	bl	udf_get_lb_pblock
	mov	r3, #0
	ldr	r2, .L29+20
	str	r0, [r4, #32]
	str	r3, [r4, #28]
	ldr	r1, [r2]
	ldr	r0, [r4, #12]
	str	r3, [r5, #24]
	str	r3, [r5, #20]
	str	r3, [r5, #16]
	bl	UDF_QUERY_FLAG
	cmp	r0, #0
	beq	.L15
	ldr	r3, .L29+24
	ldr	r3, [r3]
	str	r3, [r5, #12]
.L16:
	ldr	r0, [r4, #12]
	bl	current_fs_time
	mov	r3, r0
	mov	r0, r4
	str	r3, [r5, #8]
	str	r3, [r4, #16]
	str	r3, [r4, #20]
	str	r3, [r4, #24]
	bl	insert_inode_hash
	mov	r0, r4
	bl	mark_inode_dirty
	mov	r0, r4
	bl	vfs_dq_alloc_inode
	cmp	r0, #0
	streq	r0, [r7]
	bne	.L28
.L1:
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldr	r3, [r6, #36]
	mov	r0, r8
	str	r3, [r4, #36]
	bl	S_ISDIR
	b	.L14
.L4:
	ldr	r2, [r4, #12]
	ldr	r3, .L29+12
	ldr	r2, [r2]
	ldr	r1, [r3]
	str	r0, [r5]
	sub	r0, r2, #4
	bl	kzalloc
	mov	r3, r0
	str	r0, [r5, #36]
	b	.L6
.L15:
	ldr	r3, .L29+28
	ldr	r0, [r4, #12]
	ldr	r1, [r3]
	bl	UDF_QUERY_FLAG
	cmp	r0, #0
	ldrne	r3, .L29+32
	ldreq	r3, .L29+36
	ldr	r3, [r3]
	str	r3, [r5, #12]
	b	.L16
.L24:
	mov	r0, r4
	ldr	r3, .L29+40
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r7]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r0, r4
	mov	r4, #0
	bl	iput
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L25:
	mov	r0, r4
	str	r3, [sp, #12]
	bl	iput
	ldr	r3, [sp, #12]
	ldr	r2, .L29+40
	mov	r4, r3
	ldr	r3, [r2]
	rsb	r3, r3, #0
	str	r3, [r7]
	b	.L1
.L28:
	mov	r5, #0
	mov	r0, r4
	bl	vfs_dq_drop
	ldr	r2, .L29+44
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	str	r3, [r4, #8]
	str	r5, [r4, #4]
	bl	iput
	ldr	r3, .L29+48
	mov	r4, r5
	ldr	r3, [r3]
	rsb	r3, r3, #0
	str	r3, [r7]
	b	.L1
.L30:
	.align	2
.L29:
	.word	ENOSPC
	.word	UDF_FLAG_USE_EXTENDED_FE
	.word	UDF_VERS_USE_EXTENDED_FE
	.word	GFP_KERNEL
	.word	S_ISGID
	.word	UDF_FLAG_USE_AD_IN_ICB
	.word	ICBTAG_FLAG_AD_IN_ICB
	.word	UDF_FLAG_USE_SHORT_AD
	.word	ICBTAG_FLAG_AD_SHORT
	.word	ICBTAG_FLAG_AD_LONG
	.word	ENOMEM
	.word	S_NOQUOTA
	.word	EDQUOT
	.size	udf_new_inode, .-udf_new_inode
	.comm	UDF_VERS_USE_EXTENDED_FE,4,4
	.comm	UDF_FLAG_USE_SHORT_AD,4,4
	.comm	UDF_FLAG_USE_EXTENDED_FE,4,4
	.comm	UDF_FLAG_USE_AD_IN_ICB,4,4
	.comm	S_NOQUOTA,4,4
	.comm	S_ISGID,4,4
	.comm	ICBTAG_FLAG_AD_SHORT,4,4
	.comm	ICBTAG_FLAG_AD_LONG,4,4
	.comm	ICBTAG_FLAG_AD_IN_ICB,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOSPC,4,4
	.comm	ENOMEM,4,4
	.comm	EDQUOT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
