	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_txe_aliveness_poll
_mei_txe_aliveness_poll:                ## @mei_txe_aliveness_poll
	.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	%rsi, %r15
	movq	%rdi, %r13
	callq	_to_txe_hw
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %r14d
	movq	_SEC_ALIVENESS_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_ms_to_ktime
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_ktime_add
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	callq	_mei_txe_aliveness_get
	movq	%rax, (%r12)
	cmpq	%r15, %rax
	je	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$20, %edi
	movl	$50, %esi
	callq	_usleep_range
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_ktime_before
	testq	%rax, %rax
	jne	LBB0_1
## %bb.4:
	movq	_MEI_PG_EVENT_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_ETIME@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_2:
	movq	_MEI_PG_EVENT_IDLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	movl	(%r13), %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_ktime_get
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_us
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_ALIVENESS_WAIT_TIMEOUT,4,2 ## @SEC_ALIVENESS_WAIT_TIMEOUT
	.comm	_MEI_PG_EVENT_IDLE,8,3          ## @MEI_PG_EVENT_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aliveness settled after %lld usecs\n"

L_.str.1:                               ## @.str.1
	.asciz	"aliveness timed out\n"

	.comm	_ETIME,4,2                      ## @ETIME
	.no_dead_strip	_mei_txe_aliveness_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_txe_aliveness_poll
_mei_txe_aliveness_poll:                ; @mei_txe_aliveness_poll
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	mov	x19, x0
	bl	_to_txe_hw
	mov	x22, x0
	bl	_ktime_get
	mov	x20, x0
Lloh0:
	adrp	x8, _SEC_ALIVENESS_WAIT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEC_ALIVENESS_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_ms_to_ktime
	mov	x1, x0
	mov	x0, x20
	bl	_ktime_add
	mov	x23, x0
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_mei_txe_aliveness_get
	str	x0, [x22]
	cmp	x0, x21
	b.eq	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #20
	mov	w1, #50
	bl	_usleep_range
	bl	_ktime_get
	mov	x1, x23
	bl	_ktime_before
	cbnz	x0, LBB0_1
; %bb.3:
Lloh3:
	adrp	x8, _MEI_PG_EVENT_IDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEI_PG_EVENT_IDLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w0, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
Lloh8:
	adrp	x8, _ETIME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x8, _MEI_PG_EVENT_IDLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEI_PG_EVENT_IDLE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	ldr	w19, [x19]
	bl	_ktime_get
	mov	x1, x20
	bl	_ktime_sub
	bl	_ktime_to_us
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	mov	w0, #0
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_ALIVENESS_WAIT_TIMEOUT,4,2 ; @SEC_ALIVENESS_WAIT_TIMEOUT
	.comm	_MEI_PG_EVENT_IDLE,8,3          ; @MEI_PG_EVENT_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aliveness settled after %lld usecs\n"

l_.str.1:                               ; @.str.1
	.asciz	"aliveness timed out\n"

	.comm	_ETIME,4,2                      ; @ETIME
	.no_dead_strip	_mei_txe_aliveness_poll
.subsections_via_symbols
