	.file	"extr_devfs_tree.c_devfs_make_node_internal.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"/"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"devfs_make_node: not ready for devices!\n"
	.text
	.p2align 4
	.type	devfs_make_node_internal, @function
devfs_make_node_internal:
.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
	push	r12
	push	rbx
	sub	rsp, 344
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR -364[rbp], edx
	mov	DWORD PTR -372[rbp], r8d
	mov	rbx, rsp
	mov	r8, QWORD PTR 16[rbp]
	mov	DWORD PTR -356[rbp], edi
	mov	DWORD PTR -360[rbp], esi
	mov	DWORD PTR -368[rbp], ecx
	mov	QWORD PTR -384[rbp], r9
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR NUM_STACK_ENTRIES[rip]
	mov	QWORD PTR -336[rbp], 0
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rbx, rax
	and	rdx, -16
	mov	rax, rbx
	cmp	rsp, rax
	je	.L3
.L28:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L28
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L29
.L4:
	lea	r12, -320[rbp]
	mov	ecx, DWORD PTR 24[rbp]
	mov	rdx, r8
	mov	r14, rsp
	mov	rdi, r12
	mov	esi, 256
	call	vsnprintf@PLT
	mov	rdi, r12
	call	strlen@PLT
	test	eax, eax
	jle	.L19
	cdqe
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	sub	rax, 1
	test	eax, eax
	jle	.L19
.L7:
	cmp	BYTE PTR [r12+rax], 47
	movsx	rdx, eax
	jne	.L6
	mov	BYTE PTR -320[rbp+rdx], 0
	lea	rbx, 1[r12+rdx]
	mov	r15, r12
.L5:
	mov	r13d, DWORD PTR devfs_nmountplanes[rip]
	mov	esi, DWORD PTR NUM_STACK_ENTRIES[rip]
	lea	r12, -340[rbp]
	cmp	esi, r13d
	jge	.L8
.L9:
	xor	edx, edx
	mov	esi, r13d
	mov	rdi, r12
	mov	r14d, 1
	call	devfs_init_event_log@PLT
	test	rax, rax
	jne	.L12
	xor	eax, eax
	call	DEVFS_LOCK@PLT
	cmp	DWORD PTR devfs_nmountplanes[rip], r13d
	jg	.L30
.L13:
	mov	esi, DWORD PTR devfs_ready[rip]
	test	esi, esi
	je	.L31
	mov	edx, DWORD PTR DEVFS_CREATE[rip]
	xor	esi, esi
	mov	r8, r12
	mov	rdi, r15
	lea	rcx, -328[rbp]
	call	dev_finddir@PLT
	test	rax, rax
	je	.L32
.L15:
	xor	eax, eax
	call	DEVFS_UNLOCK@PLT
	mov	rdi, r12
	call	devfs_bulk_notify@PLT
	mov	esi, r14d
	mov	rdi, r12
	call	devfs_release_event_log@PLT
	mov	rax, QWORD PTR -336[rbp]
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L33
	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
.L19:
	.cfi_restore_state
	lea	r15, .LC0[rip]
	mov	rbx, r12
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, r14
	mov	rdi, r12
	mov	DWORD PTR -376[rbp], esi
	call	devfs_init_event_log@PLT
	test	rax, rax
	jne	.L12
	mov	esi, DWORD PTR -376[rbp]
	xor	eax, eax
	xor	r14d, r14d
	mov	r13d, esi
	call	DEVFS_LOCK@PLT
	cmp	DWORD PTR devfs_nmountplanes[rip], r13d
	jle	.L13
.L30:
	xor	eax, eax
	add	r13d, r13d
	call	DEVFS_UNLOCK@PLT
	mov	esi, r14d
	mov	rdi, r12
	call	devfs_release_event_log@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L31:
	lea	rdi, .LC1[rip]
	call	printf@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L29:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	eax, DWORD PTR -356[rbp]
	sub	rsp, 8
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edx, DWORD PTR -360[rbp]
	mov	rsi, QWORD PTR -328[rbp]
	lea	rcx, -344[rbp]
	mov	rdi, rbx
	mov	DWORD PTR -344[rbp], eax
	lea	rax, -336[rbp]
	push	rax
	call	dev_add_entry@PLT
	pop	rdx
	pop	rcx
	test	rax, rax
	jne	.L15
	mov	rsi, QWORD PTR -336[rbp]
	mov	ecx, DWORD PTR -368[rbp]
	mov	rdx, r12
	mov	ebx, DWORD PTR -372[rbp]
	mov	rax, QWORD PTR [rsi]
	mov	DWORD PTR 20[rax], ecx
	mov	ecx, DWORD PTR -364[rbp]
	or	DWORD PTR [rax], ebx
	mov	DWORD PTR 16[rax], ecx
	mov	rcx, QWORD PTR -384[rbp]
	mov	QWORD PTR 8[rax], rcx
	mov	rax, QWORD PTR -328[rbp]
	mov	edi, DWORD PTR [rax]
	call	devfs_propogate@PLT
	jmp	.L15
.L33:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	devfs_make_node_internal, .-devfs_make_node_internal
	.comm	devfs_ready,4,4
	.comm	devfs_nmountplanes,4,4
	.comm	NUM_STACK_ENTRIES,4,4
	.comm	DEVFS_CREATE,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_devfs_tree.c_devfs_make_node_internal.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"/\000"
	.align	2
.LC1:
	.ascii	"devfs_make_node: not ready for devices!\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	devfs_make_node_internal, %function
devfs_make_node_internal:
	@ args = 16, pretend = 0, frame = 304
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #324
	mov	lr, r3
	mov	r8, r0
	mov	r4, r2
	mov	ip, #0
	ldr	r6, .L25
	str	lr, [fp, #-328]
	ldr	r3, [r6]
	ldr	lr, .L25+4
	lsl	r3, r3, #2
	str	r8, [fp, #-320]
	str	r4, [fp, #-324]
	add	r3, r3, #7
	ldr	lr, [lr]
	str	lr, [fp, #-40]
	mov	lr,#0
	bic	r3, r3, #7
	str	ip, [fp, #-312]
	ldr	ip, [fp, #8]
	sub	sp, sp, r3
	ldr	r2, [fp, #12]
	ldr	r3, [fp, #16]
	mov	r9, r1
	sub	r0, fp, #296
	mov	r1, #256
	str	ip, [fp, #-332]
	bl	vsnprintf
	sub	r0, fp, #296
	bl	strlen
	cmp	r0, #0
	add	r2, sp, #16
	beq	.L16
	sub	r3, fp, #296
	add	r3, r3, r0
	b	.L4
.L3:
	subs	r0, r0, #1
	beq	.L16
.L4:
	ldrb	r1, [r3], #-1	@ zero_extendqisi2
	cmp	r1, #47
	bne	.L3
	mov	r1, #0
	sub	r3, fp, #36
	add	r3, r3, r0
	strb	r1, [r3, #-260]
	sub	r3, fp, #296
	mov	r5, r3
	add	r0, r0, #1
	add	r4, r3, r0
.L2:
	ldr	r10, .L25+8
	ldr	r1, [r6]
	ldr	r8, [r10]
	sub	r6, fp, #300
	cmp	r1, r8
	bge	.L5
.L6:
	mov	r2, #0
	mov	r1, r8
	mov	r0, r6
	bl	devfs_init_event_log
	cmp	r0, #0
	moveq	r7, #1
	bne	.L9
	bl	DEVFS_LOCK
	ldr	r2, [r10]
	cmp	r2, r8
	bgt	.L21
.L10:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L22
	ldr	r3, .L25+16
	str	r6, [sp]
	ldr	r2, [r3]
	mov	r0, r5
	mov	r1, #0
	sub	r3, fp, #308
	bl	dev_finddir
	cmp	r0, #0
	beq	.L23
.L12:
	bl	DEVFS_UNLOCK
	mov	r0, r6
	bl	devfs_bulk_notify
	mov	r1, r7
	mov	r0, r6
	bl	devfs_release_event_log
	ldr	r0, [fp, #-312]
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	ldr	r5, .L25+20
	sub	r4, fp, #296
	b	.L2
.L5:
	mov	r0, r6
	str	r1, [fp, #-336]
	bl	devfs_init_event_log
	subs	r7, r0, #0
	bne	.L9
	ldr	r1, [fp, #-336]
	mov	r8, r1
	bl	DEVFS_LOCK
	ldr	r2, [r10]
	cmp	r2, r8
	ble	.L10
.L21:
	bl	DEVFS_UNLOCK
	mov	r1, r7
	mov	r0, r6
	lsl	r8, r8, #1
	bl	devfs_release_event_log
	b	.L6
.L22:
	ldr	r0, .L25+24
	bl	printf
	b	.L12
.L9:
	mov	r0, #0
	b	.L1
.L23:
	ldr	ip, [fp, #-320]
	sub	r3, fp, #312
	str	r0, [sp, #4]
	str	r0, [sp]
	str	r3, [sp, #8]
	mov	r2, r9
	mov	r0, r4
	ldr	r1, [fp, #-308]
	sub	r3, fp, #304
	str	ip, [fp, #-304]
	bl	dev_add_entry
	cmp	r0, #0
	bne	.L12
	ldr	r1, [fp, #-312]
	ldr	ip, [fp, #-328]
	ldr	r3, [r1]
	ldr	r0, [fp, #-308]
	ldr	r2, [r3]
	str	ip, [r3, #12]
	ldr	ip, [fp, #4]
	ldr	r0, [r0]
	orr	r2, r2, ip
	ldr	ip, [fp, #-324]
	str	ip, [r3, #8]
	ldr	ip, [fp, #-332]
	stm	r3, {r2, ip}
	mov	r2, r6
	bl	devfs_propogate
	b	.L12
.L24:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	NUM_STACK_ENTRIES
	.word	.LC2
	.word	devfs_nmountplanes
	.word	devfs_ready
	.word	DEVFS_CREATE
	.word	.LC0
	.word	.LC1
	.size	devfs_make_node_internal, .-devfs_make_node_internal
	.comm	devfs_ready,4,4
	.comm	devfs_nmountplanes,4,4
	.comm	NUM_STACK_ENTRIES,4,4
	.comm	DEVFS_CREATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
