	.file	"extr_iso9660_fs.c_iso9660_fs_readdir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Couldn't calloc(1, %d)"
	.text
	.p2align 4
	.globl	iso9660_fs_readdir
	.type	iso9660_fs_readdir, @function
iso9660_fs_readdir:
.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
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L23
	mov	r12, rdi
	test	rdi, rdi
	je	.L23
	mov	rax, QWORD PTR [rdi]
	mov	QWORD PTR 8[rsp], rax
	call	iso9660_fs_stat@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR _STAT_DIR[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L25
	xor	eax, eax
	mov	DWORD PTR 20[rsp], 0
	call	_cdio_list_new@PLT
	mov	edi, 1
	mov	r14, rax
	mov	rax, QWORD PTR 8[rbp]
	mov	esi, DWORD PTR [rax]
	imul	esi, DWORD PTR ISO_BLOCKSIZE[rip]
	call	calloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L26
	mov	rdx, QWORD PTR 8[rbp]
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, r13
	mov	rdi, r12
	mov	ecx, DWORD PTR ISO_BLOCKSIZE[rip]
	mov	r8d, DWORD PTR [rdx]
	mov	edx, DWORD PTR [rax]
	call	cdio_read_data_sectors@PLT
	test	rax, rax
	jne	.L9
	mov	eax, DWORD PTR 20[rsp]
	xor	r12d, r12d
	lea	rbx, 20[rsp]
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdx, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR [rdx]
	imul	edx, DWORD PTR ISO_BLOCKSIZE[rip]
	cmp	edx, eax
	jbe	.L27
	lea	r15, 0[r13+rax*4]
	mov	rsi, rbx
	mov	rdi, r15
	call	iso9660_check_dir_block_end@PLT
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR 20[rsp]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR dunno[rip]
	mov	rsi, r12
	mov	rdi, r15
	mov	ecx, DWORD PTR [rax]
	call	_iso9660_dir_to_statbuf@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
	mov	eax, DWORD PTR [r15]
	test	DWORD PTR ISO_MULTIEXTENT[rip], eax
	je	.L28
.L13:
	mov	rdi, r15
	call	iso9660_get_dir_len@PLT
	add	eax, DWORD PTR 20[rsp]
	mov	DWORD PTR 20[rsp], eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rax, QWORD PTR 8[rbp]
	lea	rdi, .LC0[rip]
	mov	esi, DWORD PTR [rax]
	imul	esi, DWORD PTR ISO_BLOCKSIZE[rip]
	call	cdio_warn@PLT
.L9:
	mov	rdi, rbp
	call	iso9660_stat_free@PLT
	mov	rdi, r14
	call	iso9660_dirlist_free@PLT
.L23:
	xor	r14d, r14d
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L29
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
.L27:
	.cfi_restore_state
	sete	dil
	movzx	edi, dil
	call	cdio_assert@PLT
	mov	rdi, r13
	call	free@PLT
	mov	rdi, rbp
	call	iso9660_stat_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rsi, r12
	mov	rdi, r14
	xor	r12d, r12d
	call	_cdio_list_append@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	mov	rdi, rbp
	xor	r14d, r14d
	call	iso9660_stat_free@PLT
	jmp	.L1
.L29:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	iso9660_fs_readdir, .-iso9660_fs_readdir
	.comm	dunno,4,4
	.comm	_STAT_DIR,8,8
	.comm	ISO_MULTIEXTENT,4,4
	.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_fs_readdir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Couldn't calloc(1, %d)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	iso9660_fs_readdir
	.syntax unified
	.arm
	.fpu softvfp
	.type	iso9660_fs_readdir, %function
iso9660_fs_readdir:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	clz	r3, r0
	cmp	r1, #0
	lsr	r3, r3, #5
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	movne	r4, r3
	moveq	r4, #1
	ldr	r3, .L28
	sub	sp, sp, #28
	cmp	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	bne	.L4
	ldr	r3, [r0]
	mov	r5, r0
	str	r3, [sp, #8]
	bl	iso9660_fs_stat
	subs	r7, r0, #0
	beq	.L4
	ldr	r3, .L28+4
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L23
	str	r4, [sp, #16]
	bl	_cdio_list_new
	ldr	r9, .L28+8
	ldr	r3, [r7, #4]
	ldr	fp, [r9]
	ldr	r6, [r3]
	mov	r10, r0
	mul	r1, fp, r6
	mov	r0, #1
	str	r1, [sp, #12]
	bl	calloc
	subs	r8, r0, #0
	ldr	r1, [sp, #12]
	beq	.L24
	ldr	r2, [r7, #8]
	mov	r0, r5
	ldr	r2, [r2]
	mov	r3, fp
	mov	r1, r8
	str	r6, [sp]
	bl	cdio_read_data_sectors
	subs	r5, r0, #0
	bne	.L8
	ldr	r4, [sp, #16]
	ldr	fp, .L28+12
.L11:
	ldr	r3, [r7, #4]
	ldr	r2, [r9]
	ldr	r3, [r3]
	mul	r3, r2, r3
	cmp	r3, r4
	bls	.L25
	add	r6, r8, r4, lsl #2
	mov	r0, r6
	add	r1, sp, #16
	bl	iso9660_check_dir_block_end
	cmp	r0, #0
	lsl	r4, r4, #2
	ldrne	r4, [sp, #16]
	bne	.L11
.L10:
	ldr	r3, [sp, #8]
	ldr	r2, .L28+16
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	_iso9660_dir_to_statbuf
	subs	r5, r0, #0
	beq	.L12
	ldr	r3, [r8, r4]
	ldr	r2, [fp]
	ands	r3, r3, r2
	beq	.L26
.L12:
	mov	r0, r6
	bl	iso9660_get_dir_len
	ldr	r4, [sp, #16]
	add	r4, r0, r4
	str	r4, [sp, #16]
	b	.L11
.L25:
	moveq	r0, #1
	movne	r0, #0
	bl	cdio_assert
	mov	r0, r8
	bl	free
	mov	r0, r7
	bl	iso9660_stat_free
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r10
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	mov	r1, r5
	mov	r0, r10
	mov	r5, r3
	bl	_cdio_list_append
	b	.L12
.L4:
	mov	r10, #0
	b	.L1
.L23:
	bl	iso9660_stat_free
	mov	r10, r4
	b	.L1
.L8:
	mov	r0, r7
	bl	iso9660_stat_free
	mov	r0, r10
	bl	iso9660_dirlist_free
	mov	r10, r4
	b	.L1
.L24:
	ldr	r0, .L28+20
	bl	cdio_warn
	mov	r0, r7
	bl	iso9660_stat_free
	mov	r0, r10
	bl	iso9660_dirlist_free
	mov	r10, r8
	b	.L1
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC1
	.word	_STAT_DIR
	.word	ISO_BLOCKSIZE
	.word	ISO_MULTIEXTENT
	.word	dunno
	.word	.LC0
	.size	iso9660_fs_readdir, .-iso9660_fs_readdir
	.comm	dunno,4,4
	.comm	_STAT_DIR,4,4
	.comm	ISO_MULTIEXTENT,4,4
	.comm	ISO_BLOCKSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
