	.file	"extr_bcm_mips.c_bcm_mips_register_isrcs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s,%u"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"error registering IRQ %zu: %d\n"
	.text
	.p2align 4
	.type	bcm_mips_register_isrcs, @function
bcm_mips_register_isrcs:
.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
	xor	r14d, r14d
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, .LC0[rip]
	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
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	bcm_mips_pic_xref@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12, rax
	call	device_get_nameunit@PLT
	mov	rbp, rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, r14
	mov	esi, DWORD PTR [rbx]
	mov	r9, r14
	mov	r8, rbp
	sal	rdi, 5
	add	rdi, QWORD PTR 8[rbx]
	mov	rcx, r13
	mov	rdx, r12
	mov	QWORD PTR [rdi], r14
	add	rdi, 8
	mov	QWORD PTR 16[rdi], 0
	mov	QWORD PTR 8[rdi], 0
	call	intr_isrc_register@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L14
	add	r14, 1
.L2:
	mov	rdi, QWORD PTR 8[rbx]
	call	nitems@PLT
	cmp	rax, r14
	ja	.L7
	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
.L14:
	.cfi_restore_state
	test	r14, r14
	je	.L4
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rdi, rbp
	add	rbp, 1
	sal	rdi, 5
	add	rdi, QWORD PTR 8[rbx]
	add	rdi, 8
	call	intr_isrc_deregister@PLT
	cmp	r14, rbp
	jne	.L5
.L4:
	mov	edi, DWORD PTR [rbx]
	mov	ecx, r15d
	mov	rdx, r14
	lea	rsi, .LC1[rip]
	call	device_printf@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	bcm_mips_register_isrcs, .-bcm_mips_register_isrcs
	.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_bcm_mips.c_bcm_mips_register_isrcs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s,%u\000"
	.align	2
.LC1:
	.ascii	"error registering IRQ %zu: %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bcm_mips_register_isrcs, %function
bcm_mips_register_isrcs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	sub	sp, sp, #8
	mov	r5, r0
	bl	bcm_mips_pic_xref
	mov	r8, r0
	ldr	r0, [r5]
	mov	r4, #0
	bl	device_get_nameunit
	mov	r6, r4
	mov	r7, r0
	ldr	r9, .L15
	b	.L2
.L7:
	ldr	r1, [r5, #4]
	mov	r3, r9
	add	r2, r1, r4, lsl #4
	str	r4, [r1, r4, lsl #4]
	str	r6, [r2, #12]
	str	r6, [r2, #8]
	str	r4, [sp, #4]
	str	r7, [sp]
	add	r0, r2, #4
	ldr	r1, [r5]
	mov	r2, r8
	bl	intr_isrc_register
	subs	r10, r0, #0
	bne	.L14
	add	r4, r4, #1
.L2:
	ldr	r0, [r5, #4]
	bl	nitems
	cmp	r0, r4
	bhi	.L7
	mov	r10, #0
	mov	r0, r10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	cmp	r4, #0
	beq	.L4
	mov	r6, #0
.L5:
	ldr	r0, [r5, #4]
	add	r0, r0, r6, lsl #4
	add	r0, r0, #4
	add	r6, r6, #1
	bl	intr_isrc_deregister
	cmp	r4, r6
	bne	.L5
.L4:
	mov	r2, r4
	mov	r3, r10
	ldr	r0, [r5]
	ldr	r1, .L15+4
	bl	device_printf
	mov	r0, r10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L16:
	.align	2
.L15:
	.word	.LC0
	.word	.LC1
	.size	bcm_mips_register_isrcs, .-bcm_mips_register_isrcs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
