	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm_suspend_exit_cb
_pm_suspend_exit_cb:                    ## @pm_suspend_exit_cb
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_TELEM_MAX_OS_ALLOCATED_EVENTS@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	(,%rbx,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rsi
	movq	_suspend_prep_ok@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_21
## %bb.1:
	movq	_debugfs_conf@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_TELEM_IOSS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %edx
	callq	_telemetry_raw_read_eventlog
	testl	%eax, %eax
	js	LBB0_21
## %bb.2:
	je	LBB0_5
## %bb.3:
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r15), %edi
	movq	_pm_suspend_exit_cb.suspend_shlw_ctr_exit(%rip), %rsi
	callq	_TELEM_CHECK_AND_PARSE_CTRS
	movl	24(%r15), %edi
	movq	_pm_suspend_exit_cb.suspend_deep_ctr_exit(%rip), %rsi
	callq	_TELEM_CHECK_AND_PARSE_CTRS
	movl	20(%r15), %edi
	movq	_pm_suspend_exit_cb.suspend_shlw_res_exit(%rip), %rsi
	callq	_TELEM_CHECK_AND_PARSE_CTRS
	movl	16(%r15), %edi
	movq	_pm_suspend_exit_cb.suspend_deep_res_exit(%rip), %rsi
	callq	_TELEM_CHECK_AND_PARSE_CTRS
	decl	%ebx
	jne	LBB0_4
LBB0_5:
	movq	_pm_suspend_exit_cb.suspend_shlw_ctr_exit(%rip), %rdx
	movq	_suspend_shlw_ctr_temp@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	cmpq	%rdi, %rdx
	jl	LBB0_9
## %bb.6:
	movq	_pm_suspend_exit_cb.suspend_deep_ctr_exit(%rip), %rcx
	movq	_suspend_deep_ctr_temp@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	cmpq	%rax, %rcx
	jl	LBB0_9
## %bb.7:
	movq	_pm_suspend_exit_cb.suspend_shlw_res_exit(%rip), %r10
	movq	_suspend_shlw_res_temp@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	cmpq	%rsi, %r10
	jl	LBB0_9
## %bb.8:
	movq	_pm_suspend_exit_cb.suspend_deep_res_exit(%rip), %r8
	movq	_suspend_deep_res_temp@GOTPCREL(%rip), %r9
	movq	(%r9), %r9
	cmpq	%r9, %r8
	jge	LBB0_10
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_21:
	movq	$0, (%r14)
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpq	%rdi, %rdx
	jne	LBB0_17
## %bb.11:
	cmpq	%rax, %rcx
	jne	LBB0_17
## %bb.12:
	movq	_PMC_GCR_TELEM_SHLW_S0IX_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	_pm_suspend_exit_cb.suspend_shlw_res_exit(%rip), %rsi
	callq	_intel_pmc_gcr_read64
	testl	%eax, %eax
	js	LBB0_21
## %bb.13:
	movq	_PMC_GCR_TELEM_DEEP_S0IX_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	_pm_suspend_exit_cb.suspend_deep_res_exit(%rip), %rsi
	callq	_intel_pmc_gcr_read64
	testl	%eax, %eax
	js	LBB0_21
## %bb.14:
	movq	_pm_suspend_exit_cb.suspend_shlw_res_exit(%rip), %r10
	movq	(%r13), %rsi
	cmpq	%rsi, %r10
	jle	LBB0_16
## %bb.15:
	incq	_pm_suspend_exit_cb.suspend_shlw_ctr_exit(%rip)
LBB0_16:
	movq	_pm_suspend_exit_cb.suspend_deep_res_exit(%rip), %r8
	movq	_suspend_deep_res_temp@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	xorl	%ecx, %ecx
	cmpq	%r9, %r8
	setg	%cl
	addq	_pm_suspend_exit_cb.suspend_deep_ctr_exit(%rip), %rcx
LBB0_17:
	subq	%r9, %r8
	subq	%rsi, %r10
	movq	_pm_suspend_exit_cb.suspend_shlw_ctr_exit(%rip), %rsi
	movq	(%r12), %rdx
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, _pm_suspend_exit_cb.suspend_deep_ctr_exit(%rip)
	movq	%r10, _pm_suspend_exit_cb.suspend_shlw_res_exit(%rip)
	movq	%r8, _pm_suspend_exit_cb.suspend_deep_res_exit(%rip)
	subq	(%rbx), %rsi
	movq	%rsi, _pm_suspend_exit_cb.suspend_shlw_ctr_exit(%rip)
	je	LBB0_19
## %bb.18:
	addl	%esi, 12(%r15)
	addl	%r10d, 8(%r15)
LBB0_19:
	cmpq	%rdx, %rcx
	je	LBB0_21
## %bb.20:
	addl	%eax, 4(%r15)
	addl	%r8d, (%r15)
	jmp	LBB0_21
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_TELEM_MAX_OS_ALLOCATED_EVENTS,4,2 ## @TELEM_MAX_OS_ALLOCATED_EVENTS
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_shlw_ctr_exit,8,3 ## @pm_suspend_exit_cb.suspend_shlw_ctr_exit
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_deep_ctr_exit,8,3 ## @pm_suspend_exit_cb.suspend_deep_ctr_exit
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_shlw_res_exit,8,3 ## @pm_suspend_exit_cb.suspend_shlw_res_exit
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_deep_res_exit,8,3 ## @pm_suspend_exit_cb.suspend_deep_res_exit
	.comm	_debugfs_conf,8,3               ## @debugfs_conf
	.comm	_suspend_prep_ok,8,3            ## @suspend_prep_ok
	.comm	_TELEM_IOSS,4,2                 ## @TELEM_IOSS
	.comm	_suspend_shlw_ctr_temp,8,3      ## @suspend_shlw_ctr_temp
	.comm	_suspend_deep_ctr_temp,8,3      ## @suspend_deep_ctr_temp
	.comm	_suspend_shlw_res_temp,8,3      ## @suspend_shlw_res_temp
	.comm	_suspend_deep_res_temp,8,3      ## @suspend_deep_res_temp
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong s0ix counters detected\n"

	.comm	_PMC_GCR_TELEM_SHLW_S0IX_REG,4,2 ## @PMC_GCR_TELEM_SHLW_S0IX_REG
	.comm	_PMC_GCR_TELEM_DEEP_S0IX_REG,4,2 ## @PMC_GCR_TELEM_DEEP_S0IX_REG
	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_pm_suspend_exit_cb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm_suspend_exit_cb
_pm_suspend_exit_cb:                    ; @pm_suspend_exit_cb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _TELEM_MAX_OS_ALLOCATED_EVENTS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TELEM_MAX_OS_ALLOCATED_EVENTS@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	lsl	x8, x2, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x1, x9, x8
	mov	sp, x1
Lloh8:
	adrp	x20, _suspend_prep_ok@GOTPAGE
Lloh9:
	ldr	x20, [x20, _suspend_prep_ok@GOTPAGEOFF]
	ldr	x8, [x20]
	cbz	x8, LBB0_10
; %bb.1:
Lloh10:
	adrp	x8, _debugfs_conf@GOTPAGE
Lloh11:
	ldr	x8, [x8, _debugfs_conf@GOTPAGEOFF]
Lloh12:
	ldr	x21, [x8]
Lloh13:
	adrp	x8, _TELEM_IOSS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TELEM_IOSS@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_telemetry_raw_read_eventlog
	tbnz	w0, #31, LBB0_10
; %bb.2:
	mov	x19, x0
	adrp	x22, _pm_suspend_exit_cb.suspend_shlw_ctr_exit@PAGE
	adrp	x23, _pm_suspend_exit_cb.suspend_deep_ctr_exit@PAGE
	cbz	w0, LBB0_5
; %bb.3:
	adrp	x24, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGE
	adrp	x25, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGE
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21, #28]
	ldr	x1, [x22, _pm_suspend_exit_cb.suspend_shlw_ctr_exit@PAGEOFF]
	bl	_TELEM_CHECK_AND_PARSE_CTRS
	ldr	w0, [x21, #24]
	ldr	x1, [x23, _pm_suspend_exit_cb.suspend_deep_ctr_exit@PAGEOFF]
	bl	_TELEM_CHECK_AND_PARSE_CTRS
	ldr	w0, [x21, #20]
	ldr	x1, [x24, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGEOFF]
	bl	_TELEM_CHECK_AND_PARSE_CTRS
	ldr	w0, [x21, #16]
	ldr	x1, [x25, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGEOFF]
	bl	_TELEM_CHECK_AND_PARSE_CTRS
	subs	w19, w19, #1
	b.ne	LBB0_4
LBB0_5:
	ldr	x13, [x22, _pm_suspend_exit_cb.suspend_shlw_ctr_exit@PAGEOFF]
Lloh16:
	adrp	x19, _suspend_shlw_ctr_temp@GOTPAGE
Lloh17:
	ldr	x19, [x19, _suspend_shlw_ctr_temp@GOTPAGEOFF]
	ldr	x14, [x19]
	cmp	x13, x14
	b.lt	LBB0_9
; %bb.6:
	ldr	x8, [x23, _pm_suspend_exit_cb.suspend_deep_ctr_exit@PAGEOFF]
Lloh18:
	adrp	x25, _suspend_deep_ctr_temp@GOTPAGE
Lloh19:
	ldr	x25, [x25, _suspend_deep_ctr_temp@GOTPAGEOFF]
	ldr	x15, [x25]
	cmp	x8, x15
	b.lt	LBB0_9
; %bb.7:
	adrp	x24, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGE
	ldr	x9, [x24, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGEOFF]
Lloh20:
	adrp	x28, _suspend_shlw_res_temp@GOTPAGE
Lloh21:
	ldr	x28, [x28, _suspend_shlw_res_temp@GOTPAGEOFF]
	ldr	x10, [x28]
	cmp	x9, x10
	b.lt	LBB0_9
; %bb.8:
	adrp	x26, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGE
	ldr	x11, [x26, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGEOFF]
Lloh22:
	adrp	x27, _suspend_deep_res_temp@GOTPAGE
Lloh23:
	ldr	x27, [x27, _suspend_deep_res_temp@GOTPAGEOFF]
	ldr	x12, [x27]
	cmp	x11, x12
	b.ge	LBB0_12
LBB0_9:
Lloh24:
	adrp	x0, l_.str@PAGE
Lloh25:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_10:
	str	xzr, [x20]
Lloh26:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh27:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_22
; %bb.11:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	cmp	x13, x14
	ccmp	x8, x15, #0, eq
	b.ne	LBB0_18
; %bb.13:
Lloh32:
	adrp	x8, _PMC_GCR_TELEM_SHLW_S0IX_REG@GOTPAGE
Lloh33:
	ldr	x8, [x8, _PMC_GCR_TELEM_SHLW_S0IX_REG@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
Lloh35:
	adrp	x1, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGE
Lloh36:
	add	x1, x1, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGEOFF
	bl	_intel_pmc_gcr_read64
	tbnz	w0, #31, LBB0_10
; %bb.14:
Lloh37:
	adrp	x8, _PMC_GCR_TELEM_DEEP_S0IX_REG@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PMC_GCR_TELEM_DEEP_S0IX_REG@GOTPAGEOFF]
Lloh39:
	ldr	w0, [x8]
Lloh40:
	adrp	x1, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGE
Lloh41:
	add	x1, x1, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGEOFF
	bl	_intel_pmc_gcr_read64
	tbnz	w0, #31, LBB0_10
; %bb.15:
	ldr	x9, [x24, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGEOFF]
	ldr	x10, [x28]
	cmp	x9, x10
	b.le	LBB0_17
; %bb.16:
	ldr	x8, [x22, _pm_suspend_exit_cb.suspend_shlw_ctr_exit@PAGEOFF]
	add	x8, x8, #1
	str	x8, [x22, _pm_suspend_exit_cb.suspend_shlw_ctr_exit@PAGEOFF]
LBB0_17:
	ldr	x11, [x26, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGEOFF]
	ldr	x12, [x27]
	cmp	x11, x12
	ldr	x8, [x23, _pm_suspend_exit_cb.suspend_deep_ctr_exit@PAGEOFF]
	cinc	x8, x8, gt
LBB0_18:
	ldr	x15, [x19]
	ldr	x16, [x22, _pm_suspend_exit_cb.suspend_shlw_ctr_exit@PAGEOFF]
	ldr	x14, [x25]
	sub	x13, x8, x14
	sub	x10, x9, x10
	sub	x9, x11, x12
	str	x13, [x23, _pm_suspend_exit_cb.suspend_deep_ctr_exit@PAGEOFF]
	str	x10, [x24, _pm_suspend_exit_cb.suspend_shlw_res_exit@PAGEOFF]
	str	x9, [x26, _pm_suspend_exit_cb.suspend_deep_res_exit@PAGEOFF]
	subs	x11, x16, x15
	str	x11, [x22, _pm_suspend_exit_cb.suspend_shlw_ctr_exit@PAGEOFF]
	b.eq	LBB0_20
; %bb.19:
	ldp	w15, w12, [x21, #8]
	add	w11, w12, w11
	add	w10, w15, w10
	stp	w10, w11, [x21, #8]
LBB0_20:
	cmp	x8, x14
	b.eq	LBB0_10
; %bb.21:
	ldp	w10, w8, [x21]
	add	w8, w8, w13
	add	w9, w10, w9
	stp	w9, w8, [x21]
	b	LBB0_10
LBB0_22:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.comm	_TELEM_MAX_OS_ALLOCATED_EVENTS,4,2 ; @TELEM_MAX_OS_ALLOCATED_EVENTS
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_shlw_ctr_exit,8,3 ; @pm_suspend_exit_cb.suspend_shlw_ctr_exit
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_deep_ctr_exit,8,3 ; @pm_suspend_exit_cb.suspend_deep_ctr_exit
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_shlw_res_exit,8,3 ; @pm_suspend_exit_cb.suspend_shlw_res_exit
.zerofill __DATA,__bss,_pm_suspend_exit_cb.suspend_deep_res_exit,8,3 ; @pm_suspend_exit_cb.suspend_deep_res_exit
	.comm	_debugfs_conf,8,3               ; @debugfs_conf
	.comm	_suspend_prep_ok,8,3            ; @suspend_prep_ok
	.comm	_TELEM_IOSS,4,2                 ; @TELEM_IOSS
	.comm	_suspend_shlw_ctr_temp,8,3      ; @suspend_shlw_ctr_temp
	.comm	_suspend_deep_ctr_temp,8,3      ; @suspend_deep_ctr_temp
	.comm	_suspend_shlw_res_temp,8,3      ; @suspend_shlw_res_temp
	.comm	_suspend_deep_res_temp,8,3      ; @suspend_deep_res_temp
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong s0ix counters detected\n"

	.comm	_PMC_GCR_TELEM_SHLW_S0IX_REG,4,2 ; @PMC_GCR_TELEM_SHLW_S0IX_REG
	.comm	_PMC_GCR_TELEM_DEEP_S0IX_REG,4,2 ; @PMC_GCR_TELEM_DEEP_S0IX_REG
	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_pm_suspend_exit_cb
.subsections_via_symbols
