	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_fbcon_copyarea
_nouveau_fbcon_copyarea:                ## @nouveau_fbcon_copyarea
	.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, %r14
	movq	%rdi, %r12
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	callq	_nouveau_drm
	movq	%rax, %r15
	movl	4(%rax), %edi
	callq	_nv_device
	movq	%rax, %r13
	movq	(%r12), %rax
	movq	_FBINFO_STATE_RUNNING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_in_interrupt
	testl	%eax, %eax
	jne	LBB0_10
## %bb.2:
	movq	_FBINFO_HWACCEL_DISABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r12)
	jne	LBB0_10
## %bb.3:
	movq	%r15, %rdi
	callq	_mutex_trylock
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movq	(%r13), %rax
	movq	_NV_50@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_6
## %bb.5:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_nv04_fbcon_copyarea
	jmp	LBB0_9
LBB0_6:
	movq	_NV_C0@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.7:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_nv50_fbcon_copyarea
	jmp	LBB0_9
LBB0_8:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_nvc0_fbcon_copyarea
LBB0_9:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_10:
	testl	%ebx, %ebx
	je	LBB0_14
## %bb.11:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_nouveau_fbcon_gpu_lockup
LBB0_13:
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cfb_copyarea                   ## TAILCALL
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FBINFO_STATE_RUNNING,8,3       ## @FBINFO_STATE_RUNNING
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_FBINFO_HWACCEL_DISABLED,4,2    ## @FBINFO_HWACCEL_DISABLED
	.comm	_NV_50,8,3                      ## @NV_50
	.comm	_NV_C0,8,3                      ## @NV_C0
	.no_dead_strip	_nouveau_fbcon_copyarea
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_fbcon_copyarea
_nouveau_fbcon_copyarea:                ; @nouveau_fbcon_copyarea
	.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	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
	bl	_nouveau_drm
	mov	x21, x0
	ldr	w0, [x0, #4]
	bl	_nv_device
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _FBINFO_STATE_RUNNING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FBINFO_STATE_RUNNING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.1:
	mov	x23, x0
Lloh3:
	adrp	x24, _ENODEV@GOTPAGE
Lloh4:
	ldr	x24, [x24, _ENODEV@GOTPAGEOFF]
	ldr	w8, [x24]
	neg	w22, w8
	bl	_in_interrupt
	cbnz	w0, LBB0_10
; %bb.2:
	ldr	w8, [x20, #8]
Lloh5:
	adrp	x9, _FBINFO_HWACCEL_DISABLED@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FBINFO_HWACCEL_DISABLED@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_10
; %bb.3:
	mov	x0, x21
	bl	_mutex_trylock
	cbz	x0, LBB0_10
; %bb.4:
	ldr	x8, [x23]
Lloh8:
	adrp	x9, _NV_50@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NV_50@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x19
	bl	_nv04_fbcon_copyarea
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x9, _NV_C0@GOTPAGE
Lloh12:
	ldr	x9, [x9, _NV_C0@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	mov	x0, x20
	mov	x1, x19
	cmp	x8, x9
	b.ge	LBB0_8
; %bb.7:
	bl	_nv50_fbcon_copyarea
	b	LBB0_9
LBB0_8:
	bl	_nvc0_fbcon_copyarea
LBB0_9:
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
LBB0_10:
	cbz	w22, LBB0_14
; %bb.11:
	ldr	w8, [x24]
	cmn	w22, w8
	b.eq	LBB0_13
; %bb.12:
	mov	x0, x20
	bl	_nouveau_fbcon_gpu_lockup
LBB0_13:
	mov	x0, x20
	mov	x1, x19
	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
	b	_cfb_copyarea
LBB0_14:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FBINFO_STATE_RUNNING,8,3       ; @FBINFO_STATE_RUNNING
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_FBINFO_HWACCEL_DISABLED,4,2    ; @FBINFO_HWACCEL_DISABLED
	.comm	_NV_50,8,3                      ; @NV_50
	.comm	_NV_C0,8,3                      ; @NV_C0
	.no_dead_strip	_nouveau_fbcon_copyarea
.subsections_via_symbols
