	.file	"extr_device.c_hfi1_cdev_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Could not add cdev for minor %d, %s (err %d)\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"%s"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"Could not create device for minor %d, %s (err %d)\n"
	.text
	.p2align 4
	.globl	hfi1_cdev_init
	.type	hfi1_cdev_init, @function
hfi1_cdev_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR hfi1_dev[rip]
	mov	DWORD PTR 12[rsp], r9d
	call	MAJOR@PLT
	mov	esi, r15d
	mov	edi, eax
	call	MKDEV@PLT
	mov	rsi, r12
	mov	rdi, rbp
	mov	r14d, eax
	call	cdev_init@PLT
	mov	eax, DWORD PTR THIS_MODULE[rip]
	mov	rsi, QWORD PTR 80[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 4[rbp], eax
	call	cdev_set_parent@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	kobject_set_name@PLT
	mov	edx, 1
	mov	esi, r14d
	mov	rdi, rbp
	call	cdev_add@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L11
	mov	eax, DWORD PTR 12[rsp]
	mov	r9, r13
	lea	r8, .LC1[rip]
	xor	ecx, ecx
	mov	edx, r14d
	xor	esi, esi
	test	eax, eax
	jne	.L12
	mov	edi, DWORD PTR class[rip]
	call	device_create@PLT
	mov	r14, rax
	mov	rdi, r14
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
.L3:
	mov	QWORD PTR [rbx], r14
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR user_class[rip]
	call	device_create@PLT
	mov	r14, rax
	mov	rdi, r14
	call	IS_ERR@PLT
	test	rax, rax
	je	.L3
.L13:
	mov	rdi, r14
	xor	r14d, r14d
	call	PTR_ERR@PLT
	mov	rdx, r13
	mov	esi, r15d
	lea	rdi, .LC2[rip]
	mov	ecx, eax
	mov	r12d, eax
	neg	ecx
	call	pr_err@PLT
	mov	rdi, rbp
	call	cdev_del@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	mov	ecx, eax
	mov	rdx, r13
	mov	esi, r15d
	xor	r14d, r14d
	neg	ecx
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	hfi1_cdev_init, .-hfi1_cdev_init
	.comm	user_class,4,4
	.comm	hfi1_dev,4,4
	.comm	class,4,4
	.comm	THIS_MODULE,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_device.c_hfi1_cdev_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Could not add cdev for minor %d, %s (err %d)\012\000"
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"Could not create device for minor %d, %s (err %d)\012"
	.ascii	"\000"
	.text
	.align	2
	.global	hfi1_cdev_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	hfi1_cdev_init, %function
hfi1_cdev_init:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r8, r0
	ldr	ip, .L14
	sub	sp, sp, #8
	ldr	r0, [ip]
	mov	r4, r3
	mov	r5, r2
	mov	r6, r1
	ldr	r9, [sp, #40]
	ldr	r10, [sp, #44]
	bl	MAJOR
	mov	r1, r8
	bl	MKDEV
	mov	r7, r0
	mov	r1, r5
	mov	r0, r4
	bl	cdev_init
	ldr	r3, .L14+4
	ldr	r1, [sp, #48]
	ldr	r3, [r3]
	mov	r0, r4
	str	r3, [r4, #4]
	bl	cdev_set_parent
	mov	r1, r6
	mov	r0, r4
	bl	kobject_set_name
	mov	r1, r7
	mov	r0, r4
	mov	r2, #1
	bl	cdev_add
	subs	r5, r0, #0
	blt	.L11
	cmp	r10, #0
	bne	.L12
	ldr	r1, .L14+8
	ldr	r3, .L14+12
	str	r6, [sp, #4]
	mov	r2, r7
	ldr	r0, [r1]
	mov	r1, r10
	str	r3, [sp]
	mov	r3, r10
	bl	device_create
	mov	r7, r0
	mov	r0, r7
	bl	IS_ERR
	cmp	r0, #0
	bne	.L13
.L3:
	mov	r0, r5
	str	r7, [r9]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r3, #0
	ldr	ip, .L14+12
	ldr	r0, .L14+16
	str	r6, [sp, #4]
	mov	r2, r7
	mov	r1, r3
	ldr	r0, [r0]
	str	ip, [sp]
	bl	device_create
	mov	r7, r0
	mov	r0, r7
	bl	IS_ERR
	cmp	r0, #0
	beq	.L3
.L13:
	mov	r0, r7
	bl	PTR_ERR
	mov	r5, r0
	rsb	r3, r0, #0
	mov	r2, r6
	mov	r1, r8
	ldr	r0, .L14+20
	bl	pr_err
	mov	r0, r4
	bl	cdev_del
	mov	r7, #0
	mov	r0, r5
	str	r7, [r9]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r2, r6
	mov	r1, r8
	rsb	r3, r5, #0
	ldr	r0, .L14+24
	bl	pr_err
	mov	r7, #0
	mov	r0, r5
	str	r7, [r9]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L15:
	.align	2
.L14:
	.word	hfi1_dev
	.word	THIS_MODULE
	.word	class
	.word	.LC1
	.word	user_class
	.word	.LC2
	.word	.LC0
	.size	hfi1_cdev_init, .-hfi1_cdev_init
	.comm	user_class,4,4
	.comm	hfi1_dev,4,4
	.comm	class,4,4
	.comm	THIS_MODULE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
