	.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
	subq	$16, %rsp
	movq	_PMU_POWER_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PMU_POW_IRLED@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	jne	LBB0_1
## %bb.2:
	movq	_PMU_POW_OFF@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_1:
	movq	_PMU_POW_ON@GOTPCREL(%rip), %rdx
LBB0_3:
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	leaq	-8(%rbp), %rdi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_pmu_request
	cmpl	$0, -8(%rbp)
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_pmu_poll
	cmpl	$0, -8(%rbp)
	je	LBB0_4
LBB0_6:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.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, _PMU_POWER_CTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PMU_POWER_CTRL@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _PMU_POW_IRLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PMU_POW_IRLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _PMU_POW_ON@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PMU_POW_ON@GOTPAGEOFF]
Lloh8:
	adrp	x10, _PMU_POW_OFF@GOTPAGE
Lloh9:
	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
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_pmu_poll
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_1
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.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
