	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r128_emit_clip_rects
_r128_emit_clip_rects:                  ## @r128_emit_clip_rects
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	cmpl	$3, %ebx
	movl	$3, %eax
	cmovll	%ebx, %eax
	leal	(%rax,%rax,4), %edi
	addl	$2, %edi
	callq	_BEGIN_RING
	testl	%ebx, %ebx
	jle	LBB0_1
## %bb.2:
	movq	_R128_AUX1_SC_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_CCE_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	(%r14), %edi
	callq	_OUT_RING
	movl	4(%r14), %edi
	decl	%edi
	callq	_OUT_RING
	movl	8(%r14), %edi
	callq	_OUT_RING
	movl	12(%r14), %edi
	decl	%edi
	callq	_OUT_RING
	movq	_R128_AUX1_SC_EN@GOTPCREL(%rip), %rax
	movq	_R128_AUX1_SC_MODE_OR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	cmpl	$1, %ebx
	je	LBB0_5
## %bb.3:
	movq	_R128_AUX2_SC_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_CCE_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	16(%r14), %edi
	callq	_OUT_RING
	movl	20(%r14), %edi
	decl	%edi
	callq	_OUT_RING
	movl	24(%r14), %edi
	callq	_OUT_RING
	movl	28(%r14), %edi
	decl	%edi
	callq	_OUT_RING
	movq	_R128_AUX2_SC_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	movq	_R128_AUX2_SC_MODE_OR@GOTPCREL(%rip), %rax
	orl	(%rax), %r15d
	cmpl	$3, %ebx
	jb	LBB0_5
## %bb.4:
	movq	_R128_AUX3_SC_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$3, %esi
	callq	_CCE_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	32(%r14), %edi
	callq	_OUT_RING
	movl	36(%r14), %edi
	decl	%edi
	callq	_OUT_RING
	movl	40(%r14), %edi
	callq	_OUT_RING
	movl	44(%r14), %edi
	decl	%edi
	callq	_OUT_RING
	movq	_R128_AUX3_SC_EN@GOTPCREL(%rip), %rax
	movq	_R128_AUX3_SC_MODE_OR@GOTPCREL(%rip), %rcx
	orl	(%rax), %r15d
	orl	(%rcx), %r15d
	jmp	LBB0_5
LBB0_1:
	xorl	%r15d, %r15d
LBB0_5:
	movq	_R128_AUX_SC_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CCE_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	%r15d, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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_AUX1_SC_LEFT,4,2          ## @R128_AUX1_SC_LEFT
	.comm	_R128_AUX1_SC_EN,4,2            ## @R128_AUX1_SC_EN
	.comm	_R128_AUX1_SC_MODE_OR,4,2       ## @R128_AUX1_SC_MODE_OR
	.comm	_R128_AUX2_SC_LEFT,4,2          ## @R128_AUX2_SC_LEFT
	.comm	_R128_AUX2_SC_EN,4,2            ## @R128_AUX2_SC_EN
	.comm	_R128_AUX2_SC_MODE_OR,4,2       ## @R128_AUX2_SC_MODE_OR
	.comm	_R128_AUX3_SC_LEFT,4,2          ## @R128_AUX3_SC_LEFT
	.comm	_R128_AUX3_SC_EN,4,2            ## @R128_AUX3_SC_EN
	.comm	_R128_AUX3_SC_MODE_OR,4,2       ## @R128_AUX3_SC_MODE_OR
	.comm	_R128_AUX_SC_CNTL,4,2           ## @R128_AUX_SC_CNTL
	.no_dead_strip	_r128_emit_clip_rects
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r128_emit_clip_rects
_r128_emit_clip_rects:                  ; @r128_emit_clip_rects
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x19, x1
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	w8, #3
	cmp	w21, #3
	csel	w8, w21, w8, lt
	add	w8, w8, w8, lsl #2
	add	w0, w8, #2
	bl	_BEGIN_RING
	cmp	w21, #1
	b.lt	LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _R128_AUX1_SC_LEFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R128_AUX1_SC_LEFT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_CCE_PACKET0
	bl	_OUT_RING
	ldr	w0, [x19]
	bl	_OUT_RING
	ldr	w8, [x19, #4]
	sub	w0, w8, #1
	bl	_OUT_RING
	ldr	w0, [x19, #8]
	bl	_OUT_RING
	ldr	w8, [x19, #12]
	sub	w0, w8, #1
	bl	_OUT_RING
Lloh5:
	adrp	x8, _R128_AUX1_SC_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R128_AUX1_SC_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _R128_AUX1_SC_MODE_OR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _R128_AUX1_SC_MODE_OR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w20, w9, w8
	cmp	w21, #1
	b.eq	LBB0_5
; %bb.2:
Lloh11:
	adrp	x8, _R128_AUX2_SC_LEFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R128_AUX2_SC_LEFT@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_CCE_PACKET0
	bl	_OUT_RING
	ldr	w0, [x19, #16]
	bl	_OUT_RING
	ldr	w8, [x19, #20]
	sub	w0, w8, #1
	bl	_OUT_RING
	ldr	w0, [x19, #24]
	bl	_OUT_RING
	ldr	w8, [x19, #28]
	sub	w0, w8, #1
	bl	_OUT_RING
Lloh14:
	adrp	x8, _R128_AUX2_SC_EN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _R128_AUX2_SC_EN@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _R128_AUX2_SC_MODE_OR@GOTPAGE
Lloh18:
	ldr	x9, [x9, _R128_AUX2_SC_MODE_OR@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
	cmp	w21, #3
	b.lo	LBB0_5
; %bb.3:
Lloh20:
	adrp	x8, _R128_AUX3_SC_LEFT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _R128_AUX3_SC_LEFT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	mov	w1, #3
	bl	_CCE_PACKET0
	bl	_OUT_RING
	ldr	w0, [x19, #32]
	bl	_OUT_RING
	ldr	w8, [x19, #36]
	sub	w0, w8, #1
	bl	_OUT_RING
	ldr	w0, [x19, #40]
	bl	_OUT_RING
	ldr	w8, [x19, #44]
	sub	w0, w8, #1
	bl	_OUT_RING
Lloh23:
	adrp	x8, _R128_AUX3_SC_EN@GOTPAGE
Lloh24:
	ldr	x8, [x8, _R128_AUX3_SC_EN@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x9, _R128_AUX3_SC_MODE_OR@GOTPAGE
Lloh27:
	ldr	x9, [x9, _R128_AUX3_SC_MODE_OR@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	orr	w8, w8, w20
	orr	w20, w8, w9
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
Lloh29:
	adrp	x8, _R128_AUX_SC_CNTL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _R128_AUX_SC_CNTL@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CCE_PACKET0
	bl	_OUT_RING
	mov	x0, x20
	bl	_OUT_RING
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ADVANCE_RING
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_R128_AUX1_SC_LEFT,4,2          ; @R128_AUX1_SC_LEFT
	.comm	_R128_AUX1_SC_EN,4,2            ; @R128_AUX1_SC_EN
	.comm	_R128_AUX1_SC_MODE_OR,4,2       ; @R128_AUX1_SC_MODE_OR
	.comm	_R128_AUX2_SC_LEFT,4,2          ; @R128_AUX2_SC_LEFT
	.comm	_R128_AUX2_SC_EN,4,2            ; @R128_AUX2_SC_EN
	.comm	_R128_AUX2_SC_MODE_OR,4,2       ; @R128_AUX2_SC_MODE_OR
	.comm	_R128_AUX3_SC_LEFT,4,2          ; @R128_AUX3_SC_LEFT
	.comm	_R128_AUX3_SC_EN,4,2            ; @R128_AUX3_SC_EN
	.comm	_R128_AUX3_SC_MODE_OR,4,2       ; @R128_AUX3_SC_MODE_OR
	.comm	_R128_AUX_SC_CNTL,4,2           ; @R128_AUX_SC_CNTL
	.no_dead_strip	_r128_emit_clip_rects
.subsections_via_symbols
