	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_crtc_init                  ## -- Begin function dpu_crtc_init
	.p2align	4, 0x90
_dpu_crtc_init:                         ## @dpu_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movl	(%rax), %edi
	callq	_to_dpu_kms
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$48, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	addq	$32, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, 40(%rbx)
	leaq	28(%rbx), %rdi
	callq	_spin_lock_init
	leaq	24(%rbx), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	leaq	20(%rbx), %rdi
	callq	_init_completion
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%rbx), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_4
## %bb.2:
	movl	$4, %r12d
	xorl	%r14d, %r14d
	movq	_dpu_crtc_frame_event_work@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rbx), %rdi
	addq	%r12, %rdi
	callq	_INIT_LIST_HEAD
	movq	8(%rbx), %rdi
	addq	%r12, %rdi
	movq	%r15, %rsi
	callq	_list_add
	movq	8(%rbx), %rax
	leaq	(%rax,%r12), %rdi
	addq	$-4, %rdi
	movl	(%r13), %esi
	callq	_kthread_init_work
	incq	%r14
	movq	8(%rbx), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$8, %r12
	cmpq	%rax, %r14
	jl	LBB0_3
LBB0_4:
	movq	_dpu_crtc_funcs@GOTPCREL(%rip), %r8
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorl	%r9d, %r9d
	callq	_drm_crtc_init_with_planes
	movq	_dpu_crtc_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_crtc_helper_add
	movq	_DPU_CRTC_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edi
	movl	32(%rbx), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_spin_lock_init
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_DPU_DEBUG
	movq	%r14, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$40, %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	_dpu_crtc_frame_event_work,4,2  ## @dpu_crtc_frame_event_work
	.comm	_dpu_crtc_funcs,4,2             ## @dpu_crtc_funcs
	.comm	_dpu_crtc_helper_funcs,4,2      ## @dpu_crtc_helper_funcs
	.comm	_DPU_CRTC_NAME_SIZE,4,2         ## @DPU_CRTC_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crtc%u"

L_.str.1:                               ## @.str.1
	.asciz	"%s: successfully initialized crtc\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dpu_crtc_init                  ; -- Begin function dpu_crtc_init
	.p2align	2
_dpu_crtc_init:                         ; @dpu_crtc_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_to_dpu_kms
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #48
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x19, x0, #32
	str	x23, [x0, #40]
	add	x0, x0, #28
	bl	_spin_lock_init
	add	x0, x20, #24
	mov	w1, #0
	bl	_atomic_set
	add	x0, x20, #20
	bl	_init_completion
	add	x24, x20, #16
	mov	x0, x24
	bl	_INIT_LIST_HEAD
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x25, #0
	mov	w26, #4
Lloh3:
	adrp	x27, _dpu_crtc_frame_event_work@GOTPAGE
Lloh4:
	ldr	x27, [x27, _dpu_crtc_frame_event_work@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, x26
	bl	_INIT_LIST_HEAD
	ldr	x8, [x20, #8]
	add	x0, x8, x26
	mov	x1, x24
	bl	_list_add
	ldr	x8, [x20, #8]
	add	x8, x8, x26
	sub	x0, x8, #4
	ldr	w1, [x27]
	bl	_kthread_init_work
	add	x25, x25, #1
	ldr	x0, [x20, #8]
	bl	_ARRAY_SIZE
	add	x26, x26, #8
	cmp	x25, w0, sxtw
	b.lt	LBB0_3
LBB0_4:
Lloh5:
	adrp	x4, _dpu_crtc_funcs@GOTPAGE
Lloh6:
	ldr	x4, [x4, _dpu_crtc_funcs@GOTPAGEOFF]
	mov	x0, x23
	mov	x1, x19
	mov	x2, x22
	mov	x3, x21
	mov	x5, #0
	bl	_drm_crtc_init_with_planes
Lloh7:
	adrp	x1, _dpu_crtc_helper_funcs@GOTPAGE
Lloh8:
	ldr	x1, [x1, _dpu_crtc_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_crtc_helper_add
	ldr	w0, [x20]
Lloh9:
	adrp	x8, _DPU_CRTC_NAME_SIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DPU_CRTC_NAME_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w3, [x20, #32]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
	add	x0, x20, #4
	bl	_spin_lock_init
	ldr	w1, [x20]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPU_DEBUG
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh16:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_dpu_crtc_frame_event_work,4,2  ; @dpu_crtc_frame_event_work
	.comm	_dpu_crtc_funcs,4,2             ; @dpu_crtc_funcs
	.comm	_dpu_crtc_helper_funcs,4,2      ; @dpu_crtc_helper_funcs
	.comm	_DPU_CRTC_NAME_SIZE,4,2         ; @DPU_CRTC_NAME_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crtc%u"

l_.str.1:                               ; @.str.1
	.asciz	"%s: successfully initialized crtc\n"

.subsections_via_symbols
