	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movl	$0, (%rax)
	xorl	%esi, %esi
	callq	_intel_panel_actually_set_backlight
	movq	%rbx, %rdi
	callq	_INTEL_INFO
	cmpl	$4, (%rax)
	jl	LBB0_5
## %bb.1:
	movq	%rbx, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	jne	LBB0_2
## %bb.3:
	movq	_BLC_PWM_CTL2@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_BLC_PWM_CPU_CTL2@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r14d
	movl	%r14d, %edi
	callq	_I915_READ
	movq	_BLM_PWM_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	%r14d, %edi
	callq	_I915_WRITE
	movq	%rbx, %rdi
	callq	_HAS_PCH_SPLIT
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_BLC_PWM_PCH_CTL1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_I915_READ
	movq	_BLM_PCH_PWM_ENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	notl	%esi
	andl	%eax, %esi
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_I915_WRITE                     ## TAILCALL
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLC_PWM_CPU_CTL2,4,2           ## @BLC_PWM_CPU_CTL2
	.comm	_BLC_PWM_CTL2,4,2               ## @BLC_PWM_CTL2
	.comm	_BLM_PWM_ENABLE,4,2             ## @BLM_PWM_ENABLE
	.comm	_BLC_PWM_PCH_CTL1,4,2           ## @BLC_PWM_PCH_CTL1
	.comm	_BLM_PCH_PWM_ENABLE,4,2         ## @BLM_PCH_PWM_ENABLE
.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	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
	mov	x19, x0
	ldr	x8, [x0]
	str	wzr, [x8]
	mov	w1, #0
	bl	_intel_panel_actually_set_backlight
	mov	x0, x19
	bl	_INTEL_INFO
	ldr	w8, [x0]
	cmp	w8, #4
	b.lt	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_HAS_PCH_SPLIT
Lloh0:
	adrp	x8, _BLC_PWM_CPU_CTL2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLC_PWM_CPU_CTL2@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BLC_PWM_CTL2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BLC_PWM_CTL2@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	mov	x0, x20
	bl	_I915_READ
Lloh4:
	adrp	x8, _BLM_PWM_ENABLE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BLM_PWM_ENABLE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	bic	w1, w0, w8
	mov	x0, x20
	bl	_I915_WRITE
	mov	x0, x19
	bl	_HAS_PCH_SPLIT
	cbz	x0, LBB0_3
; %bb.2:
Lloh7:
	adrp	x19, _BLC_PWM_PCH_CTL1@GOTPAGE
Lloh8:
	ldr	x19, [x19, _BLC_PWM_PCH_CTL1@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_I915_READ
Lloh9:
	adrp	x8, _BLM_PCH_PWM_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BLM_PCH_PWM_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	bic	w1, w0, w8
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_I915_WRITE
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_BLC_PWM_CPU_CTL2,4,2           ; @BLC_PWM_CPU_CTL2
	.comm	_BLC_PWM_CTL2,4,2               ; @BLC_PWM_CTL2
	.comm	_BLM_PWM_ENABLE,4,2             ; @BLM_PWM_ENABLE
	.comm	_BLC_PWM_PCH_CTL1,4,2           ; @BLC_PWM_PCH_CTL1
	.comm	_BLM_PCH_PWM_ENABLE,4,2         ; @BLM_PCH_PWM_ENABLE
.subsections_via_symbols
