	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp5_init
_mdp5_init:                             ## @mdp5_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	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rsi), %r13
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$96, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_platform_set_drvdata
	leaq	88(%r12), %rdi
	callq	_spin_lock_init
	movq	%r15, 80(%r12)
	movq	%r14, 72(%r12)
	movq	%r12, %rdi
	callq	_mdp5_global_obj_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_msm_ioremap
	movq	%rax, 32(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	32(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movq	%r14, %rdi
	callq	_mdp5_destroy
LBB0_21:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	leaq	64(%r12), %rsi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_get_clk
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.7:
	leaq	60(%r12), %rsi
	leaq	L_.str.3(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_get_clk
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.8:
	leaq	48(%r12), %rsi
	leaq	L_.str.4(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_get_clk
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.9:
	leaq	56(%r12), %rsi
	leaq	L_.str.5(%rip), %rdx
	movq	%r14, %rdi
	movl	$1, %ecx
	callq	_get_clk
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.10:
	leaq	52(%r12), %rsi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_get_clk
	movl	48(%r12), %edi
	movl	$200000000, %esi                ## imm = 0xBEBC200
	callq	_clk_set_rate
	movq	%r14, %rdi
	callq	_pm_runtime_enable
	movl	$1, (%r12)
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_read_mdp_hw_revision
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	%r12, %rdi
	callq	_mdp5_cfg_init
	movq	%rax, 24(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	24(%r12), %rdi
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	$0, 24(%r12)
	jmp	LBB0_5
LBB0_12:
	callq	_mdp5_cfg_get_config
	movq	%rax, %rbx
	movq	(%rax), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 4(%r12)
	movl	48(%r12), %edi
	movl	(%rax), %esi
	callq	_clk_set_rate
	movq	_MDP_CAP_SMP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r12)
	je	LBB0_15
## %bb.13:
	movq	(%rbx), %rsi
	addq	$4, %rsi
	movq	%r12, %rdi
	callq	_mdp5_smp_init
	movq	%rax, 40(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	40(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	$0, 40(%r12)
	jmp	LBB0_5
LBB0_15:
	movq	24(%r12), %rdx
	movq	32(%r12), %rsi
	movq	%r15, %rdi
	callq	_mdp5_ctlm_init
	movq	%rax, 16(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	movq	16(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movq	$0, 16(%r12)
	jmp	LBB0_5
LBB0_17:
	movq	%r12, %rdi
	callq	_hwpipe_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.18:
	movq	%r12, %rdi
	callq	_hwmixer_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.19:
	movq	%r12, %rdi
	callq	_interface_init
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.20:
	addq	$8, %r12
	movq	%r12, (%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mdp_phys"

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

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

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

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

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

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

	.comm	_MDP_CAP_SMP,4,2                ## @MDP_CAP_SMP
	.no_dead_strip	_mdp5_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp5_init
_mdp5_init:                             ; @mdp5_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x1
	mov	x19, x0
	ldr	x23, [x1]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #96
	bl	_devm_kzalloc
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_platform_set_drvdata
	add	x0, x20, #88
	bl	_spin_lock_init
	stp	x19, x21, [x20, #72]
	mov	x0, x20
	bl	_mdp5_global_obj_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
Lloh5:
	adrp	x2, l_.str.1@PAGE
Lloh6:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_msm_ioremap
	str	x0, [x20, #32]
	bl	_IS_ERR
	cbz	x0, LBB0_7
; %bb.3:
	ldr	x0, [x20, #32]
	bl	_PTR_ERR
	mov	x22, x0
	b	LBB0_5
LBB0_4:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_5:
	mov	x0, x19
	bl	_mdp5_destroy
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #80
	ret
LBB0_7:
	add	x1, x20, #64
Lloh10:
	adrp	x2, l_.str.2@PAGE
Lloh11:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_get_clk
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.8:
	add	x1, x20, #60
Lloh12:
	adrp	x2, l_.str.3@PAGE
Lloh13:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_get_clk
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.9:
	add	x1, x20, #48
Lloh14:
	adrp	x2, l_.str.4@PAGE
Lloh15:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w3, #1
	bl	_get_clk
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.10:
	add	x1, x20, #56
Lloh16:
	adrp	x2, l_.str.5@PAGE
Lloh17:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	w24, #1
	mov	x0, x19
	mov	w3, #1
	bl	_get_clk
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.11:
	add	x1, x20, #52
Lloh18:
	adrp	x2, l_.str.6@PAGE
Lloh19:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	w3, #0
	bl	_get_clk
	ldr	w0, [x20, #48]
	mov	w1, #49664
	movk	w1, #3051, lsl #16
	bl	_clk_set_rate
	mov	x0, x19
	bl	_pm_runtime_enable
	str	w24, [x20]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x20
	bl	_read_mdp_hw_revision
	ldp	w2, w1, [sp, #8]
	mov	x0, x20
	bl	_mdp5_cfg_init
	str	x0, [x20, #24]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x20, #24]
	cbz	x8, LBB0_13
; %bb.12:
	bl	_PTR_ERR
	mov	x22, x0
	str	xzr, [x20, #24]
	b	LBB0_5
LBB0_13:
	bl	_mdp5_cfg_get_config
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w9, [x8, #8]
	str	w9, [x20, #4]
	ldr	w0, [x20, #48]
	ldr	w1, [x8]
	bl	_clk_set_rate
	ldr	w8, [x20, #4]
Lloh20:
	adrp	x9, _MDP_CAP_SMP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _MDP_CAP_SMP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	x8, [x22]
	add	x1, x8, #4
	mov	x0, x20
	bl	_mdp5_smp_init
	str	x0, [x20, #40]
	bl	_IS_ERR
	cbz	x0, LBB0_16
; %bb.15:
	ldr	x0, [x20, #40]
	bl	_PTR_ERR
	mov	x22, x0
	str	xzr, [x20, #40]
	b	LBB0_5
LBB0_16:
	ldp	x2, x1, [x20, #24]
	mov	x0, x21
	bl	_mdp5_ctlm_init
	str	x0, [x20, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_18
; %bb.17:
	ldr	x0, [x20, #16]
	bl	_PTR_ERR
	mov	x22, x0
	str	xzr, [x20, #16]
	b	LBB0_5
LBB0_18:
	mov	x0, x20
	bl	_hwpipe_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.19:
	mov	x0, x20
	bl	_hwmixer_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.20:
	mov	x0, x20
	bl	_interface_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.21:
	add	x8, x20, #8
	str	x8, [x23]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mdp_phys"

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

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

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

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

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

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

	.comm	_MDP_CAP_SMP,4,2                ; @MDP_CAP_SMP
	.no_dead_strip	_mdp5_init
.subsections_via_symbols
