	.file	"extr_kxld_copyright.c_kxld_validate_copyright_string.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kxld_validate_copyright_string
	.type	kxld_validate_copyright_string, @function
kxld_validate_copyright_string:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	esi, DWORD PTR kCopyrightToken[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, DWORD PTR FALSE[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	kxld_strstr@PLT
	mov	esi, DWORD PTR kRightsToken[rip]
	mov	rdi, r13
	mov	rbp, rax
	call	kxld_strstr@PLT
	test	rbp, rbp
	sete	dl
	test	rax, rax
	mov	rbx, rax
	sete	al
	or	dl, al
	jne	.L1
	cmp	rbp, rbx
	jbe	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edi, DWORD PTR kCopyrightToken[rip]
	call	const_strlen@PLT
	cdqe
	add	rbp, rax
	sub	rbx, rbp
	lea	r14d, 1[rbx]
	mov	edi, r14d
	call	kxld_alloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	edx, ebx
	mov	rsi, rbp
	mov	rdi, rax
	call	strncpy@PLT
	movsx	rax, ebx
	mov	esi, ebx
	mov	rdi, r13
	mov	BYTE PTR 0[r13+rax], 0
	call	dates_are_valid@PLT
	mov	esi, r14d
	mov	rdi, r13
	test	eax, eax
	cmovne	r12d, DWORD PTR TRUE[rip]
	call	kxld_free@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	kxld_validate_copyright_string, .-kxld_validate_copyright_string
	.comm	kRightsToken,4,4
	.comm	kCopyrightToken,4,4
	.comm	TRUE,4,4
	.comm	FALSE,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_kxld_copyright.c_kxld_validate_copyright_string.c"
	.text
	.align	2
	.global	kxld_validate_copyright_string
	.syntax unified
	.arm
	.fpu softvfp
	.type	kxld_validate_copyright_string, %function
kxld_validate_copyright_string:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r8, .L13
	ldr	r3, .L13+4
	ldr	r1, [r8]
	mov	r4, r0
	ldr	r6, [r3]
	bl	kxld_strstr
	ldr	r3, .L13+8
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, r4
	bl	kxld_strstr
	clz	r3, r0
	cmp	r5, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r5, r0
	movls	r7, r3
	orrhi	r7, r3, #1
	cmp	r7, #0
	beq	.L12
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	mov	r4, r0
	ldr	r0, [r8]
	bl	const_strlen
	add	r5, r5, r0
	sub	r4, r4, r5
	add	r9, r4, #1
	mov	r0, r9
	bl	kxld_alloc
	subs	r8, r0, #0
	beq	.L1
	mov	r2, r4
	mov	r1, r5
	bl	strncpy
	mov	r1, r4
	mov	r0, r8
	strb	r7, [r8, r4]
	bl	dates_are_valid
	cmp	r0, #0
	ldrne	r3, .L13+12
	mov	r1, r9
	ldrne	r6, [r3]
	mov	r0, r8
	bl	kxld_free
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L14:
	.align	2
.L13:
	.word	kCopyrightToken
	.word	FALSE
	.word	kRightsToken
	.word	TRUE
	.size	kxld_validate_copyright_string, .-kxld_validate_copyright_string
	.comm	kRightsToken,4,4
	.comm	kCopyrightToken,4,4
	.comm	TRUE,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
