	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2_unregister_algs
_n2_unregister_algs:                    ## @n2_unregister_algs
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_spu_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_algs_registered@GOTPCREL(%rip), %rax
	decl	(%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	___n2_unregister_algs
LBB0_2:
	movq	_spu_lock@GOTPCREL(%rip), %rdi
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_spu_lock,4,2                   ## @spu_lock
	.comm	_algs_registered,4,2            ## @algs_registered
	.no_dead_strip	_n2_unregister_algs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2_unregister_algs
_n2_unregister_algs:                    ; @n2_unregister_algs
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, _spu_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _spu_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _algs_registered@GOTPAGE
Lloh3:
	ldr	x8, [x8, _algs_registered@GOTPAGEOFF]
	ldr	w9, [x8]
	subs	w9, w9, #1
	str	w9, [x8]
	b.ne	LBB0_2
; %bb.1:
	bl	___n2_unregister_algs
LBB0_2:
Lloh4:
	adrp	x0, _spu_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _spu_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_spu_lock,4,2                   ; @spu_lock
	.comm	_algs_registered,4,2            ; @algs_registered
	.no_dead_strip	_n2_unregister_algs
.subsections_via_symbols
