	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpic_resume                 ## -- Begin function openpic_resume
	.p2align	4, 0x90
_openpic_resume:                        ## @openpic_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	callq	_device_get_softc
	movq	%rax, %r14
	movl	8(%rax), %edi
	movq	_OPENPIC_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bus_read_4
	movl	%eax, 40(%r14)
	movq	_OPENPIC_NIPIS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %r15d
	movl	%ebx, %edi
	callq	_OPENPIC_IPI_VECTOR
	movq	32(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	8(%r14), %ebx
	xorl	%edi, %edi
	callq	_OPENPIC_PCPU_TPR
	movq	24(%r14), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	movl	8(%r14), %ebx
	movl	$1, %edi
	callq	_OPENPIC_PCPU_TPR
	movq	24(%r14), %rcx
	movl	4(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	movl	8(%r14), %ebx
	movl	$2, %edi
	callq	_OPENPIC_PCPU_TPR
	movq	24(%r14), %rcx
	movl	8(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	movl	8(%r14), %ebx
	movl	$3, %edi
	callq	_OPENPIC_PCPU_TPR
	movq	24(%r14), %rcx
	movl	12(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	movq	_OPENPIC_TIMERS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.4:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %r15d
	movl	%ebx, %edi
	callq	_OPENPIC_TCNT
	movq	16(%r14), %rcx
	movl	12(%rcx,%r13), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	movl	8(%r14), %r15d
	movl	%ebx, %edi
	callq	_OPENPIC_TBASE
	movq	16(%r14), %rcx
	movl	8(%rcx,%r13), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	movl	8(%r14), %r15d
	movl	%ebx, %edi
	callq	_OPENPIC_TVEC
	movq	16(%r14), %rcx
	movl	4(%rcx,%r13), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	movl	8(%r14), %r15d
	movl	%ebx, %edi
	callq	_OPENPIC_TDST
	movq	16(%r14), %rcx
	movl	(%rcx,%r13), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	incq	%rbx
	movslq	(%r12), %rax
	addq	$16, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movq	_OPENPIC_SRC_VECTOR_COUNT@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r14), %r15d
	movl	%ebx, %edi
	callq	_OPENPIC_SRC_VECTOR
	movq	(%r14), %rcx
	movl	(%rcx,%rbx,4), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_bus_write_4
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_8
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OPENPIC_CONFIG,4,2             ## @OPENPIC_CONFIG
	.comm	_OPENPIC_NIPIS,4,2              ## @OPENPIC_NIPIS
	.comm	_OPENPIC_TIMERS,4,2             ## @OPENPIC_TIMERS
	.comm	_OPENPIC_SRC_VECTOR_COUNT,4,2   ## @OPENPIC_SRC_VECTOR_COUNT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_openpic_resume                 ; -- Begin function openpic_resume
	.p2align	2
_openpic_resume:                        ; @openpic_resume
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	bl	_device_get_softc
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _OPENPIC_CONFIG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OPENPIC_CONFIG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bus_read_4
	str	w0, [x19, #40]
Lloh3:
	adrp	x22, _OPENPIC_NIPIS@GOTPAGE
Lloh4:
	ldr	x22, [x22, _OPENPIC_NIPIS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_OPENPIC_IPI_VECTOR
	mov	x1, x0
	ldr	x8, [x19, #32]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x21
	bl	_bus_write_4
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w20, [x19, #8]
	mov	w0, #0
	bl	_OPENPIC_PCPU_TPR
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	w2, [x8]
	mov	x0, x20
	bl	_bus_write_4
	ldr	w20, [x19, #8]
	mov	w0, #1
	bl	_OPENPIC_PCPU_TPR
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_bus_write_4
	ldr	w20, [x19, #8]
	mov	w0, #2
	bl	_OPENPIC_PCPU_TPR
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #8]
	mov	x0, x20
	bl	_bus_write_4
	ldr	w20, [x19, #8]
	mov	w0, #3
	bl	_OPENPIC_PCPU_TPR
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldr	w2, [x8, #12]
	mov	x0, x20
	bl	_bus_write_4
Lloh5:
	adrp	x22, _OPENPIC_TIMERS@GOTPAGE
Lloh6:
	ldr	x22, [x22, _OPENPIC_TIMERS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #0
	b.le	LBB0_6
; %bb.4:
	mov	x23, #0
	mov	x20, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_OPENPIC_TCNT
	mov	x1, x0
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w2, [x8, #12]
	mov	x0, x21
	bl	_bus_write_4
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_OPENPIC_TBASE
	mov	x1, x0
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w2, [x8, #8]
	mov	x0, x21
	bl	_bus_write_4
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_OPENPIC_TVEC
	mov	x1, x0
	ldr	x8, [x19, #16]
	add	x8, x8, x23
	ldr	w2, [x8, #4]
	mov	x0, x21
	bl	_bus_write_4
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_OPENPIC_TDST
	mov	x1, x0
	ldr	x8, [x19, #16]
	ldr	w2, [x8, x23]
	mov	x0, x21
	bl	_bus_write_4
	add	x20, x20, #1
	ldrsw	x8, [x22]
	add	x23, x23, #16
	cmp	x20, x8
	b.lt	LBB0_5
LBB0_6:
Lloh7:
	adrp	x22, _OPENPIC_SRC_VECTOR_COUNT@GOTPAGE
Lloh8:
	ldr	x22, [x22, _OPENPIC_SRC_VECTOR_COUNT@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x20, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [x19, #8]
	mov	x0, x20
	bl	_OPENPIC_SRC_VECTOR
	mov	x1, x0
	ldr	x8, [x19]
	ldr	w2, [x8, x20, lsl #2]
	mov	x0, x21
	bl	_bus_write_4
	add	x20, x20, #1
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.lt	LBB0_8
LBB0_9:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_OPENPIC_CONFIG,4,2             ; @OPENPIC_CONFIG
	.comm	_OPENPIC_NIPIS,4,2              ; @OPENPIC_NIPIS
	.comm	_OPENPIC_TIMERS,4,2             ; @OPENPIC_TIMERS
	.comm	_OPENPIC_SRC_VECTOR_COUNT,4,2   ; @OPENPIC_SRC_VECTOR_COUNT
.subsections_via_symbols
