	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_txe_hw_start
_mei_txe_hw_start:                      ## @mei_txe_hw_start
	.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, %r14
	movq	%r15, %rdi
	callq	_mei_txe_intr_enable
	movq	%r15, %rdi
	callq	_mei_txe_readiness_wait
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	movq	_HISR_REG@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mei_txe_br_reg_read
	movq	_HISR_INT_2_STS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_3
## %bb.2:
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_mei_txe_br_reg_write
LBB0_3:
	movq	_TXE_INTR_OUT_DB_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	callq	_clear_bit
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_mei_txe_aliveness_set_sync
	movl	(%r15), %edi
	testl	%eax, %eax
	js	LBB0_6
## %bb.4:
	callq	_pm_runtime_set_active
	movq	%r15, %rdi
	callq	_mei_txe_input_ready_interrupt_enable
	movq	%r14, %rdi
	callq	_mei_txe_output_ready_set
	movq	%r15, %rdi
	callq	_mei_txe_readiness_set_host_rdy
	xorl	%ebx, %ebx
	jmp	LBB0_8
LBB0_5:
	movl	%eax, %ebx
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
LBB0_7:
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"waiting for readiness failed\n"

	.comm	_HISR_REG,4,2                   ## @HISR_REG
	.comm	_HISR_INT_2_STS,4,2             ## @HISR_INT_2_STS
	.comm	_TXE_INTR_OUT_DB_BIT,4,2        ## @TXE_INTR_OUT_DB_BIT
L_.str.1:                               ## @.str.1
	.asciz	"wait for aliveness failed ... bailing out\n"

	.no_dead_strip	_mei_txe_hw_start
.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_start
_mei_txe_hw_start:                      ; @mei_txe_hw_start
	.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	x20, x0
	mov	x0, x19
	bl	_mei_txe_intr_enable
	mov	x0, x19
	bl	_mei_txe_readiness_wait
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x21, _HISR_REG@GOTPAGE
Lloh1:
	ldr	x21, [x21, _HISR_REG@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mei_txe_br_reg_read
Lloh2:
	adrp	x8, _HISR_INT_2_STS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HISR_INT_2_STS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	tst	w2, w0
	b.eq	LBB0_3
; %bb.2:
	ldr	w1, [x21]
	mov	x0, x20
	bl	_mei_txe_br_reg_write
LBB0_3:
Lloh5:
	adrp	x8, _TXE_INTR_OUT_DB_BIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TXE_INTR_OUT_DB_BIT@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_clear_bit
	mov	x0, x19
	mov	w1, #1
	bl	_mei_txe_aliveness_set_sync
	mov	x21, x0
	ldr	w0, [x19]
	tbnz	w21, #31, LBB0_6
; %bb.4:
	bl	_pm_runtime_set_active
	mov	x0, x19
	bl	_mei_txe_input_ready_interrupt_enable
	mov	x0, x20
	bl	_mei_txe_output_ready_set
	mov	x0, x19
	bl	_mei_txe_readiness_set_host_rdy
	mov	w21, #0
	b	LBB0_8
LBB0_5:
	mov	x21, x0
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_err
LBB0_8:
	mov	x0, x21
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"waiting for readiness failed\n"

	.comm	_HISR_REG,4,2                   ; @HISR_REG
	.comm	_HISR_INT_2_STS,4,2             ; @HISR_INT_2_STS
	.comm	_TXE_INTR_OUT_DB_BIT,4,2        ; @TXE_INTR_OUT_DB_BIT
l_.str.1:                               ; @.str.1
	.asciz	"wait for aliveness failed ... bailing out\n"

	.no_dead_strip	_mei_txe_hw_start
.subsections_via_symbols
