	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nvc0_fbcon_imageblit           ## -- Begin function nvc0_fbcon_imageblit
	.p2align	4, 0x90
_nvc0_fbcon_imageblit:                  ## @nvc0_fbcon_imageblit
	.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	%rsi, %rbx
	movq	%rdi, %r12
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	callq	_nouveau_drm
	cmpl	$1, (%rbx)
	jne	LBB0_1
## %bb.2:
	movq	(%rax), %r14
	movq	40(%rbx), %r15
	movq	(%r12), %r13
	movq	%r14, %rdi
	movl	$11, %esi
	callq	_RING_SPACE
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %edi
	movl	$32, %esi
	callq	_ALIGN
	movl	%eax, %r13d
	imull	8(%rbx), %r13d
	movq	_NvSub2D@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$2068, %edx                     ## imm = 0x814
	movl	$2, %ecx
	callq	_BEGIN_NVC0
	movq	8(%r12), %rax
	movq	_FB_VISUAL_TRUECOLOR@GOTPCREL(%rip), %rcx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %rsi
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.4:
	movq	_FB_VISUAL_DIRECTCOLOR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_OUT_RING
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	24(%rbx), %esi
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12,%rsi,4), %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %rax
	movl	(%r12,%rax,4), %esi
LBB0_7:
	movq	_NvSub2D@GOTPCREL(%rip), %r12
	movq	%r14, %rdi
	callq	_OUT_RING
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$2104, %edx                     ## imm = 0x838
	movl	$2, %ecx
	callq	_BEGIN_NVC0
	movl	4(%rbx), %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movl	8(%rbx), %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$2128, %edx                     ## imm = 0x850
	movl	$4, %ecx
	callq	_BEGIN_NVC0
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_OUT_RING
	movl	36(%rbx), %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	cmpl	$32, %r13d
	jb	LBB0_11
## %bb.8:
	sarl	$5, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$2047, %r13d                    ## imm = 0x7FF
	movl	$2047, %ebx                     ## imm = 0x7FF
	cmovll	%r13d, %ebx
	leal	1(%rbx), %esi
	movq	%r14, %rdi
	callq	_RING_SPACE
	testl	%eax, %eax
	jne	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	$2144, %edx                     ## imm = 0x860
	movl	%ebx, %ecx
	callq	_BEGIN_NIC0
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	callq	_OUT_RINGp
	movslq	%ebx, %rax
	leaq	(%r15,%rax,4), %r15
	subl	%ebx, %r13d
	jne	LBB0_9
LBB0_11:
	movq	%r14, %rdi
	callq	_FIRE_RING
	xorl	%eax, %eax
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.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	_nvc0_fbcon_imageblit           ; -- Begin function nvc0_fbcon_imageblit
	.p2align	2
_nvc0_fbcon_imageblit:                  ; @nvc0_fbcon_imageblit
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	bl	_nouveau_drm
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x19, [x0]
	ldr	x20, [x21, #40]
	ldr	x25, [x22]
	mov	x0, x19
	mov	w1, #11
	bl	_RING_SPACE
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	w0, [x21, #4]
	mov	w1, #32
	bl	_ALIGN
	ldr	w8, [x21, #8]
	mul	w24, w8, w0
Lloh0:
	adrp	x23, _NvSub2D@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NvSub2D@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #2068
	mov	w3, #2
	bl	_BEGIN_NVC0
	ldr	x8, [x22, #8]
Lloh2:
	adrp	x9, _FB_VISUAL_TRUECOLOR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FB_VISUAL_TRUECOLOR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _FB_VISUAL_DIRECTCOLOR@GOTPAGE
Lloh6:
	ldr	x10, [x10, _FB_VISUAL_DIRECTCOLOR@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	ldr	x1, [x21, #16]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	w1, [x25, x1, lsl #2]
	mov	x0, x19
	bl	_OUT_RING
	ldr	x8, [x21, #24]
	ldr	w1, [x25, x8, lsl #2]
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	mov	x0, x19
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_OUT_RING
	ldr	w1, [x21, #24]
LBB0_6:
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #2104
	mov	w3, #2
	bl	_BEGIN_NVC0
	ldr	w1, [x21, #4]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x21, #8]
	mov	x0, x19
	bl	_OUT_RING
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #2128
	mov	w3, #4
	bl	_BEGIN_NVC0
	mov	x0, x19
	mov	w1, #0
	bl	_OUT_RING
	ldr	w1, [x21, #32]
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x19
	mov	w1, #0
	bl	_OUT_RING
	ldr	w1, [x21, #36]
	mov	x0, x19
	bl	_OUT_RING
	cmp	w24, #32
	b.lo	LBB0_10
; %bb.7:
	asr	w22, w24, #5
	mov	w24, #2047
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #2047
	csel	w21, w22, w24, lt
	add	w1, w21, #1
	mov	x0, x19
	bl	_RING_SPACE
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w22, w22, w21
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #2144
	mov	x3, x21
	bl	_BEGIN_NIC0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_OUT_RINGp
	add	x20, x20, w21, sxtw #2
	cbnz	w22, LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_FIRE_RING
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.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
