	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cryptoloop_init
_cryptoloop_init:                       ## @cryptoloop_init
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorl	%r15d, %r15d
	movq	_LO_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%r14, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	(%rbx), %eax
	movq	_LOOP_IV_SECTOR_SIZE@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_11
LBB0_2:
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %esi
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_strncpy
	movq	_LO_NAME_SIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movb	$0, -1(%rcx,%r12)
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcspn
	movl	%eax, %r13d
	cltq
	leaq	(%r12,%rax), %r14
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpb	$0, (%r12,%rax)
	je	LBB0_4
## %bb.3:
	incq	%r14
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_strcspn
	movl	%eax, %r15d
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	testl	%r15d, %r15d
	movl	$3, %ebx
	cmovnel	%r15d, %ebx
	leal	(%rbx,%r13), %eax
	addl	$3, %eax
	cmpl	-80(%rbp), %eax                 ## 4-byte Folded Reload
	jle	LBB0_6
## %bb.5:
	xorl	%r15d, %r15d
	subl	(%rcx), %r15d
	jmp	LBB0_11
LBB0_6:
	testl	%r15d, %r15d
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %r14
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memmove
	movslq	%ebx, %rax
	leaq	(%r12,%rax), %rdi
	incq	%rdi
	movq	%r12, %rbx
	addq	%rax, %rbx
	movb	$40, (%r12,%rax)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	12(%r15), %esi
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movw	$41, 1(%r14,%rbx)
	movq	_CRYPTO_ALG_ASYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_crypto_alloc_blkcipher
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_PTR_ERR
	movl	%eax, %r15d
	jmp	LBB0_11
LBB0_8:
	movl	4(%r15), %edx
	movl	8(%r15), %esi
	movq	%r14, %rdi
	callq	_crypto_blkcipher_setkey
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_crypto_free_blkcipher
	jmp	LBB0_11
LBB0_9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%r15d, %r15d
LBB0_11:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LO_NAME_SIZE,4,2               ## @LO_NAME_SIZE
	.comm	_LOOP_IV_SECTOR_SIZE,4,2        ## @LOOP_IV_SECTOR_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

L_.str.1:                               ## @.str.1
	.asciz	"cbc"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ## @CRYPTO_ALG_ASYNC
	.no_dead_strip	_cryptoloop_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cryptoloop_init
_cryptoloop_init:                       ; @cryptoloop_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #16
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x25, _EINVAL@GOTPAGE
Lloh4:
	ldr	x25, [x25, _EINVAL@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh5:
	adrp	x22, _LO_NAME_SIZE@GOTPAGE
Lloh6:
	ldr	x22, [x22, _LO_NAME_SIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x9, x2
Lloh7:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh8:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x10, x2, #15
	and	x10, x10, #0x1fffffff0
	sub	x21, x9, x10
	mov	sp, x21
	ldr	w9, [x1]
Lloh9:
	adrp	x10, _LOOP_IV_SECTOR_SIZE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _LOOP_IV_SECTOR_SIZE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	sdiv	w11, w9, w10
	msub	w9, w11, w10, w9
	cbz	w9, LBB0_2
; %bb.1:
	neg	w20, w8
	b	LBB0_12
LBB0_2:
	ldr	w1, [x20, #12]
	mov	x0, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_strncpy
	ldrsw	x26, [x22]
	add	x8, x26, x21
	sturb	wzr, [x8, #-1]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_strcspn
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x22, w0
	add	x23, x21, x22
	ldrb	w8, [x23]
	cbz	w8, LBB0_4
; %bb.3:
	add	x23, x23, #1
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x23
	bl	_strcspn
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	mov	w8, #3
	cmp	w0, #0
	csel	w24, w8, w0, eq
	add	w8, w22, w24
	add	w8, w8, #3
	cmp	w8, w26
	b.le	LBB0_7
; %bb.6:
	ldr	w8, [x25]
	neg	w20, w8
	b	LBB0_12
LBB0_7:
Lloh16:
	adrp	x8, l_.str.1@PAGE
Lloh17:
	add	x8, x8, l_.str.1@PAGEOFF
	cmp	w0, #0
	csel	x1, x8, x23, eq
	mov	x0, x21
	mov	x2, x24
	bl	_memmove
	add	x23, x21, w24, sxtw
	mov	w8, #40
	strb	w8, [x23], #1
	ldr	w1, [x20, #12]
	mov	x0, x23
	mov	x2, x22
	bl	_memcpy
	mov	w8, #41
	strh	w8, [x23, x22]
Lloh18:
	adrp	x8, _CRYPTO_ALG_ASYNC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CRYPTO_ALG_ASYNC@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x21
	mov	w1, #0
	bl	_crypto_alloc_blkcipher
	mov	x21, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	mov	x0, x21
	bl	_PTR_ERR
	mov	x20, x0
	b	LBB0_12
LBB0_9:
	ldp	w2, w1, [x20, #4]
	mov	x0, x21
	bl	_crypto_blkcipher_setkey
	mov	x20, x0
	cbz	w0, LBB0_11
; %bb.10:
	mov	x0, x21
	bl	_crypto_free_blkcipher
	b	LBB0_12
LBB0_11:
	str	x21, [x19]
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh21:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh22:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LO_NAME_SIZE,4,2               ; @LO_NAME_SIZE
	.comm	_LOOP_IV_SECTOR_SIZE,4,2        ; @LOOP_IV_SECTOR_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

l_.str.1:                               ; @.str.1
	.asciz	"cbc"

	.comm	_CRYPTO_ALG_ASYNC,4,2           ; @CRYPTO_ALG_ASYNC
	.no_dead_strip	_cryptoloop_init
.subsections_via_symbols
