	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_lcdc_encoder_init         ## -- Begin function mdp4_lcdc_encoder_init
	.p2align	4, 0x90
_mdp4_lcdc_encoder_init:                ## @mdp4_lcdc_encoder_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, 24(%rax)
	movq	%rax, %r14
	addq	$16, %r14
	movq	_DRM_MODE_ENCODER_LVDS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_mdp4_lcdc_encoder_funcs@GOTPCREL(%rip), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_drm_encoder_init
	movq	_mdp4_lcdc_encoder_helper_funcs@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_drm_encoder_helper_add
	movq	%r15, %rdi
	callq	_mpd4_lvds_pll_init
	movq	%rax, 8(%r12)
	movq	%rax, %rdi
	callq	_IS_ERR
	movl	(%r15), %edi
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
	movq	8(%r12), %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_3
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	callq	_devm_regulator_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_7:
	movq	(%r12), %rax
	movq	%rbx, (%rax)
	movl	(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_devm_regulator_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	movq	(%r12), %rax
	movq	%rbx, 8(%rax)
	movl	(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	callq	_devm_regulator_get
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	callq	_PTR_ERR
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
LBB0_6:
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEV_ERROR
LBB0_3:
	movq	%r14, %rdi
	callq	_mdp4_lcdc_encoder_destroy
LBB0_13:
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
LBB0_11:
	movq	(%r12), %rax
	movq	%rbx, 16(%rax)
	movq	%r12, %rdi
	callq	_bs_init
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_mdp4_lcdc_encoder_funcs,4,2    ## @mdp4_lcdc_encoder_funcs
	.comm	_DRM_MODE_ENCODER_LVDS,4,2      ## @DRM_MODE_ENCODER_LVDS
	.comm	_mdp4_lcdc_encoder_helper_funcs,4,2 ## @mdp4_lcdc_encoder_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to get lvds_clk\n"

L_.str.1:                               ## @.str.1
	.asciz	"lvds-vccs-3p3v"

L_.str.2:                               ## @.str.2
	.asciz	"failed to get lvds-vccs-3p3v: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"lvds-pll-vdda"

L_.str.4:                               ## @.str.4
	.asciz	"failed to get lvds-pll-vdda: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"lvds-vdda"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mdp4_lcdc_encoder_init         ; -- Begin function mdp4_lcdc_encoder_init
	.p2align	2
_mdp4_lcdc_encoder_init:                ; @mdp4_lcdc_encoder_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	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, #32
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	str	x19, [x0, #24]
	add	x19, x0, #16
Lloh3:
	adrp	x8, _DRM_MODE_ENCODER_LVDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_ENCODER_LVDS@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
Lloh6:
	adrp	x2, _mdp4_lcdc_encoder_funcs@GOTPAGE
Lloh7:
	ldr	x2, [x2, _mdp4_lcdc_encoder_funcs@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	mov	x4, #0
	bl	_drm_encoder_init
Lloh8:
	adrp	x1, _mdp4_lcdc_encoder_helper_funcs@GOTPAGE
Lloh9:
	ldr	x1, [x1, _mdp4_lcdc_encoder_helper_funcs@GOTPAGEOFF]
	mov	x0, x19
	bl	_drm_encoder_helper_add
	mov	x0, x20
	bl	_mpd4_lvds_pll_init
	str	x0, [x21, #8]
	bl	_IS_ERR
	mov	x8, x0
	ldr	w0, [x20]
	cbz	x8, LBB0_4
; %bb.2:
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DRM_DEV_ERROR
	ldr	x0, [x21, #8]
	bl	_PTR_ERR
	mov	x21, x0
	b	LBB0_11
LBB0_3:
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_12
LBB0_4:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_devm_regulator_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x21, x0
	ldr	w0, [x20]
	str	x21, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_DRM_DEV_ERROR
	b	LBB0_11
LBB0_6:
	ldr	x8, [x21]
	str	x22, [x8]
	ldr	w0, [x20]
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_devm_regulator_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.7:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x21, x0
	ldr	w0, [x20]
	str	x21, [sp]
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_10
LBB0_8:
	ldr	x8, [x21]
	str	x22, [x8, #8]
	ldr	w0, [x20]
Lloh23:
	adrp	x1, l_.str.5@PAGE
Lloh24:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_devm_regulator_get
	mov	x22, x0
	bl	_IS_ERR
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x22
	bl	_PTR_ERR
	mov	x21, x0
	ldr	w0, [x20]
	str	x21, [sp]
Lloh25:
	adrp	x1, l_.str.6@PAGE
Lloh26:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_10:
	bl	_DRM_DEV_ERROR
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_11:
	mov	x0, x19
	bl	_mdp4_lcdc_encoder_destroy
LBB0_12:
	mov	x0, x21
	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
	add	sp, sp, #64
	b	_ERR_PTR
LBB0_13:
	ldr	x8, [x21]
	str	x22, [x8, #16]
	mov	x0, x21
	bl	_bs_init
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_mdp4_lcdc_encoder_funcs,4,2    ; @mdp4_lcdc_encoder_funcs
	.comm	_DRM_MODE_ENCODER_LVDS,4,2      ; @DRM_MODE_ENCODER_LVDS
	.comm	_mdp4_lcdc_encoder_helper_funcs,4,2 ; @mdp4_lcdc_encoder_helper_funcs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to get lvds_clk\n"

l_.str.1:                               ; @.str.1
	.asciz	"lvds-vccs-3p3v"

l_.str.2:                               ; @.str.2
	.asciz	"failed to get lvds-vccs-3p3v: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"lvds-pll-vdda"

l_.str.4:                               ; @.str.4
	.asciz	"failed to get lvds-pll-vdda: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"lvds-vdda"

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

.subsections_via_symbols
