	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_ctr_cipher_old
_crypt_ctr_cipher_old:                  ## @crypt_ctr_cipher_old
	.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	%r8, %r15
	movq	%rcx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	%rsi, %rdi
	movl	$40, %esi
	callq	_strchr
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_crypt_integrity_aead
	testq	%rax, %rax
	je	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rax
LBB0_3:
	movq	%rax, (%r13)
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_5:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rbx, -64(%rbp)
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rdi
	callq	_strsep
	movq	%rax, -80(%rbp)
	leaq	L_.str.2(%rip), %rsi
	leaq	-80(%rbp), %rdi
	callq	_strsep
	movq	%rax, %rbx
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	leaq	-41(%rbp), %rcx
	movq	%r14, %rdx
	callq	_sscanf
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.9:
	movl	(%r14), %edi
	callq	_is_power_of_2
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	(%r14), %eax
	jmp	LBB0_13
LBB0_11:
	leaq	L_.str.4(%rip), %rax
	jmp	LBB0_3
LBB0_12:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	$1, (%r14)
	movl	$1, %eax
LBB0_13:
	movl	%eax, 4(%r14)
	leaq	L_.str.1(%rip), %rsi
	leaq	-64(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_strsep
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rax, %rbx
	callq	_strsep
	movq	%rax, (%r12)
	movq	-64(%rbp), %rax
	movq	%rax, (%r15)
	testq	%rbx, %rbx
	je	LBB0_16
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	jne	LBB0_17
## %bb.15:
	cmpq	$0, (%r12)
	jne	LBB0_17
LBB0_16:
	leaq	L_.str.5(%rip), %rax
	movq	%rax, (%r12)
	leaq	L_.str.6(%rip), %rbx
LBB0_17:
	leaq	L_.str.7(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.18:
	cmpq	$0, (%r12)
	je	LBB0_26
LBB0_19:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	_CRYPTO_MAX_ALG_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_30
## %bb.20:
	movq	%rax, %rbx
	movq	(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_22
## %bb.21:
	leaq	L_.str.9(%rip), %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_27
LBB0_22:
	movq	_CRYPTO_MAX_ALG_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.12(%rip), %rdx
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	testl	%eax, %eax
	js	LBB0_29
LBB0_23:
	cmpl	(%r12), %eax
	jge	LBB0_29
## %bb.24:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_crypt_alloc_tfms
	testl	%eax, %eax
	js	LBB0_31
## %bb.25:
	movq	%r15, %rdi
	callq	_kfree
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_26:
	leaq	L_.str.8(%rip), %rax
	jmp	LBB0_3
LBB0_27:
	movq	(%r15), %r9
	testq	%r9, %r9
	je	LBB0_32
## %bb.28:
	movq	_CRYPTO_MAX_ALG_NAME@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	L_.str.11(%rip), %rdx
	movq	%rbx, %r15
	movq	%rbx, %rdi
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_snprintf
	testl	%eax, %eax
	jns	LBB0_23
LBB0_29:
	movq	%r15, %rdi
	callq	_kfree
LBB0_30:
	leaq	L_.str.14(%rip), %rax
	movq	%rax, (%r13)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_31:
	movl	%eax, %ebx
	leaq	L_.str.13(%rip), %rax
	movq	%rax, (%r13)
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_6
LBB0_32:
	leaq	L_.str.10(%rip), %rax
	movq	%rax, (%r13)
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_4
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Bad cipher specification"

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

L_.str.2:                               ## @.str.2
	.asciz	":"

L_.str.3:                               ## @.str.3
	.asciz	"%u%c"

L_.str.4:                               ## @.str.4
	.asciz	"Bad cipher key count specification"

L_.str.5:                               ## @.str.5
	.asciz	"plain"

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

L_.str.7:                               ## @.str.7
	.asciz	"ecb"

L_.str.8:                               ## @.str.8
	.asciz	"IV mechanism required"

	.comm	_CRYPTO_MAX_ALG_NAME,4,2        ## @CRYPTO_MAX_ALG_NAME
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
L_.str.9:                               ## @.str.9
	.asciz	"essiv"

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

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

L_.str.12:                              ## @.str.12
	.asciz	"%s(%s)"

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

L_.str.14:                              ## @.str.14
	.asciz	"Cannot allocate cipher strings"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_crypt_ctr_cipher_old
.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_old
_crypt_ctr_cipher_old:                  ; @crypt_ctr_cipher_old
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x1
	mov	x19, x0
	ldr	x20, [x0, #8]
	mov	x0, x1
	mov	w1, #40
	bl	_strchr
	cbnz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_crypt_integrity_aead
	cbz	x0, LBB0_7
LBB0_2:
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
LBB0_3:
	str	x8, [x19]
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_7:
	str	x23, [sp, #24]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	str	x0, [sp, #16]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #16
	bl	_strsep
	mov	x23, x0
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_12
; %bb.8:
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x3, sp, #15
	mov	x2, x20
	bl	_sscanf
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.9:
	ldr	w0, [x20]
	bl	_is_power_of_2
	cbz	w0, LBB0_11
; %bb.10:
	ldr	w8, [x20]
	b	LBB0_13
LBB0_11:
Lloh10:
	adrp	x8, l_.str.4@PAGE
Lloh11:
	add	x8, x8, l_.str.4@PAGEOFF
	b	LBB0_3
LBB0_12:
	mov	w8, #1
	str	w8, [x20]
LBB0_13:
	str	w8, [x20, #4]
Lloh12:
	adrp	x1, l_.str.1@PAGE
Lloh13:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	mov	x24, x0
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x0, sp, #24
	bl	_strsep
	str	x0, [x22]
	ldr	x8, [sp, #24]
	str	x8, [x21]
	cbz	x24, LBB0_16
; %bb.14:
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbnz	x0, LBB0_17
; %bb.15:
	ldr	x8, [x22]
	cbnz	x8, LBB0_17
LBB0_16:
Lloh18:
	adrp	x8, l_.str.5@PAGE
Lloh19:
	add	x8, x8, l_.str.5@PAGEOFF
	str	x8, [x22]
Lloh20:
	adrp	x24, l_.str.6@PAGE
Lloh21:
	add	x24, x24, l_.str.6@PAGEOFF
LBB0_17:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.18:
	ldr	x8, [x22]
	cbz	x8, LBB0_27
LBB0_19:
Lloh24:
	adrp	x26, _CRYPTO_MAX_ALG_NAME@GOTPAGE
Lloh25:
	ldr	x26, [x26, _CRYPTO_MAX_ALG_NAME@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh26:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	bl	_kmalloc
	cbz	x0, LBB0_29
; %bb.20:
	mov	x25, x0
	ldr	x0, [x22]
	cbz	x0, LBB0_22
; %bb.21:
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_30
LBB0_22:
	ldr	w1, [x26]
Lloh31:
	adrp	x2, l_.str.12@PAGE
Lloh32:
	add	x2, x2, l_.str.12@PAGEOFF
LBB0_23:
	mov	x0, x25
	mov	x3, x24
	mov	x4, x23
	bl	_snprintf
	tbnz	w0, #31, LBB0_28
; %bb.24:
	ldr	w8, [x26]
	cmp	w0, w8
	b.ge	LBB0_28
; %bb.25:
	mov	x0, x20
	mov	x1, x25
	bl	_crypt_alloc_tfms
	tbnz	w0, #31, LBB0_32
; %bb.26:
	mov	x0, x25
	bl	_kfree
	mov	w20, #0
	b	LBB0_6
LBB0_27:
Lloh33:
	adrp	x8, l_.str.8@PAGE
Lloh34:
	add	x8, x8, l_.str.8@PAGEOFF
	b	LBB0_3
LBB0_28:
	mov	x0, x25
	bl	_kfree
LBB0_29:
Lloh35:
	adrp	x8, l_.str.14@PAGE
Lloh36:
	add	x8, x8, l_.str.14@PAGEOFF
	str	x8, [x19]
Lloh37:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh38:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_5
LBB0_30:
	ldr	x8, [x21]
	cbz	x8, LBB0_33
; %bb.31:
	ldr	w1, [x26]
Lloh39:
	adrp	x2, l_.str.11@PAGE
Lloh40:
	add	x2, x2, l_.str.11@PAGEOFF
	str	x8, [sp]
	b	LBB0_23
LBB0_32:
	mov	x20, x0
Lloh41:
	adrp	x8, l_.str.13@PAGE
Lloh42:
	add	x8, x8, l_.str.13@PAGEOFF
	str	x8, [x19]
	mov	x0, x25
	bl	_kfree
	b	LBB0_6
LBB0_33:
Lloh43:
	adrp	x8, l_.str.10@PAGE
Lloh44:
	add	x8, x8, l_.str.10@PAGEOFF
	str	x8, [x19]
	mov	x0, x25
	bl	_kfree
	b	LBB0_4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Bad cipher specification"

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

l_.str.2:                               ; @.str.2
	.asciz	":"

l_.str.3:                               ; @.str.3
	.asciz	"%u%c"

l_.str.4:                               ; @.str.4
	.asciz	"Bad cipher key count specification"

l_.str.5:                               ; @.str.5
	.asciz	"plain"

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

l_.str.7:                               ; @.str.7
	.asciz	"ecb"

l_.str.8:                               ; @.str.8
	.asciz	"IV mechanism required"

	.comm	_CRYPTO_MAX_ALG_NAME,4,2        ; @CRYPTO_MAX_ALG_NAME
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
l_.str.9:                               ; @.str.9
	.asciz	"essiv"

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

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

l_.str.12:                              ; @.str.12
	.asciz	"%s(%s)"

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

l_.str.14:                              ; @.str.14
	.asciz	"Cannot allocate cipher strings"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_crypt_ctr_cipher_old
.subsections_via_symbols
