	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_cce_dispatch_swap
_r128_cce_dispatch_swap:                ## @r128_cce_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), %r13
	movq	24(%r13), %rax
	movl	(%rax), %ebx
	movq	8(%rax), %r15
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	shlq	$4, -56(%rbp)                   ## 8-byte Folded Spill
	xorl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15,%r12), %ebx
	movl	4(%r15,%r12), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	8(%r15,%r12), %r14d
	subl	%ebx, %r14d
	movl	12(%r15,%r12), %eax
	subl	%ecx, %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	$7, %edi
	callq	_BEGIN_RING
	movq	_R128_CNTL_BITBLT_MULTI@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$5, %esi
	callq	_CCE_PACKET3
	movl	%eax, %edi
	callq	_OUT_RING
	movq	_R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_R128_GMC_BRUSH_NONE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r13), %edi
	shll	$8, %edi
	orl	%eax, %edi
	movq	_R128_GMC_SRC_DATATYPE_COLOR@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_ROP3_S@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_DP_SRC_SOURCE_MEMORY@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_GMC_CLR_CMP_CNTL_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_GMC_AUX_CLIP_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	movq	_R128_GMC_WR_MSK_DIS@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	callq	_OUT_RING
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	cmpq	$0, 8(%r13)
	sete	%r15b
	setne	%al
	movl	16(%r13,%rax,4), %edi
	callq	_OUT_RING
	movl	16(%r13,%r15,4), %edi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	callq	_OUT_RING
	shll	$16, %ebx
	orl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	%ebx, %edi
	callq	_OUT_RING
	movl	%ebx, %edi
	callq	_OUT_RING
	shll	$16, %r14d
	orl	-48(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	callq	_ADVANCE_RING
	addq	$16, %r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_2
LBB0_3:
	movq	24(%r13), %rax
	incl	4(%rax)
	movl	$2, %edi
	callq	_BEGIN_RING
	movq	_R128_LAST_FRAME_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CCE_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movq	24(%r13), %rax
	movl	4(%rax), %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ADVANCE_RING                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RING_LOCALS,4,2                ## @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_R128_CNTL_BITBLT_MULTI,4,2     ## @R128_CNTL_BITBLT_MULTI
	.comm	_R128_GMC_SRC_PITCH_OFFSET_CNTL,4,2 ## @R128_GMC_SRC_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_DST_PITCH_OFFSET_CNTL,4,2 ## @R128_GMC_DST_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_BRUSH_NONE,4,2        ## @R128_GMC_BRUSH_NONE
	.comm	_R128_GMC_SRC_DATATYPE_COLOR,4,2 ## @R128_GMC_SRC_DATATYPE_COLOR
	.comm	_R128_ROP3_S,4,2                ## @R128_ROP3_S
	.comm	_R128_DP_SRC_SOURCE_MEMORY,4,2  ## @R128_DP_SRC_SOURCE_MEMORY
	.comm	_R128_GMC_CLR_CMP_CNTL_DIS,4,2  ## @R128_GMC_CLR_CMP_CNTL_DIS
	.comm	_R128_GMC_AUX_CLIP_DIS,4,2      ## @R128_GMC_AUX_CLIP_DIS
	.comm	_R128_GMC_WR_MSK_DIS,4,2        ## @R128_GMC_WR_MSK_DIS
	.comm	_R128_LAST_FRAME_REG,4,2        ## @R128_LAST_FRAME_REG
	.no_dead_strip	_r128_cce_dispatch_swap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_cce_dispatch_swap
_r128_cce_dispatch_swap:                ; @r128_cce_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
	ldr	x20, [x0]
	ldr	x8, [x20, #24]
	ldr	w21, [x8]
	ldr	x19, [x8, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	cmp	w21, #1
	b.lt	LBB0_3
; %bb.1:
	add	x22, x19, #8
	mov	w26, #20
	mov	w27, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w19, w25, [x22, #-8]
	ldp	w8, w9, [x22], #16
	sub	w23, w8, w19
	sub	w24, w9, w25
	mov	w0, #7
	bl	_BEGIN_RING
Lloh2:
	adrp	x8, _R128_CNTL_BITBLT_MULTI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R128_CNTL_BITBLT_MULTI@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #5
	bl	_CCE_PACKET3
	bl	_OUT_RING
Lloh5:
	adrp	x8, _R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R128_GMC_SRC_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGE
Lloh9:
	ldr	x9, [x9, _R128_GMC_DST_PITCH_OFFSET_CNTL@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _R128_GMC_BRUSH_NONE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _R128_GMC_BRUSH_NONE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
	ldr	w9, [x20]
	orr	w8, w8, w9, lsl #8
Lloh14:
	adrp	x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _R128_GMC_SRC_DATATYPE_COLOR@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh17:
	adrp	x9, _R128_ROP3_S@GOTPAGE
Lloh18:
	ldr	x9, [x9, _R128_ROP3_S@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh20:
	adrp	x9, _R128_DP_SRC_SOURCE_MEMORY@GOTPAGE
Lloh21:
	ldr	x9, [x9, _R128_DP_SRC_SOURCE_MEMORY@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh23:
	adrp	x9, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGE
Lloh24:
	ldr	x9, [x9, _R128_GMC_CLR_CMP_CNTL_DIS@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh26:
	adrp	x9, _R128_GMC_AUX_CLIP_DIS@GOTPAGE
Lloh27:
	ldr	x9, [x9, _R128_GMC_AUX_CLIP_DIS@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh29:
	adrp	x9, _R128_GMC_WR_MSK_DIS@GOTPAGE
Lloh30:
	ldr	x9, [x9, _R128_GMC_WR_MSK_DIS@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w0, w8, w9
	bl	_OUT_RING
	ldr	x8, [x20, #8]
	cmp	x8, #0
	csel	x8, x27, x26, eq
	csel	x28, x26, x27, eq
	ldr	w0, [x20, x8]
	bl	_OUT_RING
	ldr	w0, [x20, x28]
	bl	_OUT_RING
	orr	w19, w25, w19, lsl #16
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x19
	bl	_OUT_RING
	orr	w0, w24, w23, lsl #16
	bl	_OUT_RING
	bl	_ADVANCE_RING
	subs	x21, x21, #1
	b.ne	LBB0_2
LBB0_3:
	ldr	x8, [x20, #24]
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
	mov	w0, #2
	bl	_BEGIN_RING
Lloh32:
	adrp	x8, _R128_LAST_FRAME_REG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _R128_LAST_FRAME_REG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CCE_PACKET0
	bl	_OUT_RING
	ldr	x8, [x20, #24]
	ldr	w0, [x8, #4]
	bl	_OUT_RING
	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
	b	_ADVANCE_RING
	.loh AdrpAdd	Lloh0, Lloh1
	.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 AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_R128_CNTL_BITBLT_MULTI,4,2     ; @R128_CNTL_BITBLT_MULTI
	.comm	_R128_GMC_SRC_PITCH_OFFSET_CNTL,4,2 ; @R128_GMC_SRC_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_DST_PITCH_OFFSET_CNTL,4,2 ; @R128_GMC_DST_PITCH_OFFSET_CNTL
	.comm	_R128_GMC_BRUSH_NONE,4,2        ; @R128_GMC_BRUSH_NONE
	.comm	_R128_GMC_SRC_DATATYPE_COLOR,4,2 ; @R128_GMC_SRC_DATATYPE_COLOR
	.comm	_R128_ROP3_S,4,2                ; @R128_ROP3_S
	.comm	_R128_DP_SRC_SOURCE_MEMORY,4,2  ; @R128_DP_SRC_SOURCE_MEMORY
	.comm	_R128_GMC_CLR_CMP_CNTL_DIS,4,2  ; @R128_GMC_CLR_CMP_CNTL_DIS
	.comm	_R128_GMC_AUX_CLIP_DIS,4,2      ; @R128_GMC_AUX_CLIP_DIS
	.comm	_R128_GMC_WR_MSK_DIS,4,2        ; @R128_GMC_WR_MSK_DIS
	.comm	_R128_LAST_FRAME_REG,4,2        ; @R128_LAST_FRAME_REG
	.no_dead_strip	_r128_cce_dispatch_swap
.subsections_via_symbols
