	.file	"extr_technisat-usb2.c_technisat_usb2_eeprom_lrc_read.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	technisat_usb2_eeprom_lrc_read, @function
technisat_usb2_eeprom_lrc_read:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, ecx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 88
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	movzx	eax, sil
	movaps	XMMWORD PTR 16[rsp], xmm0
	sar	esi, 8
	mov	QWORD PTR 8[rsp], rax
	lea	rax, 8[rsp]
	and	esi, 3
	lea	r14, 16[rsp]
	mov	QWORD PTR 24[rsp], rax
	mov	eax, DWORD PTR I2C_M_RD[rip]
	or	esi, 80
	movaps	XMMWORD PTR 32[rsp], xmm0
	mov	DWORD PTR 60[rsp], eax
	movsx	rax, ecx
	mov	DWORD PTR 16[rsp], esi
	lea	r15, -8[rdx+rax*8]
	mov	DWORD PTR 32[rsp], 1
	mov	DWORD PTR 40[rsp], esi
	mov	QWORD PTR 48[rsp], rdx
	mov	DWORD PTR 56[rsp], ecx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, 2
	mov	rsi, r14
	mov	rdi, r13
	call	i2c_transfer@PLT
	cmp	eax, 2
	jne	.L6
	lea	esi, -1[r12]
	mov	rdi, rbp
	sub	rbx, 1
	call	technisat_usb2_calc_lrc@PLT
	cmp	rax, QWORD PTR [r15]
	je	.L8
.L2:
	test	rbx, rbx
	jne	.L5
.L6:
	mov	eax, DWORD PTR EREMOTEIO[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 72[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L11
	add	rsp, 88
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L8:
	.cfi_restore_state
	xor	eax, eax
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	technisat_usb2_eeprom_lrc_read, .-technisat_usb2_eeprom_lrc_read
	.comm	I2C_M_RD,4,4
	.comm	EREMOTEIO,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_technisat-usb2.c_technisat_usb2_eeprom_lrc_read.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	technisat_usb2_eeprom_lrc_read, %function
technisat_usb2_eeprom_lrc_read:
	@ args = 4, pretend = 0, frame = 40
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	lr, #0
	mov	ip, #1
	ldr	r4, .L12
	asr	r2, r1, #8
	sub	sp, sp, #40
	ldr	r4, [r4]
	mov	r7, r0
	and	r2, r2, #3
	ldr	r0, .L12+4
	orr	r2, r2, #80
	and	r1, r1, #255
	str	r3, [sp, #28]
	str	r6, [sp, #24]
	sub	r8, r3, #-1073741823
	ldr	r0, [r0]
	str	r0, [sp, #36]
	mov	r0,#0
	add	r8, r6, r8, lsl #2
	str	r4, [sp, #32]
	str	r2, [sp, #4]
	ldr	r4, [sp, #64]
	str	r2, [sp, #20]
	str	r1, [sp]
	sub	r5, r3, #1
	str	lr, [sp, #16]
	str	ip, [sp, #12]
	str	sp, [sp, #8]
	b	.L2
.L5:
	mov	r2, #2
	mov	r0, r7
	add	r1, sp, #4
	bl	i2c_transfer
	cmp	r0, #2
	bne	.L6
	mov	r1, r5
	mov	r0, r6
	bl	technisat_usb2_calc_lrc
	ldr	r3, [r8]
	sub	r4, r4, #1
	cmp	r0, r3
	beq	.L8
.L2:
	cmp	r4, #0
	bne	.L5
.L6:
	ldr	r3, .L12+8
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r0, #0
	b	.L1
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	I2C_M_RD
	.word	.LC0
	.word	EREMOTEIO
	.size	technisat_usb2_eeprom_lrc_read, .-technisat_usb2_eeprom_lrc_read
	.comm	I2C_M_RD,4,4
	.comm	EREMOTEIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
