	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_fbcon_imageblit           ## -- Begin function nv04_fbcon_imageblit
	.p2align	4, 0x90
_nv04_fbcon_imageblit:                  ## @nv04_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_nouveau_drm
	cmpl	$1, (%r15)
	jne	LBB0_1
## %bb.2:
	movq	(%rax), %r14
	movq	40(%r15), %r12
	movq	%r14, %rdi
	movl	$8, %esi
	callq	_RING_SPACE
	testl	%eax, %eax
	jne	LBB0_12
## %bb.3:
	movq	8(%rbx), %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(%r15), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	16(%r15), %ebx
	jmp	LBB0_7
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_12
LBB0_5:
	movq	(%rbx), %rax
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	movl	(%rax,%rcx,4), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	(%rax,%rdx,4), %ebx
LBB0_7:
	movq	_NvSubGdiRect@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	$3044, %edx                     ## imm = 0xBE4
	movl	$7, %ecx
	callq	_BEGIN_NV04
	movl	24(%r15), %eax
	shll	$16, %eax
	movzwl	28(%r15), %esi
	orl	%eax, %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movl	32(%r15), %eax
	movl	36(%r15), %ecx
	addl	24(%r15), %eax
	shll	$16, %eax
	addl	28(%r15), %ecx
	movzwl	%cx, %esi
	orl	%eax, %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_OUT_RING
	movq	%r14, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_OUT_RING
	movl	32(%r15), %ebx
	movl	36(%r15), %edi
	shll	$16, %ebx
	movl	$8, %esi
	callq	_ALIGN
	orl	%eax, %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_OUT_RING
	movl	32(%r15), %esi
	shll	$16, %esi
	orl	36(%r15), %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movl	24(%r15), %eax
	shll	$16, %eax
	movzwl	28(%r15), %esi
	orl	%eax, %esi
	movq	%r14, %rdi
	callq	_OUT_RING
	movl	36(%r15), %edi
	movl	$8, %esi
	callq	_ALIGN
	imull	32(%r15), %eax
	movl	%eax, %edi
	movl	$32, %esi
	callq	_ALIGN
	cmpl	$32, %eax
	jb	LBB0_11
## %bb.8:
	movl	%eax, %r15d
	sarl	$5, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$128, %r15d
	movl	$128, %ebx
	cmovll	%r15d, %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	(%r13), %esi
	movq	%r14, %rdi
	movl	$3072, %edx                     ## imm = 0xC00
	movl	%ebx, %ecx
	callq	_BEGIN_NV04
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_OUT_RINGp
	movslq	%ebx, %rax
	leaq	(%r12,%rax,4), %r12
	subl	%ebx, %r15d
	jne	LBB0_9
LBB0_11:
	movq	%r14, %rdi
	callq	_FIRE_RING
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FB_VISUAL_TRUECOLOR,8,3        ## @FB_VISUAL_TRUECOLOR
	.comm	_FB_VISUAL_DIRECTCOLOR,8,3      ## @FB_VISUAL_DIRECTCOLOR
	.comm	_NvSubGdiRect,4,2               ## @NvSubGdiRect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nv04_fbcon_imageblit           ; -- Begin function nv04_fbcon_imageblit
	.p2align	2
_nv04_fbcon_imageblit:                  ; @nv04_fbcon_imageblit
	.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	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x19, [x0]
	ldr	x20, [x21, #40]
	mov	x0, x19
	mov	w1, #8
	bl	_RING_SPACE
	cbnz	w0, LBB0_11
; %bb.2:
	ldr	x8, [x22, #8]
Lloh0:
	adrp	x9, _FB_VISUAL_TRUECOLOR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FB_VISUAL_TRUECOLOR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _FB_VISUAL_DIRECTCOLOR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _FB_VISUAL_DIRECTCOLOR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.3:
	ldr	x8, [x22]
	ldp	x9, x10, [x21, #8]
	ldr	w22, [x8, x9, lsl #2]
	ldr	w23, [x8, x10, lsl #2]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	ldr	w22, [x21, #8]
	ldr	w23, [x21, #16]
LBB0_6:
Lloh9:
	adrp	x24, _NvSubGdiRect@GOTPAGE
Lloh10:
	ldr	x24, [x24, _NvSubGdiRect@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #3044
	mov	w3, #7
	bl	_BEGIN_NV04
	ldr	w8, [x21, #24]
	ldrh	w1, [x21, #28]
	bfi	w1, w8, #16, #16
	mov	x0, x19
	bl	_OUT_RING
	ldp	w8, w9, [x21, #24]
	ldp	w10, w11, [x21, #32]
	add	w8, w10, w8
	add	w1, w11, w9
	bfi	w1, w8, #16, #16
	mov	x0, x19
	bl	_OUT_RING
	mov	x0, x19
	mov	x1, x23
	bl	_OUT_RING
	mov	x0, x19
	mov	x1, x22
	bl	_OUT_RING
	ldp	w22, w0, [x21, #32]
	mov	w1, #8
	bl	_ALIGN
	orr	w1, w0, w22, lsl #16
	mov	x0, x19
	bl	_OUT_RING
	ldp	w8, w9, [x21, #32]
	orr	w1, w9, w8, lsl #16
	mov	x0, x19
	bl	_OUT_RING
	ldr	w8, [x21, #24]
	ldrh	w1, [x21, #28]
	bfi	w1, w8, #16, #16
	mov	x0, x19
	bl	_OUT_RING
	ldr	w0, [x21, #36]
	mov	w1, #8
	bl	_ALIGN
	ldr	w8, [x21, #32]
	mul	w0, w8, w0
	mov	w1, #32
	bl	_ALIGN
	cmp	w0, #32
	b.lo	LBB0_10
; %bb.7:
	asr	w22, w0, #5
	mov	w23, #128
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #128
	csel	w21, w22, w23, lt
	add	w1, w21, #1
	mov	x0, x19
	bl	_RING_SPACE
	cbnz	w0, LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #3072
	mov	x3, x21
	bl	_BEGIN_NV04
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_OUT_RINGp
	add	x20, x20, w21, sxtw #2
	subs	w22, w22, w21
	b.ne	LBB0_8
LBB0_10:
	mov	x0, x19
	bl	_FIRE_RING
	mov	w0, #0
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FB_VISUAL_TRUECOLOR,8,3        ; @FB_VISUAL_TRUECOLOR
	.comm	_FB_VISUAL_DIRECTCOLOR,8,3      ; @FB_VISUAL_DIRECTCOLOR
	.comm	_NvSubGdiRect,4,2               ; @NvSubGdiRect
.subsections_via_symbols
