	.file	"extr_gss_krb5_crypto.c_gss_krb5_cts_crypt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	gss_krb5_cts_crypt, @function
gss_krb5_cts_crypt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, edx
	push	r12
	.cfi_offset 12, -48
	mov	r12, rsi
	push	rbx
	.cfi_offset 3, -56
	mov	rbx, r8
	sub	rsp, 56
	mov	DWORD PTR -92[rbp], r9d
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -88[rbp], rdi
	call	crypto_blkcipher_blocksize@PLT
	mov	rcx, rsp
	mov	rdi, QWORD PTR -88[rbp]
	add	eax, eax
	cdqe
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L18:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L18
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L19
.L4:
	mov	r14d, DWORD PTR [r12]
	mov	r15, rsp
	call	crypto_blkcipher_blocksize@PLT
	xor	edi, edi
	add	eax, eax
	sub	r14d, r13d
	cmp	eax, r14d
	setl	dil
	call	BUG_ON@PLT
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -92[rbp]
	test	eax, eax
	jne	.L20
	mov	esi, r13d
	mov	ecx, r14d
	mov	rdx, r15
	mov	rdi, r12
	call	read_bytes_from_xdr_buf@PLT
	mov	rsi, QWORD PTR -88[rbp]
	mov	QWORD PTR 8[r12], rsi
	test	eax, eax
	jne	.L1
	lea	rbx, -60[rbp]
	mov	edx, r14d
	mov	rsi, r15
	mov	rdi, rbx
	call	sg_init_one@PLT
	lea	rdi, -80[rbp]
	mov	ecx, r14d
	mov	rdx, rbx
	mov	rsi, rbx
	call	crypto_blkcipher_decrypt_iv@PLT
.L8:
	test	eax, eax
	jne	.L1
	mov	ecx, r14d
	mov	rdx, r15
	mov	esi, r13d
	mov	rdi, r12
	call	write_bytes_to_xdr_buf@PLT
.L6:
	endbr64
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L21
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	QWORD PTR 8[r12], rbx
	mov	ecx, r14d
	mov	rdx, r15
	mov	esi, r13d
	mov	rdi, r12
	call	read_bytes_from_xdr_buf@PLT
	mov	rbx, QWORD PTR -88[rbp]
	mov	QWORD PTR 8[r12], rbx
	test	eax, eax
	jne	.L1
	lea	rbx, -60[rbp]
	mov	edx, r14d
	mov	rsi, r15
	mov	rdi, rbx
	call	sg_init_one@PLT
	lea	rdi, -80[rbp]
	mov	ecx, r14d
	mov	rdx, rbx
	mov	rsi, rbx
	call	crypto_blkcipher_encrypt_iv@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L19:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	gss_krb5_cts_crypt, .-gss_krb5_cts_crypt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_gss_krb5_crypto.c_gss_krb5_cts_crypt.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gss_krb5_cts_crypt, %function
gss_krb5_cts_crypt:
	@ args = 8, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #20
	str	r3, [fp, #-52]
	ldr	r3, .L14
	mov	r4, r1
	ldmib	fp, {r9, r10}
	mov	r6, r2
	mov	r8, r0
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	str	r0, [fp, #-48]
	bl	crypto_blkcipher_blocksize
	mov	r3, sp
	sub	r3, r3, r0, lsl #3
	mov	sp, r3
	mov	r0, r8
	ldr	r5, [r4]
	bl	crypto_blkcipher_blocksize
	sub	r5, r5, r6
	cmp	r5, r0, lsl #1
	movgt	r0, #1
	movle	r0, #0
	bl	BUG_ON
	cmp	r10, #0
	mov	r7, sp
	ldr	r8, [r4, #4]
	beq	.L2
	mov	r3, r5
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	str	r9, [r4, #4]
	bl	read_bytes_from_xdr_buf
	cmp	r0, #0
	str	r8, [r4, #4]
	beq	.L12
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L13
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L12:
	mov	r2, r5
	mov	r1, r7
	sub	r0, fp, #44
	bl	sg_init_one
	sub	r2, fp, #44
	mov	r3, r5
	mov	r1, r2
	sub	r0, fp, #52
	bl	crypto_blkcipher_encrypt_iv
.L5:
	cmp	r0, #0
	bne	.L1
.L3:
	mov	r3, r5
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	write_bytes_to_xdr_buf
	b	.L1
.L2:
	mov	r3, r5
	mov	r2, r7
	mov	r1, r6
	mov	r0, r4
	bl	read_bytes_from_xdr_buf
	cmp	r0, #0
	str	r8, [r4, #4]
	bne	.L1
	mov	r2, r5
	mov	r1, r7
	sub	r0, fp, #44
	bl	sg_init_one
	sub	r2, fp, #44
	mov	r3, r5
	mov	r1, r2
	sub	r0, fp, #52
	bl	crypto_blkcipher_decrypt_iv
	b	.L5
.L13:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC0
	.size	gss_krb5_cts_crypt, .-gss_krb5_cts_crypt
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
