	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_me_count_full_read_slots
_mei_me_count_full_read_slots:          ## @mei_me_count_full_read_slots
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_mei_me_mecsr_read
	movq	_ME_CBD_HRA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	shrl	$24, %ecx
	movq	_ME_CBRP_HRA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%eax, %edx
	movq	_ME_CBWP_HRA@GOTPCREL(%rip), %rsi
	andl	(%rsi), %eax
	shrl	$16, %eax
	shrl	$8, %edx
	subl	%edx, %eax
	movzbl	%al, %ebx
	cmpl	%ecx, %ebx
	jbe	LBB0_2
## %bb.1:
	movq	_EOVERFLOW@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_3
LBB0_2:
	movl	(%r14), %edi
	movzbl	%al, %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ME_CBD_HRA,4,2                 ## @ME_CBD_HRA
	.comm	_ME_CBRP_HRA,4,2                ## @ME_CBRP_HRA
	.comm	_ME_CBWP_HRA,4,2                ## @ME_CBWP_HRA
	.comm	_EOVERFLOW,4,2                  ## @EOVERFLOW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"filled_slots =%08x\n"

	.no_dead_strip	_mei_me_count_full_read_slots
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_me_count_full_read_slots
_mei_me_count_full_read_slots:          ; @mei_me_count_full_read_slots
	.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	_mei_me_mecsr_read
Lloh0:
	adrp	x8, _ME_CBD_HRA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ME_CBD_HRA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh3:
	adrp	x9, _ME_CBRP_HRA@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ME_CBRP_HRA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w0
Lloh6:
	adrp	x10, _ME_CBWP_HRA@GOTPAGE
Lloh7:
	ldr	x10, [x10, _ME_CBWP_HRA@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w0
	lsr	w10, w10, #16
	sub	w9, w10, w9, lsr #8
	and	w20, w9, #0xff
	cmp	w20, w8, lsr #24
	b.ls	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _EOVERFLOW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EOVERFLOW@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_dbg
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_ME_CBD_HRA,4,2                 ; @ME_CBD_HRA
	.comm	_ME_CBRP_HRA,4,2                ; @ME_CBRP_HRA
	.comm	_ME_CBWP_HRA,4,2                ; @ME_CBWP_HRA
	.comm	_EOVERFLOW,4,2                  ; @EOVERFLOW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"filled_slots =%08x\n"

	.no_dead_strip	_mei_me_count_full_read_slots
.subsections_via_symbols
