	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_txe_aliveness_wait
_mei_txe_aliveness_wait:                ## @mei_txe_aliveness_wait
	.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, %r14
	movq	_SEC_ALIVENESS_WAIT_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_mei_txe_aliveness_get
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
	cmpq	%r15, %rax
	je	LBB0_5
## %bb.1:
	leaq	8(%r13), %rbx
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	8(%r14), %edi
	movl	(%r13), %eax
	movq	_MEI_PG_EVENT_RECEIVED@GOTPCREL(%rip), %rcx
	xorl	%esi, %esi
	cmpl	(%rcx), %eax
	sete	%sil
	movq	%r12, %rdx
	callq	_wait_event_timeout
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	callq	_mei_txe_aliveness_get
	movq	%rax, (%r14)
	movq	_ETIME@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	subl	(%rcx), %ebx
	cmpq	%r15, %rax
	cmovel	%edx, %ebx
	movl	4(%r13), %r15d
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.2:
	movl	(%r13), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	%rax, %rcx
	callq	_dev_warn
	jmp	LBB0_4
LBB0_3:
	subq	-48(%rbp), %r12                 ## 8-byte Folded Reload
	movq	%r12, %rdi
	callq	_jiffies_to_msecs
	movq	(%r14), %rcx
	movl	(%r13), %r8d
	leaq	L_.str.1(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dev_dbg
LBB0_4:
	movq	_MEI_PG_EVENT_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r13)
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_RECEIVED,4,2      ## @MEI_PG_EVENT_RECEIVED
	.comm	_ETIME,4,2                      ## @ETIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"aliveness timed out = %ld aliveness = %d event = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"aliveness settled after = %d msec aliveness = %d event = %d\n"

	.comm	_MEI_PG_EVENT_IDLE,4,2          ## @MEI_PG_EVENT_IDLE
	.no_dead_strip	_mei_txe_aliveness_wait
.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_wait
_mei_txe_aliveness_wait:                ; @mei_txe_aliveness_wait
	.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	x20, x0
Lloh0:
	adrp	x8, _SEC_ALIVENESS_WAIT_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEC_ALIVENESS_WAIT_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x22, x0
	mov	x0, x19
	bl	_mei_txe_aliveness_get
	str	x0, [x20]
	cmp	x0, x21
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	b	LBB0_6
LBB0_2:
	add	x24, x19, #8
	mov	x0, x24
	bl	_mutex_unlock
	ldr	w0, [x20, #8]
	ldr	w8, [x19]
Lloh3:
	adrp	x9, _MEI_PG_EVENT_RECEIVED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEI_PG_EVENT_RECEIVED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w1, eq
	mov	x2, x22
	bl	_wait_event_timeout
	mov	x23, x0
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x19
	bl	_mei_txe_aliveness_get
	str	x0, [x20]
Lloh6:
	adrp	x8, _ETIME@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ETIME@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	x0, x21
	csneg	w21, wzr, w8, eq
	ldr	w24, [x19, #4]
	cbz	w21, LBB0_4
; %bb.3:
	mov	x3, x0
	ldr	w4, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	mov	x2, x23
	bl	_dev_warn
	b	LBB0_5
LBB0_4:
	sub	x0, x22, x23
	bl	_jiffies_to_msecs
	mov	x2, x0
	ldr	x3, [x20]
	ldr	w4, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_dev_dbg
LBB0_5:
Lloh13:
	adrp	x8, _MEI_PG_EVENT_IDLE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MEI_PG_EVENT_IDLE@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x19]
LBB0_6:
	mov	x0, x21
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_ALIVENESS_WAIT_TIMEOUT,4,2 ; @SEC_ALIVENESS_WAIT_TIMEOUT
	.comm	_MEI_PG_EVENT_RECEIVED,4,2      ; @MEI_PG_EVENT_RECEIVED
	.comm	_ETIME,4,2                      ; @ETIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"aliveness timed out = %ld aliveness = %d event = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"aliveness settled after = %d msec aliveness = %d event = %d\n"

	.comm	_MEI_PG_EVENT_IDLE,4,2          ; @MEI_PG_EVENT_IDLE
	.no_dead_strip	_mei_txe_aliveness_wait
.subsections_via_symbols
