	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pl310_attach
_pl310_attach:                          ## @pl310_attach
	.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
	movl	%edi, %r14d
	callq	_device_get_softc
	movq	%rax, %rbx
	movl	%r14d, 48(%rax)
	movl	$0, -44(%rbp)
	movq	_SYS_RES_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_ACTIVE@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 40(%rbx)
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r14d, %edi
	callq	_device_get_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_panic
LBB0_2:
	movl	$0, -44(%rbp)
	movq	_SYS_RES_IRQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_RF_SHAREABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	(%r15), %ecx
	leaq	-44(%rbp), %rdx
	movl	%r14d, %edi
	callq	_bus_alloc_resource_any
	movq	%rax, 24(%rbx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_4:
	movq	_pl310_softc@GOTPCREL(%rip), %r12
	movq	%rbx, (%r12)
	movq	%rbx, %rdi
	addq	$32, %rdi
	movq	_MTX_SPIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	xorl	%edx, %edx
	callq	_mtx_init
	movq	_PL310_CACHE_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pl310_read4
	movq	_CACHE_ID_RELEASE_SHIFT@GOTPCREL(%rip), %rsi
	movb	(%rsi), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_CACHE_ID_RELEASE_MASK@GOTPCREL(%rip), %rdi
	andl	(%rdi), %edx
	movl	%edx, (%rbx)
	movq	_CACHE_ID_PARTNUM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edx
	sarl	%cl, %edx
	movq	_CACHE_ID_PARTNUM_MASK@GOTPCREL(%rip), %r8
	movb	(%rsi), %cl
	sarl	%cl, %eax
	andl	(%r8), %edx
	andl	(%rdi), %eax
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_device_printf
	movl	%r14d, %edi
	callq	_ofw_bus_get_node
	leaq	L_.str.4(%rip), %rsi
	movl	%eax, %edi
	callq	_OF_hasprop
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	$1, 4(%rbx)
LBB0_6:
	movq	_PL310_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pl310_read4
	movq	_CTRL_ENABLED@GOTPCREL(%rip), %r13
	testl	%eax, (%r13)
	je	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movl	$1, 8(%rbx)
	movq	_PL310_DEBUG_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_pl310_read4
	movl	%eax, %r15d
	movq	_DEBUG_CTRL_DISABLE_WRITEBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r15d, %esi
	movq	_DEBUG_CTRL_DISABLE_LINEFILL@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_platform_pl310_write_debug
	movq	%rbx, %rdi
	callq	_pl310_set_way_sizes
	xorl	%eax, %eax
	callq	_pl310_wbinv_all
	movq	_CTRL_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_platform_pl310_write_ctrl
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_platform_pl310_write_debug
LBB0_8:
	movq	_pl310_enabled@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_platform_pl310_init
	movq	%rbx, %rdi
	callq	_pl310_set_way_sizes
	movq	(%r12), %rdi
	movq	_PL310_INV_WAY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movl	$65535, %edx                    ## imm = 0xFFFF
	callq	_pl310_write4
	movl	(%r15), %edi
	movl	$65535, %esi                    ## imm = 0xFFFF
	callq	_pl310_wait_background_op
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_platform_pl310_write_ctrl
	movq	_g_l2cache_size@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	1023(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$10, %edx
	movq	_g_l2cache_line_size@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_g_ways_assoc@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.6(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	_bootverbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_15
## %bb.10:
	movq	%rbx, %rdi
	callq	_pl310_print_config
	jmp	LBB0_15
LBB0_11:
	cmpq	$0, 24(%rbx)
	je	LBB0_14
## %bb.12:
	movq	_M_DEVBUF@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$16, %edi
	callq	_malloc
	movq	%rax, 16(%rbx)
	movq	_pl310_config_intr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rax)
	movq	%rbx, (%rax)
	movq	%rax, %rdi
	callq	_config_intrhook_establish
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.7(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
	movq	16(%rbx), %rdi
	movl	(%r15), %esi
	callq	_free
	movq	_ENXIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_16
LBB0_14:
	leaq	L_.str.8(%rip), %rsi
	movl	%r14d, %edi
	xorl	%eax, %eax
	callq	_device_printf
LBB0_15:
	movq	_pl310_wbinv_all@GOTPCREL(%rip), %rax
	movq	_cpufuncs@GOTPCREL(%rip), %rcx
	movq	%rax, 16(%rcx)
	movq	_pl310_wbinv_range@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rcx)
	movq	_pl310_inv_range@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rcx)
	movq	_pl310_wb_range@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	_pl310_drain_writebuf@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	xorl	%eax, %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SYS_RES_MEMORY,4,2             ## @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ## @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Cannot map registers"

	.comm	_SYS_RES_IRQ,4,2                ## @SYS_RES_IRQ
	.comm	_RF_SHAREABLE,4,2               ## @RF_SHAREABLE
L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate IRQ, not using interrupt\n"

	.comm	_pl310_softc,8,3                ## @pl310_softc
L_.str.2:                               ## @.str.2
	.asciz	"pl310lock"

	.comm	_MTX_SPIN,4,2                   ## @MTX_SPIN
	.comm	_PL310_CACHE_ID,4,2             ## @PL310_CACHE_ID
	.comm	_CACHE_ID_RELEASE_SHIFT,4,2     ## @CACHE_ID_RELEASE_SHIFT
	.comm	_CACHE_ID_RELEASE_MASK,4,2      ## @CACHE_ID_RELEASE_MASK
L_.str.3:                               ## @.str.3
	.asciz	"Part number: 0x%x, release: 0x%x\n"

	.comm	_CACHE_ID_PARTNUM_SHIFT,4,2     ## @CACHE_ID_PARTNUM_SHIFT
	.comm	_CACHE_ID_PARTNUM_MASK,4,2      ## @CACHE_ID_PARTNUM_MASK
L_.str.4:                               ## @.str.4
	.asciz	"arm,io-coherent"

	.comm	_PL310_CTRL,4,2                 ## @PL310_CTRL
	.comm	_CTRL_ENABLED,4,2               ## @CTRL_ENABLED
L_.str.5:                               ## @.str.5
	.asciz	"Warning: L2 Cache should not already be active; trying to de-activate and re-initialize...\n"

	.comm	_PL310_DEBUG_CTRL,4,2           ## @PL310_DEBUG_CTRL
	.comm	_DEBUG_CTRL_DISABLE_WRITEBACK,4,2 ## @DEBUG_CTRL_DISABLE_WRITEBACK
	.comm	_DEBUG_CTRL_DISABLE_LINEFILL,4,2 ## @DEBUG_CTRL_DISABLE_LINEFILL
	.comm	_CTRL_DISABLED,4,2              ## @CTRL_DISABLED
	.comm	_pl310_enabled,4,2              ## @pl310_enabled
	.comm	_PL310_INV_WAY,4,2              ## @PL310_INV_WAY
L_.str.6:                               ## @.str.6
	.asciz	"L2 Cache enabled: %uKB/%dB %d ways\n"

	.comm	_g_l2cache_size,4,2             ## @g_l2cache_size
	.comm	_g_l2cache_line_size,4,2        ## @g_l2cache_line_size
	.comm	_g_ways_assoc,4,2               ## @g_ways_assoc
	.comm	_bootverbose,8,3                ## @bootverbose
	.comm	_M_DEVBUF,4,2                   ## @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_pl310_config_intr,4,2          ## @pl310_config_intr
L_.str.7:                               ## @.str.7
	.asciz	"config_intrhook_establish failed\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.8:                               ## @.str.8
	.asciz	"L2 Cache disabled\n"

	.comm	_cpufuncs,24,3                  ## @cpufuncs
	.comm	_pl310_wbinv_range,4,2          ## @pl310_wbinv_range
	.comm	_pl310_inv_range,4,2            ## @pl310_inv_range
	.comm	_pl310_wb_range,4,2             ## @pl310_wb_range
	.comm	_pl310_drain_writebuf,4,2       ## @pl310_drain_writebuf
	.no_dead_strip	_pl310_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pl310_attach
_pl310_attach:                          ; @pl310_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	bl	_device_get_softc
	mov	x19, x0
	str	w20, [x0, #48]
	str	wzr, [sp, #28]
Lloh0:
	adrp	x8, _SYS_RES_MEMORY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SYS_RES_MEMORY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x21, _RF_ACTIVE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _RF_ACTIVE@GOTPAGEOFF]
	ldr	w3, [x21]
	add	x2, sp, #28
	mov	x0, x20
	bl	_bus_alloc_resource_any
	str	x0, [x19, #40]
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_device_get_name
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
	str	wzr, [sp, #28]
Lloh7:
	adrp	x8, _SYS_RES_IRQ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SYS_RES_IRQ@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _RF_SHAREABLE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RF_SHAREABLE@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	orr	w3, w9, w8
	add	x2, sp, #28
	mov	x0, x20
	bl	_bus_alloc_resource_any
	str	x0, [x19, #24]
	cbnz	x0, LBB0_4
; %bb.3:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_device_printf
LBB0_4:
Lloh15:
	adrp	x22, _pl310_softc@GOTPAGE
Lloh16:
	ldr	x22, [x22, _pl310_softc@GOTPAGEOFF]
	str	x19, [x22]
	add	x0, x19, #32
Lloh17:
	adrp	x8, _MTX_SPIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _MTX_SPIN@GOTPAGEOFF]
Lloh19:
	ldr	w3, [x8]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, #0
	bl	_mtx_init
Lloh22:
	adrp	x8, _PL310_CACHE_ID@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PL310_CACHE_ID@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pl310_read4
Lloh25:
	adrp	x8, _CACHE_ID_RELEASE_SHIFT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CACHE_ID_RELEASE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x8]
	asr	w9, w0, w9
Lloh27:
	adrp	x10, _CACHE_ID_RELEASE_MASK@GOTPAGE
Lloh28:
	ldr	x10, [x10, _CACHE_ID_RELEASE_MASK@GOTPAGEOFF]
	ldr	w11, [x10]
	and	w9, w9, w11
	str	w9, [x19]
Lloh29:
	adrp	x9, _CACHE_ID_PARTNUM_SHIFT@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CACHE_ID_PARTNUM_SHIFT@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	asr	w9, w0, w9
Lloh32:
	adrp	x11, _CACHE_ID_PARTNUM_MASK@GOTPAGE
Lloh33:
	ldr	x11, [x11, _CACHE_ID_PARTNUM_MASK@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	and	w9, w9, w11
	ldr	w8, [x8]
	asr	w8, w0, w8
	ldr	w10, [x10]
	and	w8, w8, w10
	stp	x9, x8, [sp]
Lloh35:
	adrp	x1, l_.str.3@PAGE
Lloh36:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	mov	x0, x20
	bl	_ofw_bus_get_node
Lloh37:
	adrp	x1, l_.str.4@PAGE
Lloh38:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_OF_hasprop
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x19, #4]
LBB0_6:
Lloh39:
	adrp	x8, _PL310_CTRL@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PL310_CTRL@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pl310_read4
Lloh42:
	adrp	x23, _CTRL_ENABLED@GOTPAGE
Lloh43:
	ldr	x23, [x23, _CTRL_ENABLED@GOTPAGEOFF]
	ldr	w8, [x23]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.7:
Lloh44:
	adrp	x1, l_.str.5@PAGE
Lloh45:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	mov	w8, #1
	str	w8, [x19, #8]
Lloh46:
	adrp	x8, _PL310_DEBUG_CTRL@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PL310_DEBUG_CTRL@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_pl310_read4
	mov	x21, x0
Lloh49:
	adrp	x8, _DEBUG_CTRL_DISABLE_WRITEBACK@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DEBUG_CTRL_DISABLE_WRITEBACK@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh52:
	adrp	x9, _DEBUG_CTRL_DISABLE_LINEFILL@GOTPAGE
Lloh53:
	ldr	x9, [x9, _DEBUG_CTRL_DISABLE_LINEFILL@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x19
	bl	_platform_pl310_write_debug
	mov	x0, x19
	bl	_pl310_set_way_sizes
	bl	_pl310_wbinv_all
Lloh55:
	adrp	x8, _CTRL_DISABLED@GOTPAGE
Lloh56:
	ldr	x8, [x8, _CTRL_DISABLED@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_platform_pl310_write_ctrl
	mov	x0, x19
	mov	x1, x21
	bl	_platform_pl310_write_debug
LBB0_8:
Lloh58:
	adrp	x8, _pl310_enabled@GOTPAGE
Lloh59:
	ldr	x8, [x8, _pl310_enabled@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	cbz	w8, LBB0_11
; %bb.9:
	mov	x0, x19
	bl	_platform_pl310_init
	mov	x0, x19
	bl	_pl310_set_way_sizes
	ldr	x0, [x22]
Lloh61:
	adrp	x21, _PL310_INV_WAY@GOTPAGE
Lloh62:
	ldr	x21, [x21, _PL310_INV_WAY@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #65535
	bl	_pl310_write4
	ldr	w0, [x21]
	mov	w1, #65535
	bl	_pl310_wait_background_op
	ldr	w1, [x23]
	mov	x0, x19
	bl	_platform_pl310_write_ctrl
Lloh63:
	adrp	x8, _g_l2cache_size@GOTPAGE
Lloh64:
	ldr	x8, [x8, _g_l2cache_size@GOTPAGEOFF]
Lloh65:
	ldr	w8, [x8]
	add	w9, w8, #1023
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #10
Lloh66:
	adrp	x9, _g_l2cache_line_size@GOTPAGE
Lloh67:
	ldr	x9, [x9, _g_l2cache_line_size@GOTPAGEOFF]
Lloh68:
	adrp	x10, _g_ways_assoc@GOTPAGE
Lloh69:
	ldr	x10, [x10, _g_ways_assoc@GOTPAGEOFF]
Lloh70:
	ldr	w9, [x9]
Lloh71:
	ldr	w10, [x10]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh72:
	adrp	x1, l_.str.6@PAGE
Lloh73:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_device_printf
Lloh74:
	adrp	x8, _bootverbose@GOTPAGE
Lloh75:
	ldr	x8, [x8, _bootverbose@GOTPAGEOFF]
Lloh76:
	ldr	x8, [x8]
	cbz	x8, LBB0_15
; %bb.10:
	mov	x0, x19
	bl	_pl310_print_config
	b	LBB0_15
LBB0_11:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_14
; %bb.12:
Lloh77:
	adrp	x21, _M_DEVBUF@GOTPAGE
Lloh78:
	ldr	x21, [x21, _M_DEVBUF@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh79:
	adrp	x8, _M_WAITOK@GOTPAGE
Lloh80:
	ldr	x8, [x8, _M_WAITOK@GOTPAGEOFF]
Lloh81:
	ldr	w2, [x8]
	mov	w0, #16
	bl	_malloc
	str	x0, [x19, #16]
Lloh82:
	adrp	x8, _pl310_config_intr@GOTPAGE
Lloh83:
	ldr	x8, [x8, _pl310_config_intr@GOTPAGEOFF]
Lloh84:
	ldr	w8, [x8]
	str	w8, [x0, #8]
	str	x19, [x0]
	bl	_config_intrhook_establish
	cbz	x0, LBB0_14
; %bb.13:
Lloh85:
	adrp	x1, l_.str.7@PAGE
Lloh86:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	bl	_device_printf
	ldr	x0, [x19, #16]
	ldr	w1, [x21]
	bl	_free
Lloh87:
	adrp	x8, _ENXIO@GOTPAGE
Lloh88:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh89:
	ldr	w0, [x8]
	b	LBB0_16
LBB0_14:
Lloh90:
	adrp	x1, l_.str.8@PAGE
Lloh91:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x20
	bl	_device_printf
LBB0_15:
	mov	w0, #0
Lloh92:
	adrp	x8, _cpufuncs@GOTPAGE
Lloh93:
	ldr	x8, [x8, _cpufuncs@GOTPAGEOFF]
Lloh94:
	adrp	x9, _pl310_wbinv_all@GOTPAGE
Lloh95:
	ldr	x9, [x9, _pl310_wbinv_all@GOTPAGEOFF]
	str	x9, [x8, #16]
Lloh96:
	adrp	x9, _pl310_wbinv_range@GOTPAGE
Lloh97:
	ldr	x9, [x9, _pl310_wbinv_range@GOTPAGEOFF]
Lloh98:
	adrp	x10, _pl310_inv_range@GOTPAGE
Lloh99:
	ldr	x10, [x10, _pl310_inv_range@GOTPAGEOFF]
Lloh100:
	ldr	w9, [x9]
Lloh101:
	ldr	w10, [x10]
	stp	w10, w9, [x8, #8]
Lloh102:
	adrp	x9, _pl310_wb_range@GOTPAGE
Lloh103:
	ldr	x9, [x9, _pl310_wb_range@GOTPAGEOFF]
Lloh104:
	ldr	w9, [x9]
Lloh105:
	adrp	x10, _pl310_drain_writebuf@GOTPAGE
Lloh106:
	ldr	x10, [x10, _pl310_drain_writebuf@GOTPAGEOFF]
Lloh107:
	ldr	w10, [x10]
	stp	w10, w9, [x8]
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh70
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpAdd	Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh98, Lloh99, Lloh101
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh100
	.loh AdrpLdrGot	Lloh94, Lloh95
	.loh AdrpLdrGot	Lloh92, Lloh93
	.cfi_endproc
                                        ; -- End function
	.comm	_SYS_RES_MEMORY,4,2             ; @SYS_RES_MEMORY
	.comm	_RF_ACTIVE,4,2                  ; @RF_ACTIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Cannot map registers"

	.comm	_SYS_RES_IRQ,4,2                ; @SYS_RES_IRQ
	.comm	_RF_SHAREABLE,4,2               ; @RF_SHAREABLE
l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate IRQ, not using interrupt\n"

	.comm	_pl310_softc,8,3                ; @pl310_softc
l_.str.2:                               ; @.str.2
	.asciz	"pl310lock"

	.comm	_MTX_SPIN,4,2                   ; @MTX_SPIN
	.comm	_PL310_CACHE_ID,4,2             ; @PL310_CACHE_ID
	.comm	_CACHE_ID_RELEASE_SHIFT,4,2     ; @CACHE_ID_RELEASE_SHIFT
	.comm	_CACHE_ID_RELEASE_MASK,4,2      ; @CACHE_ID_RELEASE_MASK
l_.str.3:                               ; @.str.3
	.asciz	"Part number: 0x%x, release: 0x%x\n"

	.comm	_CACHE_ID_PARTNUM_SHIFT,4,2     ; @CACHE_ID_PARTNUM_SHIFT
	.comm	_CACHE_ID_PARTNUM_MASK,4,2      ; @CACHE_ID_PARTNUM_MASK
l_.str.4:                               ; @.str.4
	.asciz	"arm,io-coherent"

	.comm	_PL310_CTRL,4,2                 ; @PL310_CTRL
	.comm	_CTRL_ENABLED,4,2               ; @CTRL_ENABLED
l_.str.5:                               ; @.str.5
	.asciz	"Warning: L2 Cache should not already be active; trying to de-activate and re-initialize...\n"

	.comm	_PL310_DEBUG_CTRL,4,2           ; @PL310_DEBUG_CTRL
	.comm	_DEBUG_CTRL_DISABLE_WRITEBACK,4,2 ; @DEBUG_CTRL_DISABLE_WRITEBACK
	.comm	_DEBUG_CTRL_DISABLE_LINEFILL,4,2 ; @DEBUG_CTRL_DISABLE_LINEFILL
	.comm	_CTRL_DISABLED,4,2              ; @CTRL_DISABLED
	.comm	_pl310_enabled,4,2              ; @pl310_enabled
	.comm	_PL310_INV_WAY,4,2              ; @PL310_INV_WAY
l_.str.6:                               ; @.str.6
	.asciz	"L2 Cache enabled: %uKB/%dB %d ways\n"

	.comm	_g_l2cache_size,4,2             ; @g_l2cache_size
	.comm	_g_l2cache_line_size,4,2        ; @g_l2cache_line_size
	.comm	_g_ways_assoc,4,2               ; @g_ways_assoc
	.comm	_bootverbose,8,3                ; @bootverbose
	.comm	_M_DEVBUF,4,2                   ; @M_DEVBUF
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_pl310_config_intr,4,2          ; @pl310_config_intr
l_.str.7:                               ; @.str.7
	.asciz	"config_intrhook_establish failed\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.8:                               ; @.str.8
	.asciz	"L2 Cache disabled\n"

	.comm	_cpufuncs,24,3                  ; @cpufuncs
	.comm	_pl310_wbinv_range,4,2          ; @pl310_wbinv_range
	.comm	_pl310_inv_range,4,2            ; @pl310_inv_range
	.comm	_pl310_wb_range,4,2             ; @pl310_wb_range
	.comm	_pl310_drain_writebuf,4,2       ; @pl310_drain_writebuf
	.no_dead_strip	_pl310_attach
.subsections_via_symbols
