	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_me_d0i3_intr
_mei_me_d0i3_intr:                      ## @mei_me_d0i3_intr
	.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
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_to_me_hw
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	_MEI_PG_EVENT_INTR_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.1:
	movq	_H_D0I3C_IS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.2:
	movq	_MEI_PG_EVENT_INTR_RECEIVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	_MEI_PG_ON@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r15)
	jne	LBB0_5
## %bb.3:
	movq	_MEI_PG_OFF@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
	movq	8(%rbx), %rax
	movq	_MEI_HBM_IDLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	callq	_mei_me_host_set_ready
	jmp	LBB0_6
LBB0_5:
	movq	%rax, (%r15)
LBB0_6:
	leaq	20(%rbx), %rdi
	callq	_wake_up
LBB0_7:
	movq	(%r15), %rax
	movq	_MEI_PG_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_H_IS@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_9
## %bb.10:
	movl	16(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mei_hbm_pg_resume              ## TAILCALL
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_PG_EVENT_INTR_WAIT,8,3     ## @MEI_PG_EVENT_INTR_WAIT
	.comm	_H_D0I3C_IS,4,2                 ## @H_D0I3C_IS
	.comm	_MEI_PG_EVENT_INTR_RECEIVED,8,3 ## @MEI_PG_EVENT_INTR_RECEIVED
	.comm	_MEI_PG_ON,8,3                  ## @MEI_PG_ON
	.comm	_MEI_PG_OFF,8,3                 ## @MEI_PG_OFF
	.comm	_MEI_HBM_IDLE,8,3               ## @MEI_HBM_IDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d0i3 set host ready\n"

	.comm	_H_IS,4,2                       ## @H_IS
L_.str.1:                               ## @.str.1
	.asciz	"d0i3 want resume\n"

	.no_dead_strip	_mei_me_d0i3_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_me_d0i3_intr
_mei_me_d0i3_intr:                      ; @mei_me_d0i3_intr
	.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	x20, x1
	mov	x19, x0
	bl	_to_me_hw
	mov	x21, x0
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MEI_PG_EVENT_INTR_WAIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MEI_PG_EVENT_INTR_WAIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x22, _MEI_PG_ON@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MEI_PG_ON@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.1:
Lloh5:
	adrp	x8, _H_D0I3C_IS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _H_D0I3C_IS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.2:
Lloh8:
	adrp	x8, _MEI_PG_EVENT_INTR_RECEIVED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MEI_PG_EVENT_INTR_RECEIVED@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	x9, [x21]
	ldr	x8, [x22]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.3:
Lloh11:
	adrp	x8, _MEI_PG_OFF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEI_PG_OFF@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x21]
	ldr	x8, [x19, #8]
Lloh14:
	adrp	x9, _MEI_HBM_IDLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MEI_HBM_IDLE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_mei_me_host_set_ready
	b	LBB0_6
LBB0_5:
	str	x8, [x21]
LBB0_6:
	add	x0, x19, #20
	bl	_wake_up
LBB0_7:
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
Lloh19:
	adrp	x8, _H_IS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _H_IS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	ldr	w0, [x19, #16]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	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
	b	_mei_hbm_pg_resume
LBB0_10:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_PG_EVENT_INTR_WAIT,8,3     ; @MEI_PG_EVENT_INTR_WAIT
	.comm	_H_D0I3C_IS,4,2                 ; @H_D0I3C_IS
	.comm	_MEI_PG_EVENT_INTR_RECEIVED,8,3 ; @MEI_PG_EVENT_INTR_RECEIVED
	.comm	_MEI_PG_ON,8,3                  ; @MEI_PG_ON
	.comm	_MEI_PG_OFF,8,3                 ; @MEI_PG_OFF
	.comm	_MEI_HBM_IDLE,8,3               ; @MEI_HBM_IDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d0i3 set host ready\n"

	.comm	_H_IS,4,2                       ; @H_IS
l_.str.1:                               ; @.str.1
	.asciz	"d0i3 want resume\n"

	.no_dead_strip	_mei_me_d0i3_intr
.subsections_via_symbols
