	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __intel_panel_enable_backlight
___intel_panel_enable_backlight:        ## @__intel_panel_enable_backlight
	.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	%rsi, %r15
	movq	%rdi, %r14
	movl	(%rsi), %edi
	callq	_to_intel_connector
	movq	%rax, %rbx
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
	callq	_WARN_ON
	movq	8(%rbx), %rax
	cmpq	16(%rbx), %rax
	jg	LBB0_3
## %bb.1:
	movq	(%rbx), %rsi
	movq	32(%rbx), %rax
	movq	%rsi, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	4(%rax), %edx
	movq	%rbx, %rdi
	callq	_scale_hw_to_user
	movq	32(%rbx), %rcx
	movl	%eax, 8(%rcx)
LBB0_3:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*40(%rbx)
	movl	$1, 24(%rbx)
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_FB_BLANK_UNBLANK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FB_BLANK_UNBLANK,4,2           ## @FB_BLANK_UNBLANK
	.no_dead_strip	___intel_panel_enable_backlight
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __intel_panel_enable_backlight
___intel_panel_enable_backlight:        ; @__intel_panel_enable_backlight
	.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, x1
	mov	x21, x0
	ldr	w0, [x1]
	bl	_to_intel_connector
	mov	x20, x0
	ldr	x8, [x0]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	ldp	x8, x9, [x20, #8]
	cmp	x8, x9
	b.gt	LBB0_3
; %bb.1:
	ldr	x1, [x20]
	str	x1, [x20, #8]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w2, [x8, #4]
	mov	x0, x20
	bl	_scale_hw_to_user
	ldr	x8, [x20, #32]
	str	w0, [x8, #8]
LBB0_3:
	ldr	x8, [x20, #40]
	mov	x0, x21
	mov	x1, x19
	blr	x8
	mov	w8, #1
	str	w8, [x20, #24]
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_5
; %bb.4:
Lloh0:
	adrp	x9, _FB_BLANK_UNBLANK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FB_BLANK_UNBLANK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_5:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_FB_BLANK_UNBLANK,4,2           ; @FB_BLANK_UNBLANK
	.no_dead_strip	___intel_panel_enable_backlight
.subsections_via_symbols
