	.file	"extr_hid-uclogic-params.c_uclogic_params_huion_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	" not"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"failed retrieving Huion firmware version: %d\n"
	.align 8
.LC3:
	.string	"transition firmware detected, not probing pen v2 parameters\n"
	.align 8
.LC4:
	.string	"failed probing pen v2 parameters: %d\n"
	.section	.rodata.str1.1
.LC5:
	.string	"pen v2 parameters found\n"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"failed creating v2 buttonpad parameters: %d\n"
	.section	.rodata.str1.1
.LC7:
	.string	"pen v2 parameters not found\n"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"failed probing pen v1 parameters: %d\n"
	.section	.rodata.str1.1
.LC9:
	.string	"pen v1 parameters found\n"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"v1 buttonpad probing failed: %d\n"
	.align 8
.LC11:
	.string	"buttonpad v1 parameters%s found\n"
	.section	.rodata.str1.1
.LC12:
	.string	"pen v1 parameters not found\n"
	.text
	.p2align 4
	.type	uclogic_params_huion_init, @function
uclogic_params_huion_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	hid_to_usb_dev@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	r12, rax
	call	to_usb_interface@PLT
	pxor	xmm0, xmm0
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	movaps	XMMWORD PTR 32[rsp], xmm0
	test	r13, r13
	je	.L22
	test	rax, rax
	jne	.L23
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 19
	call	kzalloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L24
	mov	rdi, r12
	mov	ecx, 19
	mov	rdx, rax
	mov	esi, 201
	call	usb_string@PLT
	mov	r12d, eax
	add	eax, DWORD PTR EPIPE[rip]
	je	.L25
	test	r12d, r12d
	js	.L26
.L8:
	lea	rsi, transition_ver.2010[rip]
	mov	rdi, r15
	call	strcmp@PLT
	test	rax, rax
	jne	.L9
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	lea	rbx, 28[rsp]
	call	hid_dbg@PLT
	lea	r8, 40[rsp]
.L10:
	mov	rdx, rbp
	mov	rsi, rbx
	lea	r14, 32[rsp]
	mov	rdi, r8
	call	uclogic_params_pen_init_v1@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L27
	mov	ecx, DWORD PTR 28[rsp]
	test	ecx, ecx
	je	.L15
	lea	rsi, .LC9[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	hid_dbg@PLT
	lea	rdi, 36[rsp]
	mov	rdx, rbp
	mov	rsi, rbx
	call	uclogic_params_frame_init_v1_buttonpad@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L28
	mov	eax, DWORD PTR 28[rsp]
	lea	rdx, .LC0[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rbp
	test	eax, eax
	lea	rax, .LC1[rip]
	cmove	rdx, rax
	xor	eax, eax
	call	hid_dbg@PLT
	mov	edx, DWORD PTR 28[rsp]
	test	edx, edx
	je	.L5
	mov	DWORD PTR 32[rsp], 32
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	lea	r14, 32[rsp]
	xor	r15d, r15d
	mov	rdi, r14
	call	uclogic_params_init_with_pen_unused@PLT
.L5:
	mov	edx, 16
	mov	rsi, r14
	mov	rdi, r13
	xor	r12d, r12d
	call	memcpy@PLT
	mov	edx, 16
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
.L3:
	mov	rdi, r15
	call	kfree@PLT
	mov	rdi, r14
	call	uclogic_params_cleanup@PLT
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 72
	.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
.L22:
	.cfi_restore_state
	mov	r12d, DWORD PTR EINVAL[rip]
	xor	r15d, r15d
	lea	r14, 32[rsp]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L25:
	mov	BYTE PTR [r15], 0
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	lea	r8, 40[rsp]
	lea	rbx, 28[rsp]
	mov	rdx, rbp
	mov	rdi, r8
	mov	rsi, rbx
	mov	QWORD PTR 8[rsp], r8
	call	uclogic_params_pen_init_v2@PLT
	mov	r8, QWORD PTR 8[rsp]
	test	eax, eax
	mov	r12d, eax
	jne	.L30
	mov	esi, DWORD PTR 28[rsp]
	test	esi, esi
	je	.L12
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	hid_dbg@PLT
	mov	ecx, DWORD PTR UCLOGIC_RDESC_BUTTONPAD_V2_ID[rip]
	mov	edx, DWORD PTR uclogic_rdesc_buttonpad_v2_size[rip]
	lea	rdi, 36[rsp]
	mov	esi, DWORD PTR uclogic_rdesc_buttonpad_v2_arr[rip]
	call	uclogic_params_frame_init_with_desc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	mov	DWORD PTR 32[rsp], 32
	lea	r14, 32[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L24:
	mov	r12d, DWORD PTR ENOMEM[rip]
	lea	r14, 32[rsp]
	neg	r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdi, rbp
	lea	rsi, .LC12[rip]
	xor	eax, eax
	call	hid_dbg@PLT
	mov	rdi, r14
	call	uclogic_params_init_invalid@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	xor	eax, eax
	mov	QWORD PTR 8[rsp], r8
	call	hid_dbg@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edx, eax
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	hid_err@PLT
	lea	r14, 32[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L27:
	mov	edx, eax
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	call	hid_err@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, r12d
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	hid_err@PLT
	lea	r14, 32[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	hid_err@PLT
	lea	r14, 32[rsp]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edx, eax
	lea	rsi, .LC10[rip]
	mov	rdi, rbp
	call	hid_err@PLT
	jmp	.L3
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	uclogic_params_huion_init, .-uclogic_params_huion_init
	.section	.rodata
	.align 16
	.type	transition_ver.2010, @object
	.size	transition_ver.2010, 18
transition_ver.2010:
	.string	"HUION_T153_160607"
	.comm	uclogic_rdesc_buttonpad_v2_size,4,4
	.comm	uclogic_rdesc_buttonpad_v2_arr,4,4
	.comm	UCLOGIC_RDESC_BUTTONPAD_V2_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPIPE,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_hid-uclogic-params.c_uclogic_params_huion_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	" not\000"
	.align	2
.LC2:
	.ascii	"failed retrieving Huion firmware version: %d\012\000"
	.align	2
.LC3:
	.ascii	"transition firmware detected, not probing pen v2 pa"
	.ascii	"rameters\012\000"
	.align	2
.LC4:
	.ascii	"failed probing pen v2 parameters: %d\012\000"
	.align	2
.LC5:
	.ascii	"pen v2 parameters found\012\000"
	.align	2
.LC6:
	.ascii	"failed creating v2 buttonpad parameters: %d\012\000"
	.align	2
.LC7:
	.ascii	"pen v2 parameters not found\012\000"
	.align	2
.LC8:
	.ascii	"failed probing pen v1 parameters: %d\012\000"
	.align	2
.LC9:
	.ascii	"pen v1 parameters found\012\000"
	.align	2
.LC10:
	.ascii	"v1 buttonpad probing failed: %d\012\000"
	.align	2
.LC11:
	.ascii	"buttonpad v1 parameters%s found\012\000"
	.align	2
.LC12:
	.ascii	"pen v1 parameters not found\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uclogic_params_huion_init, %function
uclogic_params_huion_init:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L34
	sub	sp, sp, #28
	mov	r7, r0
	mov	r0, r1
	mov	r6, r1
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bl	hid_to_usb_dev
	mov	r5, r0
	ldr	r0, [r6]
	bl	to_usb_interface
	mov	r4, #0
	ldr	r3, [r0]
	cmp	r7, r4
	ldr	r8, [r3]
	str	r4, [sp, #4]
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	beq	.L26
	cmp	r8, #0
	bne	.L27
	ldr	r3, .L34+4
	mov	r0, #19
	ldr	r1, [r3]
	bl	kzalloc
	subs	r4, r0, #0
	beq	.L28
	mov	r0, r5
	mov	r3, #19
	mov	r2, r4
	mov	r1, #201
	bl	usb_string
	ldr	r3, .L34+8
	mov	r5, r0
	ldr	r3, [r3]
	cmn	r0, r3
	strbeq	r8, [r4]
	beq	.L8
	cmp	r0, #0
	blt	.L29
.L8:
	mov	r0, r4
	ldr	r1, .L34+12
	bl	strcmp
	cmp	r0, #0
	bne	.L9
	mov	r0, r6
	ldr	r1, .L34+16
	bl	hid_dbg
	mov	r8, sp
	add	r9, sp, #12
.L10:
	mov	r0, r9
	mov	r2, r6
	mov	r1, r8
	bl	uclogic_params_pen_init_v1
	subs	r5, r0, #0
	bne	.L30
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L15
	ldr	r1, .L34+20
	mov	r0, r6
	bl	hid_dbg
	mov	r2, r6
	mov	r1, r8
	add	r0, sp, #8
	bl	uclogic_params_frame_init_v1_buttonpad
	subs	r5, r0, #0
	bne	.L31
	ldr	r1, [sp]
	ldr	r3, .L34+24
	cmp	r1, #0
	ldr	r2, .L34+28
	mov	r0, r6
	moveq	r2, r3
	ldr	r1, .L34+32
	bl	hid_dbg
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L5
.L24:
	mov	r3, #32
	str	r3, [sp, #4]
	b	.L5
.L27:
	add	r0, sp, #4
	bl	uclogic_params_init_with_pen_unused
.L5:
	mov	r0, r7
	mov	r2, #16
	add	r1, sp, #4
	bl	memcpy
	mov	r3, #0
	mov	r5, r3
	str	r3, [sp, #4]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	str	r3, [sp, #16]
.L3:
	mov	r0, r4
	bl	kfree
	add	r0, sp, #4
	bl	uclogic_params_cleanup
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L26:
	ldr	r3, .L34+36
	mov	r4, r7
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L3
.L9:
	mov	r8, sp
	add	r9, sp, #12
	mov	r1, r8
	mov	r0, r9
	mov	r2, r6
	bl	uclogic_params_pen_init_v2
	subs	r5, r0, #0
	bne	.L33
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L12
	ldr	r1, .L34+40
	mov	r0, r6
	bl	hid_dbg
	ldr	r3, .L34+44
	ldr	r2, .L34+48
	ldr	r1, .L34+52
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r0, sp, #8
	bl	uclogic_params_frame_init_with_desc
	subs	r5, r0, #0
	beq	.L24
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L34+56
	bl	hid_err
	b	.L3
.L28:
	ldr	r3, .L34+60
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L3
.L15:
	mov	r0, r6
	ldr	r1, .L34+64
	bl	hid_dbg
	add	r0, sp, #4
	bl	uclogic_params_init_invalid
	b	.L5
.L12:
	mov	r0, r6
	ldr	r1, .L34+68
	bl	hid_dbg
	b	.L10
.L29:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L34+72
	bl	hid_err
	b	.L3
.L30:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L34+76
	bl	hid_err
	b	.L3
.L33:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L34+80
	bl	hid_err
	b	.L3
.L31:
	mov	r0, r6
	mov	r2, r5
	ldr	r1, .L34+84
	bl	hid_err
	b	.L3
.L32:
	bl	__stack_chk_fail
.L35:
	.align	2
.L34:
	.word	.LC13
	.word	GFP_KERNEL
	.word	EPIPE
	.word	.LANCHOR0
	.word	.LC3
	.word	.LC9
	.word	.LC1
	.word	.LC0
	.word	.LC11
	.word	EINVAL
	.word	.LC5
	.word	UCLOGIC_RDESC_BUTTONPAD_V2_ID
	.word	uclogic_rdesc_buttonpad_v2_size
	.word	uclogic_rdesc_buttonpad_v2_arr
	.word	.LC6
	.word	ENOMEM
	.word	.LC12
	.word	.LC7
	.word	.LC2
	.word	.LC8
	.word	.LC4
	.word	.LC10
	.size	uclogic_params_huion_init, .-uclogic_params_huion_init
	.comm	uclogic_rdesc_buttonpad_v2_size,4,4
	.comm	uclogic_rdesc_buttonpad_v2_arr,4,4
	.comm	UCLOGIC_RDESC_BUTTONPAD_V2_ID,4,4
	.comm	GFP_KERNEL,4,4
	.comm	EPIPE,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	transition_ver.4294, %object
	.size	transition_ver.4294, 18
transition_ver.4294:
	.ascii	"HUION_T153_160607\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
