	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_intel_opregion_enable_asle ## -- Begin function psb_intel_opregion_enable_asle
	.p2align	4, 0x90
_psb_intel_opregion_enable_asle:        ## @psb_intel_opregion_enable_asle
	.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), %rbx
	movq	(%rbx), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.1:
	movq	_system_opregion@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_PIPE_LEGACY_BLC_EVENT_ENABLE@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_psb_enable_pipestat
	movl	(%r15), %edx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_psb_enable_pipestat
	movq	_ASLE_ALS_EN@GOTPCREL(%rip), %rax
	movq	_ASLE_BLC_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_ASLE_PFIT_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_ASLE_PFMB_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%r14)
	movl	$1, 4(%r14)
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_system_opregion,8,3            ## @system_opregion
	.comm	_PIPE_LEGACY_BLC_EVENT_ENABLE,4,2 ## @PIPE_LEGACY_BLC_EVENT_ENABLE
	.comm	_ASLE_ALS_EN,4,2                ## @ASLE_ALS_EN
	.comm	_ASLE_BLC_EN,4,2                ## @ASLE_BLC_EN
	.comm	_ASLE_PFIT_EN,4,2               ## @ASLE_PFIT_EN
	.comm	_ASLE_PFMB_EN,4,2               ## @ASLE_PFMB_EN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psb_intel_opregion_enable_asle ; -- Begin function psb_intel_opregion_enable_asle
	.p2align	2
_psb_intel_opregion_enable_asle:        ; @psb_intel_opregion_enable_asle
	.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
	ldr	x19, [x0]
	ldr	x20, [x19]
Lloh0:
	adrp	x8, _system_opregion@GOTPAGE
Lloh1:
	ldr	x8, [x8, _system_opregion@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x20, #0
	ccmp	x8, #0, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x21, _PIPE_LEGACY_BLC_EVENT_ENABLE@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PIPE_LEGACY_BLC_EVENT_ENABLE@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_psb_enable_pipestat
	ldr	w2, [x21]
	mov	w21, #1
	mov	x0, x19
	mov	w1, #1
	bl	_psb_enable_pipestat
Lloh5:
	adrp	x8, _ASLE_ALS_EN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ASLE_ALS_EN@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _ASLE_BLC_EN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _ASLE_BLC_EN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh11:
	adrp	x9, _ASLE_PFIT_EN@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ASLE_PFIT_EN@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _ASLE_PFMB_EN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _ASLE_PFMB_EN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	stp	w8, w21, [x20]
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_system_opregion,8,3            ; @system_opregion
	.comm	_PIPE_LEGACY_BLC_EVENT_ENABLE,4,2 ; @PIPE_LEGACY_BLC_EVENT_ENABLE
	.comm	_ASLE_ALS_EN,4,2                ; @ASLE_ALS_EN
	.comm	_ASLE_BLC_EN,4,2                ; @ASLE_BLC_EN
	.comm	_ASLE_PFIT_EN,4,2               ; @ASLE_PFIT_EN
	.comm	_ASLE_PFMB_EN,4,2               ; @ASLE_PFMB_EN
.subsections_via_symbols
