	.file	"extr_u_os_desc.h_usb_ext_prop_put_name.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	usb_ext_prop_put_name, @function
usb_ext_prop_put_name:
.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
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	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
	call	usb_ext_prop_name_len_ptr@PLT
	mov	edi, ebx
	mov	rsi, rax
	call	put_unaligned_le16@PLT
	mov	rdi, rbp
	call	usb_ext_prop_name_ptr@PLT
	mov	r14d, DWORD PTR UTF16_LITTLE_ENDIAN[rip]
	mov	rdi, r12
	mov	r13, rax
	call	strlen@PLT
	lea	r8d, -2[rbx]
	mov	rcx, r13
	mov	edx, r14d
	mov	esi, eax
	mov	rdi, r12
	call	utf8s_to_utf16s@PLT
	test	eax, eax
	js	.L1
	mov	eax, DWORD PTR USB_EXT_PROP_B_PROPERTY_NAME[rip]
	xor	edi, edi
	add	eax, ebx
	cdqe
	lea	rsi, -8[rbp+rax*4]
	call	put_unaligned_le16@PLT
	mov	eax, ebx
.L1:
	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
	.cfi_endproc
.LFE0:
	.size	usb_ext_prop_put_name, .-usb_ext_prop_put_name
	.comm	UTF16_LITTLE_ENDIAN,4,4
	.comm	USB_EXT_PROP_B_PROPERTY_NAME,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_u_os_desc.h_usb_ext_prop_put_name.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_ext_prop_put_name, %function
usb_ext_prop_put_name:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #8
	mov	r4, r2
	mov	r5, r1
	mov	r6, r0
	bl	usb_ext_prop_name_len_ptr
	mov	r1, r0
	mov	r0, r4
	bl	put_unaligned_le16
	mov	r0, r5
	bl	strlen
	ldr	r3, .L5
	mov	r7, r0
	mov	r0, r6
	ldr	r8, [r3]
	bl	usb_ext_prop_name_ptr
	sub	ip, r4, #2
	mov	r3, r0
	mov	r2, r8
	mov	r1, r7
	mov	r0, r5
	str	ip, [sp]
	bl	utf8s_to_utf16s
	cmp	r0, #0
	blt	.L1
	ldr	r3, .L5+4
	mov	r0, #0
	ldr	r1, [r3]
	add	r1, r4, r1
	sub	r1, r1, #-1073741822
	add	r1, r6, r1, lsl #2
	bl	put_unaligned_le16
	mov	r0, r4
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	.align	2
.L5:
	.word	UTF16_LITTLE_ENDIAN
	.word	USB_EXT_PROP_B_PROPERTY_NAME
	.size	usb_ext_prop_put_name, .-usb_ext_prop_put_name
	.comm	UTF16_LITTLE_ENDIAN,4,4
	.comm	USB_EXT_PROP_B_PROPERTY_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
