	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypt_ctr_ivmode
_crypt_ctr_ivmode:                      ## @crypt_ctr_ivmode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_crypt_integrity_aead
	movq	%rbx, %rdi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	callq	_any_tfm_aead
	movl	%eax, %edi
	callq	_crypto_aead_ivsize
	jmp	LBB0_3
LBB0_2:
	callq	_any_tfm
	movl	%eax, %edi
	callq	_crypto_skcipher_ivsize
LBB0_3:
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_16
## %bb.4:
	movl	%eax, %edi
	movl	$1, %esi
	callq	_max
	movl	%eax, (%rbx)
	testq	%r15, %r15
	je	LBB0_18
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_20
## %bb.7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_21
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_22
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_23
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_24
## %bb.11:
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_25
## %bb.12:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_29
## %bb.13:
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_31
## %bb.14:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.15:
	leaq	L_.str.11(%rip), %rax
	movq	%rax, (%r14)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	jmp	LBB0_28
LBB0_16:
	testq	%r15, %r15
	je	LBB0_18
## %bb.17:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
LBB0_18:
	movq	$0, 24(%rbx)
	jmp	LBB0_27
LBB0_19:
	movq	_crypt_iv_plain_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_20:
	movq	_crypt_iv_plain64_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_21:
	movq	_crypt_iv_plain64be_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_22:
	movq	_crypt_iv_essiv_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_23:
	movq	_crypt_iv_benbi_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_24:
	movq	_crypt_iv_null_ops@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_25:
	movq	_crypt_iv_eboiv_ops@GOTPCREL(%rip), %rax
LBB0_26:
	movq	%rax, 24(%rbx)
LBB0_27:
	xorl	%ecx, %ecx
LBB0_28:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	movq	_crypt_iv_lmk_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	4(%rbx), %esi
	movl	8(%rbx), %edi
	movl	%esi, %eax
	cltd
	idivl	%edi
	xorl	%ecx, %ecx
	testl	%edx, %edx
	je	LBB0_28
## %bb.30:
	incl	%edi
	movl	%edi, 8(%rbx)
	movl	%esi, %eax
	cltd
	idivl	%edi
	movl	%eax, 12(%rbx)
	jmp	LBB0_28
LBB0_31:
	movq	_crypt_iv_tcw_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	addl	$2, 8(%rbx)
	movq	_TCW_WHITENING_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	(%rbx), %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_27
LBB0_32:
	movq	_crypt_iv_random_ops@GOTPCREL(%rip), %rax
	movq	%rax, 24(%rbx)
	movl	(%rbx), %eax
	movl	%eax, 16(%rbx)
	jmp	LBB0_27
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Selected cipher does not support IVs"

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

	.comm	_crypt_iv_plain_ops,4,2         ## @crypt_iv_plain_ops
L_.str.2:                               ## @.str.2
	.asciz	"plain64"

	.comm	_crypt_iv_plain64_ops,4,2       ## @crypt_iv_plain64_ops
L_.str.3:                               ## @.str.3
	.asciz	"plain64be"

	.comm	_crypt_iv_plain64be_ops,4,2     ## @crypt_iv_plain64be_ops
L_.str.4:                               ## @.str.4
	.asciz	"essiv"

	.comm	_crypt_iv_essiv_ops,4,2         ## @crypt_iv_essiv_ops
L_.str.5:                               ## @.str.5
	.asciz	"benbi"

	.comm	_crypt_iv_benbi_ops,4,2         ## @crypt_iv_benbi_ops
L_.str.6:                               ## @.str.6
	.asciz	"null"

	.comm	_crypt_iv_null_ops,4,2          ## @crypt_iv_null_ops
L_.str.7:                               ## @.str.7
	.asciz	"eboiv"

	.comm	_crypt_iv_eboiv_ops,4,2         ## @crypt_iv_eboiv_ops
L_.str.8:                               ## @.str.8
	.asciz	"lmk"

	.comm	_crypt_iv_lmk_ops,4,2           ## @crypt_iv_lmk_ops
L_.str.9:                               ## @.str.9
	.asciz	"tcw"

	.comm	_crypt_iv_tcw_ops,4,2           ## @crypt_iv_tcw_ops
	.comm	_TCW_WHITENING_SIZE,4,2         ## @TCW_WHITENING_SIZE
L_.str.10:                              ## @.str.10
	.asciz	"random"

	.comm	_crypt_iv_random_ops,4,2        ## @crypt_iv_random_ops
L_.str.11:                              ## @.str.11
	.asciz	"Invalid IV mode"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_crypt_ctr_ivmode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypt_ctr_ivmode
_crypt_ctr_ivmode:                      ; @crypt_ctr_ivmode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_crypt_integrity_aead
	cbz	x0, LBB0_14
; %bb.1:
	mov	x0, x19
	bl	_any_tfm_aead
	bl	_crypto_aead_ivsize
	str	w0, [x19]
	cbz	w0, LBB0_15
LBB0_2:
	mov	w1, #1
	bl	_max
	str	w0, [x19]
	cbz	x21, LBB0_17
; %bb.3:
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_19
; %bb.4:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_20
; %bb.5:
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_21
; %bb.6:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_22
; %bb.7:
Lloh8:
	adrp	x1, l_.str.5@PAGE
Lloh9:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_23
; %bb.8:
Lloh10:
	adrp	x1, l_.str.6@PAGE
Lloh11:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_24
; %bb.9:
Lloh12:
	adrp	x1, l_.str.7@PAGE
Lloh13:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_25
; %bb.10:
Lloh14:
	adrp	x1, l_.str.8@PAGE
Lloh15:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_26
; %bb.11:
Lloh16:
	adrp	x1, l_.str.9@PAGE
Lloh17:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_28
; %bb.12:
Lloh18:
	adrp	x1, l_.str.10@PAGE
Lloh19:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_strcmp
	cbz	x0, LBB0_29
; %bb.13:
Lloh20:
	adrp	x8, l_.str.11@PAGE
Lloh21:
	add	x8, x8, l_.str.11@PAGEOFF
	str	x8, [x20]
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_18
LBB0_14:
	mov	x0, x19
	bl	_any_tfm
	bl	_crypto_skcipher_ivsize
	str	w0, [x19]
	cbnz	w0, LBB0_2
LBB0_15:
	cbz	x21, LBB0_17
; %bb.16:
Lloh25:
	adrp	x0, l_.str@PAGE
Lloh26:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
LBB0_17:
	mov	w0, #0
	str	xzr, [x19, #24]
LBB0_18:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_19:
Lloh27:
	adrp	x8, _crypt_iv_plain_ops@GOTPAGE
Lloh28:
	ldr	x8, [x8, _crypt_iv_plain_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	b	LBB0_18
LBB0_20:
Lloh29:
	adrp	x8, _crypt_iv_plain64_ops@GOTPAGE
Lloh30:
	ldr	x8, [x8, _crypt_iv_plain64_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	b	LBB0_18
LBB0_21:
Lloh31:
	adrp	x8, _crypt_iv_plain64be_ops@GOTPAGE
Lloh32:
	ldr	x8, [x8, _crypt_iv_plain64be_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	b	LBB0_18
LBB0_22:
Lloh33:
	adrp	x8, _crypt_iv_essiv_ops@GOTPAGE
Lloh34:
	ldr	x8, [x8, _crypt_iv_essiv_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	b	LBB0_18
LBB0_23:
Lloh35:
	adrp	x8, _crypt_iv_benbi_ops@GOTPAGE
Lloh36:
	ldr	x8, [x8, _crypt_iv_benbi_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	b	LBB0_18
LBB0_24:
Lloh37:
	adrp	x8, _crypt_iv_null_ops@GOTPAGE
Lloh38:
	ldr	x8, [x8, _crypt_iv_null_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	b	LBB0_18
LBB0_25:
Lloh39:
	adrp	x8, _crypt_iv_eboiv_ops@GOTPAGE
Lloh40:
	ldr	x8, [x8, _crypt_iv_eboiv_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	b	LBB0_18
LBB0_26:
Lloh41:
	adrp	x8, _crypt_iv_lmk_ops@GOTPAGE
Lloh42:
	ldr	x8, [x8, _crypt_iv_lmk_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	ldp	w8, w9, [x19, #4]
	sdiv	w10, w8, w9
	mov	w0, #0
	msub	w10, w10, w9, w8
	cbz	w10, LBB0_18
; %bb.27:
	add	w9, w9, #1
	sdiv	w8, w8, w9
	stp	w9, w8, [x19, #8]
	b	LBB0_18
LBB0_28:
Lloh43:
	adrp	x8, _crypt_iv_tcw_ops@GOTPAGE
Lloh44:
	ldr	x8, [x8, _crypt_iv_tcw_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	ldr	w8, [x19, #8]
	add	w8, w8, #2
	ldr	w9, [x19]
Lloh45:
	adrp	x10, _TCW_WHITENING_SIZE@GOTPAGE
Lloh46:
	ldr	x10, [x10, _TCW_WHITENING_SIZE@GOTPAGEOFF]
Lloh47:
	ldr	w10, [x10]
	add	w9, w10, w9
	stp	w8, w9, [x19, #8]
	b	LBB0_18
LBB0_29:
Lloh48:
	adrp	x8, _crypt_iv_random_ops@GOTPAGE
Lloh49:
	ldr	x8, [x8, _crypt_iv_random_ops@GOTPAGEOFF]
	str	x8, [x19, #24]
	ldr	w8, [x19]
	str	w8, [x19, #16]
	b	LBB0_18
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh48, Lloh49
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Selected cipher does not support IVs"

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

	.comm	_crypt_iv_plain_ops,4,2         ; @crypt_iv_plain_ops
l_.str.2:                               ; @.str.2
	.asciz	"plain64"

	.comm	_crypt_iv_plain64_ops,4,2       ; @crypt_iv_plain64_ops
l_.str.3:                               ; @.str.3
	.asciz	"plain64be"

	.comm	_crypt_iv_plain64be_ops,4,2     ; @crypt_iv_plain64be_ops
l_.str.4:                               ; @.str.4
	.asciz	"essiv"

	.comm	_crypt_iv_essiv_ops,4,2         ; @crypt_iv_essiv_ops
l_.str.5:                               ; @.str.5
	.asciz	"benbi"

	.comm	_crypt_iv_benbi_ops,4,2         ; @crypt_iv_benbi_ops
l_.str.6:                               ; @.str.6
	.asciz	"null"

	.comm	_crypt_iv_null_ops,4,2          ; @crypt_iv_null_ops
l_.str.7:                               ; @.str.7
	.asciz	"eboiv"

	.comm	_crypt_iv_eboiv_ops,4,2         ; @crypt_iv_eboiv_ops
l_.str.8:                               ; @.str.8
	.asciz	"lmk"

	.comm	_crypt_iv_lmk_ops,4,2           ; @crypt_iv_lmk_ops
l_.str.9:                               ; @.str.9
	.asciz	"tcw"

	.comm	_crypt_iv_tcw_ops,4,2           ; @crypt_iv_tcw_ops
	.comm	_TCW_WHITENING_SIZE,4,2         ; @TCW_WHITENING_SIZE
l_.str.10:                              ; @.str.10
	.asciz	"random"

	.comm	_crypt_iv_random_ops,4,2        ; @crypt_iv_random_ops
l_.str.11:                              ; @.str.11
	.asciz	"Invalid IV mode"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_crypt_ctr_ivmode
.subsections_via_symbols
