	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function crypto_rfc4543_crypt
_crypto_rfc4543_crypt:                  ## @crypto_rfc4543_crypt
	.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	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	callq	_crypto_aead_reqtfm
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_crypto_aead_ctx
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_crypto_rfc4543_reqctx
	movq	%rax, %r14
	movq	40(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%r14), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_crypto_aead_authsize
	movl	%eax, %r13d
	movl	(%r12), %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r15), %edi
	callq	_crypto_aead_reqsize
	cltq
	leaq	(%r14,%rax,4), %rbx
	addq	$80, %rbx
	movl	(%r15), %edi
	callq	_crypto_aead_alignmask
	leaq	1(%rax), %rsi
	movq	%rbx, %rdi
	callq	_PTR_ALIGN
	movq	%rax, %rbx
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	8(%r15), %rsi
	movq	%rax, %rdi
	movl	$4, %edx
	callq	_memcpy
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	leaq	16(%rbx), %rdi
	movq	32(%r12), %rsi
	movl	$8, %edx
	callq	_memcpy
	movl	(%r14), %edi
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_2
## %bb.1:
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_3
LBB0_2:
	movl	4(%r12), %edx
	subl	%r13d, %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	callq	_scatterwalk_map_and_copy
LBB0_3:
	movl	(%r14), %esi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	movl	%r13d, %edx
	callq	_sg_init_one
	movq	%r15, %rdi
	callq	_sg_page
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_PageHighMem
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	callq	_page_address
	movslq	(%r15), %rcx
	leaq	(%rax,%rcx,4), %rbx
LBB0_6:
	movq	%r15, %r13
	addq	$32, %r14
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	32(%r12), %rsi
	movq	%r15, %rdi
	movl	$8, %edx
	callq	_sg_set_buf
	movq	32(%r12), %rax
	addq	$32, %rax
	xorl	%edx, %edx
	cmpq	%rax, %rbx
	sete	%dl
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	$2, %ecx
	callq	_scatterwalk_crypto_chain
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	movl	4(%r12), %eax
	movl	-56(%rbp), %r13d                ## 4-byte Reload
	movl	$0, %ecx
	cmovnel	%ecx, %r13d
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	subl	%r13d, %ecx
	addl	%ecx, %eax
	addl	$8, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_sg_init_table
	movq	24(%r12), %rdi
	callq	_sg_page
	movq	24(%r12), %rdx
	movl	(%rdx), %ecx
	movl	4(%rdx), %edx
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_sg_set_page
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	movl	$2, %ecx
	callq	_scatterwalk_crypto_chain
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_aead_request_set_tfm
	movl	16(%r12), %esi
	movl	8(%r12), %ecx
	movl	12(%r12), %edx
	movq	%r14, %rdi
	callq	_aead_request_set_callback
	movq	%r14, %rdi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rdx, %rsi
	movl	%r13d, %ecx
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	callq	_aead_request_set_crypt
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_aead_request_set_assoc
	movq	%r14, %rax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_crypto_rfc4543_crypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function crypto_rfc4543_crypt
_crypto_rfc4543_crypt:                  ; @crypto_rfc4543_crypt
	.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
	mov	x25, x1
	mov	x19, x0
	bl	_crypto_aead_reqtfm
	mov	x24, x0
	bl	_crypto_aead_ctx
	mov	x22, x0
	mov	x0, x19
	bl	_crypto_rfc4543_reqctx
	mov	x28, x0
	ldr	x26, [x19, #40]
	ldp	x23, x21, [x0, #16]
	ldr	x20, [x0, #8]
	mov	x0, x24
	bl	_crypto_aead_authsize
	mov	x27, x0
	ldr	w8, [x19]
	str	w8, [sp, #8]                    ; 4-byte Folded Spill
	ldr	w0, [x22]
	bl	_crypto_aead_reqsize
	add	x8, x28, w0, sxtw #2
	add	x24, x8, #80
	ldr	w0, [x22]
	bl	_crypto_aead_alignmask
	add	x1, x0, #1
	mov	x0, x24
	bl	_PTR_ALIGN
	mov	x24, x0
	ldr	x1, [x22, #8]
	mov	w2, #4
	bl	_memcpy
	add	x0, x24, #16
	ldr	x1, [x19, #32]
	mov	w2, #8
	bl	_memcpy
	ldr	w0, [x28]
	str	w25, [sp, #12]                  ; 4-byte Folded Spill
	cbz	w25, LBB0_2
; %bb.1:
	mov	w1, #0
	mov	x2, x27
	bl	_memset
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #4]
	sub	w2, w8, w27
	mov	x1, x26
	mov	x3, x27
	mov	w4, #0
	bl	_scatterwalk_map_and_copy
LBB0_3:
	ldr	w1, [x28]
	mov	x0, x21
	mov	x2, x27
	bl	_sg_init_one
	mov	x0, x26
	bl	_sg_page
	mov	x25, x0
	bl	_PageHighMem
	cbz	x0, LBB0_5
; %bb.4:
	mov	x25, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x25
	bl	_page_address
	ldrsw	x8, [x26]
	add	x25, x0, x8, lsl #2
LBB0_6:
	add	x28, x28, #32
	mov	x0, x23
	mov	w1, #2
	bl	_sg_init_table
	ldr	x1, [x19, #32]
	mov	x0, x23
	mov	w2, #8
	bl	_sg_set_buf
	ldr	x8, [x19, #32]
	add	x8, x8, #32
	cmp	x25, x8
	cset	w2, eq
	mov	x0, x23
	mov	x1, x26
	mov	w3, #2
	bl	_scatterwalk_crypto_chain
	ldr	w8, [x19, #4]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w9, #0
	csel	w25, w27, wzr, eq
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	sub	w9, w9, w25
	add	w8, w9, w8
	add	w26, w8, #8
	mov	x0, x20
	mov	w1, #2
	bl	_sg_init_table
	ldr	x0, [x19, #24]
	bl	_sg_page
	mov	x1, x0
	ldr	x8, [x19, #24]
	ldp	w3, w2, [x8]
	mov	x0, x20
	bl	_sg_set_page
	mov	x0, x20
	mov	x1, x23
	mov	w2, #0
	mov	w3, #2
	bl	_scatterwalk_crypto_chain
	ldr	w1, [x22]
	mov	x0, x28
	bl	_aead_request_set_tfm
	ldp	w2, w1, [x19, #12]
	ldr	w3, [x19, #8]
	mov	x0, x28
	bl	_aead_request_set_callback
	mov	x0, x28
	mov	x1, x21
	mov	x2, x21
	mov	x3, x25
	mov	x4, x24
	bl	_aead_request_set_crypt
	mov	x0, x28
	mov	x1, x20
	mov	x2, x26
	bl	_aead_request_set_assoc
	mov	x0, x28
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_crypto_rfc4543_crypt
.subsections_via_symbols
