	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_authenc_genicv
_crypto_authenc_genicv:                 ## @crypto_authenc_genicv
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r13
	callq	_crypto_aead_reqtfm
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_aead_request_ctx
	movq	%rax, %r15
	movq	16(%r13), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	24(%r13), %rcx
	movq	24(%r15), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	32(%r15), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rcx, %rbx
	callq	_crypto_aead_ivsize
	movl	%eax, %r14d
	movl	(%r13), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_sg_page
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_PageHighMem
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	testl	%r14d, %r14d
	je	LBB0_4
LBB0_5:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movl	$2, %esi
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	callq	_sg_init_table
	movq	%r12, %rdi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, %rbx
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_sg_set_buf
	movl	%r14d, %eax
	leaq	(%r15,%rax,4), %rax
	movq	%rbx, %r15
	xorl	%edx, %edx
	cmpq	%rax, -72(%rbp)                 ## 8-byte Folded Reload
	sete	%dl
	movq	%r12, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	$2, %ecx
	callq	_scatterwalk_crypto_chain
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	addl	%r14d, %ebx
	movl	%ebx, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	%r12, %rdi
	callq	_page_address
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx,4), %rax
	testl	%r14d, %r14d
	jne	LBB0_5
LBB0_4:
	movq	%rbx, %r12
	movl	-44(%rbp), %r14d                ## 4-byte Reload
LBB0_6:
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_sg_is_last
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	%rbx, %rdi
	callq	_sg_page
	movl	(%rbx), %ecx
	movl	4(%rbx), %edx
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_sg_set_page
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_scatterwalk_crypto_chain
	addl	8(%r13), %r14d
	movq	_crypto_authenc_ahash@GOTPCREL(%rip), %rcx
	jmp	LBB0_9
LBB0_7:
	movq	_crypto_authenc_ahash_fb@GOTPCREL(%rip), %rcx
LBB0_9:
	movl	%r14d, (%r15)
	movq	%r12, 16(%r15)
	movq	_authenc_geniv_ahash_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	movq	_authenc_geniv_ahash_update_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r15)
	movq	%r13, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	*%rcx
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rbx, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_10:
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_crypto_aead_authsize
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_scatterwalk_map_and_copy
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_authenc_geniv_ahash_done,4,2   ## @authenc_geniv_ahash_done
	.comm	_authenc_geniv_ahash_update_done,4,2 ## @authenc_geniv_ahash_update_done
	.no_dead_strip	_crypto_authenc_genicv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_authenc_genicv
_crypto_authenc_genicv:                 ; @crypto_authenc_genicv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w2, [sp, #12]                   ; 4-byte Folded Spill
	mov	x27, x1
	mov	x22, x0
	bl	_crypto_aead_reqtfm
	mov	x19, x0
	mov	x0, x22
	bl	_aead_request_ctx
	mov	x24, x0
	ldp	x26, x23, [x22, #16]
	ldp	x25, x28, [x0, #24]
	str	x19, [sp]                       ; 8-byte Folded Spill
	mov	x0, x19
	bl	_crypto_aead_ivsize
	mov	x20, x0
	ldr	w21, [x22]
	mov	x0, x23
	bl	_sg_page
	mov	x19, x0
	bl	_PageHighMem
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, #0
	cbz	w20, LBB0_3
LBB0_2:
	mov	x0, x28
	mov	w1, #2
	bl	_sg_init_table
	mov	x0, x28
	mov	x1, x27
	mov	x2, x20
	bl	_sg_set_buf
	add	x8, x27, w20, uxtw #2
	cmp	x19, x8
	cset	w2, eq
	mov	x0, x28
	mov	x1, x23
	mov	w3, #2
	bl	_scatterwalk_crypto_chain
	add	w21, w21, w20
	mov	x23, x28
LBB0_3:
	mov	x0, x26
	bl	_sg_is_last
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x25
	mov	w1, #2
	bl	_sg_init_table
	mov	x0, x26
	bl	_sg_page
	mov	x1, x0
	ldp	w3, w2, [x26]
	mov	x0, x25
	bl	_sg_set_page
	mov	x0, x25
	mov	x1, x23
	mov	w2, #0
	mov	w3, #2
	bl	_scatterwalk_crypto_chain
	ldr	w8, [x22, #8]
	add	w21, w21, w8
Lloh0:
	adrp	x8, _crypto_authenc_ahash@GOTPAGE
Lloh1:
	ldr	x8, [x8, _crypto_authenc_ahash@GOTPAGEOFF]
	mov	x23, x25
	b	LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_page_address
	ldrsw	x8, [x23]
	add	x19, x0, x8, lsl #2
	cbnz	w20, LBB0_2
	b	LBB0_3
LBB0_6:
Lloh2:
	adrp	x8, _crypto_authenc_ahash_fb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _crypto_authenc_ahash_fb@GOTPAGEOFF]
LBB0_7:
	str	w21, [x24]
	str	x23, [x24, #16]
Lloh4:
	adrp	x9, _authenc_geniv_ahash_done@GOTPAGE
Lloh5:
	ldr	x9, [x9, _authenc_geniv_ahash_done@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _authenc_geniv_ahash_update_done@GOTPAGE
Lloh8:
	ldr	x10, [x10, _authenc_geniv_ahash_update_done@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	stp	w10, w9, [x24, #4]
	mov	x0, x22
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	blr	x8
	mov	x20, x0
	bl	_IS_ERR
	cbz	x0, LBB0_9
; %bb.8:
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_PTR_ERR
LBB0_9:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	bl	_crypto_aead_authsize
	mov	x3, x0
	mov	x0, x20
	mov	x1, x23
	mov	x2, x21
	mov	w4, #1
	bl	_scatterwalk_map_and_copy
	mov	w0, #0
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_authenc_geniv_ahash_done,4,2   ; @authenc_geniv_ahash_done
	.comm	_authenc_geniv_ahash_update_done,4,2 ; @authenc_geniv_ahash_update_done
	.no_dead_strip	_crypto_authenc_genicv
.subsections_via_symbols
