	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_me_irq_thread_handler      ## -- Begin function mei_me_irq_thread_handler
	.p2align	4, 0x90
_mei_me_irq_thread_handler:             ## @mei_me_irq_thread_handler
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	28(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	leaq	24(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_mei_hcsr_read
	movl	%eax, %ebx
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_me_intr_clear
	leaq	-48(%rbp), %rdi
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_mei_hw_is_ready
	testq	%rax, %rax
	jne	LBB0_3
## %bb.1:
	movq	(%r15), %rax
	movq	_MEI_DEV_RESETTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_mei_me_hw_is_resetting
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_mei_hcsr_set_hig
LBB0_5:
	movl	%ebx, %edi
	callq	_me_intr_src
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_mei_me_pg_intr
	movq	%r15, %rdi
	callq	_mei_host_is_ready
	movq	%r15, %rdi
	testl	%eax, %eax
	je	LBB0_6
## %bb.9:
	callq	_mei_count_full_read_slots
	movq	%rax, -64(%rbp)
	testq	%rax, %rax
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.11:
	movq	%rax, %rdx
	leaq	-48(%rbp), %r13
	leaq	-64(%rbp), %r14
	movq	_ENODATA@GOTPCREL(%rip), %r12
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	-64(%rbp), %rdx
	testq	%rdx, %rdx
	jle	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r15), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_mei_irq_read_handler
	movl	%eax, %ebx
	movl	(%r12), %eax
	addl	%ebx, %eax
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	testl	%ebx, %ebx
	je	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	(%r15), %rax
	movq	_MEI_DEV_RESETTING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	_MEI_DEV_POWER_DOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_17
## %bb.16:
	movl	28(%r15), %edi
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	leaq	40(%r15), %rdi
	callq	_schedule_work
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_23
LBB0_6:
	callq	_mei_hw_is_ready
	movl	28(%r15), %edi
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	$1, 8(%r15)
	leaq	44(%r15), %rdi
	callq	_wake_up
	jmp	LBB0_23
LBB0_10:
	xorl	%ebx, %ebx
LBB0_18:
	movq	%r15, %rdi
	callq	_mei_hbuf_is_ready
	movq	%rax, 32(%r15)
	movq	16(%r15), %rax
	movq	_MEI_PG_EVENT_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_19
## %bb.20:
	movq	_MEI_PG_EVENT_RECEIVED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_22
## %bb.21:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mei_irq_write_handler
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mei_hbuf_is_ready
	movq	%rax, 32(%r15)
	jmp	LBB0_22
LBB0_2:
	movl	28(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	leaq	40(%r15), %rdi
	callq	_schedule_work
	xorl	%ebx, %ebx
	jmp	LBB0_23
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_23
LBB0_19:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_22:
	leaq	-48(%rbp), %rsi
	movq	%r15, %rdi
	callq	_mei_irq_compl_handler
LBB0_23:
	movl	28(%r15), %edi
	leaq	L_.str.6(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r15, %rdi
	callq	_mei_me_intr_enable
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"function called after ISR to handle the interrupt processing.\n"

	.comm	_MEI_DEV_RESETTING,8,3          ## @MEI_DEV_RESETTING
L_.str.1:                               ## @.str.1
	.asciz	"FW not ready: resetting.\n"

L_.str.2:                               ## @.str.2
	.asciz	"we need to start the dev.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Spurious Interrupt\n"

L_.str.4:                               ## @.str.4
	.asciz	"slots to read = %08x\n"

	.comm	_ENODATA,4,2                    ## @ENODATA
	.comm	_MEI_DEV_POWER_DOWN,8,3         ## @MEI_DEV_POWER_DOWN
L_.str.5:                               ## @.str.5
	.asciz	"mei_irq_read_handler ret = %d.\n"

	.comm	_MEI_PG_EVENT_WAIT,8,3          ## @MEI_PG_EVENT_WAIT
	.comm	_MEI_PG_EVENT_RECEIVED,8,3      ## @MEI_PG_EVENT_RECEIVED
L_.str.6:                               ## @.str.6
	.asciz	"interrupt thread end ret = %d\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mei_me_irq_thread_handler      ; -- Begin function mei_me_irq_thread_handler
	.p2align	2
_mei_me_irq_thread_handler:             ; @mei_me_irq_thread_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
	ldr	w0, [x1, #28]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	add	x20, x19, #24
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	bl	_mei_hcsr_read
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_me_intr_clear
	add	x0, sp, #24
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_mei_hw_is_ready
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _MEI_DEV_RESETTING@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MEI_DEV_RESETTING@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_18
LBB0_2:
	mov	x0, x19
	bl	_mei_me_hw_is_resetting
	cbz	x0, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_mei_hcsr_set_hig
LBB0_4:
	mov	x0, x21
	bl	_me_intr_src
	mov	x1, x0
	mov	x0, x19
	bl	_mei_me_pg_intr
	mov	x0, x19
	bl	_mei_host_is_ready
	cbz	w0, LBB0_12
; %bb.5:
	mov	x0, x19
	bl	_mei_count_full_read_slots
	str	x0, [sp, #16]
	cmp	x0, #1
	b.lt	LBB0_14
; %bb.6:
Lloh5:
	adrp	x22, l_.str.4@PAGE
Lloh6:
	add	x22, x22, l_.str.4@PAGEOFF
Lloh7:
	adrp	x23, _ENODATA@GOTPAGE
Lloh8:
	ldr	x23, [x23, _ENODATA@GOTPAGEOFF]
Lloh9:
	adrp	x24, _MEI_DEV_RESETTING@GOTPAGE
Lloh10:
	ldr	x24, [x24, _MEI_DEV_RESETTING@GOTPAGEOFF]
Lloh11:
	adrp	x25, _MEI_DEV_POWER_DOWN@GOTPAGE
Lloh12:
	ldr	x25, [x25, _MEI_DEV_POWER_DOWN@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x0, [sp, #16]
	cmp	x0, #0
	b.le	LBB0_15
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #28]
	str	x0, [sp]
	mov	x0, x8
	mov	x1, x22
	bl	_dev_dbg
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x19
	bl	_mei_irq_read_handler
	mov	x21, x0
	ldr	w8, [x23]
	cmn	w0, w8
	b.eq	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	cbz	w21, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x24]
	ldr	x10, [x25]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_7
; %bb.11:
	ldr	w0, [x19, #28]
Lloh13:
	adrp	x1, l_.str.5@PAGE
Lloh14:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	add	x0, x19, #40
	bl	_schedule_work
	b	LBB0_21
LBB0_12:
	mov	x0, x19
	bl	_mei_hw_is_ready
	mov	x8, x0
	ldr	w0, [x19, #28]
	cbz	x8, LBB0_19
; %bb.13:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #44
	bl	_wake_up
	b	LBB0_20
LBB0_14:
	mov	w21, #0
LBB0_15:
	mov	x0, x19
	bl	_mei_hbuf_is_ready
	str	x0, [x19, #32]
	ldr	x8, [x19, #16]
Lloh17:
	adrp	x9, _MEI_PG_EVENT_WAIT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MEI_PG_EVENT_WAIT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
Lloh20:
	adrp	x10, _MEI_PG_EVENT_RECEIVED@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MEI_PG_EVENT_RECEIVED@GOTPAGEOFF]
Lloh22:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_17
; %bb.16:
	add	x1, sp, #24
	mov	x0, x19
	bl	_mei_irq_write_handler
	mov	x21, x0
	mov	x0, x19
	bl	_mei_hbuf_is_ready
	str	x0, [x19, #32]
LBB0_17:
	add	x1, sp, #24
	mov	x0, x19
	bl	_mei_irq_compl_handler
	b	LBB0_21
LBB0_18:
	ldr	w0, [x19, #28]
Lloh23:
	adrp	x1, l_.str.1@PAGE
Lloh24:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	add	x0, x19, #40
	bl	_schedule_work
	b	LBB0_20
LBB0_19:
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
LBB0_20:
	mov	w21, #0
LBB0_21:
	ldr	w0, [x19, #28]
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.6@PAGE
Lloh28:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_mei_me_intr_enable
	mov	x0, x20
	bl	_mutex_unlock
Lloh29:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"function called after ISR to handle the interrupt processing.\n"

	.comm	_MEI_DEV_RESETTING,8,3          ; @MEI_DEV_RESETTING
l_.str.1:                               ; @.str.1
	.asciz	"FW not ready: resetting.\n"

l_.str.2:                               ; @.str.2
	.asciz	"we need to start the dev.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Spurious Interrupt\n"

l_.str.4:                               ; @.str.4
	.asciz	"slots to read = %08x\n"

	.comm	_ENODATA,4,2                    ; @ENODATA
	.comm	_MEI_DEV_POWER_DOWN,8,3         ; @MEI_DEV_POWER_DOWN
l_.str.5:                               ; @.str.5
	.asciz	"mei_irq_read_handler ret = %d.\n"

	.comm	_MEI_PG_EVENT_WAIT,8,3          ; @MEI_PG_EVENT_WAIT
	.comm	_MEI_PG_EVENT_RECEIVED,8,3      ; @MEI_PG_EVENT_RECEIVED
l_.str.6:                               ; @.str.6
	.asciz	"interrupt thread end ret = %d\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
.subsections_via_symbols
