	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_crtc_init                 ## -- Begin function mdp4_crtc_init
	.p2align	4, 0x90
_mdp4_crtc_init:                        ## @mdp4_crtc_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$44, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	40(%rax), %r12
	movl	%r15d, (%rax)
	movl	%r13d, 4(%rax)
	movl	%r14d, 8(%rax)
	movl	%r14d, %edi
	callq	_dma2irq
	movl	%eax, 36(%rbx)
	movq	_mdp4_crtc_vblank_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	8(%rbx), %edi
	callq	_dma2err
	movl	%eax, 28(%rbx)
	movq	_mdp4_crtc_err_irq@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	20(%rbx), %edi
	movq	_dma_names@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	movq	(%rax,%rcx,8), %rcx
	leaq	L_.str(%rip), %rdx
	movl	$4, %esi
	movl	%r13d, %r8d
	callq	_snprintf
	leaq	16(%rbx), %rdi
	callq	_spin_lock_init
	addq	$12, %rbx
	movq	_unref_cursor_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_drm_flip_work_init
	movq	_mdp4_crtc_funcs@GOTPCREL(%rip), %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	callq	_drm_crtc_init_with_planes
	movq	_mdp4_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_drm_crtc_helper_add
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mdp4_crtc_vblank_irq,4,2       ## @mdp4_crtc_vblank_irq
	.comm	_mdp4_crtc_err_irq,4,2          ## @mdp4_crtc_err_irq
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s:%d"

	.comm	_dma_names,8,3                  ## @dma_names
L_.str.1:                               ## @.str.1
	.asciz	"unref cursor"

	.comm	_unref_cursor_worker,4,2        ## @unref_cursor_worker
	.comm	_mdp4_crtc_funcs,4,2            ## @mdp4_crtc_funcs
	.comm	_mdp4_crtc_helper_funcs,4,2     ## @mdp4_crtc_helper_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_crtc_init                 ; -- Begin function mdp4_crtc_init
	.p2align	2
_mdp4_crtc_init:                        ; @mdp4_crtc_init
	.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	x24, x4
	mov	x22, x3
	mov	x25, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #44
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x23, x0
	add	x21, x0, #40
	stp	w25, w22, [x0]
	str	w24, [x0, #8]
	mov	x0, x24
	bl	_dma2irq
Lloh3:
	adrp	x8, _mdp4_crtc_vblank_irq@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mdp4_crtc_vblank_irq@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	stp	w8, w0, [x23, #32]
	ldr	w0, [x23, #8]
	bl	_dma2err
Lloh6:
	adrp	x8, _mdp4_crtc_err_irq@GOTPAGE
Lloh7:
	ldr	x8, [x8, _mdp4_crtc_err_irq@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [x23, #24]
	ldr	w0, [x23, #20]
Lloh9:
	adrp	x8, _dma_names@GOTPAGE
Lloh10:
	ldr	x8, [x8, _dma_names@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x3, [x8, w24, uxtw #3]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #4
	mov	x4, x22
	bl	_snprintf
	add	x0, x23, #16
	bl	_spin_lock_init
	add	x0, x23, #12
Lloh14:
	adrp	x8, _unref_cursor_worker@GOTPAGE
Lloh15:
	ldr	x8, [x8, _unref_cursor_worker@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_drm_flip_work_init
Lloh19:
	adrp	x4, _mdp4_crtc_funcs@GOTPAGE
Lloh20:
	ldr	x4, [x4, _mdp4_crtc_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x3, #0
	mov	x5, #0
	bl	_drm_crtc_init_with_planes
Lloh21:
	adrp	x1, _mdp4_crtc_helper_funcs@GOTPAGE
Lloh22:
	ldr	x1, [x1, _mdp4_crtc_helper_funcs@GOTPAGEOFF]
	mov	x0, x21
	bl	_drm_crtc_helper_add
	mov	x0, x21
	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
LBB0_2:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w0, w8
	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
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mdp4_crtc_vblank_irq,4,2       ; @mdp4_crtc_vblank_irq
	.comm	_mdp4_crtc_err_irq,4,2          ; @mdp4_crtc_err_irq
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s:%d"

	.comm	_dma_names,8,3                  ; @dma_names
l_.str.1:                               ; @.str.1
	.asciz	"unref cursor"

	.comm	_unref_cursor_worker,4,2        ; @unref_cursor_worker
	.comm	_mdp4_crtc_funcs,4,2            ; @mdp4_crtc_funcs
	.comm	_mdp4_crtc_helper_funcs,4,2     ; @mdp4_crtc_helper_funcs
.subsections_via_symbols
