	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ironlake_edp_backlight_off     ## -- Begin function ironlake_edp_backlight_off
	.p2align	4, 0x90
_ironlake_edp_backlight_off:            ## @ironlake_edp_backlight_off
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_intel_dp_to_dev
	movq	%rax, %rbx
	movq	(%rax), %r14
	movq	%r15, %rdi
	callq	_is_edp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_intel_panel_disable_backlight
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movq	%r14, %rdi
	callq	_ironlake_get_pp_control
	movq	_EDP_BLC_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movq	_PCH_PP_CONTROL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_WRITE
	movl	(%rbx), %edi
	callq	_POSTING_READ
	movl	(%r15), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
LBB0_1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

	.comm	_EDP_BLC_ENABLE,4,2             ## @EDP_BLC_ENABLE
	.comm	_PCH_PP_CONTROL,4,2             ## @PCH_PP_CONTROL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ironlake_edp_backlight_off     ; -- Begin function ironlake_edp_backlight_off
	.p2align	2
_ironlake_edp_backlight_off:            ; @ironlake_edp_backlight_off
	.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	x19, x0
	bl	_intel_dp_to_dev
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x19
	bl	_is_edp
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_intel_panel_disable_backlight
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	x0, x20
	bl	_ironlake_get_pp_control
Lloh2:
	adrp	x8, _EDP_BLC_ENABLE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EDP_BLC_ENABLE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w1, w0, w8
Lloh5:
	adrp	x20, _PCH_PP_CONTROL@GOTPAGE
Lloh6:
	ldr	x20, [x20, _PCH_PP_CONTROL@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_I915_WRITE
	ldr	w0, [x20]
	bl	_POSTING_READ
	ldr	w0, [x19]
	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
	b	_msleep
LBB0_2:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

	.comm	_EDP_BLC_ENABLE,4,2             ; @EDP_BLC_ENABLE
	.comm	_PCH_PP_CONTROL,4,2             ; @PCH_PP_CONTROL
.subsections_via_symbols
