	.file	"extr_i2o_config.c_cfg_open.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cfg_open, @function
cfg_open:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	mov	edi, 64
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	call	kmalloc@PLT
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rbx, rax
	xor	eax, eax
	call	lock_kernel@PLT
	movsx	rax, DWORD PTR i2o_cfg_info_id[rip]
	lea	rdi, i2o_config_lock[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR i2o_cfg_info_id[rip], edx
	mov	QWORD PTR 0[rbp], rax
	mov	QWORD PTR 40[rbx], rax
	mov	rax, QWORD PTR open_files[rip]
	mov	QWORD PTR 56[rbx], rbp
	xor	ebp, ebp
	mov	QWORD PTR 48[rbx], 0
	mov	rsi, rbp
	mov	QWORD PTR 32[rbx], 0
	mov	QWORD PTR 24[rbx], 0
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	mov	QWORD PTR [rbx], rax
	call	spin_lock_irqsave@PLT
	mov	rsi, rbp
	lea	rdi, i2o_config_lock[rip]
	mov	QWORD PTR open_files[rip], rbx
	call	spin_unlock_irqrestore@PLT
	xor	eax, eax
	call	unlock_kernel@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cfg_open, .-cfg_open
	.comm	open_files,8,8
	.comm	i2o_config_lock,4,4
	.comm	i2o_cfg_info_id,4,4
	.comm	GFP_KERNEL,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_i2o_config.c_cfg_open.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cfg_open, %function
cfg_open:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L6
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, #32
	mov	r6, r1
	ldr	r1, [r2]
	bl	kmalloc
	subs	r4, r0, #0
	bne	.L2
	ldr	r3, .L6+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r5, #0
	bl	lock_kernel
	ldr	r2, .L6+8
	ldr	r7, .L6+12
	ldr	r3, [r2]
	ldr	r1, [r7]
	add	r0, r3, #1
	str	r0, [r2]
	str	r3, [r6]
	ldr	r0, .L6+16
	str	r3, [r4, #20]
	str	r1, [r4]
	str	r6, [r4, #28]
	mov	r1, r5
	str	r5, [r4, #24]
	str	r5, [r4, #16]
	str	r5, [r4, #12]
	str	r5, [r4, #8]
	str	r5, [r4, #4]
	bl	spin_lock_irqsave
	mov	r1, r5
	ldr	r0, .L6+16
	str	r4, [r7]
	mov	r8, r5
	bl	spin_unlock_irqrestore
	bl	unlock_kernel
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	.align	2
.L6:
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	i2o_cfg_info_id
	.word	open_files
	.word	i2o_config_lock
	.size	cfg_open, .-cfg_open
	.comm	open_files,4,4
	.comm	i2o_config_lock,4,4
	.comm	i2o_cfg_info_id,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
