	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_emit_clip_rect
_radeon_emit_clip_rect:                 ## @radeon_emit_clip_rect
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movl	(%rsi), %esi
	movl	4(%rbx), %edx
	movl	8(%rbx), %ecx
	movl	12(%rbx), %r8d
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG
	movl	$4, %edi
	callq	_BEGIN_RING
	movq	_RADEON_RE_TOP_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	4(%rbx), %edi
	shll	$16, %edi
	orl	(%rbx), %edi
	callq	_OUT_RING
	movq	_RADEON_RE_WIDTH_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_CP_PACKET0
	movl	%eax, %edi
	callq	_OUT_RING
	movl	8(%rbx), %edi
	movl	12(%rbx), %eax
	shll	$16, %eax
	addl	$-65536, %eax                   ## imm = 0xFFFF0000
	decl	%edi
	orl	%eax, %edi
	callq	_OUT_RING
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	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	"   box:  x1=%d y1=%d  x2=%d y2=%d\n"

	.comm	_RADEON_RE_TOP_LEFT,4,2         ## @RADEON_RE_TOP_LEFT
	.comm	_RADEON_RE_WIDTH_HEIGHT,4,2     ## @RADEON_RE_WIDTH_HEIGHT
	.no_dead_strip	_radeon_emit_clip_rect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_emit_clip_rect
_radeon_emit_clip_rect:                 ; @radeon_emit_clip_rect
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	ldr	w1, [x1]
	ldp	w2, w3, [x19, #4]
	ldr	w4, [x19, #12]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG
	mov	w0, #4
	bl	_BEGIN_RING
Lloh2:
	adrp	x8, _RADEON_RE_TOP_LEFT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RADEON_RE_TOP_LEFT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	ldp	w9, w8, [x19]
	orr	w0, w9, w8, lsl #16
	bl	_OUT_RING
Lloh5:
	adrp	x8, _RADEON_RE_WIDTH_HEIGHT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RADEON_RE_WIDTH_HEIGHT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_CP_PACKET0
	bl	_OUT_RING
	ldp	w9, w8, [x19, #8]
	lsl	w8, w8, #16
	sub	w8, w8, #16, lsl #12            ; =65536
	sub	w9, w9, #1
	orr	w0, w8, w9
	bl	_OUT_RING
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ADVANCE_RING
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RING_LOCALS,4,2                ; @RING_LOCALS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"   box:  x1=%d y1=%d  x2=%d y2=%d\n"

	.comm	_RADEON_RE_TOP_LEFT,4,2         ; @RADEON_RE_TOP_LEFT
	.comm	_RADEON_RE_WIDTH_HEIGHT,4,2     ; @RADEON_RE_WIDTH_HEIGHT
	.no_dead_strip	_radeon_emit_clip_rect
.subsections_via_symbols
