	.file	"extr_hid-uclogic-params.c_uclogic_params_frame_init_v1_buttonpad.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"generic button -enabling string descriptor not found\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"HK On"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"invalid response to enabling generic buttons: \"%s\"\n"
	.section	.rodata.str1.1
.LC3:
	.string	"generic buttons enabled\n"
	.text
	.p2align 4
	.type	uclogic_params_frame_init_v1_buttonpad, @function
uclogic_params_frame_init_v1_buttonpad:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	mov	rdi, rdx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	call	hid_to_usb_dev@PLT
	test	r13, r13
	sete	dl
	test	rbx, rbx
	mov	r12, rax
	sete	al
	or	dl, al
	jne	.L9
	test	rbp, rbp
	je	.L9
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, 16
	call	kzalloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L12
	mov	rdi, r12
	mov	ecx, 16
	mov	rdx, rax
	mov	esi, 123
	call	usb_string@PLT
	mov	r12d, eax
	add	eax, DWORD PTR EPIPE[rip]
	je	.L13
	test	r12d, r12d
	js	.L4
	mov	edx, r12d
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	strncmp@PLT
	test	rax, rax
	je	.L8
	mov	rdx, r14
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	hid_dbg@PLT
	xor	eax, eax
.L7:
	mov	DWORD PTR [rbx], eax
	xor	r12d, r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r12d, DWORD PTR EINVAL[rip]
	xor	r14d, r14d
	neg	r12d
.L4:
	mov	rdi, r14
	call	kfree@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	hid_dbg@PLT
	mov	ecx, DWORD PTR UCLOGIC_RDESC_BUTTONPAD_V1_ID[rip]
	mov	edx, DWORD PTR uclogic_rdesc_buttonpad_v1_size[rip]
	mov	rdi, r13
	mov	esi, DWORD PTR uclogic_rdesc_buttonpad_v1_arr[rip]
	call	uclogic_params_frame_init_with_desc@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L4
	mov	eax, 1
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L13:
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	hid_dbg@PLT
	xor	eax, eax
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	uclogic_params_frame_init_v1_buttonpad, .-uclogic_params_frame_init_v1_buttonpad
	.comm	uclogic_rdesc_buttonpad_v1_size,4,4
	.comm	uclogic_rdesc_buttonpad_v1_arr,4,4
	.comm	UCLOGIC_RDESC_BUTTONPAD_V1_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_frame_init_v1_buttonpad.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"generic button -enabling string descriptor not foun"
	.ascii	"d\012\000"
	.align	2
.LC1:
	.ascii	"HK On\000"
	.align	2
.LC2:
	.ascii	"invalid response to enabling generic buttons: \"%s\""
	.ascii	"\012\000"
	.align	2
.LC3:
	.ascii	"generic buttons enabled\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	uclogic_params_frame_init_v1_buttonpad, %function
uclogic_params_frame_init_v1_buttonpad:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r7, r1
	mov	r8, r0
	mov	r0, r2
	mov	r6, r2
	bl	hid_to_usb_dev
	clz	r3, r7
	cmp	r8, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r6, #0
	movne	r4, r3
	moveq	r4, #1
	cmp	r4, #0
	beq	.L2
	mov	r9, #0
	ldr	r3, .L12
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L3:
	mov	r0, r9
	bl	kfree
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r3, .L12+4
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, #16
	bl	kzalloc
	subs	r9, r0, #0
	beq	.L10
	mov	r0, r5
	mov	r3, #16
	mov	r2, r9
	mov	r1, #123
	bl	usb_string
	ldr	r3, .L12+8
	mov	r5, r0
	ldr	r3, [r3]
	cmn	r0, r3
	beq	.L11
	cmp	r0, #0
	blt	.L3
	mov	r2, r0
	ldr	r1, .L12+12
	mov	r0, r9
	bl	strncmp
	cmp	r0, #0
	mov	r0, r6
	beq	.L7
	mov	r2, r9
	ldr	r1, .L12+16
	bl	hid_dbg
.L6:
	mov	r5, #0
	str	r4, [r7]
	b	.L3
.L10:
	ldr	r3, .L12+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L3
.L7:
	ldr	r1, .L12+24
	bl	hid_dbg
	ldr	r3, .L12+28
	ldr	r2, .L12+32
	ldr	r1, .L12+36
	mov	r0, r8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	uclogic_params_frame_init_with_desc
	subs	r5, r0, #0
	bne	.L3
	mov	r4, #1
	b	.L6
.L11:
	mov	r0, r6
	ldr	r1, .L12+40
	bl	hid_dbg
	b	.L6
.L13:
	.align	2
.L12:
	.word	EINVAL
	.word	GFP_KERNEL
	.word	EPIPE
	.word	.LC1
	.word	.LC2
	.word	ENOMEM
	.word	.LC3
	.word	UCLOGIC_RDESC_BUTTONPAD_V1_ID
	.word	uclogic_rdesc_buttonpad_v1_size
	.word	uclogic_rdesc_buttonpad_v1_arr
	.word	.LC0
	.size	uclogic_params_frame_init_v1_buttonpad, .-uclogic_params_frame_init_v1_buttonpad
	.comm	uclogic_rdesc_buttonpad_v1_size,4,4
	.comm	uclogic_rdesc_buttonpad_v1_arr,4,4
	.comm	UCLOGIC_RDESC_BUTTONPAD_V1_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
