	.file	"extr_ti_sci.c_ti_sci_release_resource.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ti_sci_release_resource
	.type	ti_sci_release_resource, @function
ti_sci_release_resource:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	xor	esi, esi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	lea	rbp, 8[rdi]
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rdi, rbp
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	raw_spin_lock_irqsave@PLT
	cmp	QWORD PTR [r12], 0
	je	.L2
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	add	rbx, 1
	cmp	QWORD PTR [r12], rbx
	jbe	.L2
.L4:
	mov	rdx, QWORD PTR 16[r12]
	lea	rax, [rbx+rbx*2]
	lea	rdx, [rdx+rax*8]
	mov	rax, QWORD PTR [rdx]
	cmp	rax, r13
	ja	.L3
	mov	rcx, QWORD PTR 8[rdx]
	add	rcx, rax
	cmp	rcx, r13
	jbe	.L3
	mov	esi, DWORD PTR 16[rdx]
	mov	rdi, r13
	add	rbx, 1
	sub	rdi, rax
	call	clear_bit@PLT
	cmp	QWORD PTR [r12], rbx
	ja	.L4
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	esi, esi
	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
	jmp	raw_spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	ti_sci_release_resource, .-ti_sci_release_resource
	.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_ti_sci.c_ti_sci_release_resource.c"
	.text
	.align	2
	.global	ti_sci_release_resource
	.syntax unified
	.arm
	.fpu softvfp
	.type	ti_sci_release_resource, %function
ti_sci_release_resource:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r8, r0
	add	r7, r0, #4
	mov	r6, r1
	mov	r0, r7
	mov	r1, #0
	bl	raw_spin_lock_irqsave
	ldr	r0, [r8]
	cmp	r0, #0
	beq	.L2
	mov	r4, #0
	mov	r5, r4
	b	.L4
.L3:
	cmp	r0, r5
	add	r4, r4, #12
	bls	.L2
.L4:
	ldr	r3, [r8, #8]
	add	r5, r5, #1
	ldr	r2, [r3, r4]
	add	r3, r3, r4
	cmp	r2, r6
	bhi	.L3
	ldr	r1, [r3, #4]
	add	r1, r2, r1
	cmp	r1, r6
	bls	.L3
	ldr	r1, [r3, #8]
	sub	r0, r6, r2
	bl	clear_bit
	ldr	r0, [r8]
	add	r4, r4, #12
	cmp	r0, r5
	bhi	.L4
.L2:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, lr}
	mov	r1, #0
	b	raw_spin_unlock_irqrestore
	.size	ti_sci_release_resource, .-ti_sci_release_resource
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
