	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_init_ring_buffer
_r128_cce_init_ring_buffer:             ## @r128_cce_init_ring_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movq	(%r14), %rax
	subl	(%rax), %esi
	movq	_R128_PM4_BUFFER_OFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_R128_AGP_OFFSET@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	callq	_R128_WRITE
	movq	_R128_PM4_BUFFER_DL_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_R128_WRITE
	movq	_R128_PM4_BUFFER_DL_RPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_R128_WRITE
	movq	_R128_WATERMARK_L@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	3(%rax), %edx
	testl	%eax, %eax
	cmovnsl	%eax, %edx
	sarl	$2, %edx
	movq	_R128_WMA_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	movq	_R128_WATERMARK_M@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	3(%rcx), %eax
	testl	%ecx, %ecx
	cmovnsl	%ecx, %eax
	sarl	$2, %eax
	movq	_R128_WMB_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	movq	_R128_WATERMARK_N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	3(%rcx), %edx
	testl	%ecx, %ecx
	cmovnsl	%ecx, %edx
	sarl	$2, %edx
	movq	_R128_WMC_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	movq	_R128_WATERMARK_K@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	63(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$6, %esi
	movq	_R128_WB_WM_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %esi
	movq	_R128_PM4_BUFFER_WM_CNTL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	%edx, %esi
	orl	%eax, %esi
	callq	_R128_WRITE
	movq	_R128_PM4_BUFFER_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_R128_READ
	movq	_R128_BUS_CNTL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_R128_READ
	movq	_R128_BUS_MASTER_DIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_R128_WRITE                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_R128_PM4_BUFFER_OFFSET,4,2     ## @R128_PM4_BUFFER_OFFSET
	.comm	_R128_AGP_OFFSET,4,2            ## @R128_AGP_OFFSET
	.comm	_R128_PM4_BUFFER_DL_WPTR,4,2    ## @R128_PM4_BUFFER_DL_WPTR
	.comm	_R128_PM4_BUFFER_DL_RPTR,4,2    ## @R128_PM4_BUFFER_DL_RPTR
	.comm	_R128_PM4_BUFFER_WM_CNTL,4,2    ## @R128_PM4_BUFFER_WM_CNTL
	.comm	_R128_WATERMARK_L,4,2           ## @R128_WATERMARK_L
	.comm	_R128_WMA_SHIFT,4,2             ## @R128_WMA_SHIFT
	.comm	_R128_WATERMARK_M,4,2           ## @R128_WATERMARK_M
	.comm	_R128_WMB_SHIFT,4,2             ## @R128_WMB_SHIFT
	.comm	_R128_WATERMARK_N,4,2           ## @R128_WATERMARK_N
	.comm	_R128_WMC_SHIFT,4,2             ## @R128_WMC_SHIFT
	.comm	_R128_WATERMARK_K,4,2           ## @R128_WATERMARK_K
	.comm	_R128_WB_WM_SHIFT,4,2           ## @R128_WB_WM_SHIFT
	.comm	_R128_PM4_BUFFER_ADDR,4,2       ## @R128_PM4_BUFFER_ADDR
	.comm	_R128_BUS_CNTL,4,2              ## @R128_BUS_CNTL
	.comm	_R128_BUS_MASTER_DIS,4,2        ## @R128_BUS_MASTER_DIS
	.no_dead_strip	_r128_cce_init_ring_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_cce_init_ring_buffer
_r128_cce_init_ring_buffer:             ; @r128_cce_init_ring_buffer
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x19]
	ldr	w8, [x8]
	ldr	x9, [x20]
	ldr	w9, [x9]
Lloh2:
	adrp	x10, _R128_PM4_BUFFER_OFFSET@GOTPAGE
Lloh3:
	ldr	x10, [x10, _R128_PM4_BUFFER_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x10]
Lloh5:
	adrp	x10, _R128_AGP_OFFSET@GOTPAGE
Lloh6:
	ldr	x10, [x10, _R128_AGP_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	sub	w8, w8, w9
	orr	w1, w8, w10
	bl	_R128_WRITE
Lloh8:
	adrp	x8, _R128_PM4_BUFFER_DL_WPTR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _R128_PM4_BUFFER_DL_WPTR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_R128_WRITE
Lloh11:
	adrp	x8, _R128_PM4_BUFFER_DL_RPTR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R128_PM4_BUFFER_DL_RPTR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_R128_WRITE
Lloh14:
	adrp	x8, _R128_PM4_BUFFER_WM_CNTL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R128_PM4_BUFFER_WM_CNTL@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x8, _R128_WATERMARK_L@GOTPAGE
Lloh18:
	ldr	x8, [x8, _R128_WATERMARK_L@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
Lloh20:
	adrp	x9, _R128_WMA_SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _R128_WMA_SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsl	w8, w8, w9
Lloh23:
	adrp	x9, _R128_WATERMARK_M@GOTPAGE
Lloh24:
	ldr	x9, [x9, _R128_WATERMARK_M@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
Lloh26:
	adrp	x10, _R128_WMB_SHIFT@GOTPAGE
Lloh27:
	ldr	x10, [x10, _R128_WMB_SHIFT@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w9, w8
Lloh29:
	adrp	x9, _R128_WATERMARK_N@GOTPAGE
Lloh30:
	ldr	x9, [x9, _R128_WATERMARK_N@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
Lloh32:
	adrp	x10, _R128_WMC_SHIFT@GOTPAGE
Lloh33:
	ldr	x10, [x10, _R128_WMC_SHIFT@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w8, w8, w9
Lloh35:
	adrp	x9, _R128_WATERMARK_K@GOTPAGE
Lloh36:
	ldr	x9, [x9, _R128_WATERMARK_K@GOTPAGEOFF]
Lloh37:
	ldr	w9, [x9]
	add	w10, w9, #63
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #6
Lloh38:
	adrp	x10, _R128_WB_WM_SHIFT@GOTPAGE
Lloh39:
	ldr	x10, [x10, _R128_WB_WM_SHIFT@GOTPAGEOFF]
Lloh40:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w1, w8, w9
	bl	_R128_WRITE
Lloh41:
	adrp	x8, _R128_PM4_BUFFER_ADDR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _R128_PM4_BUFFER_ADDR@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
	bl	_R128_READ
Lloh44:
	adrp	x19, _R128_BUS_CNTL@GOTPAGE
Lloh45:
	ldr	x19, [x19, _R128_BUS_CNTL@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_R128_READ
Lloh46:
	adrp	x8, _R128_BUS_MASTER_DIS@GOTPAGE
Lloh47:
	ldr	x8, [x8, _R128_BUS_MASTER_DIS@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_R128_WRITE
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_R128_PM4_BUFFER_OFFSET,4,2     ; @R128_PM4_BUFFER_OFFSET
	.comm	_R128_AGP_OFFSET,4,2            ; @R128_AGP_OFFSET
	.comm	_R128_PM4_BUFFER_DL_WPTR,4,2    ; @R128_PM4_BUFFER_DL_WPTR
	.comm	_R128_PM4_BUFFER_DL_RPTR,4,2    ; @R128_PM4_BUFFER_DL_RPTR
	.comm	_R128_PM4_BUFFER_WM_CNTL,4,2    ; @R128_PM4_BUFFER_WM_CNTL
	.comm	_R128_WATERMARK_L,4,2           ; @R128_WATERMARK_L
	.comm	_R128_WMA_SHIFT,4,2             ; @R128_WMA_SHIFT
	.comm	_R128_WATERMARK_M,4,2           ; @R128_WATERMARK_M
	.comm	_R128_WMB_SHIFT,4,2             ; @R128_WMB_SHIFT
	.comm	_R128_WATERMARK_N,4,2           ; @R128_WATERMARK_N
	.comm	_R128_WMC_SHIFT,4,2             ; @R128_WMC_SHIFT
	.comm	_R128_WATERMARK_K,4,2           ; @R128_WATERMARK_K
	.comm	_R128_WB_WM_SHIFT,4,2           ; @R128_WB_WM_SHIFT
	.comm	_R128_PM4_BUFFER_ADDR,4,2       ; @R128_PM4_BUFFER_ADDR
	.comm	_R128_BUS_CNTL,4,2              ; @R128_BUS_CNTL
	.comm	_R128_BUS_MASTER_DIS,4,2        ; @R128_BUS_MASTER_DIS
	.no_dead_strip	_r128_cce_init_ring_buffer
.subsections_via_symbols
