	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mei_hbm_pg_exit_res
_mei_hbm_pg_exit_res:                   ## @mei_hbm_pg_exit_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_ON@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	(%rbx), %edx
	movl	%edx, %eax
	andl	$-2, %eax
	cmpl	$128, %eax
	jne	LBB0_2
## %bb.3:
	cmpl	$129, %edx
	je	LBB0_6
## %bb.4:
	cmpl	$128, %edx
	jne	LBB0_7
## %bb.5:
	movq	_MEI_PG_EVENT_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_2:
	movl	8(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_mei_pg_state
	movq	%rax, %rdi
	callq	_mei_pg_state_str
	movl	(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movl	%eax, %edx
	callq	_dev_err
LBB0_8:
	movq	_EPROTO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_MEI_PG_EVENT_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_mei_hbm_pg_resume
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	callq	_WARN
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MEI_PG_ON,8,3                  ## @MEI_PG_ON
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hbm: pg exit response: state mismatch [%s, %d]\n"

	.comm	_EPROTO,4,2                     ## @EPROTO
	.comm	_MEI_PG_EVENT_RECEIVED,8,3      ## @MEI_PG_EVENT_RECEIVED
L_.str.1:                               ## @.str.1
	.asciz	"hbm: pg exit response: unexpected pg event = %d\n"

	.no_dead_strip	_mei_hbm_pg_exit_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_exit_res
_mei_hbm_pg_exit_res:                   ; @mei_hbm_pg_exit_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_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MEI_PG_ON@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.1:
	ldr	w2, [x19]
	and	w8, w2, #0xfffffffe
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
	cmp	w2, #129
	b.eq	LBB0_8
; %bb.3:
	cmp	w2, #128
	b.ne	LBB0_9
; %bb.4:
Lloh3:
	adrp	x8, _MEI_PG_EVENT_RECEIVED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MEI_PG_EVENT_RECEIVED@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	str	w8, [x19], #4
	mov	x0, x19
	bl	_wake_up
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	ldr	w20, [x19, #8]
	mov	x0, x19
	bl	_mei_pg_state
	bl	_mei_pg_state_str
	mov	x2, x0
	ldr	w3, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
LBB0_6:
Lloh8:
	adrp	x8, _EPROTO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPROTO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh11:
	adrp	x8, _MEI_PG_EVENT_RECEIVED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MEI_PG_EVENT_RECEIVED@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_mei_hbm_pg_resume
	mov	w0, #0
	b	LBB0_7
LBB0_9:
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_WARN
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MEI_PG_ON,8,3                  ; @MEI_PG_ON
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hbm: pg exit response: state mismatch [%s, %d]\n"

	.comm	_EPROTO,4,2                     ; @EPROTO
	.comm	_MEI_PG_EVENT_RECEIVED,8,3      ; @MEI_PG_EVENT_RECEIVED
l_.str.1:                               ; @.str.1
	.asciz	"hbm: pg exit response: unexpected pg event = %d\n"

	.no_dead_strip	_mei_hbm_pg_exit_res
.subsections_via_symbols
