	.file	"extr_frm_driver.c_HSC_Generic.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	HSC_Generic, @function
HSC_Generic:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, esi
	mov	r8d, DWORD PTR E_REQUEST_DENIED[rip]
	sar	edx, 31
	mov	eax, edx
	xor	eax, esi
	sub	eax, edx
	mov	edx, DWORD PTR [rdi]
	test	esi, esi
	jle	.L2
	mov	rsi, QWORD PTR 8[rdi]
	lea	r9d, [rax+rdx]
	mov	ecx, DWORD PTR [rsi]
	sub	ecx, DWORD PTR 4[rsi]
	mov	esi, ecx
	sub	esi, edx
	cmp	r9d, ecx
	cmovg	eax, esi
	test	eax, eax
	jle	.L1
	add	DWORD PTR 4[rdi], eax
	add	eax, edx
	mov	r8d, DWORD PTR E_OK[rip]
	mov	DWORD PTR [rdi], eax
.L1:
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	eax, edx
	cmovg	eax, edx
	test	eax, eax
	jle	.L1
	mov	r8d, DWORD PTR E_OK[rip]
	sub	edx, eax
	sub	DWORD PTR 4[rdi], eax
	mov	DWORD PTR [rdi], edx
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	HSC_Generic, .-HSC_Generic
	.comm	E_REQUEST_DENIED,4,4
	.comm	E_OK,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_frm_driver.c_HSC_Generic.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	HSC_Generic, %function
HSC_Generic:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r0
	ldr	r0, .L10
	eor	r2, r1, r1, asr #31
	cmp	r1, #0
	sub	r2, r2, r1, asr #31
	ldr	r0, [r0]
	ldr	r1, [r3]
	ble	.L2
	push	{r4, lr}
	ldr	r4, [r3, #8]
	add	lr, r2, r1
	ldr	ip, [r4]
	ldr	r4, [r4, #4]
	sub	ip, ip, r4
	cmp	lr, ip
	subgt	r2, ip, r1
	cmp	r2, #0
	pople	{r4, pc}
	ldr	r0, [r3, #4]
	ldr	ip, .L10+4
	add	r1, r2, r1
	add	r2, r0, r2
	stm	r3, {r1, r2}
	ldr	r0, [ip]
	pop	{r4, pc}
.L2:
	cmp	r2, r1
	movge	r2, r1
	cmp	r2, #0
	bxle	lr
	ldr	r0, [r3, #4]
	ldr	ip, .L10+4
	sub	r1, r1, r2
	sub	r2, r0, r2
	ldr	r0, [ip]
	stm	r3, {r1, r2}
	bx	lr
.L11:
	.align	2
.L10:
	.word	E_REQUEST_DENIED
	.word	E_OK
	.size	HSC_Generic, .-HSC_Generic
	.comm	E_REQUEST_DENIED,4,4
	.comm	E_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
