	.file	"extr_radio-usb-si4713.c_si4713_i2c_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	si4713_i2c_read, @function
si4713_i2c_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edi, DWORD PTR USB_RESP_TIMEOUT[rip]
	mov	DWORD PTR 12[rsp], edx
	call	usecs_to_jiffies@PLT
	add	eax, DWORD PTR jiffies[rip]
	mov	ebp, eax
	add	ebp, 1
	movsx	rbp, ebp
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rsi, QWORD PTR [rbx]
	mov	r12d, DWORD PTR 4[rsi]
	test	r12d, r12d
	jne	.L3
	mov	eax, DWORD PTR 8[rsi]
	test	DWORD PTR SI4713_CTS[rip], eax
	jne	.L11
.L3:
	mov	rdi, rbp
	call	time_is_before_jiffies@PLT
	test	rax, rax
	jne	.L12
	mov	edi, 3
	call	msleep@PLT
.L5:
	mov	edi, DWORD PTR 8[rbx]
	mov	r12, QWORD PTR [rbx]
	xor	esi, esi
	mov	r14d, DWORD PTR USB_TIMEOUT[rip]
	mov	r15d, DWORD PTR BUFFER_LENGTH[rip]
	call	usb_rcvctrlpipe@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	edi, DWORD PTR 8[rbx]
	xor	r9d, r9d
	push	r14
	.cfi_def_cfa_offset 96
	mov	esi, eax
	mov	r8d, 831
	mov	ecx, 161
	push	r15
	.cfi_def_cfa_offset 104
	mov	edx, 1
	push	r12
	.cfi_def_cfa_offset 112
	call	usb_control_msg@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 80
	mov	r12d, eax
	test	eax, eax
	jns	.L13
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	BYTE PTR 0[r13], 0
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edx, DWORD PTR 12[rsp]
	add	rsi, 8
	mov	rdi, r13
	call	memcpy@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	si4713_i2c_read, .-si4713_i2c_read
	.comm	jiffies,4,4
	.comm	USB_TIMEOUT,4,4
	.comm	USB_RESP_TIMEOUT,4,4
	.comm	SI4713_CTS,4,4
	.comm	BUFFER_LENGTH,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_radio-usb-si4713.c_si4713_i2c_read.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	si4713_i2c_read, %function
si4713_i2c_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L15
	sub	sp, sp, #44
	mov	r4, r0
	ldr	r0, [r3]
	str	r1, [sp, #28]
	str	r2, [sp, #32]
	bl	usecs_to_jiffies
	ldr	r3, .L15+4
	mov	r9, #0
	ldr	r5, [r3]
	ldr	r8, .L15+8
	add	r5, r0, r5
	ldr	r7, .L15+12
	ldr	r6, .L15+16
	ldr	r10, .L15+20
	add	r5, r5, #1
	b	.L5
.L14:
	ldr	r1, [r4]
	ldr	r0, [r1, #4]
	cmp	r0, #0
	bne	.L3
	ldr	r2, [r1, #8]
	ldr	r3, [r10]
	tst	r2, r3
	bne	.L12
.L3:
	mov	r0, r5
	bl	time_is_before_jiffies
	cmp	r0, #0
	bne	.L13
	mov	r0, #3
	bl	msleep
.L5:
	ldr	fp, [r4, #4]
	mov	r1, #0
	mov	r0, fp
	bl	usb_rcvctrlpipe
	ldr	r3, [r4]
	ldr	r2, [r7]
	ldr	ip, [r8]
	mov	r1, r0
	str	r2, [sp, #12]
	str	r3, [sp, #8]
	mov	r0, fp
	mov	r3, #161
	mov	r2, #1
	stm	sp, {r6, r9}
	str	ip, [sp, #16]
	bl	usb_control_msg
	cmp	r0, #0
	bge	.L14
	mov	r3, r0
	mov	r0, r3
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	mov	r3, #0
	mov	r0, r3
	ldr	r2, [sp, #28]
	strb	r3, [r2]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	str	r0, [sp, #36]
	ldr	r2, [sp, #32]
	ldr	r0, [sp, #28]
	add	r1, r1, #8
	bl	memcpy
	ldr	r3, [sp, #36]
	mov	r0, r3
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	USB_RESP_TIMEOUT
	.word	jiffies
	.word	USB_TIMEOUT
	.word	BUFFER_LENGTH
	.word	831
	.word	SI4713_CTS
	.size	si4713_i2c_read, .-si4713_i2c_read
	.comm	jiffies,4,4
	.comm	USB_TIMEOUT,4,4
	.comm	USB_RESP_TIMEOUT,4,4
	.comm	SI4713_CTS,4,4
	.comm	BUFFER_LENGTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
