	.file	"extr_module-verify-sig.c_module_verify_canonicalise.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	module_verify_canonicalise, @function
module_verify_canonicalise:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	eax, DWORD PTR 8[rdi]
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	lea	edi, 0[0+rax*8]
	call	kmalloc@PLT
	mov	QWORD PTR [r15], rax
	test	rax, rax
	je	.L26
	movsx	rcx, DWORD PTR 8[r15]
	mov	rdx, rcx
	lea	rcx, [rax+rcx*4]
	mov	QWORD PTR 16[r15], rcx
	cmp	edx, 1
	jle	.L15
	mov	r9, QWORD PTR 48[r15]
	mov	r8, QWORD PTR SHT_REL[rip]
	mov	edx, 1
	xor	r14d, r14d
	mov	r10, QWORD PTR SHT_RELA[rip]
	lea	rcx, 32[r9]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR 8[rcx]
	cmp	rdi, r8
	je	.L7
	cmp	rdi, r10
	je	.L7
.L5:
	add	edx, 1
	add	rcx, 32
	cmp	DWORD PTR 8[r15], edx
	jle	.L27
.L8:
	cmp	DWORD PTR 24[r15], edx
	je	.L5
	mov	esi, DWORD PTR SHF_ALLOC[rip]
	test	DWORD PTR [rcx], esi
	je	.L6
	movsx	rsi, r14d
	add	r14d, 1
	mov	DWORD PTR [rax+rsi*4], edx
.L28:
	add	edx, 1
	add	rcx, 32
	cmp	DWORD PTR 8[r15], edx
	jg	.L8
.L27:
	lea	eax, -2[r14]
	lea	r12, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	r14d, 1
	jle	.L9
	xor	ebx, ebx
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rcx, QWORD PTR [r15]
	mov	rdx, QWORD PTR 48[r15]
	mov	rbp, rbx
	mov	rsi, QWORD PTR 32[r15]
	movsx	rax, DWORD PTR [rcx+rbx]
	add	rbx, 4
	sal	rax, 5
	movsx	rdi, DWORD PTR 24[rdx+rax]
	movsx	rax, DWORD PTR [rcx+rbx]
	sal	rax, 5
	add	rdi, rsi
	movsx	rax, DWORD PTR 24[rdx+rax]
	add	rsi, rax
	call	strcmp@PLT
	test	rax, rax
	jle	.L10
	mov	rax, QWORD PTR [r15]
	mov	r13d, 1
	add	rbp, rax
	add	rax, rbx
	mov	edx, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	DWORD PTR 0[rbp], ecx
	mov	DWORD PTR [rax], edx
.L10:
	cmp	r12, rbx
	jne	.L11
	test	r13d, r13d
	jne	.L12
.L9:
	test	r14d, r14d
	je	.L4
	lea	ecx, -1[r14]
	mov	rdi, QWORD PTR 16[r15]
	mov	rsi, QWORD PTR [r15]
	mov	eax, 1
	add	rcx, 2
	.p2align 4,,10
	.p2align 3
.L14:
	movsx	rdx, DWORD PTR -4[rsi+rax*4]
	mov	DWORD PTR [rdi+rdx*4], eax
	add	rax, 1
	cmp	rcx, rax
	jne	.L14
.L4:
	mov	DWORD PTR 40[r15], r14d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, QWORD PTR 16[rcx]
	sal	rdi, 5
	test	DWORD PTR [r9+rdi], esi
	je	.L5
	movsx	rsi, r14d
	add	r14d, 1
	mov	DWORD PTR [rax+rsi*4], edx
	jmp	.L28
.L26:
	mov	eax, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	neg	eax
	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
.L15:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	module_verify_canonicalise, .-module_verify_canonicalise
	.comm	SHT_RELA,8,8
	.comm	SHT_REL,8,8
	.comm	SHF_ALLOC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,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_module-verify-sig.c_module_verify_canonicalise.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	module_verify_canonicalise, %function
module_verify_canonicalise:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L29
	mov	r10, r0
	ldr	r0, [r0, #4]
	sub	sp, sp, #20
	ldr	r1, [r3]
	lsl	r0, r0, #3
	bl	kmalloc
	cmp	r0, #0
	str	r0, [sp, #4]
	str	r0, [r10]
	beq	.L26
	ldr	r0, [r10, #4]
	ldr	r8, [sp, #4]
	cmp	r0, #1
	add	r3, r8, r0, lsl #2
	str	r3, [sp, #8]
	str	r3, [r10, #8]
	ble	.L15
	ldr	ip, .L29+4
	ldr	fp, [r10, #24]
	ldr	r1, .L29+8
	ldr	r4, [ip]
	mov	r2, #1
	mov	r7, #0
	ldr	r5, [r1]
	ldr	ip, .L29+12
	add	lr, fp, #4
	add	r6, fp, #8
	b	.L8
.L6:
	ldr	r1, [lr, r2, lsl #4]
	cmp	r1, r4
	beq	.L7
	cmp	r1, r5
	beq	.L7
.L5:
	add	r2, r2, #1
	cmp	r0, r2
	ble	.L27
.L8:
	ldr	r3, [r10, #12]
	cmp	r3, r2
	beq	.L5
	ldr	r3, [ip]
	ldr	r1, [fp, r2, lsl #4]
	tst	r3, r1
	beq	.L6
	str	r2, [r8, r7, lsl #2]
	ldr	r0, [r10, #4]
	add	r7, r7, #1
.L28:
	add	r2, r2, #1
	cmp	r0, r2
	bgt	.L8
.L27:
	mov	r9, fp
	ldr	r3, [sp, #4]
	str	r7, [sp]
	sub	r3, r3, #4
	str	r3, [sp, #12]
	add	r7, r3, r7, lsl #2
.L12:
	ldr	r3, [sp]
	cmp	r3, #1
	ble	.L9
	mov	r8, #0
	ldr	r4, [sp, #4]
	ldr	fp, [r10, #16]
.L11:
	ldr	r5, [r4]
	ldr	r6, [r4, #4]!
	add	r2, r9, r5, lsl #4
	add	r3, r9, r6, lsl #4
	ldr	r0, [r2, #12]
	ldr	r1, [r3, #12]
	add	r0, fp, r0
	add	r1, fp, r1
	bl	strcmp
	cmp	r0, #0
	movgt	r8, #1
	strgt	r6, [r4, #-4]
	strgt	r5, [r4]
	cmp	r7, r4
	bne	.L11
	cmp	r8, #0
	bne	.L12
.L9:
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L4
	mov	r3, #0
	ldr	r2, [sp, #12]
	ldr	r0, [sp, #8]
	ldr	ip, [sp]
.L14:
	add	r3, r3, #1
	ldr	r1, [r2, #4]!
	cmp	r3, ip
	str	r3, [r0, r1, lsl #2]
	bne	.L14
.L4:
	mov	r0, #0
	ldr	r3, [sp]
	str	r3, [r10, #20]
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r1, [r6, r2, lsl #4]
	ldr	r1, [fp, r1, lsl #4]
	tst	r3, r1
	beq	.L5
	str	r2, [r8, r7, lsl #2]
	ldr	r0, [r10, #4]
	add	r7, r7, #1
	b	.L28
.L26:
	ldr	r3, .L29+16
	ldr	r0, [r3]
	rsb	r0, r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	mov	r3, #0
	str	r3, [sp]
	b	.L4
.L30:
	.align	2
.L29:
	.word	GFP_KERNEL
	.word	SHT_REL
	.word	SHT_RELA
	.word	SHF_ALLOC
	.word	ENOMEM
	.size	module_verify_canonicalise, .-module_verify_canonicalise
	.comm	SHT_RELA,4,4
	.comm	SHT_REL,4,4
	.comm	SHF_ALLOC,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
