	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_hbm_pg_enter_res
_mei_hbm_pg_enter_res:                  ## @mei_hbm_pg_enter_res
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_mei_pg_state
	movq	_MEI_PG_OFF@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	_MEI_PG_EVENT_WAIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_MEI_PG_EVENT_RECEIVED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_2:
	movl	12(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_mei_pg_state
	movq	%rax, %rdi
	callq	_mei_pg_state_str
	movq	(%rbx), %rcx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_PG_OFF,8,3                 ## @MEI_PG_OFF
	.comm	_MEI_PG_EVENT_WAIT,8,3          ## @MEI_PG_EVENT_WAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hbm: pg entry response: state mismatch [%s, %d]\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_MEI_PG_EVENT_RECEIVED,8,3      ## @MEI_PG_EVENT_RECEIVED
	.no_dead_strip	_mei_hbm_pg_enter_res
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mei_hbm_pg_enter_res
_mei_hbm_pg_enter_res:                  ; @mei_hbm_pg_enter_res
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_mei_pg_state
Lloh0:
	adrp	x8, _MEI_PG_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEI_PG_OFF@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MEI_PG_EVENT_WAIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MEI_PG_EVENT_WAIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x8, _MEI_PG_EVENT_RECEIVED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MEI_PG_EVENT_RECEIVED@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19], #8
	mov	x0, x19
	bl	_wake_up
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w20, [x19, #12]
	mov	x0, x19
	bl	_mei_pg_state
	bl	_mei_pg_state_str
	mov	x2, x0
	ldr	x3, [x19]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
Lloh11:
	adrp	x8, _EPROTO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_PG_OFF,8,3                 ; @MEI_PG_OFF
	.comm	_MEI_PG_EVENT_WAIT,8,3          ; @MEI_PG_EVENT_WAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hbm: pg entry response: state mismatch [%s, %d]\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_MEI_PG_EVENT_RECEIVED,8,3      ; @MEI_PG_EVENT_RECEIVED
	.no_dead_strip	_mei_hbm_pg_enter_res
.subsections_via_symbols
