	.file	"extr_unsolicited_frame_control.c_sci_unsolicited_frame_control_release_frame.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sci_unsolicited_frame_control_release_frame
	.type	sci_unsolicited_frame_control_release_frame, @function
sci_unsolicited_frame_control_release_frame:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, DWORD PTR SCU_MAX_UNSOLICITED_FRAMES[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	r13d, DWORD PTR [rdi]
	lea	ebx, -1[r14]
	and	ebx, r13d
	movsx	rbx, ebx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	upper_32_bits@PLT
	test	rax, rax
	movsx	rax, DWORD PTR SCU_MAX_UNSOLICITED_FRAMES[rip]
	jne	.L4
	cmp	rax, rbx
	jbe	.L4
	add	rbx, 1
.L2:
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR [rax+rbx*4]
	call	lower_32_bits@PLT
	test	rax, rax
	je	.L3
	movsx	rax, DWORD PTR SCU_MAX_UNSOLICITED_FRAMES[rip]
.L4:
	xor	edi, edi
	cmp	rbx, rax
	setnb	dil
	call	BUG_ON@PLT
	movsx	rdi, DWORD PTR SCU_MAX_UNSOLICITED_FRAMES[rip]
	mov	rdx, rdi
	cmp	rdi, r12
	jbe	.L9
	mov	rsi, QWORD PTR 8[rbp]
	mov	rcx, QWORD PTR UNSOLICITED_FRAME_RELEASED[rip]
	lea	rax, [rsi+r12*8]
	mov	QWORD PTR [rax], rcx
	cmp	rbx, r12
	jne	.L9
	and	r13d, r14d
	cmp	rcx, QWORD PTR UNSOLICITED_FRAME_RELEASED[rip]
	movsx	r13, r13d
	jne	.L10
	sub	edx, 1
	movsx	rdx, edx
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rax, [rsi+r12*8]
	mov	rcx, QWORD PTR UNSOLICITED_FRAME_RELEASED[rip]
	cmp	QWORD PTR [rax], rcx
	jne	.L10
.L13:
	mov	rcx, QWORD PTR UNSOLICITED_FRAME_EMPTY[rip]
	add	r12, 1
	mov	QWORD PTR [rax], rcx
	cmp	r12, rdx
	jne	.L17
	mov	rax, rsi
	mov	rcx, QWORD PTR UNSOLICITED_FRAME_RELEASED[rip]
	xor	r13, rdi
	xor	r12d, r12d
	cmp	QWORD PTR [rax], rcx
	je	.L13
.L10:
	mov	edi, DWORD PTR ENABLE_BIT[rip]
	call	SCU_UFQGP_GEN_BIT@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	or	r13d, eax
	mov	eax, 1
	or	r12d, r13d
	mov	DWORD PTR 0[rbp], r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sci_unsolicited_frame_control_release_frame, .-sci_unsolicited_frame_control_release_frame
	.comm	UNSOLICITED_FRAME_RELEASED,8,8
	.comm	UNSOLICITED_FRAME_EMPTY,8,8
	.comm	SCU_MAX_UNSOLICITED_FRAMES,4,4
	.comm	ENABLE_BIT,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_unsolicited_frame_control.c_sci_unsolicited_frame_control_release_frame.c"
	.text
	.align	2
	.global	sci_unsolicited_frame_control_release_frame
	.syntax unified
	.arm
	.fpu softvfp
	.type	sci_unsolicited_frame_control_release_frame, %function
sci_unsolicited_frame_control_release_frame:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L17
	ldr	r9, [r0]
	ldr	r8, [r7]
	mov	r5, r0
	sub	r4, r8, #1
	mov	r6, r1
	and	r4, r4, r9
	b	.L2
.L3:
	ldr	r3, [r5, #8]
	ldr	r0, [r3, r4, lsl #2]
	bl	upper_32_bits
	cmp	r0, #0
	ldr	r0, [r7]
	bne	.L4
	cmp	r0, r4
	bls	.L4
	add	r4, r4, #1
.L2:
	ldr	r3, [r5, #8]
	ldr	r0, [r3, r4, lsl #2]
	bl	lower_32_bits
	cmp	r0, #0
	beq	.L3
	ldr	r0, [r7]
.L4:
	cmp	r4, r0
	movcc	r0, #0
	movcs	r0, #1
	bl	BUG_ON
	ldr	lr, [r7]
	cmp	lr, r6
	bls	.L9
	ldr	ip, .L17+4
	ldr	r0, [r5, #4]
	ldr	r2, [ip]
	cmp	r4, r6
	str	r2, [r0, r6, lsl #2]
	add	r3, r0, r6, lsl #2
	bne	.L9
	ldr	r1, [ip]
	and	r8, r8, r9
	cmp	r2, r1
	bne	.L10
	ldr	r7, .L17+8
	sub	r4, lr, #1
.L13:
	add	r6, r6, #1
	ldr	r2, [r7]
	cmp	r6, r4
	str	r2, [r3]
	moveq	r3, r0
	addne	r3, r0, r6, lsl #2
	ldr	r1, [r3]
	ldr	r2, [ip]
	moveq	r6, #0
	eoreq	r8, r8, lr
	cmp	r1, r2
	beq	.L13
.L10:
	ldr	r3, .L17+12
	orr	r8, r8, r6
	ldr	r0, [r3]
	bl	SCU_UFQGP_GEN_BIT
	mov	r3, r0
	orr	r8, r8, r3
	mov	r0, #1
	str	r8, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L18:
	.align	2
.L17:
	.word	SCU_MAX_UNSOLICITED_FRAMES
	.word	UNSOLICITED_FRAME_RELEASED
	.word	UNSOLICITED_FRAME_EMPTY
	.word	ENABLE_BIT
	.size	sci_unsolicited_frame_control_release_frame, .-sci_unsolicited_frame_control_release_frame
	.comm	UNSOLICITED_FRAME_RELEASED,4,4
	.comm	UNSOLICITED_FRAME_EMPTY,4,4
	.comm	SCU_MAX_UNSOLICITED_FRAMES,4,4
	.comm	ENABLE_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
