	.file	"extr_pmsg.c_pstore_register_pmsg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"register_chrdev failed\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"device class file already in use\n"
	.section	.rodata.str1.1
.LC2:
	.string	"%s%d"
.LC3:
	.string	"failed to create device\n"
	.text
	.p2align 4
	.globl	pstore_register_pmsg
	.type	pstore_register_pmsg, @function
pstore_register_pmsg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	esi, DWORD PTR PMSG_NAME[rip]
	lea	rdx, pmsg_fops[rip]
	xor	edi, edi
	call	register_chrdev@PLT
	mov	QWORD PTR pmsg_major[rip], rax
	test	rax, rax
	js	.L8
	mov	edi, DWORD PTR THIS_MODULE[rip]
	mov	esi, DWORD PTR PMSG_NAME[rip]
	call	class_create@PLT
	mov	rdi, rax
	mov	QWORD PTR pmsg_class[rip], rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L9
	mov	edx, DWORD PTR pmsg_devnode[rip]
	mov	rax, QWORD PTR pmsg_class[rip]
	xor	esi, esi
	mov	rdi, QWORD PTR pmsg_major[rip]
	mov	DWORD PTR [rax], edx
	mov	ebx, DWORD PTR PMSG_NAME[rip]
	call	MKDEV@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 24
	xor	ecx, ecx
	mov	r9d, ebx
	push	0
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR pmsg_class[rip]
	mov	edx, eax
	xor	esi, esi
	lea	r8, .LC2[rip]
	call	device_create@PLT
	mov	rdi, rax
	call	IS_ERR@PLT
	pop	rdx
	.cfi_def_cfa_offset 24
	pop	rcx
	.cfi_def_cfa_offset 16
	test	rax, rax
	jne	.L10
.L5:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	pr_err@PLT
.L4:
	mov	esi, DWORD PTR PMSG_NAME[rip]
	mov	rdi, QWORD PTR pmsg_major[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	unregister_chrdev@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	pr_err@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, .LC3[rip]
	call	pr_err@PLT
	mov	rdi, QWORD PTR pmsg_class[rip]
	call	class_destroy@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	pstore_register_pmsg, .-pstore_register_pmsg
	.comm	pmsg_major,8,8
	.comm	pmsg_fops,4,4
	.comm	pmsg_devnode,4,4
	.comm	pmsg_class,8,8
	.comm	THIS_MODULE,4,4
	.comm	PMSG_NAME,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_pmsg.c_pstore_register_pmsg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"register_chrdev failed\012\000"
	.align	2
.LC1:
	.ascii	"device class file already in use\012\000"
	.align	2
.LC2:
	.ascii	"%s%d\000"
	.align	2
.LC3:
	.ascii	"failed to create device\012\000"
	.text
	.align	2
	.global	pstore_register_pmsg
	.syntax unified
	.arm
	.fpu softvfp
	.type	pstore_register_pmsg, %function
pstore_register_pmsg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r5, .L11
	mov	r0, #0
	ldr	r2, .L11+4
	ldr	r1, [r5]
	sub	sp, sp, #16
	bl	register_chrdev
	ldr	r6, .L11+8
	cmp	r0, #0
	str	r0, [r6]
	blt	.L8
	ldr	r3, .L11+12
	ldr	r1, [r5]
	ldr	r0, [r3]
	bl	class_create
	ldr	r7, .L11+16
	str	r0, [r7]
	bl	IS_ERR
	subs	r4, r0, #0
	bne	.L9
	ldr	r3, .L11+20
	ldr	r8, [r7]
	ldr	r3, [r3]
	mov	r1, r4
	str	r3, [r8]
	ldr	r0, [r6]
	bl	MKDEV
	ldr	r1, [r5]
	ldr	r3, .L11+24
	mov	r2, r0
	stmib	sp, {r1, r4}
	str	r3, [sp]
	mov	r1, r4
	mov	r3, r4
	mov	r0, r8
	bl	device_create
	bl	IS_ERR
	cmp	r0, #0
	bne	.L10
.L5:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r0, .L11+28
	bl	pr_err
.L4:
	ldr	r1, [r5]
	ldr	r0, [r6]
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	unregister_chrdev
.L8:
	ldr	r0, .L11+32
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	pr_err
.L10:
	ldr	r0, .L11+36
	bl	pr_err
	ldr	r0, [r7]
	bl	class_destroy
	b	.L4
.L12:
	.align	2
.L11:
	.word	PMSG_NAME
	.word	pmsg_fops
	.word	pmsg_major
	.word	THIS_MODULE
	.word	pmsg_class
	.word	pmsg_devnode
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.size	pstore_register_pmsg, .-pstore_register_pmsg
	.comm	pmsg_major,4,4
	.comm	pmsg_fops,4,4
	.comm	pmsg_devnode,4,4
	.comm	pmsg_class,4,4
	.comm	THIS_MODULE,4,4
	.comm	PMSG_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
