	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_panel_disable_backlight  ## -- Begin function intel_panel_disable_backlight
	.p2align	4, 0x90
_intel_panel_disable_backlight:         ## @intel_panel_disable_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	%rdi, %r14
	movl	(%rdi), %edi
	callq	_to_intel_connector
	movq	%rax, %rbx
	movl	32(%rax), %edi
	callq	_to_i915
	cmpl	$0, 24(%rbx)
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	movq	8(%rax), %rax
	movq	_DRM_SWITCH_POWER_CHANGING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.6:
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DRM_DEBUG_DRIVER               ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_FB_BLANK_POWERDOWN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
LBB0_4:
	movl	$0, (%rbx)
	movq	%r14, %rdi
	callq	*8(%rbx)
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_SWITCH_POWER_CHANGING,8,3  ## @DRM_SWITCH_POWER_CHANGING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Skipping backlight disable on vga switch\n"

	.comm	_FB_BLANK_POWERDOWN,4,2         ## @FB_BLANK_POWERDOWN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_panel_disable_backlight  ; -- Begin function intel_panel_disable_backlight
	.p2align	2
_intel_panel_disable_backlight:         ; @intel_panel_disable_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, x0
	ldr	w0, [x0]
	bl	_to_intel_connector
	mov	x20, x0
	ldr	w0, [x0, #32]
	bl	_to_i915
	ldr	w8, [x20, #24]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x21, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _DRM_SWITCH_POWER_CHANGING@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_SWITCH_POWER_CHANGING@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	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	_DRM_DEBUG_DRIVER
LBB0_3:
	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
LBB0_4:
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.5:
Lloh5:
	adrp	x9, _FB_BLANK_POWERDOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FB_BLANK_POWERDOWN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	str	w9, [x8]
LBB0_6:
	str	wzr, [x20]
	ldr	x8, [x20, #8]
	mov	x0, x19
	blr	x8
	mov	x0, x21
	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	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_SWITCH_POWER_CHANGING,8,3  ; @DRM_SWITCH_POWER_CHANGING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Skipping backlight disable on vga switch\n"

	.comm	_FB_BLANK_POWERDOWN,4,2         ; @FB_BLANK_POWERDOWN
.subsections_via_symbols
