	.file	"extr_keyboard.c_fill_keyboard_dideviceinstanceA.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d %p\n"
.LC1:
	.string	"Keyboard"
.LC2:
	.string	"Wine Keyboard"
	.text
	.p2align 4
	.type	fill_keyboard_dideviceinstanceA, @function
fill_keyboard_dideviceinstanceA:
.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	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, edx
	mov	rdx, rdi
	sal	ebx, 8
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	r12d, DWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	r14, rsp
	mov	esi, r12d
	call	TRACE@PLT
	mov	edx, r12d
	xor	esi, esi
	mov	rdi, rbp
	call	memset@PLT
	mov	edx, 32
	xor	esi, esi
	mov	rdi, r14
	call	memset@PLT
	mov	rax, QWORD PTR GUID_SysKeyboard[rip]
	mov	DWORD PTR [rsp], r12d
	mov	QWORD PTR 24[rsp], rax
	mov	QWORD PTR 16[rsp], rax
	cmp	r13d, 2047
	jle	.L2
	or	ebx, DWORD PTR DI8DEVTYPE_KEYBOARD[rip]
.L3:
	mov	edi, DWORD PTR 12[rsp]
	lea	rsi, .LC1[rip]
	mov	DWORD PTR 4[rsp], ebx
	call	strcpy@PLT
	mov	edi, DWORD PTR 8[rsp]
	lea	rsi, .LC2[rip]
	call	strcpy@PLT
	cmp	r12d, 32
	mov	rsi, r14
	mov	rdi, rbp
	mov	eax, 32
	cmovnb	r12d, eax
	mov	edx, r12d
	call	memcpy@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L8
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	or	ebx, DWORD PTR DIDEVTYPE_KEYBOARD[rip]
	jmp	.L3
.L8:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fill_keyboard_dideviceinstanceA, .-fill_keyboard_dideviceinstanceA
	.comm	GUID_SysKeyboard,8,8
	.comm	DIDEVTYPE_KEYBOARD,4,4
	.comm	DI8DEVTYPE_KEYBOARD,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_keyboard.c_fill_keyboard_dideviceinstanceA.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d %p\012\000"
	.align	2
.LC1:
	.ascii	"Keyboard\000"
	.align	2
.LC2:
	.ascii	"Wine Keyboard\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_keyboard_dideviceinstanceA, %function
fill_keyboard_dideviceinstanceA:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, r0
	ldr	r6, [r0]
	ldr	r3, .L8
	sub	sp, sp, #36
	mov	r7, r1
	mov	r4, r2
	mov	r1, r6
	mov	r2, r0
	ldr	r0, .L8+4
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	bl	TRACE
	mov	r2, r6
	mov	r1, #0
	mov	r0, r5
	bl	memset
	mov	r3, #0
	cmp	r7, #2048
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	ldrge	r3, .L8+8
	ldrlt	r3, .L8+12
	str	r6, [sp, #4]
	ldr	r2, .L8+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	lsl	r4, r4, #8
	orr	r4, r4, r3
	ldr	r1, .L8+20
	mov	r0, #0
	str	r2, [sp, #24]
	str	r2, [sp, #20]
	str	r4, [sp, #8]
	bl	strcpy
	ldr	r1, .L8+24
	mov	r0, #0
	bl	strcpy
	cmp	r6, #24
	movcc	r2, r6
	movcs	r2, #24
	mov	r0, r5
	add	r1, sp, #4
	bl	memcpy
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	.LC3
	.word	.LC0
	.word	DI8DEVTYPE_KEYBOARD
	.word	DIDEVTYPE_KEYBOARD
	.word	GUID_SysKeyboard
	.word	.LC1
	.word	.LC2
	.size	fill_keyboard_dideviceinstanceA, .-fill_keyboard_dideviceinstanceA
	.comm	GUID_SysKeyboard,4,4
	.comm	DIDEVTYPE_KEYBOARD,4,4
	.comm	DI8DEVTYPE_KEYBOARD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
