	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chainiv_givencrypt
_chainiv_givencrypt:                    ## @chainiv_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_skcipher_givcrypt_reqtfm
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_crypto_ablkcipher_ctx
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_skcipher_givcrypt_reqctx
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_skcipher_geniv_cipher
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_ablkcipher_request_set_tfm
	movq	_CRYPTO_TFM_REQ_MAY_SLEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	andl	20(%rbx), %esi
	movl	24(%rbx), %ecx
	movl	28(%rbx), %edx
	movq	%r15, %rdi
	callq	_ablkcipher_request_set_callback
	movl	16(%rbx), %esi
	movl	12(%rbx), %edx
	movl	4(%rbx), %r8d
	movl	8(%rbx), %ecx
	movq	%r15, %rdi
	callq	_ablkcipher_request_set_crypt
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	%r12, %rdi
	callq	_crypto_ablkcipher_ivsize
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movl	4(%r14), %esi
	movl	%eax, %edx
	callq	_memcpy
	movl	(%r15), %edi
	movl	4(%r14), %esi
	movl	%r12d, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_crypto_ablkcipher_encrypt
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%r14), %edi
	movl	(%r15), %esi
	movl	%r12d, %edx
	callq	_memcpy
LBB0_2:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ## @CRYPTO_TFM_REQ_MAY_SLEEP
	.no_dead_strip	_chainiv_givencrypt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chainiv_givencrypt
_chainiv_givencrypt:                    ; @chainiv_givencrypt
	.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, x0
	bl	_skcipher_givcrypt_reqtfm
	mov	x22, x0
	bl	_crypto_ablkcipher_ctx
	mov	x19, x0
	mov	x0, x21
	bl	_skcipher_givcrypt_reqctx
	mov	x20, x0
	mov	x0, x22
	bl	_skcipher_geniv_cipher
	mov	x1, x0
	mov	x0, x20
	bl	_ablkcipher_request_set_tfm
Lloh0:
	adrp	x8, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CRYPTO_TFM_REQ_MAY_SLEEP@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldp	w9, w3, [x21, #20]
	bic	w1, w9, w8
	ldr	w2, [x21, #28]
	mov	x0, x20
	bl	_ablkcipher_request_set_callback
	ldp	w2, w1, [x21, #12]
	ldp	w4, w3, [x21, #4]
	mov	x0, x20
	bl	_ablkcipher_request_set_crypt
	mov	x0, x19
	bl	_spin_lock_bh
	mov	x0, x22
	bl	_crypto_ablkcipher_ivsize
	mov	x22, x0
	ldr	w0, [x21]
	ldr	w1, [x19, #4]
	mov	x2, x22
	bl	_memcpy
	ldr	w0, [x20]
	ldr	w1, [x19, #4]
	mov	x2, x22
	bl	_memcpy
	mov	x0, x20
	bl	_crypto_ablkcipher_encrypt
	mov	x21, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #4]
	ldr	w1, [x20]
	mov	x2, x22
	bl	_memcpy
LBB0_2:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CRYPTO_TFM_REQ_MAY_SLEEP,4,2   ; @CRYPTO_TFM_REQ_MAY_SLEEP
	.no_dead_strip	_chainiv_givencrypt
.subsections_via_symbols
