	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function n2_register_algs
_n2_register_algs:                      ## @n2_register_algs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_spu_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_algs_registered@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	xorl	%r15d, %r15d
	testl	%ecx, %ecx
	jne	LBB0_11
## %bb.1:
	movq	_NUM_HASH_TMPLS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_5
## %bb.2:
	xorl	%r13d, %r13d
	movq	_hash_tmpls@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	___n2_register_one_ahash
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_5:
	movq	_NUM_CIPHER_TMPLS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_11
## %bb.6:
	xorl	%r13d, %r13d
	movq	_cipher_tmpls@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rdi
	addq	%r13, %rdi
	callq	___n2_register_one_cipher
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_7
## %bb.9:
	xorl	%r15d, %r15d
	jmp	LBB0_11
LBB0_10:
	movl	%eax, %r15d
	xorl	%eax, %eax
	callq	___n2_unregister_algs
LBB0_11:
	movq	_spu_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_spu_lock,4,2                   ## @spu_lock
	.comm	_algs_registered,4,2            ## @algs_registered
	.comm	_NUM_HASH_TMPLS,4,2             ## @NUM_HASH_TMPLS
	.comm	_hash_tmpls,8,3                 ## @hash_tmpls
	.comm	_NUM_CIPHER_TMPLS,4,2           ## @NUM_CIPHER_TMPLS
	.comm	_cipher_tmpls,8,3               ## @cipher_tmpls
	.no_dead_strip	_n2_register_algs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function n2_register_algs
_n2_register_algs:                      ; @n2_register_algs
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
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]
	add	w10, w9, #1
	str	w10, [x8]
	cbz	w9, LBB0_3
LBB0_1:
	mov	w19, #0
LBB0_2:
Lloh4:
	adrp	x0, _spu_lock@GOTPAGE
Lloh5:
	ldr	x0, [x0, _spu_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh6:
	adrp	x20, _NUM_HASH_TMPLS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _NUM_HASH_TMPLS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.4:
	mov	x21, #0
	mov	x22, #0
Lloh8:
	adrp	x23, _hash_tmpls@GOTPAGE
Lloh9:
	ldr	x23, [x23, _hash_tmpls@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x21
	bl	___n2_register_one_ahash
	cbnz	w0, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_5
LBB0_7:
Lloh10:
	adrp	x20, _NUM_CIPHER_TMPLS@GOTPAGE
Lloh11:
	ldr	x20, [x20, _NUM_CIPHER_TMPLS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_1
; %bb.8:
	mov	x21, #0
	mov	x22, #0
Lloh12:
	adrp	x23, _cipher_tmpls@GOTPAGE
Lloh13:
	ldr	x23, [x23, _cipher_tmpls@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x0, x8, x21
	bl	___n2_register_one_cipher
	cbnz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_9
	b	LBB0_1
LBB0_11:
	mov	x19, x0
	bl	___n2_unregister_algs
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_spu_lock,4,2                   ; @spu_lock
	.comm	_algs_registered,4,2            ; @algs_registered
	.comm	_NUM_HASH_TMPLS,4,2             ; @NUM_HASH_TMPLS
	.comm	_hash_tmpls,8,3                 ; @hash_tmpls
	.comm	_NUM_CIPHER_TMPLS,4,2           ; @NUM_CIPHER_TMPLS
	.comm	_cipher_tmpls,8,3               ; @cipher_tmpls
	.no_dead_strip	_n2_register_algs
.subsections_via_symbols
