	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dpu_kms_hw_init
_dpu_kms_hw_init:                       ## @dpu_kms_hw_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
	movq	_EINVAL@GOTPCREL(%rip), %r13
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.3:
	callq	_to_dpu_kms
	movq	120(%rax), %r15
	testq	%r15, %r15
	je	LBB0_4
## %bb.5:
	cmpq	$0, 32(%r15)
	je	LBB0_6
## %bb.7:
	movq	%rax, %r14
	movq	%rax, %r12
	leaq	112(%rax), %rdi
	xorl	%esi, %esi
	callq	_atomic_set
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%rdx, %rsi
	callq	_msm_ioremap
	movq	%rax, 40(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	40(%r14), %rsi
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rsi, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	movq	$0, 40(%r12)
	jmp	LBB0_39
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_2
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
LBB0_2:
	xorl	%eax, %eax
	callq	_DPU_ERROR
	jmp	LBB0_40
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
	callq	_DRM_DEBUG
	movq	8(%r12), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dpu_iomap_size
	movq	%rax, 104(%r12)
	movq	8(%r12), %rdi
	leaq	L_.str.6(%rip), %rdx
	movq	%rdx, %rsi
	callq	_msm_ioremap
	movq	56(%r12), %rcx
	movq	_VBIF_RT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	56(%r12), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	56(%r12), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_PTR_ERR
	movq	%rbx, %r14
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	movq	56(%r12), %rax
	movq	(%r14), %rcx
	movq	$0, (%rax,%rcx,8)
	jmp	LBB0_39
LBB0_11:
	movq	8(%r12), %rdi
	leaq	L_.str.6(%rip), %rsi
	callq	_dpu_iomap_size
	movq	96(%r12), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	8(%r12), %rdi
	leaq	L_.str.8(%rip), %rdx
	movq	%rdx, %rsi
	callq	_msm_ioremap
	movq	56(%r12), %rcx
	movq	_VBIF_NRT@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
	movq	56(%r12), %rax
	movq	(%rax,%rdx,8), %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	56(%r12), %rax
	movq	(%rbx), %rcx
	movq	$0, (%rax,%rcx,8)
	leaq	L_.str.9(%rip), %rdi
	callq	_DPU_DEBUG
	jmp	LBB0_14
LBB0_13:
	movq	8(%r12), %rdi
	leaq	L_.str.8(%rip), %rsi
	callq	_dpu_iomap_size
	movq	96(%r12), %rcx
	movq	(%rbx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_14:
	movq	8(%r12), %rdi
	leaq	L_.str.10(%rip), %rdx
	movq	%rdx, %rsi
	callq	_msm_ioremap
	movq	%rax, 88(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movq	$0, 88(%r12)
	leaq	L_.str.11(%rip), %rdi
	callq	_DPU_DEBUG
	jmp	LBB0_17
LBB0_16:
	movq	8(%r12), %rdi
	leaq	L_.str.10(%rip), %rsi
	callq	_dpu_iomap_size
	movq	%rax, 80(%r12)
LBB0_17:
	movq	8(%r12), %rdi
	callq	_pm_runtime_get_sync
	movq	40(%r12), %rdi
	callq	_readl_relaxed
	movl	%eax, 76(%r12)
	leaq	L_.str.12(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_info
	movl	76(%r12), %edi
	callq	_dpu_hw_catalog_init
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	movq	24(%r12), %rdi
	callq	_PTR_ERR
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
	cmpq	$0, 24(%r12)
	cmovnel	%eax, %ebx
	leaq	L_.str.13(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	movq	$0, 24(%r12)
	jmp	LBB0_38
LBB0_19:
	movq	%r12, %rdi
	callq	__dpu_kms_mmu_init
	testl	%eax, %eax
	je	LBB0_22
## %bb.20:
	movl	%eax, %ebx
	leaq	L_.str.14(%rip), %rdi
	jmp	LBB0_21
LBB0_22:
	leaq	72(%r14), %rdi
	movq	24(%r12), %rsi
	movq	40(%r12), %rdx
	callq	_dpu_rm_init
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.15(%rip), %rdi
LBB0_21:
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
LBB0_38:
	movq	8(%r12), %rdi
	callq	_pm_runtime_put_sync
LBB0_39:
	movq	%r12, %rdi
	callq	__dpu_kms_hw_destroy
LBB0_40:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movl	$1, (%r12)
	movq	_MDP_TOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r12), %rdx
	movq	40(%r12), %rsi
	callq	_dpu_hw_mdptop_init
	movq	%rax, 64(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_25
## %bb.37:
	movq	64(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.16(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	movq	$0, 64(%r12)
	jmp	LBB0_38
LBB0_25:
	movq	24(%r12), %rdx
	cmpl	$0, (%rdx)
	jle	LBB0_30
## %bb.26:
	xorl	%ecx, %ecx
LBB0_28:                                ## =>This Inner Loop Header: Depth=1
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdx), %rax
	movq	(%rax,%rcx,8), %rbx
	movq	56(%r12), %rax
	movq	(%rax,%rbx,8), %rsi
	movq	%rbx, %rdi
	callq	_dpu_hw_vbif_init
	movq	48(%r12), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, (%rcx,%rdx,8)
	movq	48(%r12), %rax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax,%rbx,8), %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	jne	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_28 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	incq	%rcx
	movq	24(%r12), %rdx
	movslq	(%rdx), %rax
	cmpq	%rax, %rcx
	jl	LBB0_28
LBB0_30:
	addq	$16, %r14
	leaq	L_.str.18(%rip), %rsi
	movq	%r12, %rdi
	movq	%rdx, %rbx
	callq	__dpu_kms_get_clk
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_dpu_core_perf_init
	testl	%eax, %eax
	je	LBB0_32
## %bb.31:
	movl	%eax, %ebx
	leaq	L_.str.19(%rip), %rdi
	jmp	LBB0_21
LBB0_29:
	movq	48(%r12), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	(%rax,%r14,8), %rdi
	callq	_PTR_ERR
	movq	48(%r12), %rcx
	xorl	%ebx, %ebx
	subl	(%r13), %ebx
	cmpq	$0, (%rcx,%r14,8)
	cmovnel	%eax, %ebx
	leaq	L_.str.17(%rip), %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_DPU_ERROR
	movq	48(%r12), %rax
	movq	$0, (%rax,%r14,8)
	jmp	LBB0_38
LBB0_32:
	movq	24(%r12), %rsi
	movq	40(%r12), %rdi
	callq	_dpu_hw_intr_init
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR_OR_NULL
	testq	%rax, %rax
	je	LBB0_34
## %bb.33:
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	leaq	L_.str.20(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	movq	$0, 32(%r12)
	jmp	LBB0_38
LBB0_34:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r15)
	movq	24(%r12), %rax
	movq	8(%rax), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	movl	%eax, (%r15)
	movabsq	$4294971392, %rax               ## imm = 0x100001000
	movq	%rax, 4(%r15)
	movq	%r12, %rdi
	callq	__dpu_kms_drm_obj_init
	testl	%eax, %eax
	je	LBB0_36
## %bb.35:
	movl	%eax, %ebx
	leaq	L_.str.21(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_DPU_ERROR
	movq	%r14, %rdi
	callq	_dpu_core_perf_destroy
	jmp	LBB0_38
LBB0_36:
	movq	%r12, %rdi
	callq	_dpu_vbif_init_memtypes
	movq	8(%r12), %rdi
	callq	_pm_runtime_put_sync
	xorl	%ebx, %ebx
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid kms\n"

L_.str.1:                               ## @.str.1
	.asciz	"invalid device\n"

L_.str.2:                               ## @.str.2
	.asciz	"invalid private data\n"

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

L_.str.4:                               ## @.str.4
	.asciz	"mdp register memory map failed: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"mapped dpu address space @%pK\n"

L_.str.6:                               ## @.str.6
	.asciz	"vbif"

	.comm	_VBIF_RT,8,3                    ## @VBIF_RT
L_.str.7:                               ## @.str.7
	.asciz	"vbif register memory map failed: %d\n"

L_.str.8:                               ## @.str.8
	.asciz	"vbif_nrt"

	.comm	_VBIF_NRT,8,3                   ## @VBIF_NRT
L_.str.9:                               ## @.str.9
	.asciz	"VBIF NRT is not defined"

L_.str.10:                              ## @.str.10
	.asciz	"regdma"

L_.str.11:                              ## @.str.11
	.asciz	"REG_DMA is not defined"

L_.str.12:                              ## @.str.12
	.asciz	"dpu hardware revision:0x%x\n"

L_.str.13:                              ## @.str.13
	.asciz	"catalog init failed: %d\n"

L_.str.14:                              ## @.str.14
	.asciz	"dpu_kms_mmu_init failed: %d\n"

L_.str.15:                              ## @.str.15
	.asciz	"rm init failed: %d\n"

	.comm	_MDP_TOP,4,2                    ## @MDP_TOP
L_.str.16:                              ## @.str.16
	.asciz	"failed to get hw_mdp: %d\n"

L_.str.17:                              ## @.str.17
	.asciz	"failed to init vbif %d: %d\n"

L_.str.18:                              ## @.str.18
	.asciz	"core"

L_.str.19:                              ## @.str.19
	.asciz	"failed to init perf %d\n"

L_.str.20:                              ## @.str.20
	.asciz	"hw_intr init failed: %d\n"

L_.str.21:                              ## @.str.21
	.asciz	"modeset init failed: %d\n"

	.no_dead_strip	_dpu_kms_hw_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dpu_kms_hw_init
lCPI0_0:
	.long	4096                            ; 0x1000
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dpu_kms_hw_init:                       ; @dpu_kms_hw_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
Lloh0:
	adrp	x23, _EINVAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x23]
	neg	w21, w8
	cbz	x0, LBB0_5
; %bb.1:
	bl	_to_dpu_kms
	ldr	x20, [x0, #120]
	cbz	x20, LBB0_6
; %bb.2:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x19, x0
	add	x0, x0, #112
	mov	w1, #0
	bl	_atomic_set
	ldr	x0, [x19, #8]
Lloh2:
	adrp	x1, l_.str.3@PAGE
Lloh3:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x1
	bl	_msm_ioremap
	str	x0, [x19, #40]
	bl	_IS_ERR
	ldr	x1, [x19, #40]
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x1
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DPU_ERROR
	str	xzr, [x19, #40]
	b	LBB0_26
LBB0_5:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPU_ERROR
	b	LBB0_27
LBB0_6:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPU_ERROR
	b	LBB0_27
LBB0_7:
Lloh10:
	adrp	x0, l_.str.2@PAGE
Lloh11:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DPU_ERROR
	b	LBB0_27
LBB0_8:
Lloh12:
	adrp	x0, l_.str.5@PAGE
Lloh13:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_DRM_DEBUG
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dpu_iomap_size
	str	x0, [x19, #104]
	ldr	x0, [x19, #8]
Lloh16:
	adrp	x1, l_.str.6@PAGE
Lloh17:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x2, x1
	bl	_msm_ioremap
	ldr	x8, [x19, #56]
Lloh18:
	adrp	x22, _VBIF_RT@GOTPAGE
Lloh19:
	ldr	x22, [x22, _VBIF_RT@GOTPAGEOFF]
	ldr	x9, [x22]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #56]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19, #56]
	ldr	x9, [x22]
	ldr	x0, [x8, x9, lsl #3]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh20:
	adrp	x0, l_.str.7@PAGE
Lloh21:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_DPU_ERROR
	ldr	x8, [x19, #56]
	ldr	x9, [x22]
	str	xzr, [x8, x9, lsl #3]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	b	LBB0_26
LBB0_10:
	ldr	x0, [x19, #8]
Lloh22:
	adrp	x1, l_.str.6@PAGE
Lloh23:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dpu_iomap_size
	ldr	x8, [x19, #96]
	ldr	x9, [x22]
	str	x0, [x8, x9, lsl #3]
	ldr	x0, [x19, #8]
Lloh24:
	adrp	x1, l_.str.8@PAGE
Lloh25:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x2, x1
	bl	_msm_ioremap
	ldr	x8, [x19, #56]
Lloh26:
	adrp	x21, _VBIF_NRT@GOTPAGE
Lloh27:
	ldr	x21, [x21, _VBIF_NRT@GOTPAGEOFF]
	ldr	x9, [x21]
	lsl	x9, x9, #3
	str	x0, [x8, x9]
	ldr	x8, [x19, #56]
	ldr	x0, [x8, x9]
	bl	_IS_ERR
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19, #56]
	ldr	x9, [x21]
	str	xzr, [x8, x9, lsl #3]
Lloh28:
	adrp	x0, l_.str.9@PAGE
Lloh29:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_DPU_DEBUG
	b	LBB0_13
LBB0_12:
	ldr	x0, [x19, #8]
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dpu_iomap_size
	ldr	x8, [x19, #96]
	ldr	x9, [x21]
	str	x0, [x8, x9, lsl #3]
LBB0_13:
	ldr	x0, [x19, #8]
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x2, x1
	bl	_msm_ioremap
	str	x0, [x19, #88]
	bl	_IS_ERR
	cbz	x0, LBB0_15
; %bb.14:
	str	xzr, [x19, #88]
Lloh34:
	adrp	x0, l_.str.11@PAGE
Lloh35:
	add	x0, x0, l_.str.11@PAGEOFF
	bl	_DPU_DEBUG
	b	LBB0_16
LBB0_15:
	ldr	x0, [x19, #8]
Lloh36:
	adrp	x1, l_.str.10@PAGE
Lloh37:
	add	x1, x1, l_.str.10@PAGEOFF
	bl	_dpu_iomap_size
	str	x0, [x19, #80]
LBB0_16:
	ldr	x0, [x19, #8]
	bl	_pm_runtime_get_sync
	ldr	x0, [x19, #40]
	bl	_readl_relaxed
	mov	x1, x0
	str	w0, [x19, #76]
Lloh38:
	adrp	x0, l_.str.12@PAGE
Lloh39:
	add	x0, x0, l_.str.12@PAGEOFF
	bl	_pr_info
	ldr	w0, [x19, #76]
	bl	_dpu_hw_catalog_init
	str	x0, [x19, #24]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x0, [x19, #24]
	bl	_PTR_ERR
	ldr	x8, [x19, #24]
	ldr	w9, [x23]
	cmp	x8, #0
	csneg	w21, w0, w9, ne
	str	x21, [sp]
Lloh40:
	adrp	x0, l_.str.13@PAGE
Lloh41:
	add	x0, x0, l_.str.13@PAGEOFF
	bl	_DPU_ERROR
	str	xzr, [x19, #24]
	b	LBB0_24
LBB0_18:
	mov	x0, x19
	bl	__dpu_kms_mmu_init
	cbz	w0, LBB0_20
; %bb.19:
	mov	x21, x0
	str	x21, [sp]
Lloh42:
	adrp	x0, l_.str.14@PAGE
Lloh43:
	add	x0, x0, l_.str.14@PAGEOFF
	bl	_DPU_ERROR
	b	LBB0_24
LBB0_20:
	add	x0, x19, #72
	ldr	x1, [x19, #24]
	ldr	x2, [x19, #40]
	bl	_dpu_rm_init
	cbz	w0, LBB0_22
; %bb.21:
	mov	x21, x0
	str	x21, [sp]
Lloh44:
	adrp	x0, l_.str.15@PAGE
Lloh45:
	add	x0, x0, l_.str.15@PAGEOFF
	bl	_DPU_ERROR
	b	LBB0_24
LBB0_22:
	mov	w8, #1
	str	w8, [x19]
Lloh46:
	adrp	x8, _MDP_TOP@GOTPAGE
Lloh47:
	ldr	x8, [x8, _MDP_TOP@GOTPAGEOFF]
Lloh48:
	ldr	w0, [x8]
	ldr	x1, [x19, #40]
	ldr	x2, [x19, #24]
	bl	_dpu_hw_mdptop_init
	str	x0, [x19, #64]
	bl	_IS_ERR
	cbz	x0, LBB0_28
; %bb.23:
	ldr	x0, [x19, #64]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh49:
	adrp	x0, l_.str.16@PAGE
Lloh50:
	add	x0, x0, l_.str.16@PAGEOFF
	bl	_DPU_ERROR
	str	xzr, [x19, #64]
LBB0_24:
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_25:
	ldr	x0, [x19, #8]
	bl	_pm_runtime_put_sync
LBB0_26:
	mov	x0, x19
	bl	__dpu_kms_hw_destroy
LBB0_27:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
LBB0_28:
	ldr	x22, [x19, #24]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_32
; %bb.29:
	mov	x25, #0
LBB0_30:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	lsl	x26, x25, #3
	ldr	x21, [x8, x26]
	ldr	x8, [x19, #56]
	lsl	x24, x21, #3
	ldr	x1, [x8, x24]
	mov	x0, x21
	mov	x2, x22
	bl	_dpu_hw_vbif_init
	ldr	x8, [x19, #48]
	str	x0, [x8, x26]
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x24]
	bl	_IS_ERR_OR_NULL
	cbnz	x0, LBB0_34
; %bb.31:                               ;   in Loop: Header=BB0_30 Depth=1
	add	x25, x25, #1
	ldr	x22, [x19, #24]
	ldrsw	x8, [x22]
	cmp	x25, x8
	b.lt	LBB0_30
LBB0_32:
	add	x21, x19, #16
Lloh51:
	adrp	x1, l_.str.18@PAGE
Lloh52:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	__dpu_kms_get_clk
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_dpu_core_perf_init
	cbz	w0, LBB0_35
; %bb.33:
	mov	x22, x0
	str	x22, [sp]
Lloh53:
	adrp	x0, l_.str.19@PAGE
Lloh54:
	add	x0, x0, l_.str.19@PAGEOFF
	bl	_DPU_ERROR
	mov	x21, x22
	b	LBB0_25
LBB0_34:
	ldr	x8, [x19, #48]
	ldr	x0, [x8, x24]
	bl	_PTR_ERR
	ldr	x8, [x19, #48]
	ldr	x8, [x8, x24]
	ldr	w9, [x23]
	cmp	x8, #0
	csneg	w20, w0, w9, ne
	stp	x21, x20, [sp]
Lloh55:
	adrp	x0, l_.str.17@PAGE
Lloh56:
	add	x0, x0, l_.str.17@PAGEOFF
	bl	_DPU_ERROR
	ldr	x8, [x19, #48]
	str	xzr, [x8, x24]
	mov	x21, x20
	b	LBB0_25
LBB0_35:
	ldr	x0, [x19, #40]
	ldr	x1, [x19, #24]
	bl	_dpu_hw_intr_init
	str	x0, [x19, #32]
	bl	_IS_ERR_OR_NULL
	cbz	x0, LBB0_37
; %bb.36:
	ldr	x0, [x19, #32]
	bl	_PTR_ERR
	mov	x21, x0
	str	x21, [sp]
Lloh57:
	adrp	x0, l_.str.20@PAGE
Lloh58:
	add	x0, x0, l_.str.20@PAGEOFF
	bl	_DPU_ERROR
	str	xzr, [x19, #32]
	b	LBB0_24
LBB0_37:
	stp	xzr, xzr, [x20, #16]
	ldr	x8, [x19, #24]
	ldr	x8, [x8, #8]
	ldr	w8, [x8]
	lsl	w8, w8, #1
	str	w8, [x20]
Lloh59:
	adrp	x8, lCPI0_0@PAGE
Lloh60:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	stur	d0, [x20, #4]
	mov	x0, x19
	bl	__dpu_kms_drm_obj_init
	cbz	w0, LBB0_39
; %bb.38:
	mov	x20, x0
	str	x20, [sp]
Lloh61:
	adrp	x0, l_.str.21@PAGE
Lloh62:
	add	x0, x0, l_.str.21@PAGEOFF
	bl	_DPU_ERROR
	mov	x0, x21
	bl	_dpu_core_perf_destroy
	mov	x21, x20
	b	LBB0_25
LBB0_39:
	mov	x0, x19
	bl	_dpu_vbif_init_memtypes
	ldr	x0, [x19, #8]
	bl	_pm_runtime_put_sync
	mov	w21, #0
	b	LBB0_27
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpLdr	Lloh59, Lloh60
	.loh AdrpAdd	Lloh61, Lloh62
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid kms\n"

l_.str.1:                               ; @.str.1
	.asciz	"invalid device\n"

l_.str.2:                               ; @.str.2
	.asciz	"invalid private data\n"

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

l_.str.4:                               ; @.str.4
	.asciz	"mdp register memory map failed: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"mapped dpu address space @%pK\n"

l_.str.6:                               ; @.str.6
	.asciz	"vbif"

	.comm	_VBIF_RT,8,3                    ; @VBIF_RT
l_.str.7:                               ; @.str.7
	.asciz	"vbif register memory map failed: %d\n"

l_.str.8:                               ; @.str.8
	.asciz	"vbif_nrt"

	.comm	_VBIF_NRT,8,3                   ; @VBIF_NRT
l_.str.9:                               ; @.str.9
	.asciz	"VBIF NRT is not defined"

l_.str.10:                              ; @.str.10
	.asciz	"regdma"

l_.str.11:                              ; @.str.11
	.asciz	"REG_DMA is not defined"

l_.str.12:                              ; @.str.12
	.asciz	"dpu hardware revision:0x%x\n"

l_.str.13:                              ; @.str.13
	.asciz	"catalog init failed: %d\n"

l_.str.14:                              ; @.str.14
	.asciz	"dpu_kms_mmu_init failed: %d\n"

l_.str.15:                              ; @.str.15
	.asciz	"rm init failed: %d\n"

	.comm	_MDP_TOP,4,2                    ; @MDP_TOP
l_.str.16:                              ; @.str.16
	.asciz	"failed to get hw_mdp: %d\n"

l_.str.17:                              ; @.str.17
	.asciz	"failed to init vbif %d: %d\n"

l_.str.18:                              ; @.str.18
	.asciz	"core"

l_.str.19:                              ; @.str.19
	.asciz	"failed to init perf %d\n"

l_.str.20:                              ; @.str.20
	.asciz	"hw_intr init failed: %d\n"

l_.str.21:                              ; @.str.21
	.asciz	"modeset init failed: %d\n"

	.no_dead_strip	_dpu_kms_hw_init
.subsections_via_symbols
