	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nv10_overlay_init
_nv10_overlay_init:                     ## @nv10_overlay_init
	.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	%rdi, %rbx
	callq	_nouveau_drm
	movq	%rax, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	movq	%rax, %r12
	movq	_formats@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_ARRAY_SIZE
	testq	%r12, %r12
	je	LBB0_12
## %bb.1:
	movl	(%r15), %ecx
	cmpq	$32, %rcx
	ja	LBB0_4
## %bb.2:
	movabsq	$4364369920, %rdx               ## imm = 0x104230000
	btq	%rcx, %rdx
	jae	LBB0_4
## %bb.3:
	movl	$2, %eax
LBB0_4:
	movq	%r12, %r14
	addq	$20, %r14
	movl	(%r13), %r8d
	movl	$0, (%rsp)
	movq	_nv10_plane_funcs@GOTPCREL(%rip), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$3, %edx
	movl	%eax, %r9d
	callq	_drm_plane_init
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$33554431, %r8d                 ## imm = 0x1FFFFFF
	callq	_drm_property_create_range
	movq	%rax, 72(%r12)
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$8191, %r8d                     ## imm = 0x1FFF
	callq	_drm_property_create_range
	movq	%rax, 64(%r12)
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$1024, %r8d                     ## imm = 0x400
	callq	_drm_property_create_range
	movq	%rax, 56(%r12)
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$359, %r8d                      ## imm = 0x167
	callq	_drm_property_create_range
	movq	%rax, 48(%r12)
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	movl	$8191, %r8d                     ## imm = 0x1FFF
	callq	_drm_property_create_range
	movq	%rax, 40(%r12)
	movq	72(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.6:
	cmpq	$0, 64(%r12)
	je	LBB0_10
## %bb.7:
	cmpq	$0, 56(%r12)
	je	LBB0_10
## %bb.8:
	cmpq	$0, 48(%r12)
	je	LBB0_10
## %bb.9:
	testq	%rax, %rax
	je	LBB0_10
## %bb.13:
	movl	$0, (%r12)
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	$4096, 4(%r12)                  ## imm = 0x1000
	movq	64(%r12), %rsi
	movq	%r14, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_drm_object_attach_property
	movl	$512, 8(%r12)                   ## imm = 0x200
	movq	56(%r12), %rsi
	movq	%r14, %rdi
	movl	$512, %edx                      ## imm = 0x200
	callq	_drm_object_attach_property
	movl	$0, 12(%r12)
	movq	48(%r12), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_drm_object_attach_property
	movl	$4096, 16(%r12)                 ## imm = 0x1000
	movq	40(%r12), %rsi
	movq	%r14, %rdi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_drm_object_attach_property
	movq	_DRM_COLOR_YCBCR_BT601@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	%edi, 32(%r12)
	callq	_BIT
	movl	%eax, %ebx
	movq	_DRM_COLOR_YCBCR_BT709@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%eax, %ebx
	movq	_DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_BIT
	movl	(%r15), %ecx
	movl	(%r13), %r8d
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_drm_plane_create_color_properties
	movq	_nv10_set_params@GOTPCREL(%rip), %rax
	movq	%rax, 24(%r12)
	movq	%r12, %rdi
	callq	_nv10_set_params
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_plane_force_disable        ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	%r14, %rdi
	callq	_drm_plane_cleanup
LBB0_11:
	movq	%r12, %rdi
	callq	_kfree
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NV_ERROR                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_formats,4,2                    ## @formats
	.comm	_nv10_plane_funcs,4,2           ## @nv10_plane_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"colorkey"

L_.str.1:                               ## @.str.1
	.asciz	"contrast"

L_.str.2:                               ## @.str.2
	.asciz	"brightness"

L_.str.3:                               ## @.str.3
	.asciz	"hue"

L_.str.4:                               ## @.str.4
	.asciz	"saturation"

	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ## @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ## @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ## @DRM_COLOR_YCBCR_LIMITED_RANGE
L_.str.5:                               ## @.str.5
	.asciz	"Failed to create plane\n"

	.no_dead_strip	_nv10_overlay_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nv10_overlay_init
_nv10_overlay_init:                     ; @nv10_overlay_init
	.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	x22, x0
	bl	_nouveau_drm
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	mov	x19, x0
Lloh3:
	adrp	x23, _formats@GOTPAGE
Lloh4:
	ldr	x23, [x23, _formats@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_ARRAY_SIZE
	cbz	x19, LBB0_8
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #32
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #69402624
	movk	x9, #1, lsl #32
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	mov	w8, #2
	csel	w5, w8, w0, ne
	add	x20, x19, #20
	ldr	w4, [x23]
Lloh5:
	adrp	x3, _nv10_plane_funcs@GOTPAGE
Lloh6:
	ldr	x3, [x3, _nv10_plane_funcs@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x20
	mov	w2, #3
	mov	w6, #0
	bl	_drm_plane_init
	cbnz	w0, LBB0_7
; %bb.2:
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	mov	w4, #33554431
	bl	_drm_property_create_range
	str	x0, [x19, #72]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	mov	w4, #8191
	bl	_drm_property_create_range
	str	x0, [x19, #64]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	mov	w4, #1024
	bl	_drm_property_create_range
	str	x0, [x19, #56]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	mov	w4, #359
	bl	_drm_property_create_range
	str	x0, [x19, #48]
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x22
	mov	w1, #0
	mov	w3, #0
	mov	w4, #8191
	bl	_drm_property_create_range
	str	x0, [x19, #40]
	ldr	x1, [x19, #72]
	cbz	x1, LBB0_6
; %bb.3:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	x8, [x19, #48]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_9
LBB0_6:
	mov	x0, x20
	bl	_drm_plane_cleanup
LBB0_7:
	mov	x0, x19
	bl	_kfree
Lloh17:
	adrp	x1, l_.str.5@PAGE
Lloh18:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	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	_NV_ERROR
LBB0_8:
	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
LBB0_9:
	str	wzr, [x19]
	mov	x0, x20
	mov	w2, #0
	bl	_drm_object_attach_property
	mov	w21, #4096
	str	w21, [x19, #4]
	ldr	x1, [x19, #64]
	mov	x0, x20
	mov	w2, #4096
	bl	_drm_object_attach_property
	mov	w8, #512
	str	w8, [x19, #8]
	ldr	x1, [x19, #56]
	mov	x0, x20
	mov	w2, #512
	bl	_drm_object_attach_property
	str	wzr, [x19, #12]
	ldr	x1, [x19, #48]
	mov	x0, x20
	mov	w2, #0
	bl	_drm_object_attach_property
	str	w21, [x19, #16]
	ldr	x1, [x19, #40]
	mov	x0, x20
	mov	w2, #4096
	bl	_drm_object_attach_property
Lloh19:
	adrp	x22, _DRM_COLOR_YCBCR_BT601@GOTPAGE
Lloh20:
	ldr	x22, [x22, _DRM_COLOR_YCBCR_BT601@GOTPAGEOFF]
	ldr	w0, [x22]
	str	w0, [x19, #32]
	bl	_BIT
	mov	x21, x0
Lloh21:
	adrp	x8, _DRM_COLOR_YCBCR_BT709@GOTPAGE
Lloh22:
	ldr	x8, [x8, _DRM_COLOR_YCBCR_BT709@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_BIT
	orr	w21, w0, w21
Lloh24:
	adrp	x23, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGE
Lloh25:
	ldr	x23, [x23, _DRM_COLOR_YCBCR_LIMITED_RANGE@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT
	mov	x2, x0
	ldr	w3, [x22]
	ldr	w4, [x23]
	mov	x0, x20
	mov	x1, x21
	bl	_drm_plane_create_color_properties
Lloh26:
	adrp	x8, _nv10_set_params@GOTPAGE
Lloh27:
	ldr	x8, [x8, _nv10_set_params@GOTPAGEOFF]
	str	x8, [x19, #24]
	mov	x0, x19
	bl	_nv10_set_params
	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
	b	_drm_plane_force_disable
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_formats,4,2                    ; @formats
	.comm	_nv10_plane_funcs,4,2           ; @nv10_plane_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"colorkey"

l_.str.1:                               ; @.str.1
	.asciz	"contrast"

l_.str.2:                               ; @.str.2
	.asciz	"brightness"

l_.str.3:                               ; @.str.3
	.asciz	"hue"

l_.str.4:                               ; @.str.4
	.asciz	"saturation"

	.comm	_DRM_COLOR_YCBCR_BT601,4,2      ; @DRM_COLOR_YCBCR_BT601
	.comm	_DRM_COLOR_YCBCR_BT709,4,2      ; @DRM_COLOR_YCBCR_BT709
	.comm	_DRM_COLOR_YCBCR_LIMITED_RANGE,4,2 ; @DRM_COLOR_YCBCR_LIMITED_RANGE
l_.str.5:                               ; @.str.5
	.asciz	"Failed to create plane\n"

	.no_dead_strip	_nv10_overlay_init
.subsections_via_symbols
