	.file	"extr_dir.c_create_dir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	create_dir, @function
create_dir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	rdi, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR SYSFS_DIR[rip]
	mov	esi, DWORD PTR S_IFDIR[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	or	esi, DWORD PTR S_IRWXU[rip]
	or	esi, DWORD PTR S_IRUGO[rip]
	or	esi, DWORD PTR S_IXUGO[rip]
	call	sysfs_new_dirent@PLT
	test	rax, rax
	je	.L8
	mov	QWORD PTR [rax], rbx
	lea	r14, 4[rsp]
	mov	rsi, r13
	mov	r12, rax
	mov	rdi, r14
	call	sysfs_addrm_start@PLT
	mov	rdi, r14
	mov	rsi, r12
	call	sysfs_add_one@PLT
	mov	rdi, r14
	mov	r13d, eax
	call	sysfs_addrm_finish@PLT
	test	r13d, r13d
	jne	.L4
	mov	QWORD PTR 0[rbp], r12
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	rdi, r12
	call	sysfs_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	create_dir, .-create_dir
	.comm	S_IXUGO,4,4
	.comm	S_IRWXU,4,4
	.comm	S_IRUGO,4,4
	.comm	S_IFDIR,4,4
	.comm	SYSFS_DIR,4,4
	.comm	ENOMEM,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_dir.c_create_dir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_dir, %function
create_dir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	lr, r1
	mov	r6, r0
	ldr	ip, .L11
	ldr	r0, .L11+4
	ldr	ip, [ip]
	ldr	r0, [r0]
	ldr	r1, .L11+8
	orr	ip, ip, r0
	ldr	r1, [r1]
	ldr	r0, .L11+12
	orr	ip, ip, r1
	ldr	r5, .L11+16
	ldr	r1, [r0]
	mov	r7, r3
	ldr	r3, .L11+20
	mov	r0, r2
	sub	sp, sp, #12
	ldr	r2, [r5]
	orr	r1, ip, r1
	mov	r5, lr
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	sysfs_new_dirent
	subs	r4, r0, #0
	beq	.L8
	mov	r1, r5
	mov	r0, sp
	str	r6, [r4]
	bl	sysfs_addrm_start
	mov	r1, r4
	mov	r0, sp
	bl	sysfs_add_one
	mov	r5, r0
	mov	r0, sp
	bl	sysfs_addrm_finish
	cmp	r5, #0
	streq	r4, [r7]
	bne	.L9
.L1:
	ldr	r3, .L11+20
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	mov	r0, r4
	bl	sysfs_put
	b	.L1
.L8:
	ldr	r3, .L11+24
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	S_IFDIR
	.word	S_IRWXU
	.word	S_IRUGO
	.word	S_IXUGO
	.word	SYSFS_DIR
	.word	.LC0
	.word	ENOMEM
	.size	create_dir, .-create_dir
	.comm	S_IXUGO,4,4
	.comm	S_IRWXU,4,4
	.comm	S_IRUGO,4,4
	.comm	S_IFDIR,4,4
	.comm	SYSFS_DIR,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
