	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_mem_notifier
_ehea_mem_notifier:                     ## @ehea_mem_notifier
	.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
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_NOTIFY_BAD@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	_dlpar_mem_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	cmpq	$128, %rbx
	je	LBB0_4
## %bb.1:
	cmpq	$129, %rbx
	je	LBB0_5
## %bb.2:
	cmpq	$130, %rbx
	jne	LBB0_8
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_pr_info
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_info
	movq	___EHEA_STOP_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ehea_driver_flags@GOTPCREL(%rip), %rsi
	callq	_set_bit
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_ehea_add_sect_bmap
	testl	%eax, %eax
	jne	LBB0_9
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	callq	_pr_info
	movq	___EHEA_STOP_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ehea_driver_flags@GOTPCREL(%rip), %rsi
	callq	_set_bit
	movl	(%r15), %esi
	movl	4(%r15), %edi
	callq	_ehea_rem_sect_bmap
	testl	%eax, %eax
	jne	LBB0_9
LBB0_7:
	xorl	%eax, %eax
	callq	_ehea_rereg_mrs
LBB0_8:
	xorl	%eax, %eax
	callq	_ehea_update_firmware_handles
	movq	_NOTIFY_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movq	_dlpar_mem_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOTIFY_BAD,4,2                 ## @NOTIFY_BAD
	.comm	_dlpar_mem_lock,4,2             ## @dlpar_mem_lock
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"memory offlining canceled"

L_.str.1:                               ## @.str.1
	.asciz	"memory is going online"

	.comm	___EHEA_STOP_XFER,4,2           ## @__EHEA_STOP_XFER
	.comm	_ehea_driver_flags,4,2          ## @ehea_driver_flags
L_.str.2:                               ## @.str.2
	.asciz	"memory is going offline"

	.comm	_NOTIFY_OK,4,2                  ## @NOTIFY_OK
	.no_dead_strip	_ehea_mem_notifier
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_mem_notifier
_ehea_mem_notifier:                     ; @ehea_mem_notifier
	.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, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _NOTIFY_BAD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOTIFY_BAD@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
Lloh3:
	adrp	x0, _dlpar_mem_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _dlpar_mem_lock@GOTPAGEOFF]
	bl	_mutex_lock
	cmp	x21, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	x21, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	x21, #130
	b.ne	LBB0_7
; %bb.3:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
LBB0_4:
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh9:
	adrp	x8, ___EHEA_STOP_XFER@GOTPAGE
Lloh10:
	ldr	x8, [x8, ___EHEA_STOP_XFER@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, _ehea_driver_flags@GOTPAGE
Lloh13:
	ldr	x1, [x1, _ehea_driver_flags@GOTPAGEOFF]
	bl	_set_bit
	ldp	w1, w0, [x20]
	bl	_ehea_add_sect_bmap
	cbnz	w0, LBB0_8
	b	LBB0_6
LBB0_5:
Lloh14:
	adrp	x0, l_.str.2@PAGE
Lloh15:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_info
Lloh16:
	adrp	x8, ___EHEA_STOP_XFER@GOTPAGE
Lloh17:
	ldr	x8, [x8, ___EHEA_STOP_XFER@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
Lloh19:
	adrp	x1, _ehea_driver_flags@GOTPAGE
Lloh20:
	ldr	x1, [x1, _ehea_driver_flags@GOTPAGEOFF]
	bl	_set_bit
	ldp	w1, w0, [x20]
	bl	_ehea_rem_sect_bmap
	cbnz	w0, LBB0_8
LBB0_6:
	bl	_ehea_rereg_mrs
LBB0_7:
	bl	_ehea_update_firmware_handles
Lloh21:
	adrp	x8, _NOTIFY_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NOTIFY_OK@GOTPAGEOFF]
Lloh23:
	ldr	w19, [x8]
LBB0_8:
Lloh24:
	adrp	x0, _dlpar_mem_lock@GOTPAGE
Lloh25:
	ldr	x0, [x0, _dlpar_mem_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_NOTIFY_BAD,4,2                 ; @NOTIFY_BAD
	.comm	_dlpar_mem_lock,4,2             ; @dlpar_mem_lock
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"memory offlining canceled"

l_.str.1:                               ; @.str.1
	.asciz	"memory is going online"

	.comm	___EHEA_STOP_XFER,4,2           ; @__EHEA_STOP_XFER
	.comm	_ehea_driver_flags,4,2          ; @ehea_driver_flags
l_.str.2:                               ; @.str.2
	.asciz	"memory is going offline"

	.comm	_NOTIFY_OK,4,2                  ; @NOTIFY_OK
	.no_dead_strip	_ehea_mem_notifier
.subsections_via_symbols
