	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_ret_proc
_crypto_ret_proc:                       ## @crypto_ret_proc
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_CRYPTO_RETW_LOCK
	leaq	8(%r12), %rbx
	leaq	24(%r12), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	32(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	28(%r12), %r13
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	callq	_CRYPTO_RETW_UNLOCK
	leaq	16(%r15), %rcx
	movq	%r15, %r14
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	*(%rcx)
	movq	%r12, %rdi
	callq	_CRYPTO_RETW_LOCK
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_crp_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	callq	_TAILQ_REMOVE
	incq	(%r12)
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r15
	movq	_crp_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_TAILQ_REMOVE
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %r14
	xorl	%r15d, %r15d
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_krp_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_TAILQ_REMOVE
	movq	%r12, %rdi
	callq	_CRYPTO_RETW_UNLOCK
	testq	%r15, %r15
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	*16(%r15)
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	leaq	8(%r14), %rcx
	jmp	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_PWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	leaq	L_.str(%rip), %rcx
	xorl	%r8d, %r8d
	callq	_msleep
	cmpq	$0, 16(%r12)
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_cryptostats@GOTPCREL(%rip), %rax
	incl	(%rax)
	jmp	LBB0_1
LBB0_16:
	movq	%r12, %rdi
	callq	_CRYPTO_RETW_UNLOCK
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_crypto_finis                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_crp_next,4,2                   ## @crp_next
	.comm	_krp_next,4,2                   ## @krp_next
	.comm	_PWAIT,4,2                      ## @PWAIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crypto_ret_wait"

	.comm	_cryptostats,12,2               ## @cryptostats
	.comm	_crypto_timing,8,3              ## @crypto_timing
	.no_dead_strip	_crypto_ret_proc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_ret_proc
_crypto_ret_proc:                       ; @crypto_ret_proc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_CRYPTO_RETW_LOCK
	add	x20, x19, #8
	add	x21, x19, #24
	add	x22, x19, #32
	add	x23, x19, #28
Lloh0:
	adrp	x28, _cryptostats@GOTPAGE
Lloh1:
	ldr	x28, [x28, _cryptostats@GOTPAGEOFF]
Lloh2:
	adrp	x27, _crp_next@GOTPAGE
Lloh3:
	ldr	x27, [x27, _crp_next@GOTPAGEOFF]
Lloh4:
	adrp	x24, _krp_next@GOTPAGE
Lloh5:
	ldr	x24, [x24, _krp_next@GOTPAGEOFF]
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_CRYPTO_RETW_UNLOCK
	add	x8, x25, #16
	mov	x26, x25
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x8]
	mov	x0, x26
	blr	x8
	mov	x0, x19
	bl	_CRYPTO_RETW_LOCK
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x27]
	mov	x0, x22
	mov	x1, x25
	bl	_TAILQ_REMOVE
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x20
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	w2, [x27]
	mov	x0, x20
	mov	x1, x25
	bl	_TAILQ_REMOVE
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x23
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	mov	x25, #0
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w2, [x24]
	mov	x0, x23
	mov	x1, x26
	bl	_TAILQ_REMOVE
	mov	x0, x19
	bl	_CRYPTO_RETW_UNLOCK
	cbz	x25, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x25, #16]
	mov	x0, x25
	blr	x8
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x26, #8
	b	LBB0_2
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh6:
	adrp	x8, _PWAIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PWAIT@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	w4, #0
	bl	_msleep
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x28]
	add	w8, w8, #1
	str	w8, [x28]
	b	LBB0_3
LBB0_17:
	mov	x0, x19
	bl	_CRYPTO_RETW_UNLOCK
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_crypto_finis
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_crp_next,4,2                   ; @crp_next
	.comm	_krp_next,4,2                   ; @krp_next
	.comm	_PWAIT,4,2                      ; @PWAIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crypto_ret_wait"

	.comm	_cryptostats,12,2               ; @cryptostats
	.comm	_crypto_timing,8,3              ; @crypto_timing
	.no_dead_strip	_crypto_ret_proc
.subsections_via_symbols
