	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_mdss_init                 ## -- Begin function mdp5_mdss_init
	.p2align	4, 0x90
_mdp5_mdss_init:                        ## @mdp5_mdss_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
	movq	(%rdi), %rdi
	callq	_to_platform_device
	movq	%rax, %r15
	movq	8(%rbx), %r13
	leaq	L_.str(%rip), %rdi
	callq	_DBG
	movq	(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_of_device_is_compatible
	testl	%eax, %eax
	je	LBB0_20
## %bb.1:
	movq	(%rbx), %rdi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$40, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, 16(%rax)
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r15, %rdi
	callq	_msm_ioremap
	movq	%rax, 32(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	32(%r14), %rdi
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_21
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r15, %rdi
	callq	_msm_ioremap
	movq	%rax, 24(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	24(%r14), %rdi
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	callq	_msm_mdss_get_clocks
	movq	(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	movl	%eax, %r12d
	leaq	L_.str.6(%rip), %rsi
LBB0_10:
	movl	%r12d, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_21
LBB0_11:
	leaq	L_.str.7(%rip), %rsi
	callq	_devm_regulator_get
	movq	%rax, (%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%r14), %rdi
	testq	%rax, %rax
	jne	LBB0_7
## %bb.12:
	callq	_regulator_enable
	movq	(%rbx), %rdi
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %r12d
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_10
LBB0_14:
	movq	%rdi, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_platform_get_irq
	movq	_mdss_irq@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.9(%rip), %r8
	movq	%r12, %rdi
	movl	%eax, %esi
	xorl	%ecx, %ecx
	movq	%r14, %r9
	callq	_devm_request_irq
	testl	%eax, %eax
	je	LBB0_17
## %bb.15:
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	leaq	L_.str.10(%rip), %rsi
	jmp	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	callq	_mdss_irq_domain_init
	testl	%eax, %eax
	je	LBB0_19
## %bb.18:
	movl	%eax, %r12d
	movq	(%rbx), %rdi
	leaq	L_.str.11(%rip), %rsi
LBB0_16:
	movl	%r12d, %edx
	callq	_DRM_DEV_ERROR
	movq	(%r14), %rdi
	callq	_regulator_disable
	jmp	LBB0_21
LBB0_19:
	addq	$8, %r14
	movq	_mdss_funcs@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	%r14, (%r13)
	movq	(%rbx), %rdi
	callq	_pm_runtime_enable
LBB0_20:
	xorl	%r12d, %r12d
LBB0_21:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"qcom,mdss"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"mdss_phys"

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

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

L_.str.5:                               ## @.str.5
	.asciz	"VBIF"

L_.str.6:                               ## @.str.6
	.asciz	"failed to get clocks: %d\n"

L_.str.7:                               ## @.str.7
	.asciz	"vdd"

L_.str.8:                               ## @.str.8
	.asciz	"failed to enable regulator vdd: %d\n"

	.comm	_mdss_irq,4,2                   ## @mdss_irq
L_.str.9:                               ## @.str.9
	.asciz	"mdss_isr"

L_.str.10:                              ## @.str.10
	.asciz	"failed to init irq: %d\n"

L_.str.11:                              ## @.str.11
	.asciz	"failed to init sub-block irqs: %d\n"

	.comm	_mdss_funcs,4,2                 ## @mdss_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp5_mdss_init                 ; -- Begin function mdp5_mdss_init
	.p2align	2
_mdp5_mdss_init:                        ; @mdp5_mdss_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	x19, x0
	ldr	x0, [x0]
	bl	_to_platform_device
	mov	x21, x0
	ldr	x24, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DBG
	ldr	x8, [x19]
	ldr	w0, [x8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_of_device_is_compatible
	cbz	w0, LBB0_4
; %bb.1:
	ldr	x0, [x19]
Lloh4:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #40
	bl	_devm_kzalloc
	cbz	x0, LBB0_5
; %bb.2:
	mov	x20, x0
	str	x19, [x0, #16]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh9:
	adrp	x2, l_.str.3@PAGE
Lloh10:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_msm_ioremap
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x20, #32]
	b	LBB0_9
LBB0_4:
	mov	w22, #0
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	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_7:
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_msm_ioremap
	str	x0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_10
; %bb.8:
	ldr	x0, [x20, #24]
LBB0_9:
	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	_PTR_ERR
LBB0_10:
	mov	x0, x20
	bl	_msm_mdss_get_clocks
	mov	x22, x0
	ldr	x0, [x19]
	cbz	w22, LBB0_13
; %bb.11:
Lloh18:
	adrp	x1, l_.str.6@PAGE
Lloh19:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_12:
	mov	x2, x22
	bl	_DRM_DEV_ERROR
	b	LBB0_6
LBB0_13:
Lloh20:
	adrp	x1, l_.str.7@PAGE
Lloh21:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_devm_regulator_get
	str	x0, [x20]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20]
	cbnz	x8, LBB0_9
; %bb.14:
	bl	_regulator_enable
	ldr	x23, [x19]
	cbz	w0, LBB0_16
; %bb.15:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.8@PAGE
Lloh23:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x23
	b	LBB0_12
LBB0_16:
	mov	x0, x21
	mov	w1, #0
	bl	_platform_get_irq
	mov	x1, x0
Lloh24:
	adrp	x8, _mdss_irq@GOTPAGE
Lloh25:
	ldr	x8, [x8, _mdss_irq@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x4, l_.str.9@PAGE
Lloh28:
	add	x4, x4, l_.str.9@PAGEOFF
	mov	x0, x23
	mov	w3, #0
	mov	x5, x20
	bl	_devm_request_irq
	cbz	w0, LBB0_18
; %bb.17:
	mov	x22, x0
	ldr	x0, [x19]
Lloh29:
	adrp	x1, l_.str.10@PAGE
Lloh30:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_20
LBB0_18:
	mov	x0, x20
	bl	_mdss_irq_domain_init
	mov	x22, x0
	cbz	w0, LBB0_21
; %bb.19:
	ldr	x0, [x19]
Lloh31:
	adrp	x1, l_.str.11@PAGE
Lloh32:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_20:
	mov	x2, x22
	bl	_DRM_DEV_ERROR
	ldr	x0, [x20]
	bl	_regulator_disable
	b	LBB0_6
LBB0_21:
	add	x8, x20, #8
Lloh33:
	adrp	x9, _mdss_funcs@GOTPAGE
Lloh34:
	ldr	x9, [x9, _mdss_funcs@GOTPAGEOFF]
	str	x9, [x8]
	str	x8, [x24]
	ldr	x0, [x19]
	bl	_pm_runtime_enable
	b	LBB0_6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"qcom,mdss"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"mdss_phys"

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

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

l_.str.5:                               ; @.str.5
	.asciz	"VBIF"

l_.str.6:                               ; @.str.6
	.asciz	"failed to get clocks: %d\n"

l_.str.7:                               ; @.str.7
	.asciz	"vdd"

l_.str.8:                               ; @.str.8
	.asciz	"failed to enable regulator vdd: %d\n"

	.comm	_mdss_irq,4,2                   ; @mdss_irq
l_.str.9:                               ; @.str.9
	.asciz	"mdss_isr"

l_.str.10:                              ; @.str.10
	.asciz	"failed to init irq: %d\n"

l_.str.11:                              ; @.str.11
	.asciz	"failed to init sub-block irqs: %d\n"

	.comm	_mdss_funcs,4,2                 ; @mdss_funcs
.subsections_via_symbols
