	.file	"extr_sp-platform.c_sp_get_irqs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"unable to get IRQ (%d)\n"
	.text
	.p2align 4
	.type	sp_get_irqs, @function
sp_get_irqs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR 8[rdi]
	mov	r15, QWORD PTR 16[rdi]
	mov	rdi, r14
	call	to_platform_device@PLT
	mov	rbp, rax
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L2
	xor	r12d, r12d
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, ebx
	lea	rdi, [rax+rdx*4]
	call	resource_type@PLT
	cmp	rax, QWORD PTR IORESOURCE_IRQ[rip]
	sete	al
	add	ebx, 1
	movzx	eax, al
	add	r12d, eax
	cmp	DWORD PTR 0[rbp], ebx
	ja	.L4
	mov	DWORD PTR [r15], r12d
	xor	esi, esi
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L14
	mov	DWORD PTR 0[r13], eax
	cmp	r12d, 1
	jne	.L7
.L8:
	mov	DWORD PTR 4[r13], r15d
	xor	r15d, r15d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L2:
	.cfi_restore_state
	mov	DWORD PTR [r15], 0
	xor	esi, esi
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L14
	mov	DWORD PTR 0[r13], r15d
.L7:
	mov	esi, 1
	mov	rdi, rbp
	call	platform_get_irq@PLT
	mov	r15d, eax
	test	eax, eax
	jns	.L8
.L14:
	mov	edx, r15d
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	dev_notice@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sp_get_irqs, .-sp_get_irqs
	.comm	IORESOURCE_IRQ,8,8
	.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_sp-platform.c_sp_get_irqs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"unable to get IRQ (%d)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sp_get_irqs, %function
sp_get_irqs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, [r0, #8]
	ldr	r9, [r0, #12]
	mov	r7, r0
	mov	r0, r8
	bl	to_platform_device
	ldr	r1, [r0]
	mov	r5, r0
	cmp	r1, #0
	beq	.L2
	mov	r6, #0
	mov	r4, r6
	ldr	r10, .L16
.L4:
	ldr	r0, [r5, #4]
	add	r0, r0, r4, lsl #2
	bl	resource_type
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r0, r3
	ldr	r3, [r5]
	addeq	r6, r6, #1
	cmp	r3, r4
	bhi	.L4
	mov	r1, #0
	mov	r0, r5
	str	r6, [r9]
	bl	platform_get_irq
	subs	r4, r0, #0
	blt	.L14
	cmp	r6, #1
	str	r4, [r7]
	bne	.L7
.L8:
	str	r4, [r7, #4]
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	str	r1, [r9]
	bl	platform_get_irq
	subs	r4, r0, #0
	strge	r4, [r7]
	blt	.L14
.L7:
	mov	r0, r5
	mov	r1, #1
	bl	platform_get_irq
	subs	r4, r0, #0
	bge	.L8
.L14:
	mov	r0, r8
	mov	r2, r4
	ldr	r1, .L16+4
	bl	dev_notice
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	.align	2
.L16:
	.word	IORESOURCE_IRQ
	.word	.LC0
	.size	sp_get_irqs, .-sp_get_irqs
	.comm	IORESOURCE_IRQ,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
