	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea_release                   ## -- Begin function moea_release
	.p2align	4, 0x90
_moea_release:                          ## @moea_release
	.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	%rsi, %rbx
	movq	(%rsi), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	_moea_vsid_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mtx_lock
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_VSID_TO_HASH
	movq	_NPMAPS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	decl	%ecx
	andl	%ecx, %eax
	movq	_VSID_NBPW@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	movl	%edx, %ecx
	movl	$-2, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	roll	%cl, %edx
	movq	_moea_vsid_bitmap@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cltq
	andl	%edx, (%rcx,%rax,4)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"moea_release"

	.comm	_moea_vsid_mutex,4,2            ## @moea_vsid_mutex
	.comm	_NPMAPS,4,2                     ## @NPMAPS
	.comm	_VSID_NBPW,4,2                  ## @VSID_NBPW
	.comm	_moea_vsid_bitmap,8,3           ## @moea_vsid_bitmap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_moea_release                   ; -- Begin function moea_release
	.p2align	2
_moea_release:                          ; @moea_release
	.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, x1
	ldr	x8, [x1]
	ldr	x8, [x8]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
Lloh2:
	adrp	x20, _moea_vsid_mutex@GOTPAGE
Lloh3:
	ldr	x20, [x20, _moea_vsid_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mtx_lock
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_VSID_TO_HASH
Lloh4:
	adrp	x8, _NPMAPS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NPMAPS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	sub	w8, w8, #1
	and	w8, w8, w0
Lloh7:
	adrp	x9, _VSID_NBPW@GOTPAGE
Lloh8:
	ldr	x9, [x9, _VSID_NBPW@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	mov	w9, #1
	lsl	w8, w9, w8
Lloh10:
	adrp	x9, _moea_vsid_bitmap@GOTPAGE
Lloh11:
	ldr	x9, [x9, _moea_vsid_bitmap@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	sbfiz	x10, x10, #2, #32
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"moea_release"

	.comm	_moea_vsid_mutex,4,2            ; @moea_vsid_mutex
	.comm	_NPMAPS,4,2                     ; @NPMAPS
	.comm	_VSID_NBPW,4,2                  ; @VSID_NBPW
	.comm	_moea_vsid_bitmap,8,3           ; @moea_vsid_bitmap
.subsections_via_symbols
