	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_enable_irled               ## -- Begin function pmu_enable_irled
	.p2align	4, 0x90
_pmu_enable_irled:                      ## @pmu_enable_irled
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_vias@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.1:
	movq	_pmu_kind@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_PMU_KEYLARGO_BASED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.2:
	movq	_PMU_POWER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PMU_POW_IRLED@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	jne	LBB0_3
## %bb.4:
	movq	_PMU_POW_OFF@GOTPCREL(%rip), %rdx
	jmp	LBB0_5
LBB0_3:
	movq	_PMU_POW_ON@GOTPCREL(%rip), %rdx
LBB0_5:
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	leaq	-16(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_pmu_request
	movq	%rbx, %rdi
	callq	_pmu_wait_complete
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vias,8,3                       ## @vias
	.comm	_pmu_kind,8,3                   ## @pmu_kind
	.comm	_PMU_KEYLARGO_BASED,8,3         ## @PMU_KEYLARGO_BASED
	.comm	_PMU_POWER_CTRL,4,2             ## @PMU_POWER_CTRL
	.comm	_PMU_POW_IRLED,4,2              ## @PMU_POW_IRLED
	.comm	_PMU_POW_ON,4,2                 ## @PMU_POW_ON
	.comm	_PMU_POW_OFF,4,2                ## @PMU_POW_OFF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmu_enable_irled               ; -- Begin function pmu_enable_irled
	.p2align	2
_pmu_enable_irled:                      ; @pmu_enable_irled
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _vias@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vias@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _pmu_kind@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pmu_kind@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _PMU_KEYLARGO_BASED@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PMU_KEYLARGO_BASED@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
Lloh9:
	adrp	x8, _PMU_POWER_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PMU_POWER_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
Lloh12:
	adrp	x8, _PMU_POW_IRLED@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PMU_POW_IRLED@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _PMU_POW_ON@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PMU_POW_ON@GOTPAGEOFF]
Lloh17:
	adrp	x10, _PMU_POW_OFF@GOTPAGE
Lloh18:
	ldr	x10, [x10, _PMU_POW_OFF@GOTPAGEOFF]
	cmp	w0, #0
	csel	x9, x10, x9, eq
	ldr	w9, [x9]
	orr	w4, w9, w8
	add	x0, sp, #8
	mov	x1, #0
	mov	w2, #2
	bl	_pmu_request
	add	x0, sp, #8
	bl	_pmu_wait_complete
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_vias,8,3                       ; @vias
	.comm	_pmu_kind,8,3                   ; @pmu_kind
	.comm	_PMU_KEYLARGO_BASED,8,3         ; @PMU_KEYLARGO_BASED
	.comm	_PMU_POWER_CTRL,4,2             ; @PMU_POWER_CTRL
	.comm	_PMU_POW_IRLED,4,2              ; @PMU_POW_IRLED
	.comm	_PMU_POW_ON,4,2                 ; @PMU_POW_ON
	.comm	_PMU_POW_OFF,4,2                ; @PMU_POW_OFF
.subsections_via_symbols
