	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_txe_check_and_ack_intrs
_mei_txe_check_and_ack_intrs:           ## @mei_txe_check_and_ack_intrs
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_to_txe_hw
	movq	%rax, %rbx
	movq	_HHISR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mei_txe_br_reg_read
	movl	%eax, %r14d
	movq	_IPC_HHIER_MSK@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_HISR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mei_txe_br_reg_read
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_mei_txe_aliveness_get
	movq	_IPC_HHIER_SEC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%r14d, %ecx
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_SEC_IPC_HOST_INT_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mei_txe_sec_reg_read_silent
	jmp	LBB0_6
LBB0_1:
	xorl	%r13d, %r13d
	jmp	LBB0_10
LBB0_5:
	notl	%ecx
	andl	%ecx, %r14d
	xorl	%eax, %eax
LBB0_6:
	movl	$1, %r13d
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.7:
	movq	_HISR_INT_STS_MSK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	-44(%rbp), %edx                 ## 4-byte Folded Reload
	orl	(%rbx), %edx
	movl	%edx, (%rbx)
	movq	_SEC_IPC_HOST_INT_STATUS_IN_RDY@GOTPCREL(%rip), %rcx
	movl	%eax, %r12d
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	_TXE_INTR_IN_READY@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, (%rbx)
LBB0_9:
	movq	%r15, %rdi
	callq	_mei_txe_intr_disable
	movq	_SEC_IPC_HOST_INT_STATUS_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_mei_txe_sec_reg_write_silent
	movq	_HISR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_mei_txe_br_reg_write
	movq	_HHISR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_mei_txe_br_reg_write
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HHISR_REG,4,2                  ## @HHISR_REG
	.comm	_IPC_HHIER_MSK,4,2              ## @IPC_HHIER_MSK
	.comm	_HISR_REG,4,2                   ## @HISR_REG
	.comm	_IPC_HHIER_SEC,4,2              ## @IPC_HHIER_SEC
	.comm	_SEC_IPC_HOST_INT_STATUS_REG,4,2 ## @SEC_IPC_HOST_INT_STATUS_REG
	.comm	_HISR_INT_STS_MSK,4,2           ## @HISR_INT_STS_MSK
	.comm	_SEC_IPC_HOST_INT_STATUS_PENDING,4,2 ## @SEC_IPC_HOST_INT_STATUS_PENDING
	.comm	_SEC_IPC_HOST_INT_STATUS_IN_RDY,4,2 ## @SEC_IPC_HOST_INT_STATUS_IN_RDY
	.comm	_TXE_INTR_IN_READY,4,2          ## @TXE_INTR_IN_READY
	.no_dead_strip	_mei_txe_check_and_ack_intrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_txe_check_and_ack_intrs
_mei_txe_check_and_ack_intrs:           ; @mei_txe_check_and_ack_intrs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x23, x1
	mov	x21, x0
	bl	_to_txe_hw
	mov	x19, x0
Lloh0:
	adrp	x25, _HHISR_REG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HHISR_REG@GOTPAGEOFF]
	ldr	w1, [x25]
	bl	_mei_txe_br_reg_read
Lloh2:
	adrp	x8, _IPC_HHIER_MSK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPC_HHIER_MSK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x0
Lloh5:
	adrp	x26, _HISR_REG@GOTPAGE
Lloh6:
	ldr	x26, [x26, _HISR_REG@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_mei_txe_br_reg_read
	mov	x22, x0
	mov	x0, x21
	bl	_mei_txe_aliveness_get
Lloh7:
	adrp	x8, _IPC_HHIER_SEC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _IPC_HHIER_SEC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	and	w9, w8, w20
	cmp	w9, #0
	ccmp	w0, #0, #4, ne
Lloh10:
	adrp	x27, _SEC_IPC_HOST_INT_STATUS_REG@GOTPAGE
Lloh11:
	ldr	x27, [x27, _SEC_IPC_HOST_INT_STATUS_REG@GOTPAGEOFF]
	b.ne	LBB0_4
; %bb.2:
	mov	w24, #0
	bic	w20, w20, w8
	cbnz	w23, LBB0_5
	b	LBB0_8
LBB0_3:
	mov	w0, #0
	b	LBB0_9
LBB0_4:
	ldr	w1, [x27]
	mov	x0, x19
	bl	_mei_txe_sec_reg_read_silent
	mov	x24, x0
	cbz	w23, LBB0_8
LBB0_5:
Lloh12:
	adrp	x8, _HISR_INT_STS_MSK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HISR_INT_STS_MSK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	and	w8, w8, w22
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x9, _SEC_IPC_HOST_INT_STATUS_IN_RDY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SEC_IPC_HOST_INT_STATUS_IN_RDY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_7
; %bb.6:
Lloh18:
	adrp	x9, _TXE_INTR_IN_READY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _TXE_INTR_IN_READY@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_7:
	mov	x0, x21
	bl	_mei_txe_intr_disable
	ldr	w1, [x27]
	mov	x0, x19
	mov	x2, x24
	bl	_mei_txe_sec_reg_write_silent
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x22
	bl	_mei_txe_br_reg_write
	ldr	w1, [x25]
	mov	x0, x19
	mov	x2, x20
	bl	_mei_txe_br_reg_write
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HHISR_REG,4,2                  ; @HHISR_REG
	.comm	_IPC_HHIER_MSK,4,2              ; @IPC_HHIER_MSK
	.comm	_HISR_REG,4,2                   ; @HISR_REG
	.comm	_IPC_HHIER_SEC,4,2              ; @IPC_HHIER_SEC
	.comm	_SEC_IPC_HOST_INT_STATUS_REG,4,2 ; @SEC_IPC_HOST_INT_STATUS_REG
	.comm	_HISR_INT_STS_MSK,4,2           ; @HISR_INT_STS_MSK
	.comm	_SEC_IPC_HOST_INT_STATUS_PENDING,4,2 ; @SEC_IPC_HOST_INT_STATUS_PENDING
	.comm	_SEC_IPC_HOST_INT_STATUS_IN_RDY,4,2 ; @SEC_IPC_HOST_INT_STATUS_IN_RDY
	.comm	_TXE_INTR_IN_READY,4,2          ; @TXE_INTR_IN_READY
	.no_dead_strip	_mei_txe_check_and_ack_intrs
.subsections_via_symbols
