	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_txe_hw_reset
_mei_txe_hw_reset:                      ## @mei_txe_hw_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_to_txe_hw
	movq	%rax, %rbx
	movq	_SEC_IPC_INPUT_DOORBELL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mei_txe_sec_reg_read_silent
	movq	%r15, %rdi
	callq	_mei_txe_aliveness_req_get
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_mei_txe_aliveness_get
	movq	%rax, (%rbx)
	movq	%r15, %rdi
	callq	_mei_txe_intr_disable
	cmpq	(%rbx), %r14
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mei_txe_aliveness_poll
	testq	%rax, %rax
	js	LBB0_5
LBB0_2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mei_txe_aliveness_set
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_mei_txe_aliveness_poll
	testq	%rax, %rax
	js	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_mei_txe_readiness_clear
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	jmp	LBB0_7
LBB0_6:
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_7:
	subl	(%rax), %r14d
LBB0_8:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEC_IPC_INPUT_DOORBELL_REG,4,2 ## @SEC_IPC_INPUT_DOORBELL_REG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wait for aliveness settle failed ... bailing out\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"wait for aliveness failed ... bailing out\n"

	.no_dead_strip	_mei_txe_hw_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_txe_hw_reset
_mei_txe_hw_reset:                      ; @mei_txe_hw_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	bl	_to_txe_hw
	mov	x21, x0
Lloh0:
	adrp	x8, _SEC_IPC_INPUT_DOORBELL_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEC_IPC_INPUT_DOORBELL_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_mei_txe_sec_reg_read_silent
	mov	x0, x19
	bl	_mei_txe_aliveness_req_get
	mov	x20, x0
	mov	x0, x19
	bl	_mei_txe_aliveness_get
	str	x0, [x21]
	mov	x0, x19
	bl	_mei_txe_intr_disable
	ldr	x8, [x21]
	cmp	x20, x8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_mei_txe_aliveness_poll
	tbnz	x0, #63, LBB0_5
LBB0_2:
	cbz	x20, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_mei_txe_aliveness_set
	mov	x0, x19
	mov	x1, #0
	bl	_mei_txe_aliveness_poll
	tbnz	x0, #63, LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_mei_txe_readiness_clear
	mov	w0, #0
	b	LBB0_8
LBB0_5:
	ldr	w0, [x19]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_err
Lloh7:
	adrp	x8, _EIO@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_SEC_IPC_INPUT_DOORBELL_REG,4,2 ; @SEC_IPC_INPUT_DOORBELL_REG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wait for aliveness settle failed ... bailing out\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"wait for aliveness failed ... bailing out\n"

	.no_dead_strip	_mei_txe_hw_reset
.subsections_via_symbols
