	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i810_dma_vertex
_i810_dma_vertex:                       ## @i810_dma_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	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r13
	movq	8(%rdi), %r12
	movq	8(%r13), %r15
	movq	16(%r13), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rsi
	callq	_LOCK_TEST_WITH_RETURN
	movq	(%rbx), %rsi
	movl	8(%rbx), %edx
	movl	12(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	(%rbx), %rax
	cmpq	(%r12), %rax
	jae	LBB0_1
## %bb.2:
	movq	8(%r12), %rcx
	movl	(%rcx,%rax,4), %esi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	movq	%r14, %rdi
	callq	_i810_dma_dispatch_vertex
	movq	(%r13), %rax
	decq	%rax
	movq	%rax, 8(%r15)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	40(%rax), %eax
	movl	%eax, (%r15)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"idx %d used %d discard %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_i810_dma_vertex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i810_dma_vertex
_i810_dma_vertex:                       ; @i810_dma_vertex
	.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	x20, x1
	mov	x19, x0
	ldp	x23, x24, [x0]
	ldp	x21, x22, [x23, #8]
	mov	x1, x2
	bl	_LOCK_TEST_WITH_RETURN
	ldr	x1, [x20]
	ldp	w2, w3, [x20, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x8, [x20]
	ldr	x9, [x24]
	cmp	x8, x9
	b.hs	LBB0_2
; %bb.1:
	ldr	x9, [x24, #8]
	ldr	w1, [x9, x8, lsl #2]
	ldp	w3, w2, [x20, #8]
	mov	x0, x19
	bl	_i810_dma_dispatch_vertex
	mov	w0, #0
	ldr	x8, [x23]
	sub	x8, x8, #1
	str	x8, [x21, #8]
	ldr	x8, [x22, #40]
	str	w8, [x21]
	b	LBB0_3
LBB0_2:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"idx %d used %d discard %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_i810_dma_vertex
.subsections_via_symbols
