	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_drop_mmu_notifier          ## -- Begin function gru_drop_mmu_notifier
	.p2align	4, 0x90
_gru_drop_mmu_notifier:                 ## @gru_drop_mmu_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	%rdi, %rbx
	movq	_grudev@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_atomic_read
	movl	4(%rbx), %r8d
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_gru_dbg
	movq	%r15, %rdi
	callq	_atomic_dec_return
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$0, 4(%rbx)
	jne	LBB0_3
## %bb.2:
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_mmu_notifier_unregister
LBB0_3:
	movq	%rbx, %rdi
	callq	_kfree
	movq	_gms_free@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_STAT                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_grudev,4,2                     ## @grudev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gms %p, refcnt %d, released %d\n"

	.comm	_current,8,3                    ## @current
	.comm	_gms_free,4,2                   ## @gms_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_drop_mmu_notifier          ; -- Begin function gru_drop_mmu_notifier
	.p2align	2
_gru_drop_mmu_notifier:                 ; @gru_drop_mmu_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	x19, x0
Lloh0:
	adrp	x8, _grudev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _grudev@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	add	x21, x0, #8
	mov	x0, x21
	bl	_atomic_read
	mov	x3, x0
	ldr	w4, [x19, #4]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_gru_dbg
	mov	x0, x21
	bl	_atomic_dec_return
	cbz	x0, LBB0_2
; %bb.1:
	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
LBB0_2:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _current@GOTPAGE
Lloh6:
	ldr	x8, [x8, _current@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	w1, [x8]
	mov	x0, x19
	bl	_mmu_notifier_unregister
LBB0_4:
	mov	x0, x19
	bl	_kfree
Lloh8:
	adrp	x8, _gms_free@GOTPAGE
Lloh9:
	ldr	x8, [x8, _gms_free@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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	_STAT
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_grudev,4,2                     ; @grudev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gms %p, refcnt %d, released %d\n"

	.comm	_current,8,3                    ; @current
	.comm	_gms_free,4,2                   ; @gms_free
.subsections_via_symbols
