	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mdp4_lcdc_encoder_disable
_mdp4_lcdc_encoder_disable:             ## @mdp4_lcdc_encoder_disable
	.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, %r14
	movq	(%rdi), %r12
	callq	_to_mdp4_lcdc_encoder
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_get_kms
	movq	%rax, %r14
	xorl	%edi, %edi
	cmpl	$0, (%r13)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	movq	_REG_MDP4_LCDC_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_mdp4_write
	movl	20(%r13), %edi
	callq	_of_drm_find_panel
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_drm_panel_disable
	movq	%r15, %rdi
	callq	_drm_panel_unprepare
LBB0_3:
	movq	_MDP4_IRQ_PRIMARY_VSYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_mdp_irq_wait
	movl	16(%r13), %edi
	callq	_clk_disable_unprepare
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r14
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	movq	8(%r13), %rdi
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jge	LBB0_8
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_regulator_disable
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r12), %edi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_DRM_DEV_ERROR
	jmp	LBB0_7
LBB0_8:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_bs_set
	movl	$0, (%r13)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MDP4_LCDC_ENABLE,4,2       ## @REG_MDP4_LCDC_ENABLE
	.comm	_MDP4_IRQ_PRIMARY_VSYNC,4,2     ## @MDP4_IRQ_PRIMARY_VSYNC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable regulator: %d\n"

	.no_dead_strip	_mdp4_lcdc_encoder_disable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mdp4_lcdc_encoder_disable
_mdp4_lcdc_encoder_disable:             ; @mdp4_lcdc_encoder_disable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x0
	ldr	x22, [x0]
	bl	_to_mdp4_lcdc_encoder
	mov	x19, x0
	mov	x0, x20
	bl	_get_kms
	mov	x20, x0
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_9
; %bb.1:
Lloh0:
	adrp	x8, _REG_MDP4_LCDC_ENABLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_MDP4_LCDC_ENABLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_mdp4_write
	ldr	w0, [x19, #20]
	bl	_of_drm_find_panel
	mov	x21, x0
	bl	_IS_ERR
	cbnz	w0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_drm_panel_disable
	mov	x0, x21
	bl	_drm_panel_unprepare
LBB0_3:
Lloh3:
	adrp	x8, _MDP4_IRQ_PRIMARY_VSYNC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MDP4_IRQ_PRIMARY_VSYNC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_mdp_irq_wait
	ldr	w0, [x19, #16]
	bl	_clk_disable_unprepare
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x21, #0
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	x0, [x19, #8]
	bl	_ARRAY_SIZE
	cmp	x21, w0, sxtw
	b.ge	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w0, [x8, x21, lsl #2]
	bl	_regulator_disable
	cbz	w0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x2, x0
	ldr	w0, [x22]
	mov	x1, x20
	bl	_DRM_DEV_ERROR
	b	LBB0_5
LBB0_8:
	mov	x0, x19
	mov	w1, #0
	bl	_bs_set
	str	wzr, [x19]
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MDP4_LCDC_ENABLE,4,2       ; @REG_MDP4_LCDC_ENABLE
	.comm	_MDP4_IRQ_PRIMARY_VSYNC,4,2     ; @MDP4_IRQ_PRIMARY_VSYNC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable regulator: %d\n"

	.no_dead_strip	_mdp4_lcdc_encoder_disable
.subsections_via_symbols
