	.file	"extr_iso9660_fs.c_iso9660_check_dir_block_end.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	iso9660_check_dir_block_end, @function
iso9660_check_dir_block_end:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	call	iso9660_get_dir_len@PLT
	test	eax, eax
	jne	.L2
	mov	eax, DWORD PTR [rbx]
	mov	esi, DWORD PTR ISO_BLOCKSIZE[rip]
	xor	edx, edx
	lea	ecx, [rax+rsi]
	div	esi
	mov	eax, 1
	sub	ecx, edx
	mov	DWORD PTR [rbx], ecx
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	r12d, DWORD PTR [rbx]
	mov	rdi, rbp
	call	iso9660_get_dir_len@PLT
	mov	ecx, DWORD PTR ISO_BLOCKSIZE[rip]
	xor	edx, edx
	mov	edi, DWORD PTR [rbx]
	lea	eax, -1[r12+rax]
	div	ecx
	xor	edx, edx
	mov	esi, eax
	mov	eax, edi
	div	ecx
	mov	r8d, eax
	xor	eax, eax
	cmp	esi, r8d
	je	.L1
	add	ecx, edi
	mov	eax, 1
	sub	ecx, edx
	mov	DWORD PTR [rbx], ecx
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	iso9660_check_dir_block_end, .-iso9660_check_dir_block_end
	.comm	ISO_BLOCKSIZE,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_iso9660_fs.c_iso9660_check_dir_block_end.c"
	.text
	.global	__aeabi_uidivmod
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	iso9660_check_dir_block_end, %function
iso9660_check_dir_block_end:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	bl	iso9660_get_dir_len
	cmp	r0, #0
	bne	.L2
	ldr	r3, .L7
	ldr	r0, [r4]
	ldr	r1, [r3]
	add	r5, r0, r1
	bl	__aeabi_uidivmod
	sub	r0, r5, r1
	str	r0, [r4]
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r5
	ldr	r5, [r4]
	bl	iso9660_get_dir_len
	ldr	r2, .L7
	sub	r3, r5, #1
	ldr	r5, [r2]
	add	r0, r3, r0
	mov	r1, r5
	bl	__aeabi_uidiv
	ldr	r7, [r4]
	mov	r1, r5
	mov	r6, r0
	mov	r0, r7
	bl	__aeabi_uidivmod
	cmp	r6, r0
	addne	r5, r5, r7
	subne	r5, r5, r1
	movne	r0, #1
	strne	r5, [r4]
	moveq	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	ISO_BLOCKSIZE
	.size	iso9660_check_dir_block_end, .-iso9660_check_dir_block_end
	.comm	ISO_BLOCKSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
