	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl310_set_ram_latency          ## -- Begin function pl310_set_ram_latency
	.p2align	4, 0x90
_pl310_set_ram_latency:                 ## @pl310_set_ram_latency
	.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
	movq	%rsi, %r15
	movq	_PL310_TAG_RAM_CTRL@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	sete	%al
	movq	_PL310_DATA_RAM_CTRL@GOTPCREL(%rip), %rsi
	cmpq	%r15, (%rsi)
	movq	%r8, %r14
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rdi, %rbx
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pl310_read4
	movq	%rax, %rbx
	testq	%r14, %r14
	je	LBB0_2
## %bb.1:
	xorl	%edi, %edi
	cmpq	$9, %r14
	setl	%dil
	movq	%r14, %rsi
	callq	_KASSERT
	movq	_RAM_CTRL_SETUP_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
	decq	%r14
	movq	_RAM_CTRL_SETUP_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r14
	orq	%r14, %rbx
LBB0_2:
	testq	%r13, %r13
	je	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	$9, %r13
	setl	%dil
	movq	%r13, %rsi
	callq	_KASSERT
	movq	_RAM_CTRL_READ_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
	decq	%r13
	movq	_RAM_CTRL_READ_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r13
	orq	%r13, %rbx
LBB0_4:
	testq	%r12, %r12
	je	LBB0_6
## %bb.5:
	xorl	%edi, %edi
	cmpq	$9, %r12
	setl	%dil
	movq	%r12, %rsi
	callq	_KASSERT
	movq	_RAM_CTRL_WRITE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	notq	%rax
	andq	%rax, %rbx
	decq	%r12
	movq	_RAM_CTRL_WRITE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shlq	%cl, %r12
	orq	%r12, %rbx
LBB0_6:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pl310_write4                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PL310_TAG_RAM_CTRL,8,3         ## @PL310_TAG_RAM_CTRL
	.comm	_PL310_DATA_RAM_CTRL,8,3        ## @PL310_DATA_RAM_CTRL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad pl310 ram latency register address"

	.comm	_RAM_CTRL_SETUP_MASK,8,3        ## @RAM_CTRL_SETUP_MASK
	.comm	_RAM_CTRL_SETUP_SHIFT,8,3       ## @RAM_CTRL_SETUP_SHIFT
	.comm	_RAM_CTRL_READ_MASK,8,3         ## @RAM_CTRL_READ_MASK
	.comm	_RAM_CTRL_READ_SHIFT,8,3        ## @RAM_CTRL_READ_SHIFT
	.comm	_RAM_CTRL_WRITE_MASK,8,3        ## @RAM_CTRL_WRITE_MASK
	.comm	_RAM_CTRL_WRITE_SHIFT,8,3       ## @RAM_CTRL_WRITE_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl310_set_ram_latency          ; -- Begin function pl310_set_ram_latency
	.p2align	2
_pl310_set_ram_latency:                 ; @pl310_set_ram_latency
	.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
	mov	x24, x4
	mov	x21, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _PL310_TAG_RAM_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PL310_TAG_RAM_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
Lloh3:
	adrp	x8, _PL310_DATA_RAM_CTRL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PL310_DATA_RAM_CTRL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x8, x1, #4, ne
	cset	w0, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x20
	mov	x1, x19
	bl	_pl310_read4
	mov	x22, x0
	cbz	x24, LBB0_2
; %bb.1:
	cmp	x24, #9
	cset	w0, lt
	mov	x1, x24
	bl	_KASSERT
Lloh8:
	adrp	x8, _RAM_CTRL_SETUP_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RAM_CTRL_SETUP_MASK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	bic	x8, x22, x8
	sub	x9, x24, #1
Lloh11:
	adrp	x10, _RAM_CTRL_SETUP_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RAM_CTRL_SETUP_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x22, x9, x8
LBB0_2:
	cbz	x23, LBB0_4
; %bb.3:
	cmp	x23, #9
	cset	w0, lt
	mov	x1, x23
	bl	_KASSERT
Lloh14:
	adrp	x8, _RAM_CTRL_READ_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RAM_CTRL_READ_MASK@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	bic	x8, x22, x8
	sub	x9, x23, #1
Lloh17:
	adrp	x10, _RAM_CTRL_READ_SHIFT@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RAM_CTRL_READ_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x22, x9, x8
LBB0_4:
	cbz	x21, LBB0_6
; %bb.5:
	cmp	x21, #9
	cset	w0, lt
	mov	x1, x21
	bl	_KASSERT
Lloh20:
	adrp	x8, _RAM_CTRL_WRITE_MASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RAM_CTRL_WRITE_MASK@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	bic	x8, x22, x8
	sub	x9, x21, #1
Lloh23:
	adrp	x10, _RAM_CTRL_WRITE_SHIFT@GOTPAGE
Lloh24:
	ldr	x10, [x10, _RAM_CTRL_WRITE_SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	lsl	x9, x9, x10
	orr	x22, x9, x8
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	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
	b	_pl310_write4
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_PL310_TAG_RAM_CTRL,8,3         ; @PL310_TAG_RAM_CTRL
	.comm	_PL310_DATA_RAM_CTRL,8,3        ; @PL310_DATA_RAM_CTRL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad pl310 ram latency register address"

	.comm	_RAM_CTRL_SETUP_MASK,8,3        ; @RAM_CTRL_SETUP_MASK
	.comm	_RAM_CTRL_SETUP_SHIFT,8,3       ; @RAM_CTRL_SETUP_SHIFT
	.comm	_RAM_CTRL_READ_MASK,8,3         ; @RAM_CTRL_READ_MASK
	.comm	_RAM_CTRL_READ_SHIFT,8,3        ; @RAM_CTRL_READ_SHIFT
	.comm	_RAM_CTRL_WRITE_MASK,8,3        ; @RAM_CTRL_WRITE_MASK
	.comm	_RAM_CTRL_WRITE_SHIFT,8,3       ; @RAM_CTRL_WRITE_SHIFT
.subsections_via_symbols
