	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function meiPollForDbgDone
_meiPollForDbgDone:                     ## @meiPollForDbgDone
	.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	%rdi, %r13
	movl	$0, -44(%rbp)
	movq	_WHILE_DELAY@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_6
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r14
	movq	_ARC_TO_MEI_DBG_DONE@GOTPCREL(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpl	%eax, %ebx
	jge	LBB0_6
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_ME_ARC2ME_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_IFX_MEI_LongWordReadOffset
	movl	(%r15), %eax
	andl	%eax, -44(%rbp)
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movl	(%r12), %eax
	cmpl	%eax, %ebx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_IFX_MEI_EMSG
	movl	(%r12), %eax
	jmp	LBB0_5
LBB0_6:
	movq	_ME_ARC2ME_STAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ARC_TO_MEI_DBG_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	callq	_IFX_MEI_LongWordWriteOffset
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WHILE_DELAY,4,2                ## @WHILE_DELAY
	.comm	_ME_ARC2ME_STAT,8,3             ## @ME_ARC2ME_STAT
	.comm	_ARC_TO_MEI_DBG_DONE,4,2        ## @ARC_TO_MEI_DBG_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PollforDbg fail!\n"

	.no_dead_strip	_meiPollForDbgDone
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function meiPollForDbgDone
_meiPollForDbgDone:                     ; @meiPollForDbgDone
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x21, _WHILE_DELAY@GOTPAGE
Lloh1:
	ldr	x21, [x21, _WHILE_DELAY@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _ME_ARC2ME_STAT@GOTPAGE
Lloh3:
	ldr	x22, [x22, _ME_ARC2ME_STAT@GOTPAGEOFF]
Lloh4:
	adrp	x23, _ARC_TO_MEI_DBG_DONE@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ARC_TO_MEI_DBG_DONE@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	w24, #0
Lloh6:
	adrp	x20, l_.str@PAGE
Lloh7:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	cmp	w24, w8
	b.ge	LBB0_6
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x19
	bl	_IFX_MEI_LongWordReadOffset
	ldr	w8, [x23]
	ldr	w9, [sp, #12]
	ands	w8, w9, w8
	str	w8, [sp, #12]
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [x21]
	cmp	w24, w8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_IFX_MEI_EMSG
	ldr	w8, [x21]
	b	LBB0_2
LBB0_6:
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x19
	bl	_IFX_MEI_LongWordWriteOffset
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_WHILE_DELAY,4,2                ; @WHILE_DELAY
	.comm	_ME_ARC2ME_STAT,8,3             ; @ME_ARC2ME_STAT
	.comm	_ARC_TO_MEI_DBG_DONE,4,2        ; @ARC_TO_MEI_DBG_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PollforDbg fail!\n"

	.no_dead_strip	_meiPollForDbgDone
.subsections_via_symbols
