	.file	"extr_uhid.c_uhid_dev_create2.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	uhid_dev_create2, @function
uhid_dev_create2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r12d, DWORD PTR [rdi]
	test	r12d, r12d
	jne	.L13
	mov	r13, QWORD PTR [rsi]
	mov	rbp, rsi
	test	r13, r13
	je	.L4
	cmp	QWORD PTR HID_MAX_DESCRIPTOR_SIZE[rip], r13
	jb	.L4
	mov	rbx, rdi
	mov	edx, DWORD PTR GFP_KERNEL[rip]
	mov	edi, DWORD PTR 40[rsi]
	mov	rsi, r13
	call	kmemdup@PLT
	test	rax, rax
	je	.L14
	mov	QWORD PTR 8[rbx], r13
	mov	QWORD PTR 16[rbx], rax
	xor	eax, eax
	call	hid_allocate_device@PLT
	mov	rdi, rax
	mov	r13, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L15
	mov	esi, 4
	mov	edi, 4
	call	min@PLT
	mov	esi, DWORD PTR 36[rbp]
	mov	edi, DWORD PTR 56[r13]
	lea	edx, -1[rax]
	movsx	rdx, edx
	call	strncpy@PLT
	mov	esi, 4
	mov	edi, 4
	call	min@PLT
	mov	esi, DWORD PTR 32[rbp]
	mov	edi, DWORD PTR 52[r13]
	lea	edx, -1[rax]
	movsx	rdx, edx
	call	strncpy@PLT
	mov	esi, 4
	mov	edi, 4
	call	min@PLT
	mov	edi, DWORD PTR 48[r13]
	mov	esi, DWORD PTR 28[rbp]
	lea	edx, -1[rax]
	movsx	rdx, edx
	call	strncpy@PLT
	lea	rax, uhid_hid_driver[rip]
	lea	rdi, 24[rbx]
	mov	QWORD PTR 40[r13], rax
	mov	eax, DWORD PTR 24[rbp]
	mov	DWORD PTR 32[r13], eax
	mov	eax, DWORD PTR 20[rbp]
	mov	DWORD PTR 28[r13], eax
	mov	eax, DWORD PTR 16[rbp]
	mov	DWORD PTR 24[r13], eax
	mov	eax, DWORD PTR 12[rbp]
	mov	DWORD PTR 20[r13], eax
	mov	eax, DWORD PTR 8[rbp]
	mov	QWORD PTR 8[r13], rbx
	mov	DWORD PTR 16[r13], eax
	mov	eax, DWORD PTR uhid_misc[rip]
	mov	DWORD PTR 0[r13], eax
	mov	QWORD PTR 32[rbx], r13
	mov	DWORD PTR [rbx], 1
	call	schedule_work@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	r12d, DWORD PTR EALREADY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, r13
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR 16[rbx]
	mov	r12d, eax
	call	kfree@PLT
	mov	QWORD PTR 16[rbx], 0
	mov	QWORD PTR 8[rbx], 0
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	uhid_dev_create2, .-uhid_dev_create2
	.comm	uhid_misc,4,4
	.comm	uhid_hid_driver,4,4
	.comm	HID_MAX_DESCRIPTOR_SIZE,8,8
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EALREADY,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_uhid.c_uhid_dev_create2.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uhid_dev_create2, %function
uhid_dev_create2:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	cmp	r7, #0
	bne	.L13
	ldr	r6, [r1]
	mov	r5, r1
	cmp	r6, #0
	beq	.L4
	ldr	r3, .L16
	ldr	r3, [r3]
	cmp	r3, r6
	bcc	.L4
	ldr	r3, .L16+4
	mov	r4, r0
	mov	r1, r6
	ldr	r2, [r3]
	ldr	r0, [r5, #36]
	bl	kmemdup
	cmp	r0, #0
	beq	.L14
	str	r6, [r4, #4]
	str	r0, [r4, #8]
	bl	hid_allocate_device
	mov	r8, r0
	bl	IS_ERR
	subs	r6, r0, #0
	bne	.L15
	mov	r1, #4
	mov	r0, r1
	bl	min
	ldr	r1, [r5, #32]
	sub	r2, r0, #1
	ldr	r0, [r8, #40]
	bl	strncpy
	mov	r1, #4
	mov	r0, r1
	bl	min
	ldr	r1, [r5, #28]
	sub	r2, r0, #1
	ldr	r0, [r8, #36]
	bl	strncpy
	mov	r1, #4
	mov	r0, r1
	bl	min
	ldr	r1, [r5, #24]
	sub	r2, r0, #1
	ldr	r0, [r8, #32]
	bl	strncpy
	mov	r0, r4
	mov	r3, #1
	ldr	r2, [r5, #20]
	ldr	r1, .L16+8
	str	r2, [r8, #24]
	ldr	ip, [r1]
	ldr	r2, [r5, #12]
	ldr	r1, [r5, #16]
	str	r2, [r8, #16]
	str	r1, [r8, #20]
	ldmib	r5, {r1, r2}
	str	r2, [r8, #12]
	ldr	r2, .L16+12
	str	ip, [r8]
	str	r1, [r8, #8]
	str	r4, [r8, #4]
	str	r2, [r8, #28]
	str	r8, [r4, #16]
	str	r3, [r0], #12
	bl	schedule_work
	b	.L1
.L4:
	ldr	r3, .L16+16
	ldr	r6, [r3]
	rsb	r6, r6, #0
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, .L16+20
	ldr	r6, [r3]
	rsb	r6, r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L16+24
	ldr	r6, [r3]
	rsb	r6, r6, #0
	b	.L1
.L15:
	mov	r0, r8
	bl	PTR_ERR
	mov	r6, r0
	ldr	r0, [r4, #8]
	bl	kfree
	str	r7, [r4, #8]
	str	r7, [r4, #4]
	b	.L1
.L17:
	.align	2
.L16:
	.word	HID_MAX_DESCRIPTOR_SIZE
	.word	GFP_KERNEL
	.word	uhid_misc
	.word	uhid_hid_driver
	.word	EINVAL
	.word	EALREADY
	.word	ENOMEM
	.size	uhid_dev_create2, .-uhid_dev_create2
	.comm	uhid_misc,4,4
	.comm	uhid_hid_driver,4,4
	.comm	HID_MAX_DESCRIPTOR_SIZE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	EALREADY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
