	.file	"extr_openpic.c_openpic_resume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	openpic_resume
	.type	openpic_resume, @function
openpic_resume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	device_get_softc@PLT
	mov	esi, DWORD PTR OPENPIC_CONFIG[rip]
	mov	edi, DWORD PTR 8[rax]
	mov	rbx, rax
	call	bus_read_4@PLT
	mov	ecx, DWORD PTR OPENPIC_NIPIS[rip]
	mov	DWORD PTR 40[rbx], eax
	test	ecx, ecx
	jle	.L2
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 32[rbx]
	mov	edi, ebp
	mov	r12d, DWORD PTR [rax+rbp*4]
	add	rbp, 1
	call	OPENPIC_IPI_VECTOR@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, eax
	mov	edx, r12d
	call	bus_write_4@PLT
	cmp	DWORD PTR OPENPIC_NIPIS[rip], ebp
	jg	.L3
.L2:
	xor	ebp, ebp
.L4:
	mov	rax, QWORD PTR 24[rbx]
	mov	edi, ebp
	mov	r12d, DWORD PTR [rax+rbp*4]
	add	rbp, 1
	call	OPENPIC_PCPU_TPR@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, eax
	mov	edx, r12d
	call	bus_write_4@PLT
	cmp	rbp, 4
	jne	.L4
	mov	edx, DWORD PTR OPENPIC_TIMERS[rip]
	test	edx, edx
	jle	.L5
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR 16[rbx]
	mov	r12, rbp
	mov	edi, ebp
	sal	r12, 4
	mov	r13d, DWORD PTR 12[rax+r12]
	call	OPENPIC_TCNT@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r13d
	mov	esi, eax
	call	bus_write_4@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, ebp
	mov	r13d, DWORD PTR 8[rax+r12]
	call	OPENPIC_TBASE@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	edx, r13d
	mov	esi, eax
	call	bus_write_4@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, ebp
	mov	r13d, DWORD PTR 4[rax+r12]
	call	OPENPIC_TVEC@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, eax
	mov	edx, r13d
	call	bus_write_4@PLT
	mov	rax, QWORD PTR 16[rbx]
	mov	edi, ebp
	add	rbp, 1
	mov	r12d, DWORD PTR [rax+r12]
	call	OPENPIC_TDST@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, eax
	mov	edx, r12d
	call	bus_write_4@PLT
	cmp	DWORD PTR OPENPIC_TIMERS[rip], ebp
	jg	.L6
.L5:
	mov	eax, DWORD PTR OPENPIC_SRC_VECTOR_COUNT[rip]
	test	eax, eax
	jle	.L7
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR [rbx]
	mov	edi, ebp
	mov	r12d, DWORD PTR [rax+rbp*4]
	add	rbp, 1
	call	OPENPIC_SRC_VECTOR@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	esi, eax
	mov	edx, r12d
	call	bus_write_4@PLT
	cmp	DWORD PTR OPENPIC_SRC_VECTOR_COUNT[rip], ebp
	jg	.L8
.L7:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	ret
	.cfi_endproc
.LFE0:
	.size	openpic_resume, .-openpic_resume
	.comm	OPENPIC_TIMERS,4,4
	.comm	OPENPIC_SRC_VECTOR_COUNT,4,4
	.comm	OPENPIC_NIPIS,4,4
	.comm	OPENPIC_CONFIG,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_openpic.c_openpic_resume.c"
	.text
	.align	2
	.global	openpic_resume
	.syntax unified
	.arm
	.fpu softvfp
	.type	openpic_resume, %function
openpic_resume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	device_get_softc
	ldr	r3, .L15
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r0, [r0, #4]
	bl	bus_read_4
	ldr	r7, .L15+4
	str	r0, [r4, #20]
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
.L3:
	mov	r0, r5
	ldr	r6, [r4, #4]
	bl	OPENPIC_IPI_VECTOR
	ldr	r3, [r4, #16]
	mov	r1, r0
	ldr	r2, [r3, r5, lsl #2]
	mov	r0, r6
	bl	bus_write_4
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L3
.L2:
	mov	r5, #0
.L4:
	mov	r0, r5
	ldr	r6, [r4, #4]
	bl	OPENPIC_PCPU_TPR
	ldr	r3, [r4, #12]
	mov	r1, r0
	ldr	r2, [r3, r5, lsl #2]
	mov	r0, r6
	add	r5, r5, #1
	bl	bus_write_4
	cmp	r5, #4
	bne	.L4
	ldr	r6, .L15+8
	ldr	r3, [r6]
	cmp	r3, #0
	ble	.L5
	mov	r5, #0
.L6:
	mov	r0, r5
	ldr	r7, [r4, #4]
	bl	OPENPIC_TCNT
	ldr	r3, [r4, #8]
	mov	r1, r0
	add	r3, r3, r5, lsl #4
	ldr	r2, [r3, #12]
	mov	r0, r7
	bl	bus_write_4
	mov	r0, r5
	ldr	r8, [r4, #4]
	bl	OPENPIC_TBASE
	ldr	r2, [r4, #8]
	lsl	r7, r5, #4
	add	r2, r2, r7
	mov	r1, r0
	ldr	r2, [r2, #8]
	mov	r0, r8
	bl	bus_write_4
	mov	r0, r5
	ldr	r8, [r4, #4]
	bl	OPENPIC_TVEC
	ldr	r3, [r4, #8]
	mov	r1, r0
	add	r3, r3, r7
	ldr	r2, [r3, #4]
	mov	r0, r8
	bl	bus_write_4
	mov	r0, r5
	ldr	r7, [r4, #4]
	bl	OPENPIC_TDST
	ldr	r3, [r4, #8]
	mov	r1, r0
	ldr	r2, [r3, r5, lsl #4]
	mov	r0, r7
	bl	bus_write_4
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L6
.L5:
	ldr	r7, .L15+12
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L7
	mov	r5, #0
.L8:
	mov	r0, r5
	ldr	r6, [r4, #4]
	bl	OPENPIC_SRC_VECTOR
	ldr	r3, [r4]
	mov	r1, r0
	ldr	r2, [r3, r5, lsl #2]
	mov	r0, r6
	bl	bus_write_4
	ldr	r3, [r7]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L8
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	.align	2
.L15:
	.word	OPENPIC_CONFIG
	.word	OPENPIC_NIPIS
	.word	OPENPIC_TIMERS
	.word	OPENPIC_SRC_VECTOR_COUNT
	.size	openpic_resume, .-openpic_resume
	.comm	OPENPIC_TIMERS,4,4
	.comm	OPENPIC_SRC_VECTOR_COUNT,4,4
	.comm	OPENPIC_NIPIS,4,4
	.comm	OPENPIC_CONFIG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
