	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_virtio_crypto_algs_register    ## -- Begin function virtio_crypto_algs_register
	.p2align	4, 0x90
_virtio_crypto_algs_register:           ## @virtio_crypto_algs_register
	.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	%rdi, %r15
	movq	_algs_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_virtio_crypto_algs@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_9
## %bb.1:
	movl	$8, %ebx
	xorl	%r14d, %r14d
	leaq	L_.str(%rip), %r13
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rax
	movq	%rax, -8(%rdi,%rbx)
	movq	(%r15), %rax
	movl	(%rdi,%rbx), %edx
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_dev_info
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$24, %rbx
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	4(%rax,%rbx), %edx
	movl	8(%rax,%rbx), %esi
	movq	%r15, %rdi
	callq	_virtcrypto_algo_is_supported
	testl	%eax, %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movq	-8(%rdi,%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r15
	addq	%rbx, %rdi
	callq	_crypto_register_alg
	testl	%eax, %eax
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rdi
	movq	-8(%rdi,%rbx), %rax
	movq	%r15, %r13
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_9:
	xorl	%r13d, %r13d
LBB0_10:
	movq	_algs_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %r13d
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_algs_lock,4,2                  ## @algs_lock
	.comm	_virtio_crypto_algs,8,3         ## @virtio_crypto_algs
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registered algo %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_virtio_crypto_algs_register    ; -- Begin function virtio_crypto_algs_register
	.p2align	2
_virtio_crypto_algs_register:           ; @virtio_crypto_algs_register
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, _algs_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _algs_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x22, _virtio_crypto_algs@GOTPAGE
Lloh3:
	ldr	x22, [x22, _virtio_crypto_algs@GOTPAGEOFF]
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x23, #0
	mov	x24, #0
Lloh4:
	adrp	x20, l_.str@PAGE
Lloh5:
	add	x20, x20, l_.str@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x23
	add	x9, x9, #1
	str	x9, [x8]
	ldr	x0, [x19]
	ldr	w2, [x8, #8]
	mov	x1, x20
	bl	_dev_info
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x24, x24, #1
	ldr	x0, [x22]
	bl	_ARRAY_SIZE
	add	x23, x23, #24
	cmp	x24, w0, sxtw
	b.ge	LBB0_8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	add	x8, x8, x23
	ldp	w2, w1, [x8, #12]
	mov	x0, x19
	bl	_virtcrypto_algo_is_supported
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x8, x23]
	cbnz	x9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, x23
	add	x0, x8, #8
	bl	_crypto_register_alg
	cbnz	w0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x8, x23]
	b	LBB0_2
LBB0_8:
	mov	w21, #0
LBB0_9:
Lloh6:
	adrp	x0, _algs_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _algs_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x21
	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_10:
	mov	x21, x0
	b	LBB0_9
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_algs_lock,4,2                  ; @algs_lock
	.comm	_virtio_crypto_algs,8,3         ; @virtio_crypto_algs
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registered algo %s\n"

.subsections_via_symbols
