	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_me_pg_is_enabled
_mei_me_pg_is_enabled:                  ## @mei_me_pg_is_enabled
	.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
	callq	_to_me_hw
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_mei_me_mecsr_read
	movl	$1, %r14d
	cmpq	$0, (%r15)
	jne	LBB0_4
## %bb.1:
	movq	_ME_PGIC_HRA@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_3
## %bb.2:
	cmpl	$0, 12(%rbx)
	jne	LBB0_4
LBB0_3:
	movl	8(%rbx), %edi
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	(%rbx), %r9d
	movl	4(%rbx), %r8d
	movq	_HBM_MAJOR_VERSION_PGI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_HBM_MINOR_VERSION_PGI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	pushq	%rbx
	pushq	%rax
	callq	_dev_dbg
	addq	$16, %rsp
LBB0_4:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ME_PGIC_HRA,4,2                ## @ME_PGIC_HRA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pg: not supported: d0i3 = %d HGP = %d hbm version %d.%d ?= %d.%d\n"

	.comm	_HBM_MAJOR_VERSION_PGI,4,2      ## @HBM_MAJOR_VERSION_PGI
	.comm	_HBM_MINOR_VERSION_PGI,4,2      ## @HBM_MINOR_VERSION_PGI
	.no_dead_strip	_mei_me_pg_is_enabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_me_pg_is_enabled
_mei_me_pg_is_enabled:                  ; @mei_me_pg_is_enabled
	.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
	bl	_to_me_hw
	mov	x20, x0
	mov	x0, x19
	bl	_mei_me_mecsr_read
	ldr	x8, [x20]
	cbz	x8, LBB0_2
LBB0_1:
	mov	w0, #1
	b	LBB0_5
LBB0_2:
Lloh0:
	adrp	x8, _ME_PGIC_HRA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ME_PGIC_HRA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w8, w8, w0
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x19, #12]
	cbnz	w9, LBB0_1
LBB0_4:
	ldp	w4, w0, [x19, #4]
	cmp	w8, #0
	cset	w3, ne
	ldr	w5, [x19]
Lloh3:
	adrp	x8, _HBM_MAJOR_VERSION_PGI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HBM_MAJOR_VERSION_PGI@GOTPAGEOFF]
Lloh5:
	ldr	w6, [x8]
Lloh6:
	adrp	x8, _HBM_MINOR_VERSION_PGI@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HBM_MINOR_VERSION_PGI@GOTPAGEOFF]
Lloh8:
	ldr	w7, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_dev_dbg
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ME_PGIC_HRA,4,2                ; @ME_PGIC_HRA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pg: not supported: d0i3 = %d HGP = %d hbm version %d.%d ?= %d.%d\n"

	.comm	_HBM_MAJOR_VERSION_PGI,4,2      ; @HBM_MAJOR_VERSION_PGI
	.comm	_HBM_MINOR_VERSION_PGI,4,2      ; @HBM_MINOR_VERSION_PGI
	.no_dead_strip	_mei_me_pg_is_enabled
.subsections_via_symbols
