	.file	"extr_sonixb.c_reg_r.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Error reading register %02x: %d\n"
	.text
	.p2align 4
	.type	reg_r, @function
reg_r:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	js	.L6
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rbp, QWORD PTR 8[rdi]
	mov	edi, DWORD PTR 20[rdi]
	mov	r13d, DWORD PTR USB_DIR_IN[rip]
	or	r13d, DWORD PTR USB_TYPE_VENDOR[rip]
	or	r13d, DWORD PTR USB_RECIP_INTERFACE[rip]
	call	usb_rcvctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edi, DWORD PTR 20[rbx]
	mov	ecx, r13d
	push	500
	.cfi_def_cfa_offset 64
	mov	esi, eax
	xor	r9d, r9d
	mov	r8d, r12d
	push	1
	.cfi_def_cfa_offset 72
	xor	edx, edx
	push	rbp
	.cfi_def_cfa_offset 80
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 48
	mov	r13d, eax
	test	eax, eax
	js	.L10
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -40
	.cfi_offset 6, -32
	.cfi_offset 12, -24
	.cfi_offset 13, -16
	mov	edi, DWORD PTR 16[rbx]
	mov	edx, r12d
	mov	ecx, eax
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	rax, QWORD PTR 8[rbx]
	mov	DWORD PTR [rbx], r13d
	mov	QWORD PTR [rax], 0
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	reg_r, .-reg_r
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_IN,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_sonixb.c_reg_r.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Error reading register %02x: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	reg_r, %function
reg_r:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxlt	lr
	push	{r4, r5, r6, r7, lr}
	ldr	r5, [r0, #12]
	sub	sp, sp, #28
	mov	r4, r0
	mov	r6, r1
	mov	r0, r5
	mov	r1, #0
	bl	usb_rcvctrlpipe
	mov	r7, #0
	mov	lr, #500
	mov	r2, #1
	mov	r1, r0
	ldr	r3, .L11
	ldr	r0, .L11+4
	ldr	r3, [r3]
	ldr	ip, [r0]
	ldr	r0, .L11+8
	orr	r3, r3, ip
	ldr	ip, [r0]
	str	r6, [sp]
	orr	r3, r3, ip
	ldr	ip, [r4, #4]
	mov	r0, r5
	str	r2, [sp, #12]
	str	lr, [sp, #16]
	mov	r2, r7
	str	r7, [sp, #4]
	str	ip, [sp, #8]
	bl	usb_control_msg
	subs	r5, r0, #0
	blt	.L10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L10:
	mov	r3, r5
	mov	r2, r6
	ldr	r1, .L11+12
	ldr	r0, [r4, #8]
	bl	dev_err
	ldr	r3, [r4, #4]
	str	r5, [r4]
	str	r7, [r3]
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L12:
	.align	2
.L11:
	.word	USB_DIR_IN
	.word	USB_TYPE_VENDOR
	.word	USB_RECIP_INTERFACE
	.word	.LC0
	.size	reg_r, .-reg_r
	.comm	USB_TYPE_VENDOR,4,4
	.comm	USB_RECIP_INTERFACE,4,4
	.comm	USB_DIR_IN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
