	.file	"extr_namei.c_reiserfs_mknod.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	reiserfs_mknod, @function
reiserfs_mknod:
.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	r13d, edx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR [rdi]
	mov	r15d, DWORD PTR JOURNAL_PER_BALANCE_CNT[rip]
	mov	QWORD PTR [rsp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	REISERFS_QUOTA_INIT_BLOCKS@PLT
	mov	edi, DWORD PTR [rbx]
	mov	ebp, eax
	call	REISERFS_QUOTA_TRANS_BLOCKS@PLT
	mov	edi, r12d
	mov	DWORD PTR 12[rsp], eax
	call	new_valid_dev@PLT
	test	eax, eax
	jne	.L2
	mov	r8d, DWORD PTR EINVAL[rip]
	neg	r8d
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	call	new_inode@PLT
	mov	r8d, DWORD PTR ENOMEM[rip]
	mov	r14, rax
	neg	r8d
	test	rax, rax
	je	.L1
	mov	edx, r13d
	mov	rsi, rbx
	mov	rdi, rax
	call	new_inode_init@PLT
	mov	rdi, rbx
	call	reiserfs_cache_default_acl@PLT
	mov	rsi, r14
	mov	rdi, rbx
	mov	QWORD PTR 16[rsp], rax
	lea	rax, 36[rsp]
	mov	rdx, rax
	mov	QWORD PTR 24[rsp], rax
	call	reiserfs_security_init@PLT
	mov	r8d, eax
	test	eax, eax
	js	.L16
	add	ebp, DWORD PTR 12[rsp]
	mov	edi, DWORD PTR [rbx]
	lea	eax, [r15+r15*2]
	lea	r15d, [rax+rbp*2]
	add	r15d, DWORD PTR 16[rsp]
	lea	rbp, 32[rsp]
	add	r15d, r8d
	call	reiserfs_write_lock@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edx, r15d
	mov	rdi, rbp
	call	journal_begin@PLT
	test	eax, eax
	jne	.L17
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 120
	xor	r8d, r8d
	mov	edx, r13d
	xor	ecx, ecx
	push	r14
	.cfi_def_cfa_offset 128
	mov	rsi, rbx
	mov	rdi, rbp
	mov	r9, QWORD PTR 16[rsp]
	call	reiserfs_new_inode@PLT
	mov	r8d, eax
	pop	rax
	.cfi_def_cfa_offset 120
	pop	rdx
	.cfi_def_cfa_offset 112
	test	r8d, r8d
	jne	.L7
	lea	rcx, reiserfs_special_inode_operations[rip]
	mov	esi, DWORD PTR 8[r14]
	mov	edx, r12d
	mov	rdi, r14
	mov	QWORD PTR 16[r14], rcx
	call	init_special_inode@PLT
	mov	rsi, r14
	mov	rdi, rbp
	call	reiserfs_update_sd@PLT
	mov	rdi, r14
	call	reiserfs_update_inode_transaction@PLT
	mov	rdi, rbx
	call	reiserfs_update_inode_transaction@PLT
	mov	rax, QWORD PTR [rsp]
	mov	r8, r14
	mov	rsi, rbx
	mov	r9d, 1
	mov	rdi, rbp
	mov	edx, DWORD PTR 4[rax]
	mov	ecx, DWORD PTR [rax]
	call	reiserfs_add_entry@PLT
	test	eax, eax
	jne	.L18
	mov	rdi, QWORD PTR [rsp]
	mov	rsi, r14
	call	d_instantiate@PLT
	mov	rdi, r14
	call	unlock_new_inode@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edx, r15d
	mov	rdi, rbp
	call	journal_end@PLT
	mov	r8d, eax
.L7:
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR [rsp], r8d
	call	reiserfs_write_unlock@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rdi, r14
	mov	DWORD PTR [rsp], eax
	call	drop_new_inode@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rdi, r14
	mov	DWORD PTR [rsp], eax
	call	drop_new_inode@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L18:
	sub	DWORD PTR 4[r14], 1
	mov	rsi, r14
	mov	rdi, rbp
	mov	DWORD PTR [rsp], eax
	call	reiserfs_update_sd@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edx, r15d
	mov	rdi, rbp
	call	journal_end@PLT
	mov	r8d, DWORD PTR [rsp]
	mov	rdi, r14
	test	eax, eax
	cmovne	r8d, eax
	mov	DWORD PTR [rsp], r8d
	call	unlock_new_inode@PLT
	mov	rdi, r14
	call	iput@PLT
	mov	r8d, DWORD PTR [rsp]
	jmp	.L7
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	reiserfs_mknod, .-reiserfs_mknod
	.comm	reiserfs_special_inode_operations,4,4
	.comm	JOURNAL_PER_BALANCE_CNT,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_namei.c_reiserfs_mknod.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reiserfs_mknod, %function
reiserfs_mknod:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	ip, .L20
	mov	r5, r3
	ldr	r3, .L20+4
	sub	sp, sp, #44
	mov	r4, r0
	ldr	r0, [r0]
	mov	r9, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	ldr	r7, [ip]
	bl	REISERFS_QUOTA_INIT_BLOCKS
	mov	r6, r0
	ldr	r0, [r4]
	bl	REISERFS_QUOTA_TRANS_BLOCKS
	mov	fp, r0
	mov	r0, r5
	bl	new_valid_dev
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L20+8
	ldr	r0, [r3]
	rsb	r3, r0, #0
.L1:
	ldr	r2, .L20+4
	ldr	r1, [r2]
	ldr	r2, [sp, #36]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L15
	mov	r0, r3
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r0, [r4]
	bl	new_inode
	subs	r10, r0, #0
	beq	.L16
	mov	r2, r8
	mov	r1, r4
	bl	new_inode_init
	mov	r0, r4
	bl	reiserfs_cache_default_acl
	mov	r3, r0
	mov	r1, r10
	mov	r0, r4
	add	r2, sp, #32
	str	r3, [sp, #16]
	bl	reiserfs_security_init
	subs	r3, r0, #0
	blt	.L17
	ldr	r2, [sp, #16]
	add	r6, r6, fp
	add	r7, r7, r7, lsl #1
	add	r6, r7, r6, lsl #1
	add	r6, r6, r2
	add	r6, r6, r3
	ldr	r0, [r4]
	bl	reiserfs_write_lock
	mov	r2, r6
	ldr	r1, [r4]
	add	r0, sp, #28
	bl	journal_begin
	subs	r3, r0, #0
	bne	.L18
	add	r2, sp, #32
	stm	sp, {r3, r9, r10}
	str	r2, [sp, #12]
	mov	r1, r4
	mov	r2, r8
	add	r0, sp, #28
	bl	reiserfs_new_inode
	subs	r3, r0, #0
	bne	.L7
	ldr	r3, .L20+12
	mov	r2, r5
	str	r3, [r10, #12]
	ldr	r1, [r10, #8]
	mov	r0, r10
	bl	init_special_inode
	mov	r1, r10
	add	r0, sp, #28
	bl	reiserfs_update_sd
	mov	r0, r10
	bl	reiserfs_update_inode_transaction
	mov	r0, r4
	bl	reiserfs_update_inode_transaction
	mov	r3, #1
	str	r10, [sp]
	str	r3, [sp, #4]
	ldr	r3, [r9]
	mov	r1, r4
	ldr	r2, [r9, #4]
	add	r0, sp, #28
	bl	reiserfs_add_entry
	subs	r3, r0, #0
	bne	.L19
	mov	r1, r10
	mov	r0, r9
	bl	d_instantiate
	mov	r0, r10
	bl	unlock_new_inode
	mov	r2, r6
	ldr	r1, [r4]
	add	r0, sp, #28
	bl	journal_end
	mov	r3, r0
.L7:
	ldr	r0, [r4]
	str	r3, [sp, #16]
	bl	reiserfs_write_unlock
	ldr	r3, [sp, #16]
	b	.L1
.L18:
	mov	r0, r10
	str	r3, [sp, #16]
	bl	drop_new_inode
	ldr	r3, [sp, #16]
	b	.L7
.L16:
	ldr	r3, .L20+16
	ldr	r0, [r3]
	rsb	r3, r0, #0
	b	.L1
.L17:
	mov	r0, r10
	str	r3, [sp, #16]
	bl	drop_new_inode
	ldr	r3, [sp, #16]
	b	.L1
.L19:
	ldr	r2, [r10, #4]
	mov	r1, r10
	sub	r2, r2, #1
	str	r2, [r10, #4]
	add	r0, sp, #28
	str	r3, [sp, #16]
	bl	reiserfs_update_sd
	ldr	r1, [r4]
	mov	r2, r6
	add	r0, sp, #28
	bl	journal_end
	mov	r2, r0
	cmp	r2, #0
	ldr	r3, [sp, #16]
	movne	r3, r2
	mov	r0, r10
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	bl	unlock_new_inode
	mov	r0, r10
	bl	iput
	ldr	r3, [sp, #16]
	b	.L7
.L15:
	bl	__stack_chk_fail
.L21:
	.align	2
.L20:
	.word	JOURNAL_PER_BALANCE_CNT
	.word	.LC0
	.word	EINVAL
	.word	reiserfs_special_inode_operations
	.word	ENOMEM
	.size	reiserfs_mknod, .-reiserfs_mknod
	.comm	reiserfs_special_inode_operations,4,4
	.comm	JOURNAL_PER_BALANCE_CNT,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
