	.file	"extr_rtw_security.c_aes_cipher.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aes_cipher, @function
aes_cipher:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 632
	.cfi_def_cfa_offset 688
	mov	DWORD PTR 56[rsp], ecx
	lea	r15, 288[rsp]
	lea	r14, 352[rsp]
	mov	DWORD PTR 40[rsp], esi
	lea	r13, 416[rsp]
	lea	rbp, 480[rsp]
	mov	rdi, QWORD PTR fs:40
	mov	QWORD PTR 616[rsp], rdi
	xor	edi, edi
	mov	rdi, rdx
	call	GetFrameType@PLT
	mov	rdi, rbx
	mov	DWORD PTR [rsp], eax
	call	GetFrameSubType@PLT
	lea	r11, 160[rsp]
	xor	esi, esi
	mov	edx, 16
	mov	rdi, r11
	sar	eax, 4
	mov	QWORD PTR 8[rsp], r11
	mov	DWORD PTR 16[rsp], eax
	call	memset@PLT
	lea	rdi, 224[rsp]
	xor	esi, esi
	mov	edx, 16
	mov	QWORD PTR 64[rsp], rdi
	call	memset@PLT
	xor	esi, esi
	mov	edx, 16
	mov	rdi, r15
	call	memset@PLT
	xor	esi, esi
	mov	edx, 16
	mov	rdi, r14
	call	memset@PLT
	xor	esi, esi
	mov	edx, 16
	mov	rdi, r13
	call	memset@PLT
	xor	esi, esi
	mov	edx, 16
	mov	rdi, rbp
	call	memset@PLT
	lea	rcx, 544[rsp]
	xor	esi, esi
	mov	edx, 16
	mov	rdi, rcx
	mov	QWORD PTR 48[rsp], rcx
	call	memset@PLT
	mov	eax, DWORD PTR 40[rsp]
	cmp	DWORD PTR WLAN_HDR_A3_LEN[rip], eax
	mov	DWORD PTR 4[rsp], 0
	mov	r11, QWORD PTR 8[rsp]
	je	.L2
	cmp	DWORD PTR WLAN_HDR_A3_QOS_LEN[rip], eax
	setne	al
	movzx	eax, al
	mov	DWORD PTR 4[rsp], eax
.L2:
	mov	eax, DWORD PTR [rsp]
	or	eax, DWORD PTR 16[rsp]
	cmp	eax, DWORD PTR WIFI_DATA_CFACK[rip]
	je	.L3
	cmp	eax, DWORD PTR WIFI_DATA_CFPOLL[rip]
	je	.L3
	cmp	eax, DWORD PTR WIFI_DATA_CFACKPOLL[rip]
	je	.L3
	mov	eax, DWORD PTR [rsp]
	cmp	DWORD PTR WIFI_DATA[rip], eax
	mov	DWORD PTR 8[rsp], 0
	jne	.L5
	mov	eax, DWORD PTR 16[rsp]
	sub	eax, 8
	cmp	eax, 3
	ja	.L5
.L3:
	mov	eax, DWORD PTR 40[rsp]
	cmp	DWORD PTR WLAN_HDR_A3_QOS_LEN[rip], eax
	mov	DWORD PTR 8[rsp], 1
	je	.L5
	add	eax, 2
	mov	DWORD PTR 40[rsp], eax
.L5:
	movsx	rax, DWORD PTR 40[rsp]
	lea	r9, 96[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 696
	mov	QWORD PTR 32[rsp], r9
	mov	QWORD PTR 88[rsp], rax
	lea	rdi, 0[0+rax*4]
	mov	eax, DWORD PTR [rbx+rax*4]
	mov	QWORD PTR 80[rsp], rdi
	mov	DWORD PTR 104[rsp], eax
	mov	eax, DWORD PTR 4[rbx+rdi]
	mov	DWORD PTR 108[rsp], eax
	mov	eax, DWORD PTR 16[rbx+rdi]
	mov	DWORD PTR 112[rsp], eax
	mov	eax, DWORD PTR 20[rbx+rdi]
	mov	DWORD PTR 116[rsp], eax
	mov	eax, DWORD PTR 24[rbx+rdi]
	mov	DWORD PTR 120[rsp], eax
	mov	eax, DWORD PTR 28[rbx+rdi]
	mov	rdi, r11
	mov	DWORD PTR 124[rsp], eax
	mov	ecx, DWORD PTR 8[rsp]
	push	rcx
	.cfi_def_cfa_offset 704
	mov	r8d, DWORD PTR 72[rsp]
	mov	rcx, rbx
	mov	edx, DWORD PTR 20[rsp]
	mov	esi, DWORD PTR 24[rsp]
	mov	QWORD PTR 104[rsp], r11
	call	construct_mic_iv@PLT
	mov	ecx, DWORD PTR 16[rsp]
	mov	esi, DWORD PTR 56[rsp]
	mov	rdx, rbx
	mov	rdi, QWORD PTR 80[rsp]
	call	construct_mic_header1@PLT
	mov	ecx, DWORD PTR 24[rsp]
	mov	edx, DWORD PTR 20[rsp]
	mov	rsi, rbx
	mov	rdi, r15
	call	construct_mic_header2@PLT
	mov	ecx, DWORD PTR 72[rsp]
	mov	rdi, r12
	mov	eax, ecx
	sar	eax, 31
	shr	eax, 28
	lea	edx, [rcx+rax]
	and	edx, 15
	sub	edx, eax
	test	ecx, ecx
	lea	eax, 15[rcx]
	cmovns	eax, ecx
	mov	DWORD PTR 76[rsp], edx
	pop	rdx
	.cfi_def_cfa_offset 696
	pop	rsi
	.cfi_def_cfa_offset 688
	mov	r11, QWORD PTR 88[rsp]
	mov	edx, eax
	mov	eax, DWORD PTR 40[rsp]
	mov	DWORD PTR 56[rsp], ecx
	sar	edx, 4
	mov	rsi, r11
	add	eax, 8
	mov	DWORD PTR 16[rsp], edx
	mov	rdx, rbp
	mov	DWORD PTR 32[rsp], eax
	call	aes128k128d@PLT
	mov	rsi, QWORD PTR 64[rsp]
	mov	rdx, r13
	mov	rdi, rbp
	call	bitwise_xor@PLT
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, r12
	call	aes128k128d@PLT
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, rbp
	call	bitwise_xor@PLT
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, r12
	call	aes128k128d@PLT
	cmp	DWORD PTR 56[rsp], 15
	jle	.L27
	mov	rdi, QWORD PTR 72[rsp]
	xor	r15d, r15d
	mov	QWORD PTR 88[rsp], r14
	mov	r14d, r15d
	mov	r15d, DWORD PTR 16[rsp]
	mov	QWORD PTR 64[rsp], rbx
	lea	r8, 32[rbx+rdi]
	mov	rbx, r8
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rsi, rbx
	mov	rdx, r13
	mov	rdi, rbp
	add	r14d, 1
	call	bitwise_xor@PLT
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, r12
	call	aes128k128d@PLT
	add	rbx, 64
	cmp	r15d, r14d
	jg	.L7
	mov	eax, DWORD PTR 16[rsp]
	mov	edx, 0
	mov	edi, DWORD PTR 40[rsp]
	mov	rbx, QWORD PTR 64[rsp]
	mov	r14, QWORD PTR 88[rsp]
	sub	eax, 1
	sal	eax, 4
	cmp	DWORD PTR 56[rsp], 15
	cmovle	eax, edx
	lea	ecx, 24[rdi+rax]
.L6:
	mov	r15d, DWORD PTR 60[rsp]
	lea	r11, 608[rsp]
	test	r15d, r15d
	jle	.L8
	mov	rax, QWORD PTR 48[rsp]
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	r11, rax
	jne	.L9
	mov	eax, DWORD PTR 60[rsp]
	mov	r8, QWORD PTR 48[rsp]
	lea	edi, -1[rax]
	movsx	rax, ecx
	lea	rsi, [rbx+rax*4]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, DWORD PTR [rsi+rax*4]
	mov	DWORD PTR [r8+rax*4], edx
	mov	rdx, rax
	add	rax, 1
	cmp	rdi, rdx
	jne	.L10
	mov	rsi, QWORD PTR 48[rsp]
	add	ecx, DWORD PTR 60[rsp]
	mov	rdx, r13
	mov	rdi, rbp
	mov	QWORD PTR 88[rsp], r11
	mov	DWORD PTR 64[rsp], ecx
	call	bitwise_xor@PLT
	mov	rdx, rbp
	mov	rsi, r13
	mov	rdi, r12
	call	aes128k128d@PLT
	mov	r11, QWORD PTR 88[rsp]
	mov	ecx, DWORD PTR 64[rsp]
.L8:
	xor	eax, eax
	lea	rdx, 128[rsp]
	.p2align 4,,10
	.p2align 3
.L11:
	mov	esi, DWORD PTR 0[rbp+rax]
	mov	DWORD PTR [rdx+rax], esi
	add	rax, 4
	cmp	rax, 32
	jne	.L11
	movsx	rcx, ecx
	xor	eax, eax
	lea	rsi, [rbx+rcx*4]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	ecx, DWORD PTR [rdx+rax]
	mov	DWORD PTR [rsi+rax], ecx
	add	rax, 4
	cmp	rax, 32
	jne	.L12
	cmp	DWORD PTR 56[rsp], 15
	jle	.L13
	mov	rax, QWORD PTR 72[rsp]
	mov	QWORD PTR 64[rsp], r11
	xor	r9d, r9d
	mov	QWORD PTR 32[rsp], rbx
	lea	r15, 32[rbx+rax]
	mov	rbx, r13
	mov	r13d, r9d
	.p2align 4,,10
	.p2align 3
.L15:
	sub	rsp, 8
	.cfi_def_cfa_offset 696
	add	r13d, 1
	mov	rdi, r14
	mov	eax, DWORD PTR 8[rsp]
	mov	r9d, r13d
	push	rax
	.cfi_def_cfa_offset 704
	mov	r8, QWORD PTR 40[rsp]
	mov	rcx, QWORD PTR 48[rsp]
	mov	edx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR 20[rsp]
	call	construct_ctr_preload@PLT
	mov	rdx, rbp
	mov	rsi, r14
	mov	rdi, r12
	call	aes128k128d@PLT
	mov	rdx, rbx
	mov	rsi, r15
	mov	rdi, rbp
	call	bitwise_xor@PLT
	pop	r9
	.cfi_def_cfa_offset 696
	xor	eax, eax
	pop	r10
	.cfi_def_cfa_offset 688
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edx, DWORD PTR [rbx+rax]
	mov	DWORD PTR [r15+rax], edx
	add	rax, 4
	cmp	rax, 64
	jne	.L14
	add	r15, 64
	cmp	r13d, DWORD PTR 16[rsp]
	jl	.L15
	mov	eax, DWORD PTR 16[rsp]
	mov	edx, 0
	mov	esi, DWORD PTR 40[rsp]
	mov	r13, rbx
	mov	rbx, QWORD PTR 32[rsp]
	mov	r11, QWORD PTR 64[rsp]
	sub	eax, 1
	sal	eax, 4
	cmp	DWORD PTR 56[rsp], 15
	cmovle	eax, edx
	lea	eax, 24[rsi+rax]
	mov	DWORD PTR 32[rsp], eax
.L13:
	mov	r8d, DWORD PTR 60[rsp]
	test	r8d, r8d
	jg	.L44
.L16:
	mov	QWORD PTR 16[rsp], r11
	sub	rsp, 8
	.cfi_def_cfa_offset 696
	mov	rcx, rbx
	xor	r9d, r9d
	mov	eax, DWORD PTR 8[rsp]
	mov	rdi, r14
	push	rax
	.cfi_def_cfa_offset 704
	mov	r8, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR 20[rsp]
	call	construct_ctr_preload@PLT
	mov	rax, QWORD PTR 64[rsp]
	pop	rdx
	.cfi_def_cfa_offset 696
	pop	rcx
	.cfi_def_cfa_offset 688
	mov	r11, QWORD PTR 16[rsp]
	.p2align 4,,10
	.p2align 3
.L20:
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	r11, rax
	jne	.L20
	movsx	rax, DWORD PTR 56[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	add	rax, QWORD PTR 80[rsp]
	lea	rcx, [rbx+rax*4]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edx, DWORD PTR 32[rcx+rax]
	mov	DWORD PTR [rsi+rax], edx
	add	rax, 4
	cmp	rax, 32
	jne	.L21
	mov	rdx, rbp
	mov	rsi, r14
	mov	rdi, r12
	call	aes128k128d@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdx, r13
	mov	rdi, rbp
	call	bitwise_xor@PLT
	movsx	rax, DWORD PTR 32[rsp]
	lea	rcx, [rbx+rax*4]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edx, DWORD PTR 0[r13+rax]
	mov	DWORD PTR [rcx+rax], edx
	add	rax, 4
	cmp	rax, 32
	jne	.L22
	mov	rcx, QWORD PTR 616[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR _SUCCESS[rip]
	jne	.L45
	add	rsp, 632
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L44:
	.cfi_restore_state
	mov	QWORD PTR 40[rsp], r11
	sub	rsp, 8
	.cfi_def_cfa_offset 696
	mov	rdi, r14
	mov	rcx, rbx
	mov	eax, DWORD PTR 8[rsp]
	push	rax
	.cfi_def_cfa_offset 704
	mov	eax, DWORD PTR 32[rsp]
	mov	r8, QWORD PTR 40[rsp]
	mov	edx, DWORD PTR 24[rsp]
	mov	esi, DWORD PTR 20[rsp]
	lea	r9d, 1[rax]
	call	construct_ctr_preload@PLT
	mov	rax, QWORD PTR 64[rsp]
	pop	rsi
	.cfi_def_cfa_offset 696
	pop	rdi
	.cfi_def_cfa_offset 688
	mov	r11, QWORD PTR 40[rsp]
	.p2align 4,,10
	.p2align 3
.L17:
	mov	DWORD PTR [rax], 0
	add	rax, 4
	cmp	r11, rax
	jne	.L17
	mov	eax, DWORD PTR 60[rsp]
	mov	rsi, QWORD PTR 48[rsp]
	lea	r15d, -1[rax]
	movsx	rax, DWORD PTR 32[rsp]
	lea	rcx, [rbx+rax*4]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edx, DWORD PTR [rcx+rax*4]
	mov	DWORD PTR [rsi+rax*4], edx
	mov	rdx, rax
	add	rax, 1
	cmp	r15, rdx
	jne	.L18
	mov	rdx, rbp
	mov	rsi, r14
	mov	rdi, r12
	mov	QWORD PTR 40[rsp], rcx
	mov	QWORD PTR 16[rsp], r11
	call	aes128k128d@PLT
	mov	rsi, QWORD PTR 48[rsp]
	mov	rdx, r13
	mov	rdi, rbp
	call	bitwise_xor@PLT
	mov	rcx, QWORD PTR 40[rsp]
	mov	r11, QWORD PTR 16[rsp]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, DWORD PTR 0[r13+rax*4]
	mov	DWORD PTR [rcx+rax*4], edx
	mov	rdx, rax
	add	rax, 1
	cmp	r15, rdx
	jne	.L19
	mov	edi, DWORD PTR 60[rsp]
	add	DWORD PTR 32[rsp], edi
	jmp	.L16
.L27:
	mov	ecx, DWORD PTR 32[rsp]
	jmp	.L6
.L45:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	aes_cipher, .-aes_cipher
	.comm	_SUCCESS,4,4
	.comm	WLAN_HDR_A3_QOS_LEN,4,4
	.comm	WLAN_HDR_A3_LEN,4,4
	.comm	WIFI_DATA_CFPOLL,4,4
	.comm	WIFI_DATA_CFACKPOLL,4,4
	.comm	WIFI_DATA_CFACK,4,4
	.comm	WIFI_DATA,4,4
	.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_rtw_security.c_aes_cipher.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aes_cipher, %function
aes_cipher:
	@ args = 0, pretend = 0, frame = 544
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #564
	str	r3, [sp, #24]
	ldr	r3, .L49
	str	r1, [sp, #20]
	mov	r10, r0
	mov	r0, r2
	mov	r5, r2
	mov	r4, r1
	ldr	r3, [r3]
	str	r3, [sp, #556]
	mov	r3,#0
	bl	GetFrameType
	mov	r3, r0
	mov	r0, r5
	mov	r6, #0
	str	r3, [sp, #28]
	bl	GetFrameSubType
	ldr	r3, .L49+4
	str	r6, [sp, #108]
	ldr	r3, [r3]
	str	r6, [sp, #172]
	cmp	r3, r4
	str	r6, [sp, #236]
	asr	r3, r0, #4
	str	r6, [sp, #300]
	str	r6, [sp, #364]
	str	r6, [sp, #428]
	str	r6, [sp, #492]
	str	r6, [sp, #112]
	str	r6, [sp, #116]
	str	r6, [sp, #120]
	str	r6, [sp, #176]
	str	r6, [sp, #180]
	str	r6, [sp, #184]
	str	r6, [sp, #240]
	str	r6, [sp, #244]
	str	r6, [sp, #248]
	str	r6, [sp, #304]
	str	r6, [sp, #308]
	str	r6, [sp, #312]
	str	r6, [sp, #368]
	str	r6, [sp, #372]
	str	r6, [sp, #376]
	str	r6, [sp, #432]
	str	r6, [sp, #436]
	str	r6, [sp, #440]
	str	r6, [sp, #496]
	str	r6, [sp, #500]
	str	r6, [sp, #504]
	beq	.L2
	ldr	r2, .L49+8
	ldr	r6, [r2]
	subs	r6, r6, r4
	movne	r6, #1
.L2:
	ldr	r1, .L49+12
	ldr	r2, [sp, #28]
	ldr	r1, [r1]
	orr	r2, r2, r3
	cmp	r2, r1
	beq	.L3
	ldr	r1, .L49+16
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L3
	ldr	r1, .L49+20
	ldr	r1, [r1]
	cmp	r2, r1
	beq	.L3
	ldr	r2, .L49+24
	ldr	r1, [sp, #28]
	ldr	r2, [r2]
	cmp	r2, r1
	beq	.L46
.L26:
	mov	fp, #0
	b	.L5
.L46:
	sub	r3, r3, #8
	cmp	r3, #3
	bhi	.L26
.L3:
	ldr	r3, .L49+8
	ldr	r2, [sp, #20]
	ldr	r3, [r3]
	cmp	r3, r2
	moveq	fp, #1
	movne	fp, #1
	addne	r3, r2, #2
	strne	r3, [sp, #20]
.L5:
	ldr	r8, [sp, #20]
	ldr	r7, [sp, #24]
	add	r3, r5, r8, lsl #2
	ldr	r2, [r3, #20]
	ldr	r1, [r3, #24]
	ldr	r0, [r3, #28]
	ldr	r9, [sp, #28]
	ldr	lr, [r3, #16]
	ldr	ip, [r5, r8, lsl #2]
	ldr	r4, [r3, #4]
	add	r3, sp, #52
	str	r9, [sp, #8]
	str	r3, [sp, #4]
	str	r2, [sp, #64]
	mov	r3, r5
	mov	r2, r6
	str	r1, [sp, #68]
	str	r0, [sp, #72]
	mov	r1, fp
	str	r7, [sp]
	add	r0, sp, #108
	str	lr, [sp, #60]
	str	ip, [sp, #52]
	str	r4, [sp, #56]
	bl	construct_mic_iv
	mov	r3, r9
	mov	r2, r5
	mov	r1, r8
	add	r0, sp, #172
	bl	construct_mic_header1
	mov	r3, fp
	mov	r2, r6
	mov	r1, r5
	add	r0, sp, #236
	bl	construct_mic_header2
	rsbs	r3, r7, #0
	and	r3, r3, #15
	and	r2, r7, #15
	rsbpl	r2, r3, #0
	cmp	r7, #0
	add	r9, r7, #15
	movge	r9, r7
	str	r2, [sp, #32]
	add	r1, sp, #108
	add	r2, sp, #428
	mov	r0, r10
	bl	aes128k128d
	add	r2, sp, #364
	add	r1, sp, #172
	add	r0, sp, #428
	bl	bitwise_xor
	add	r2, sp, #428
	add	r1, sp, #364
	mov	r0, r10
	bl	aes128k128d
	add	r2, sp, #364
	add	r1, sp, #236
	add	r0, sp, #428
	bl	bitwise_xor
	add	r2, sp, #428
	mov	r0, r10
	add	r1, sp, #364
	bl	aes128k128d
	lsl	r3, r8, #2
	add	r2, r8, #8
	cmp	r7, #15
	asr	r9, r9, #4
	str	r3, [sp, #44]
	str	r2, [sp, #36]
	ble	.L27
	mov	r7, #0
	add	r4, r3, #32
	add	r4, r5, r4
.L7:
	mov	r1, r4
	add	r2, sp, #364
	add	r0, sp, #428
	bl	bitwise_xor
	add	r7, r7, #1
	mov	r0, r10
	add	r2, sp, #428
	add	r1, sp, #364
	bl	aes128k128d
	cmp	r9, r7
	add	r4, r4, #64
	bgt	.L7
	ldr	r3, [sp, #24]
	ldr	r2, [sp, #20]
	cmp	r3, #15
	sub	r3, r9, #1
	movle	r3, #0
	movgt	r3, r3, lsl #4
	add	r4, r2, #24
	add	r4, r3, r4
.L6:
	ldr	r3, [sp, #32]
	cmp	r3, #0
	addle	r7, sp, #556
	ble	.L8
	mov	r2, #0
	add	r3, sp, #492
	add	r7, sp, #556
.L9:
	str	r2, [r3], #4
	cmp	r3, r7
	bne	.L9
	ldr	r3, [sp, #32]
	add	r2, sp, #488
	add	ip, r3, r4
	add	r0, r5, ip, lsl #2
	add	r3, r5, r4, lsl #2
.L10:
	ldr	r1, [r3], #4
	cmp	r3, r0
	str	r1, [r2, #4]!
	bne	.L10
	add	r2, sp, #364
	add	r1, sp, #492
	add	r0, sp, #428
	mov	r4, ip
	bl	bitwise_xor
	mov	r0, r10
	add	r2, sp, #428
	add	r1, sp, #364
	bl	aes128k128d
.L8:
	add	r2, sp, #76
	mov	r1, r2
	add	r3, sp, #428
	add	ip, sp, #460
.L11:
	ldr	r0, [r3], #4
	cmp	r3, ip
	str	r0, [r1], #4
	bne	.L11
	add	r3, r5, #32
	str	r3, [sp, #40]
	add	r0, r3, r4, lsl #2
	add	r3, r5, r4, lsl #2
.L12:
	ldr	r1, [r2], #4
	str	r1, [r3], #4
	cmp	r3, r0
	bne	.L12
	ldr	r3, [sp, #24]
	cmp	r3, #15
	ble	.L28
	mov	r8, #0
	ldr	r3, [sp, #44]
	str	r7, [sp, #44]
	add	r4, r5, r3
	mov	r7, r5
	ldr	r5, [sp, #28]
	add	r4, r4, #92
.L15:
	add	r3, sp, #52
	add	r8, r8, #1
	mov	r2, fp
	mov	r1, r6
	str	r3, [sp]
	str	r8, [sp, #4]
	mov	r3, r7
	str	r5, [sp, #8]
	add	r0, sp, #300
	bl	construct_ctr_preload
	add	r2, sp, #428
	add	r1, sp, #300
	mov	r0, r10
	bl	aes128k128d
	add	r2, sp, #364
	sub	r1, r4, #60
	add	r0, sp, #428
	bl	bitwise_xor
	add	r1, sp, #364
	sub	r2, r4, #64
.L14:
	ldr	r3, [r1], #4
	str	r3, [r2, #4]!
	cmp	r4, r2
	bne	.L14
	cmp	r8, r9
	add	r4, r4, #64
	blt	.L15
	ldr	r3, [sp, #24]
	sub	r4, r9, #1
	cmp	r3, #15
	movle	r4, #0
	movgt	r4, r4, lsl #4
	ldr	r3, [sp, #20]
	mov	r5, r7
	add	r3, r3, #24
	ldr	r7, [sp, #44]
	add	r4, r4, r3
.L13:
	ldr	r3, [sp, #32]
	cmp	r3, #0
	bgt	.L47
.L16:
	mov	r8, #0
	ldr	r3, [sp, #28]
	mov	r2, fp
	str	r3, [sp, #8]
	add	r3, sp, #52
	str	r3, [sp]
	mov	r1, r6
	mov	r3, r5
	str	r8, [sp, #4]
	add	r0, sp, #300
	bl	construct_ctr_preload
	add	r2, sp, #492
	mov	r3, r2
.L20:
	str	r8, [r3], #4
	cmp	r7, r3
	bne	.L20
	ldr	r1, [sp, #24]
	ldr	r0, [sp, #20]
	ldr	r3, [sp, #36]
	add	r3, r1, r3
	add	r1, r1, r0
	add	r0, r5, #64
	add	r3, r5, r3, lsl #2
	add	r0, r0, r1, lsl #2
.L21:
	ldr	r1, [r3], #4
	cmp	r0, r3
	str	r1, [r2], #4
	bne	.L21
	add	r1, sp, #300
	add	r2, sp, #428
	mov	r0, r10
	bl	aes128k128d
	add	r2, sp, #364
	add	r1, sp, #492
	add	r0, sp, #428
	bl	bitwise_xor
	ldr	r2, [sp, #40]
	add	r5, r5, r4, lsl #2
	add	r3, sp, #364
	add	r4, r2, r4, lsl #2
.L22:
	ldr	r2, [r3], #4
	str	r2, [r5], #4
	cmp	r4, r5
	bne	.L22
	ldr	r3, .L49+28
	ldr	r0, [r3]
	ldr	r3, .L49
	ldr	r2, [r3]
	ldr	r3, [sp, #556]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L48
	add	sp, sp, #564
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L47:
	ldr	r3, [sp, #28]
	add	r9, r9, #1
	str	r3, [sp, #8]
	add	r3, sp, #52
	mov	r2, fp
	str	r3, [sp]
	mov	r1, r6
	mov	r3, r5
	str	r9, [sp, #4]
	add	r0, sp, #300
	bl	construct_ctr_preload
	mov	r2, #0
	add	r3, sp, #492
.L17:
	str	r2, [r3], #4
	cmp	r7, r3
	bne	.L17
	add	r8, r5, r4, lsl #2
	mov	r3, r8
	ldr	r2, [sp, #32]
	add	r9, r2, r4
	add	r4, r5, r9, lsl #2
	add	r2, sp, #488
.L18:
	ldr	r1, [r3], #4
	cmp	r3, r4
	str	r1, [r2, #4]!
	bne	.L18
	add	r2, sp, #428
	add	r1, sp, #300
	mov	r0, r10
	bl	aes128k128d
	add	r2, sp, #364
	add	r1, sp, #492
	add	r0, sp, #428
	bl	bitwise_xor
	add	r3, sp, #360
.L19:
	ldr	r2, [r3, #4]!
	str	r2, [r8], #4
	cmp	r8, r4
	bne	.L19
	mov	r4, r9
	b	.L16
.L27:
	ldr	r4, [sp, #36]
	b	.L6
.L28:
	ldr	r4, [sp, #36]
	b	.L13
.L48:
	bl	__stack_chk_fail
.L50:
	.align	2
.L49:
	.word	.LC0
	.word	WLAN_HDR_A3_LEN
	.word	WLAN_HDR_A3_QOS_LEN
	.word	WIFI_DATA_CFACK
	.word	WIFI_DATA_CFPOLL
	.word	WIFI_DATA_CFACKPOLL
	.word	WIFI_DATA
	.word	_SUCCESS
	.size	aes_cipher, .-aes_cipher
	.comm	_SUCCESS,4,4
	.comm	WLAN_HDR_A3_QOS_LEN,4,4
	.comm	WLAN_HDR_A3_LEN,4,4
	.comm	WIFI_DATA_CFPOLL,4,4
	.comm	WIFI_DATA_CFACKPOLL,4,4
	.comm	WIFI_DATA_CFACK,4,4
	.comm	WIFI_DATA,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
