	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_vertex
_r128_cce_vertex:                       ## @r128_cce_vertex
	.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	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	8(%rdi), %r12
	movq	%rdx, %rsi
	callq	_LOCK_TEST_WITH_RETURN
	movq	%r12, %rdi
	callq	_DEV_INIT_TEST_WITH_RETURN
	movq	_DRM_CURRENTPID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rdx
	movl	20(%rbx), %ecx
	movl	16(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	(%rbx), %rsi
	movq	(%r13), %rdx
	cmpq	%rdx, %rsi
	jae	LBB0_1
## %bb.3:
	movq	8(%rbx), %rsi
	testq	%rsi, %rsi
	js	LBB0_5
## %bb.4:
	movq	_R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jg	LBB0_5
## %bb.8:
	movq	%r12, %rdi
	callq	_RING_SPACE_TEST_WITH_RETURN
	movq	%r12, %rdi
	callq	_VB_AGE_TEST_WITH_RETURN
	movq	8(%r13), %rcx
	movq	(%rbx), %rax
	movq	(%rcx,%rax,8), %rsi
	movq	16(%rsi), %rdx
	cmpq	%r15, %rdx
	je	LBB0_10
## %bb.9:
	movq	_DRM_CURRENTPID@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	decq	%rdx
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_DRM_ERROR
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%eax, %eax
	callq	_DRM_ERROR
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpq	$0, 8(%rsi)
	je	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%rax, %rsi
	jmp	LBB0_6
LBB0_12:
	movq	24(%rsi), %rax
	movl	20(%rbx), %ecx
	movl	%ecx, (%rsi)
	movq	8(%rbx), %rcx
	movq	%rcx, (%rax)
	movl	16(%rbx), %ecx
	movl	%ecx, 8(%rax)
	movq	%r14, %rdi
	callq	_r128_cce_dispatch_vertex
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_COMMIT_RING
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pid=%d index=%d count=%d discard=%d\n"

	.comm	_DRM_CURRENTPID,4,2             ## @DRM_CURRENTPID
L_.str.1:                               ## @.str.1
	.asciz	"buffer index %d (of %d max)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2,8,3 ## @R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2
L_.str.2:                               ## @.str.2
	.asciz	"buffer prim %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"process %d using buffer owned by %p\n"

L_.str.4:                               ## @.str.4
	.asciz	"sending pending buffer %d\n"

	.no_dead_strip	_r128_cce_vertex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_cce_vertex
_r128_cce_vertex:                       ; @r128_cce_vertex
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldp	x23, x22, [x0]
	mov	x1, x2
	bl	_LOCK_TEST_WITH_RETURN
	mov	x0, x22
	bl	_DEV_INIT_TEST_WITH_RETURN
Lloh0:
	adrp	x24, _DRM_CURRENTPID@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DRM_CURRENTPID@GOTPAGEOFF]
	ldr	w1, [x24]
	ldr	x2, [x20]
	ldp	w4, w3, [x20, #16]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x1, [x20]
	ldr	x8, [x23]
	cmp	x1, x8
	b.hs	LBB0_5
; %bb.1:
	ldr	x1, [x20, #8]
	tbnz	x1, #63, LBB0_6
; %bb.2:
Lloh4:
	adrp	x8, _R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2@GOTPAGE
Lloh5:
	ldr	x8, [x8, _R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x1, x8
	b.gt	LBB0_6
; %bb.3:
	mov	x0, x22
	bl	_RING_SPACE_TEST_WITH_RETURN
	mov	x0, x22
	bl	_VB_AGE_TEST_WITH_RETURN
	ldr	x9, [x23, #8]
	ldr	x8, [x20]
	ldr	x1, [x9, x8, lsl #3]
	ldr	x9, [x1, #16]
	cmp	x9, x21
	b.eq	LBB0_9
; %bb.4:
	ldrsw	x1, [x24]
	str	x9, [sp]
Lloh7:
	adrp	x0, l_.str.3@PAGE
Lloh8:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_5:
	sub	x8, x8, #1
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh11:
	adrp	x0, l_.str.2@PAGE
Lloh12:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_DRM_ERROR
Lloh13:
	adrp	x8, _EINVAL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_9:
	ldr	x9, [x1, #8]
	cbz	x9, LBB0_11
; %bb.10:
Lloh16:
	adrp	x0, l_.str.4@PAGE
Lloh17:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x8
	b	LBB0_7
LBB0_11:
	ldr	x8, [x1, #24]
	ldp	w10, w9, [x20, #16]
	str	w9, [x1]
	ldr	x9, [x20, #8]
	str	x9, [x8]
	str	w10, [x8, #8]
	mov	x0, x19
	bl	_r128_cce_dispatch_vertex
	bl	_COMMIT_RING
	mov	w0, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pid=%d index=%d count=%d discard=%d\n"

	.comm	_DRM_CURRENTPID,4,2             ; @DRM_CURRENTPID
l_.str.1:                               ; @.str.1
	.asciz	"buffer index %d (of %d max)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2,8,3 ; @R128_CCE_VC_CNTL_PRIM_TYPE_TRI_TYPE2
l_.str.2:                               ; @.str.2
	.asciz	"buffer prim %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"process %d using buffer owned by %p\n"

l_.str.4:                               ; @.str.4
	.asciz	"sending pending buffer %d\n"

	.no_dead_strip	_r128_cce_vertex
.subsections_via_symbols
