	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_ctr_cipher_new
_crypt_ctr_cipher_new:                  ## @crypt_ctr_cipher_new
	.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	%r8, %rbx
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %r12
	movq	_CRYPTO_MAX_ALG_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movl	$1, (%r12)
	addq	$5, %r15
	movq	%r15, %rdi
	movl	$58, %esi
	callq	_strrchr
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, (%rax)
	incq	(%rbx)
LBB0_2:
	movq	%r15, %rdi
	movl	$45, %esi
	callq	_strrchr
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movb	$0, (%rax)
	incq	(%r14)
LBB0_4:
	movq	%r12, %rdi
	callq	_crypt_integrity_aead
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_crypt_ctr_auth_cipher
	testl	%eax, %eax
	js	LBB0_6
LBB0_9:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.13:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	jne	LBB0_15
## %bb.14:
	movl	$64, (%r12)
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_16
LBB0_10:
	movq	%r15, %rsi
	movq	%r13, %rbx
LBB0_11:
	movl	(%r12), %eax
	movl	%eax, 4(%r12)
	movq	%r12, %rdi
	callq	_crypt_alloc_tfms
	testl	%eax, %eax
	js	LBB0_12
## %bb.21:
	movq	%r12, %rdi
	callq	_crypt_integrity_aead
	movq	%r12, %rdi
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	callq	_any_tfm_aead
	movl	%eax, %edi
	callq	_crypto_aead_ivsize
	jmp	LBB0_24
LBB0_12:
	leaq	L_.str.7(%rip), %rcx
	movq	%rcx, (%rbx)
	jmp	LBB0_25
LBB0_6:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, (%r13)
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_25
LBB0_16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %r8
	testq	%r8, %r8
	movq	%r13, %rbx
	je	LBB0_17
## %bb.18:
	movq	_CRYPTO_MAX_ALG_NAME@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str.5(%rip), %rdx
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_20
## %bb.19:
	movq	%r14, %rsi
	cmpl	(%r13), %eax
	jl	LBB0_11
LBB0_20:
	leaq	L_.str.6(%rip), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_7
LBB0_23:
	callq	_any_tfm
	movl	%eax, %edi
	callq	_crypto_skcipher_ivsize
LBB0_24:
	movl	%eax, 8(%r12)
	xorl	%eax, %eax
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_27
## %bb.26:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	leaq	L_.str.4(%rip), %rax
	movq	%rax, (%rbx)
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_27:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_MAX_ALG_NAME,4,2        ## @CRYPTO_MAX_ALG_NAME
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Invalid AEAD cipher spec"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.2:                               ## @.str.2
	.asciz	"lmk"

L_.str.3:                               ## @.str.3
	.asciz	"essiv"

L_.str.4:                               ## @.str.4
	.asciz	"Digest algorithm missing for ESSIV mode"

L_.str.5:                               ## @.str.5
	.asciz	"essiv(%s,%s)"

L_.str.6:                               ## @.str.6
	.asciz	"Cannot allocate cipher string"

L_.str.7:                               ## @.str.7
	.asciz	"Error allocating crypto tfm"

	.no_dead_strip	_crypt_ctr_cipher_new
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_ctr_cipher_new
_crypt_ctr_cipher_new:                  ; @crypt_ctr_cipher_new
	.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	x22, x4
	mov	x24, x3
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	x19, [x0, #8]
Lloh3:
	adrp	x25, _CRYPTO_MAX_ALG_NAME@GOTPAGE
Lloh4:
	ldr	x25, [x25, _CRYPTO_MAX_ALG_NAME@GOTPAGEOFF]
	ldr	w8, [x25]
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	mov	w8, #1
	str	w8, [x19]
	add	x23, x1, #5
	mov	x0, x23
	mov	w1, #58
	bl	_strrchr
	str	x0, [x22]
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x0]
	ldr	x8, [x22]
	add	x8, x8, #1
	str	x8, [x22]
LBB0_2:
	mov	x0, x23
	mov	w1, #45
	bl	_strrchr
	str	x0, [x24]
	cbz	x0, LBB0_4
; %bb.3:
	strb	wzr, [x0]
	ldr	x8, [x24]
	add	x8, x8, #1
	str	x8, [x24]
LBB0_4:
	mov	x0, x19
	bl	_crypt_integrity_aead
	cbz	x0, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x23
	bl	_crypt_ctr_auth_cipher
	tbnz	w0, #31, LBB0_15
LBB0_6:
	ldr	x24, [x24]
	cbz	x24, LBB0_10
; %bb.7:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbnz	w0, LBB0_9
; %bb.8:
	mov	w8, #64
	str	w8, [x19]
LBB0_9:
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	w0, LBB0_18
LBB0_10:
	mov	x21, x23
LBB0_11:
	ldr	w8, [x19]
	str	w8, [x19, #4]
	mov	x0, x19
	mov	x1, x21
	bl	_crypt_alloc_tfms
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x0, x19
	bl	_crypt_integrity_aead
	cbz	x0, LBB0_22
; %bb.13:
	mov	x0, x19
	bl	_any_tfm_aead
	bl	_crypto_aead_ivsize
	b	LBB0_23
LBB0_14:
Lloh11:
	adrp	x8, l_.str.7@PAGE
Lloh12:
	add	x8, x8, l_.str.7@PAGEOFF
	str	x8, [x20]
	b	LBB0_24
LBB0_15:
Lloh13:
	adrp	x8, l_.str.1@PAGE
Lloh14:
	add	x8, x8, l_.str.1@PAGEOFF
LBB0_16:
	str	x8, [x20]
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_24
LBB0_18:
	ldr	x4, [x22]
	cbz	x4, LBB0_26
; %bb.19:
	ldr	w1, [x25]
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x0, x21
	mov	x3, x23
	bl	_snprintf
	tbnz	w0, #31, LBB0_21
; %bb.20:
	ldr	w8, [x25]
	cmp	w0, w8
	b.lt	LBB0_11
LBB0_21:
Lloh19:
	adrp	x8, l_.str.6@PAGE
Lloh20:
	add	x8, x8, l_.str.6@PAGEOFF
	b	LBB0_16
LBB0_22:
	mov	x0, x19
	bl	_any_tfm
	bl	_crypto_skcipher_ivsize
LBB0_23:
	mov	x8, x0
	mov	w0, #0
	str	w8, [x19, #8]
LBB0_24:
	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_27
; %bb.25:
	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_26:
Lloh24:
	adrp	x8, l_.str.4@PAGE
Lloh25:
	add	x8, x8, l_.str.4@PAGEOFF
	str	x8, [x20]
Lloh26:
	adrp	x8, _EINVAL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_17
LBB0_27:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_MAX_ALG_NAME,4,2        ; @CRYPTO_MAX_ALG_NAME
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Invalid AEAD cipher spec"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.2:                               ; @.str.2
	.asciz	"lmk"

l_.str.3:                               ; @.str.3
	.asciz	"essiv"

l_.str.4:                               ; @.str.4
	.asciz	"Digest algorithm missing for ESSIV mode"

l_.str.5:                               ; @.str.5
	.asciz	"essiv(%s,%s)"

l_.str.6:                               ; @.str.6
	.asciz	"Cannot allocate cipher string"

l_.str.7:                               ; @.str.7
	.asciz	"Error allocating crypto tfm"

	.no_dead_strip	_crypt_ctr_cipher_new
.subsections_via_symbols
