	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i810_dma_dispatch_swap
_i810_dma_dispatch_swap:                ## @i810_dma_dispatch_swap
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r13
	movq	32(%r13), %rax
	movl	(%rax), %r12d
	movq	8(%rax), %r14
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	%rbx, %rdi
	callq	_i810_kernel_lost_context
	movq	_I810_NR_SAREA_CLIPRECTS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	cmpl	%r15d, %r12d
	cmovll	%r12d, %r15d
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	orl	$13369344, %eax                 ## imm = 0xCC0000
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r14
	decl	%r15d
	je	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movl	4(%r14), %edi
	movl	8(%r14), %edx
	movl	12(%r14), %ecx
	movl	%edx, %r12d
	subl	%ecx, %r12d
	setb	%al
	movl	%esi, %ebx
	subl	%edi, %ebx
	jb	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testb	%al, %al
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	4(%r13), %esi
	ja	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	8(%r13), %edx
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	leal	(%rcx,%rdi,2), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	$6, %edi
	callq	_BEGIN_LP_RING
	movq	_BR00_BITBLT_CLIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_BR00_OP_SRC_COPY_BLT@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	orl	$4, %edi
	callq	_OUT_RING
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	shll	$16, %r12d
	addl	%ebx, %ebx
	orl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	cmpq	$0, 16(%r13)
	setne	%al
	movl	24(%r13,%rax,4), %edi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	addl	%ebx, %edi
	callq	_OUT_RING
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_OUT_RING
	xorl	%eax, %eax
	cmpq	$0, 16(%r13)
	sete	%al
	movl	%ebx, %edi
	addl	24(%r13,%rax,4), %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_LP_RING
	jmp	LBB0_7
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"swapbuffers\n"

	.comm	_I810_NR_SAREA_CLIPRECTS,4,2    ## @I810_NR_SAREA_CLIPRECTS
	.comm	_BR00_BITBLT_CLIENT,4,2         ## @BR00_BITBLT_CLIENT
	.comm	_BR00_OP_SRC_COPY_BLT,4,2       ## @BR00_OP_SRC_COPY_BLT
	.no_dead_strip	_i810_dma_dispatch_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i810_dma_dispatch_swap
_i810_dma_dispatch_swap:                ; @i810_dma_dispatch_swap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x21, #32]
	ldr	w23, [x8]
	ldr	x22, [x8, #8]
	ldr	w19, [x21]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	x0, x20
	bl	_i810_kernel_lost_context
Lloh2:
	adrp	x8, _I810_NR_SAREA_CLIPRECTS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _I810_NR_SAREA_CLIPRECTS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w23, w8
	csel	w23, w23, w8, lt
	cmp	w23, #1
	b.lt	LBB0_7
; %bb.1:
	mov	w8, #13369344
	orr	w20, w19, w8
	mov	w26, #28
	mov	w27, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #16
	subs	w23, w23, #1
	b.eq	LBB0_7
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w11, w8, [x22]
	ldp	w9, w10, [x22, #8]
	subs	w28, w11, w8
	ccmp	w9, w10, #0, hs
	b.lo	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w12, [x21, #4]
	cmp	w11, w12
	b.hi	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w11, [x21, #8]
	cmp	w9, w11
	b.hi	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w24, w9, w10
	mul	w9, w10, w19
	add	w25, w9, w8, lsl #1
	mov	w0, #6
	bl	_BEGIN_LP_RING
Lloh5:
	adrp	x8, _BR00_BITBLT_CLIENT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BR00_BITBLT_CLIENT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _BR00_OP_SRC_COPY_BLT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _BR00_OP_SRC_COPY_BLT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w8, w9
	orr	w0, w8, #0x4
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	lsl	w8, w24, #16
	orr	w0, w8, w28, lsl #1
	bl	_OUT_RING
	ldr	x8, [x21, #16]
	cmp	x8, #0
	csel	x8, x27, x26, eq
	ldr	w8, [x21, x8]
	add	w0, w8, w25
	bl	_OUT_RING
	mov	x0, x19
	bl	_OUT_RING
	ldr	x8, [x21, #16]
	cmp	x8, #0
	csel	x8, x26, x27, eq
	ldr	w8, [x21, x8]
	add	w0, w8, w25
	bl	_OUT_RING
	bl	_ADVANCE_LP_RING
	b	LBB0_2
LBB0_7:
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"swapbuffers\n"

	.comm	_I810_NR_SAREA_CLIPRECTS,4,2    ; @I810_NR_SAREA_CLIPRECTS
	.comm	_BR00_BITBLT_CLIENT,4,2         ; @BR00_BITBLT_CLIENT
	.comm	_BR00_OP_SRC_COPY_BLT,4,2       ; @BR00_OP_SRC_COPY_BLT
	.no_dead_strip	_i810_dma_dispatch_swap
.subsections_via_symbols
