	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl111_display_disable          ## -- Begin function pl111_display_disable
	.p2align	4, 0x90
_pl111_display_disable:                 ## @pl111_display_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %r14
	movq	(%r14), %rbx
	movq	32(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	callq	_drm_crtc_vblank_off
LBB0_2:
	movq	8(%rbx), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_CNTL_LCDPWR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	je	LBB0_4
## %bb.3:
	notl	%ecx
	andl	%ecx, %eax
	movq	8(%rbx), %rsi
	addq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
LBB0_4:
	movl	$20, %edi
	callq	_msleep
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	callq	*%rax
LBB0_6:
	movq	8(%rbx), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_clk_disable_unprepare          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CNTL_LCDPWR,4,2                ## @CNTL_LCDPWR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pl111_display_disable          ; -- Begin function pl111_display_disable
	.p2align	2
_pl111_display_disable:                 ; @pl111_display_disable
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
	ldr	x20, [x19]
	ldr	x8, [x20, #32]
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_drm_crtc_vblank_off
LBB0_2:
	ldp	x9, x8, [x20, #8]
	add	x0, x9, x8
	bl	_readl
Lloh0:
	adrp	x8, _CNTL_LCDPWR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CNTL_LCDPWR@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	bic	w0, w0, w8
	ldp	x9, x8, [x20, #8]
	add	x1, x9, x8
	bl	_writel
LBB0_4:
	mov	w0, #20
	bl	_msleep
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	blr	x8
LBB0_6:
	ldp	x9, x8, [x20, #8]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_clk_disable_unprepare
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CNTL_LCDPWR,4,2                ; @CNTL_LCDPWR
.subsections_via_symbols
