	.file	"extr_card.c___card_checkdir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__card_checkdir, @function
__card_checkdir:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	mov	esi, 8188
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	r15, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	lea	rcx, 24[rsp]
	lea	rdx, 16[rsp]
	lea	r13, 196608[r15]
	mov	QWORD PTR 8[rsp], rcx
	mov	rdi, r13
	mov	QWORD PTR [rsp], rdx
	mov	QWORD PTR 32[rsp], r13
	call	__card_checksum@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rdx, QWORD PTR [rsp]
	cmp	QWORD PTR 391680[r15], rax
	mov	rcx, QWORD PTR 8[rsp]
	je	.L2
.L4:
	mov	QWORD PTR [rbx], 0
	mov	r12d, 1
.L3:
	mov	r14, QWORD PTR 8[rbx]
	mov	esi, 8188
	lea	rdi, 393216[r14]
	mov	QWORD PTR 40[rsp], rdi
	mov	QWORD PTR [rsp], rdi
	call	__card_checksum@PLT
	mov	rax, QWORD PTR 16[rsp]
	mov	rdi, QWORD PTR [rsp]
	cmp	QWORD PTR 588288[r14], rax
	je	.L5
.L7:
	add	r12d, 1
	mov	r14d, 1
.L6:
	mov	QWORD PTR [rbx], rdi
	mov	edx, 8192
	mov	rsi, r13
	call	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	test	rbp, rbp
	je	.L1
	mov	DWORD PTR 0[rbp], r14d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 391688[r15], rax
	jne	.L4
	xor	r12d, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR 588296[r14], rax
	jne	.L7
	test	r12d, r12d
	jne	.L13
	mov	rax, QWORD PTR 588304[r14]
	xor	r14d, r14d
	cmp	QWORD PTR 391696[r15], rax
	setge	r14b
.L8:
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L20
	xor	r14d, r14d
	cmp	rax, r13
	setne	r14b
	jmp	.L10
.L19:
	call	__stack_chk_fail@PLT
.L13:
	xor	r14d, r14d
	jmp	.L8
.L20:
	movsx	rax, r14d
	mov	rdi, QWORD PTR 32[rsp+rax*8]
	mov	eax, r14d
	xor	eax, 1
	cdqe
	mov	r13, QWORD PTR 32[rsp+rax*8]
	jmp	.L6
	.cfi_endproc
.LFE0:
	.size	__card_checkdir, .-__card_checkdir
	.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_card.c___card_checkdir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__card_checkdir, %function
__card_checkdir:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r0, #4]
	sub	sp, sp, #24
	add	r8, r3, #98304
	ldr	ip, .L21
	add	r10, r3, #192512
	add	r2, sp, #4
	add	r3, sp, #8
	mov	r4, r0
	mov	r6, r1
	mov	r0, r8
	ldr	r1, .L21+4
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	str	r8, [sp, #12]
	bl	__card_checksum
	ldr	r2, [r10, #3328]
	ldr	r3, [sp, #4]
	cmp	r2, r3
	beq	.L2
.L4:
	mov	r3, #0
	mov	r7, #1
	str	r3, [r4]
.L3:
	ldr	r5, [r4, #4]
	add	r3, sp, #8
	add	r9, r5, #196608
	add	r2, sp, #4
	mov	r0, r9
	ldr	r1, .L21+4
	add	r5, r5, #290816
	str	r9, [sp, #16]
	bl	__card_checksum
	ldr	r2, [r5, #3328]
	ldr	r3, [sp, #4]
	cmp	r2, r3
	beq	.L5
.L7:
	mov	r5, #1
	add	r7, r7, #1
.L6:
	mov	r1, r8
	mov	r0, r9
	mov	r2, #8192
	str	r9, [r4]
	bl	memcpy
.L10:
	cmp	r6, #0
	ldr	r3, .L21
	strne	r5, [r6]
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r7
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r2, [r10, #3332]
	ldr	r3, [sp, #8]
	cmp	r2, r3
	bne	.L4
	mov	r7, #0
	b	.L3
.L5:
	ldr	r2, [r5, #3332]
	ldr	r3, [sp, #8]
	cmp	r2, r3
	bne	.L7
	cmp	r7, #0
	bne	.L13
	ldr	r3, [r5, #3336]
	ldr	r2, [r10, #3336]
	cmp	r2, r3
	movlt	r5, #0
	movge	r5, #1
.L8:
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L20
	subs	r5, r3, r8
	movne	r5, #1
	b	.L10
.L19:
	bl	__stack_chk_fail
.L13:
	mov	r5, #0
	b	.L8
.L20:
	add	r2, sp, #24
	eor	r3, r5, #1
	add	r3, r2, r3, lsl #2
	ldr	r8, [r3, #-12]
	add	r3, r2, r5, lsl #2
	ldr	r9, [r3, #-12]
	b	.L6
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	8188
	.size	__card_checkdir, .-__card_checkdir
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
