	.file	"extr_sn9c20x.c_reg_w.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Write register failed index 0x%02X"
	.text
	.p2align 4
	.type	reg_w, @function
reg_w:
.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, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	mov	rsi, rdx
	mov	edx, ecx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13, QWORD PTR 8[rdi]
	mov	ebx, ecx
	mov	edi, DWORD PTR [rdi]
	call	memcpy@PLT
	mov	r14d, DWORD PTR [r12]
	xor	esi, esi
	mov	rdi, r13
	mov	r12d, DWORD PTR USB_DIR_OUT[rip]
	or	r12d, DWORD PTR USB_TYPE_VENDOR[rip]
	or	r12d, DWORD PTR USB_RECIP_INTERFACE[rip]
	call	usb_sndctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	xor	r9d, r9d
	mov	r8d, ebp
	push	500
	.cfi_def_cfa_offset 64
	mov	esi, eax
	mov	ecx, r12d
	mov	edx, 8
	push	rbx
	.cfi_def_cfa_offset 72
	mov	rdi, r13
	push	r14
	.cfi_def_cfa_offset 80
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	edx, eax
	shr	edx, 31
	cmp	ebx, eax
	setne	dil
	or	edi, edx
	movzx	edi, dil
	call	unlikely@PLT
	mov	r8, rax
	xor	eax, eax
	test	r8, r8
	jne	.L8
	pop	rbx
	.cfi_remember_state
	.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
.L8:
	.cfi_restore_state
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	call	err@PLT
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	neg	eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	reg_w, .-reg_w
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	EIO,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_sn9c20x.c_reg_w.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Write register failed index 0x%02X\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reg_w, %function
reg_w:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r7, [r0, #4]
	sub	sp, sp, #28
	mov	r5, r0
	mov	r6, r1
	ldr	r0, [r0]
	mov	r1, r2
	mov	r2, r3
	mov	r4, r3
	bl	memcpy
	mov	r1, #0
	mov	r0, r7
	bl	usb_sndctrlpipe
	mov	ip, #500
	mov	r2, #0
	mov	r1, r0
	ldr	r3, .L9
	ldr	r0, .L9+4
	ldr	r3, [r3]
	ldr	r0, [r0]
	ldr	lr, [r5]
	orr	r3, r3, r0
	ldr	r0, .L9+8
	str	lr, [sp, #8]
	ldr	lr, [r0]
	str	r4, [sp, #12]
	orr	r3, r3, lr
	str	ip, [sp, #16]
	str	r2, [sp, #4]
	mov	r0, r7
	mov	r2, #8
	str	r6, [sp]
	bl	usb_control_msg
	subs	r4, r4, r0
	movne	r4, #1
	orr	r0, r4, r0, lsr #31
	bl	unlikely
	cmp	r0, #0
	bne	.L8
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L8:
	mov	r1, r6
	ldr	r0, .L9+12
	bl	err
	ldr	r3, .L9+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	.align	2
.L9:
	.word	USB_DIR_OUT
	.word	USB_TYPE_VENDOR
	.word	USB_RECIP_INTERFACE
	.word	.LC0
	.word	EIO
	.size	reg_w, .-reg_w
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_OUT,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
