	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_fbcon_fillrect            ## -- Begin function nv50_fbcon_fillrect
	.p2align	4, 0x90
_nv50_fbcon_fillrect:                   ## @nv50_fbcon_fillrect
	.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, %r12
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_nouveau_drm
	movq	(%rax), %r15
	movq	(%rbx), %rax
	movq	_ROP_COPY@GOTPCREL(%rip), %r13
	xorl	%ecx, %ecx
	cmpq	(%r13), %rax
	setne	%cl
	leal	7(,%rcx,4), %esi
	movq	%r15, %rdi
	callq	_RING_SPACE
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_3
## %bb.2:
	movq	_NvSub2D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$684, %edx                      ## imm = 0x2AC
	movl	$1, %ecx
	callq	_BEGIN_NV04
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_OUT_RING
LBB0_3:
	movq	_NvSub2D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$1416, %edx                     ## imm = 0x588
	movl	$1, %ecx
	callq	_BEGIN_NV04
	movq	8(%r12), %rax
	movq	_FB_VISUAL_TRUECOLOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_FB_VISUAL_DIRECTCOLOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movl	8(%rbx), %esi
	jmp	LBB0_7
LBB0_5:
	movq	(%r12), %rax
	movq	8(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
LBB0_7:
	movq	%r15, %rdi
	callq	_OUT_RING
	movq	_NvSub2D@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$1536, %edx                     ## imm = 0x600
	movl	$4, %ecx
	callq	_BEGIN_NV04
	movl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movl	20(%rbx), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movl	24(%rbx), %esi
	addl	16(%rbx), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movl	28(%rbx), %esi
	addl	20(%rbx), %esi
	movq	%r15, %rdi
	callq	_OUT_RING
	movq	(%rbx), %rax
	cmpq	(%r13), %rax
	je	LBB0_9
## %bb.8:
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	$684, %edx                      ## imm = 0x2AC
	movl	$1, %ecx
	callq	_BEGIN_NV04
	movq	%r15, %rdi
	movl	$3, %esi
	callq	_OUT_RING
LBB0_9:
	movq	%r15, %rdi
	callq	_FIRE_RING
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROP_COPY,8,3                   ## @ROP_COPY
	.comm	_NvSub2D,4,2                    ## @NvSub2D
	.comm	_FB_VISUAL_TRUECOLOR,8,3        ## @FB_VISUAL_TRUECOLOR
	.comm	_FB_VISUAL_DIRECTCOLOR,8,3      ## @FB_VISUAL_DIRECTCOLOR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv50_fbcon_fillrect            ; -- Begin function nv50_fbcon_fillrect
	.p2align	2
_nv50_fbcon_fillrect:                   ; @nv50_fbcon_fillrect
	.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	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_nouveau_drm
	ldr	x19, [x0]
Lloh0:
	adrp	x23, _ROP_COPY@GOTPAGE
Lloh1:
	ldr	x23, [x23, _ROP_COPY@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	mov	w8, #11
	mov	w9, #7
	csel	w1, w9, w8, eq
	mov	x0, x19
	bl	_RING_SPACE
	mov	x20, x0
	cbnz	w0, LBB0_9
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x23]
Lloh2:
	adrp	x24, _NvSub2D@GOTPAGE
Lloh3:
	ldr	x24, [x24, _NvSub2D@GOTPAGEOFF]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #684
	mov	w3, #1
	bl	_BEGIN_NV04
	mov	x0, x19
	mov	w1, #1
	bl	_OUT_RING
LBB0_3:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #1416
	mov	w3, #1
	bl	_BEGIN_NV04
	ldr	x8, [x22, #8]
Lloh4:
	adrp	x9, _FB_VISUAL_TRUECOLOR@GOTPAGE
Lloh5:
	ldr	x9, [x9, _FB_VISUAL_TRUECOLOR@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
Lloh7:
	adrp	x10, _FB_VISUAL_DIRECTCOLOR@GOTPAGE
Lloh8:
	ldr	x10, [x10, _FB_VISUAL_DIRECTCOLOR@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x22]
	ldr	x9, [x21, #8]
	ldr	w1, [x8, x9, lsl #2]
	b	LBB0_6
LBB0_5:
	ldr	w1, [x21, #8]
LBB0_6:
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #1536
	mov	w3, #4
	bl	_BEGIN_NV04
	ldr	w1, [x21, #16]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x21, #20]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w8, [x21, #16]
	ldr	w9, [x21, #24]
	add	w1, w9, w8
	mov	x0, x19
	bl	_OUT_RING
	ldr	w8, [x21, #20]
	ldr	w9, [x21, #28]
	add	w1, w9, w8
	mov	x0, x19
	bl	_OUT_RING
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.7:
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #684
	mov	w3, #1
	bl	_BEGIN_NV04
	mov	x0, x19
	mov	w1, #3
	bl	_OUT_RING
LBB0_8:
	mov	x0, x19
	bl	_FIRE_RING
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ROP_COPY,8,3                   ; @ROP_COPY
	.comm	_NvSub2D,4,2                    ; @NvSub2D
	.comm	_FB_VISUAL_TRUECOLOR,8,3        ; @FB_VISUAL_TRUECOLOR
	.comm	_FB_VISUAL_DIRECTCOLOR,8,3      ; @FB_VISUAL_DIRECTCOLOR
.subsections_via_symbols
