	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eseqiv_givencrypt
_eseqiv_givencrypt:                     ## @eseqiv_givencrypt
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_skcipher_givcrypt_reqtfm
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_ctx
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_skcipher_givcrypt_reqctx
	movq	%r14, -144(%rbp)                ## 8-byte Spill
	movq	8(%r14), %r14
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	addq	16(%rax), %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_skcipher_geniv_cipher
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_ablkcipher_request_set_tfm
	movq	(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	40(%rbx), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movl	48(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	64(%rbx), %r12
	movq	%rbx, %r14
	movq	56(%rbx), %rbx
	movq	%r12, %rdi
	callq	_sg_page
	movq	%rax, %r13
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_sg_page
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_PageHighMem
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %r13
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	callq	_page_address
	movq	%r12, %r13
	movslq	(%r12), %rcx
	leaq	(%rax,%rcx,4), %rax
LBB0_3:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_PageHighMem
	testq	%rax, %rax
	movq	%r13, -128(%rbp)                ## 8-byte Spill
	je	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_page_address
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movslq	(%rcx), %rcx
	leaq	(%rax,%rcx,4), %rax
LBB0_6:
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_crypto_ablkcipher_ivsize
	movl	%eax, %r15d
	leaq	(%rbx,%r15,4), %rcx
	cmpq	%rcx, -80(%rbp)                 ## 8-byte Folded Reload
	je	LBB0_7
## %bb.8:
	movl	%eax, %r12d
	cmpq	%rcx, -72(%rbp)                 ## 8-byte Folded Reload
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %rsi
	je	LBB0_10
## %bb.9:
	movq	16(%r13), %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_crypto_ablkcipher_alignmask
	leaq	1(%rax), %rsi
	movq	%rbx, %rdi
	callq	_PTR_ALIGN
	movq	%r14, %rsi
	movq	%rax, %rbx
	movq	_eseqiv_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	jmp	LBB0_10
LBB0_7:
	movl	%eax, %r12d
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	%r14, %rsi
LBB0_10:
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movl	32(%rsi), %esi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	callq	_ablkcipher_request_set_callback
	movq	(%r13), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_sg_set_buf
	movq	(%r13), %rdi
	leaq	(%rbx,%r15,4), %rax
	xorl	%edx, %edx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmpq	%rax, -80(%rbp)                 ## 8-byte Folded Reload
	sete	%dl
	movq	-128(%rbp), %r14                ## 8-byte Reload
	movq	%r14, %rsi
	movl	$2, %ecx
	callq	_scatterwalk_crypto_chain
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, %r14
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, %r14
	je	LBB0_12
## %bb.11:
	addq	$8, %r14
	movq	8(%r13), %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	8(%r13), %rdi
	movq	%rbx, %rsi
	movl	%r12d, %edx
	callq	_sg_set_buf
	movq	8(%r13), %rdi
	xorl	%edx, %edx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	sete	%dl
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	movl	$2, %ecx
	callq	_scatterwalk_crypto_chain
LBB0_12:
	movq	(%r14), %rdx
	movq	(%r13), %rsi
	movq	-136(%rbp), %r14                ## 8-byte Reload
	movq	24(%r14), %rcx
	addq	%r15, %rcx
	movq	16(%r14), %r8
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_ablkcipher_request_set_crypt
	movq	16(%r14), %rdi
	movq	-144(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rsi
	movl	%r12d, %edx
	callq	_memcpy
	cmpl	$5, %r12d
	jb	LBB0_14
## %bb.13:
	movq	(%r14), %rdi
	addl	$-4, %r12d
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_memset
	movl	$4, %r12d
LBB0_14:
	movl	8(%r14), %edi
	callq	_cpu_to_be64
	movl	%eax, -92(%rbp)
	shlq	$2, %r15
	addq	(%r14), %r15
	movl	%r12d, %eax
	shlq	$2, %rax
	subq	%rax, %r15
	leaq	-92(%rbp), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	movq	%rbx, %rdi
	callq	_crypto_ablkcipher_encrypt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%r14), %rax
	je	LBB0_17
## %bb.16:
	movq	%r14, %rdi
	callq	_eseqiv_complete2
LBB0_17:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eseqiv_complete,4,2            ## @eseqiv_complete
	.no_dead_strip	_eseqiv_givencrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eseqiv_givencrypt
_eseqiv_givencrypt:                     ; @eseqiv_givencrypt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	_skcipher_givcrypt_reqtfm
	mov	x27, x0
	bl	_crypto_ablkcipher_ctx
	mov	x20, x0
	mov	x0, x19
	bl	_skcipher_givcrypt_reqctx
	mov	x23, x0
	ldr	x8, [x0, #16]
	str	x20, [sp, #24]                  ; 8-byte Folded Spill
	ldr	x9, [x20, #8]
	add	x22, x9, x8
	mov	x0, x27
	bl	_skcipher_geniv_cipher
	mov	x1, x0
	mov	x0, x22
	bl	_ablkcipher_request_set_tfm
	ldr	x21, [x19]
	ldr	w8, [x19, #48]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	ldr	x8, [x19, #40]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	ldp	x24, x26, [x19, #56]
	mov	x0, x26
	bl	_sg_page
	mov	x20, x0
	mov	x0, x24
	bl	_sg_page
	mov	x25, x0
	mov	x0, x20
	bl	_PageHighMem
	str	x22, [sp, #32]                  ; 8-byte Folded Spill
	cbz	x0, LBB0_2
; %bb.1:
	mov	x22, #0
	b	LBB0_3
LBB0_2:
	mov	x0, x20
	bl	_page_address
	ldrsw	x8, [x26]
	add	x22, x0, x8, lsl #2
LBB0_3:
	mov	x0, x25
	bl	_PageHighMem
	cbz	x0, LBB0_5
; %bb.4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x25
	bl	_page_address
	ldrsw	x8, [x24]
	add	x20, x0, x8, lsl #2
LBB0_6:
	mov	x0, x27
	bl	_crypto_ablkcipher_ivsize
	mov	x25, x0
	mov	w28, w0
	add	x8, x21, w0, uxtw #2
	cmp	x22, x8
	b.eq	LBB0_9
; %bb.7:
	cmp	x20, x8
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
	b.eq	LBB0_10
; %bb.8:
	mov	x21, x20
	ldr	x20, [x23, #16]
	mov	x0, x27
	bl	_crypto_ablkcipher_alignmask
	add	x1, x0, #1
	mov	x0, x20
	mov	x20, x21
	bl	_PTR_ALIGN
	mov	x21, x0
Lloh0:
	adrp	x8, _eseqiv_complete@GOTPAGE
Lloh1:
	ldr	x8, [x8, _eseqiv_complete@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, x19
	b	LBB0_10
LBB0_9:
	ldr	w2, [sp, #20]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #8]                    ; 8-byte Folded Reload
LBB0_10:
	ldr	w1, [x19, #32]
	ldr	x0, [sp, #32]                   ; 8-byte Folded Reload
	bl	_ablkcipher_request_set_callback
	ldr	x0, [x23]
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x23]
	mov	x1, x21
	mov	x2, x25
	bl	_sg_set_buf
	ldr	x0, [x23]
	add	x27, x21, x28, lsl #2
	cmp	x22, x27
	cset	w2, eq
	mov	x1, x26
	mov	w3, #2
	bl	_scatterwalk_crypto_chain
	cmp	x26, x24
	b.eq	LBB0_12
; %bb.11:
	mov	x22, x20
	mov	x20, x23
	ldr	x0, [x20, #8]!
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x20]
	mov	x1, x21
	mov	x2, x25
	bl	_sg_set_buf
	ldr	x0, [x20]
	cmp	x22, x27
	cset	w2, eq
	mov	x1, x24
	mov	w3, #2
	bl	_scatterwalk_crypto_chain
	b	LBB0_13
LBB0_12:
	mov	x20, x23
LBB0_13:
	ldp	x24, x22, [sp, #24]             ; 16-byte Folded Reload
	ldr	x2, [x20]
	ldr	x1, [x23]
	ldp	x4, x8, [x19, #16]
	add	x3, x8, x28
	mov	x0, x22
	bl	_ablkcipher_request_set_crypt
	ldr	x0, [x19, #16]
	ldr	x1, [x24]
	mov	x2, x25
	bl	_memcpy
	cmp	w25, #5
	b.lo	LBB0_15
; %bb.14:
	ldr	x0, [x19]
	sub	w2, w25, #4
	mov	w1, #0
	bl	_memset
	mov	w25, #4
LBB0_15:
	ldr	w0, [x19, #8]
	bl	_cpu_to_be64
	str	w0, [sp, #44]
	ldr	x8, [x19]
	add	x8, x8, x28, lsl #2
	sub	x0, x8, w25, uxtw #2
	add	x1, sp, #44
	mov	x2, x25
	bl	_memcpy
	mov	x0, x22
	bl	_crypto_ablkcipher_encrypt
	mov	x20, x0
	cbnz	w0, LBB0_18
; %bb.16:
	ldr	x8, [x19]
	cmp	x21, x8
	b.eq	LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_eseqiv_complete2
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_eseqiv_complete,4,2            ; @eseqiv_complete
	.no_dead_strip	_eseqiv_givencrypt
.subsections_via_symbols
