	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function write_pm_imr
_write_pm_imr:                          ## @write_pm_imr
	.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	16(%rdi), %rbx
	movq	8(%rdi), %r14
	movl	(%rdi), %r15d
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$11, %eax
	jl	LBB0_2
## %bb.1:
	movq	_GEN11_GPM_WGBOXPERF_INTR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	shll	$16, %r15d
	jmp	LBB0_5
LBB0_2:
	movq	%rbx, %rdi
	callq	_INTEL_GEN
	cmpl	$8, %eax
	jl	LBB0_4
## %bb.3:
	movl	$2, %edi
	callq	_GEN8_GT_IMR
	movl	%eax, %esi
	jmp	LBB0_5
LBB0_4:
	movq	_GEN6_PMIMR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
LBB0_5:
	movq	%r14, %rdi
	movl	%r15d, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_intel_uncore_write             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN11_GPM_WGBOXPERF_INTR_MASK,4,2 ## @GEN11_GPM_WGBOXPERF_INTR_MASK
	.comm	_GEN6_PMIMR,4,2                 ## @GEN6_PMIMR
	.no_dead_strip	_write_pm_imr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_pm_imr
_write_pm_imr:                          ; @write_pm_imr
	.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
	ldp	x19, x21, [x0, #8]
	ldr	w20, [x0]
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #11
	b.lt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GEN11_GPM_WGBOXPERF_INTR_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN11_GPM_WGBOXPERF_INTR_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	lsl	w20, w20, #16
	b	LBB0_5
LBB0_2:
	mov	x0, x21
	bl	_INTEL_GEN
	cmp	w0, #8
	b.lt	LBB0_4
; %bb.3:
	mov	w0, #2
	bl	_GEN8_GT_IMR
	mov	x1, x0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _GEN6_PMIMR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN6_PMIMR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
LBB0_5:
	mov	x0, x19
	mov	x2, x20
	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	_intel_uncore_write
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN11_GPM_WGBOXPERF_INTR_MASK,4,2 ; @GEN11_GPM_WGBOXPERF_INTR_MASK
	.comm	_GEN6_PMIMR,4,2                 ; @GEN6_PMIMR
	.no_dead_strip	_write_pm_imr
.subsections_via_symbols
