	.file	"extr_dvb-usb-firmware.c_dvb_usb_get_hexline.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dvb_usb_get_hexline
	.type	dvb_usb_get_hexline, @function
dvb_usb_get_hexline:
.LFB0:
	.cfi_startproc
	endbr64
	movsx	rax, DWORD PTR [rdx]
	xor	r8d, r8d
	cmp	eax, DWORD PTR [rdi]
	jl	.L11
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	xor	esi, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rdx, QWORD PTR 8[rdi]
	mov	rdi, rbx
	lea	r12, [rdx+rax*4]
	mov	edx, 20
	call	memset@PLT
	mov	edx, DWORD PTR [r12]
	mov	r8d, DWORD PTR EINVAL[rip]
	mov	DWORD PTR [rbx], edx
	mov	eax, DWORD PTR 0[rbp]
	neg	r8d
	add	eax, edx
	add	eax, 4
	cmp	eax, DWORD PTR 0[r13]
	jge	.L1
	mov	eax, DWORD PTR 8[r12]
	sal	eax, 8
	or	eax, DWORD PTR 4[r12]
	mov	DWORD PTR 4[rbx], eax
	mov	ecx, DWORD PTR 12[r12]
	mov	DWORD PTR 8[rbx], ecx
	cmp	ecx, 4
	jne	.L4
	mov	ecx, DWORD PTR 16[r12]
	mov	esi, DWORD PTR 20[r12]
	sal	ecx, 24
	sal	esi, 16
	or	ecx, esi
	or	eax, ecx
	mov	DWORD PTR 4[rbx], eax
.L4:
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, 16[r12]
	call	memcpy@PLT
	mov	edx, DWORD PTR [rbx]
	lea	eax, 4[rdx]
	cdqe
	mov	eax, DWORD PTR [r12+rax*4]
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR 0[rbp]
	lea	r8d, 5[rdx+rax]
	mov	DWORD PTR 0[rbp], r8d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r8d
	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	dvb_usb_get_hexline, .-dvb_usb_get_hexline
	.comm	EINVAL,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_dvb-usb-firmware.c_dvb_usb_get_hexline.c"
	.text
	.align	2
	.global	dvb_usb_get_hexline
	.syntax unified
	.arm
	.fpu softvfp
	.type	dvb_usb_get_hexline, %function
dvb_usb_get_hexline:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r0]
	ldr	r7, [r2]
	cmp	r7, r3
	blt	.L8
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	mov	r4, r1
	mov	r6, r0
	mov	r5, r2
	ldr	r8, [r0, #4]
	mov	r2, #20
	mov	r1, #0
	mov	r0, r4
	bl	memset
	ldr	r2, [r8, r7, lsl #2]
	ldr	r1, [r6]
	str	r2, [r4]
	ldr	r3, [r5]
	add	r7, r8, r7, lsl #2
	add	r3, r2, r3
	add	r3, r3, #4
	cmp	r3, r1
	bge	.L9
	ldr	r1, [r7, #8]
	ldr	r3, [r7, #4]
	orr	r3, r3, r1, lsl #8
	str	r3, [r4, #4]
	ldr	r1, [r7, #12]
	cmp	r1, #4
	str	r1, [r4, #8]
	bne	.L4
	ldr	r1, [r7, #20]
	ldr	r0, [r7, #16]
	lsl	r1, r1, #16
	orr	r1, r1, r0, lsl #24
	orr	r3, r1, r3
	str	r3, [r4, #4]
.L4:
	add	r1, r7, #16
	mov	r0, #0
	bl	memcpy
	ldr	r0, [r4]
	add	r3, r0, #4
	ldr	r3, [r7, r3, lsl #2]
	add	r0, r0, #5
	str	r3, [r4, #12]
	ldr	r3, [r5]
	add	r0, r0, r3
	str	r0, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	EINVAL
	.size	dvb_usb_get_hexline, .-dvb_usb_get_hexline
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
