	.file	"extr_iso9660.c_grub_iso9660_mount.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"not a ISO9660 filesystem"
.LC1:
	.string	"CD001"
.LC2:
	.string	"SP"
	.text
	.p2align 4
	.type	grub_iso9660_mount, @function
grub_iso9660_mount:
.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	ebp, edi
	mov	edi, 16
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	call	grub_zalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	DWORD PTR 12[rax], ebp
	mov	ebx, 16
	lea	r12, 16[rsp]
	lea	r14, 4[rax]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L7:
	add	ebx, 1
	cmp	QWORD PTR GRUB_ISO9660_VOLDESC_END[rip], rax
	je	.L27
.L9:
	mov	ecx, DWORD PTR GRUB_ISO9660_LOG2_BLKSZ[rip]
	mov	esi, ebx
	xor	edx, edx
	mov	r8, r12
	mov	edi, ebp
	sal	esi, cl
	mov	ecx, 24
	call	grub_disk_read@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, QWORD PTR 32[rsp]
	mov	edx, 5
	lea	rsi, .LC1[rip]
	call	grub_strncmp@PLT
	test	rax, rax
	jne	.L25
	mov	rax, QWORD PTR 24[rsp]
	cmp	rax, QWORD PTR GRUB_ISO9660_VOLDESC_PRIMARY[rip]
	je	.L6
	cmp	rax, QWORD PTR GRUB_ISO9660_VOLDESC_SUPP[rip]
	jne	.L7
	mov	rdx, QWORD PTR 16[rsp]
	cmp	DWORD PTR [rdx], 37
	jne	.L7
	cmp	DWORD PTR 4[rdx], 47
	jne	.L7
	mov	edx, DWORD PTR 8[rdx]
	lea	ecx, -67[rdx]
	and	ecx, -3
	je	.L15
	cmp	edx, 64
	jne	.L7
.L15:
	mov	DWORD PTR 0[r13], 1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edx, 24
	mov	rsi, r12
	mov	rdi, r14
	add	ebx, 1
	call	grub_memcpy@PLT
	mov	rax, QWORD PTR 24[rsp]
	cmp	QWORD PTR GRUB_ISO9660_VOLDESC_END[rip], rax
	jne	.L9
.L27:
	mov	edi, DWORD PTR 4[r13]
	call	grub_le_to_cpu32@PLT
	mov	ecx, DWORD PTR GRUB_ISO9660_LOG2_BLKSZ[rip]
	xor	edx, edx
	mov	edi, ebp
	lea	r8, 8[rsp]
	sal	eax, cl
	mov	ecx, 8
	mov	esi, eax
	call	grub_disk_read@PLT
	test	rax, rax
	jne	.L25
	mov	edx, DWORD PTR 8[rsp]
	mov	r14d, DWORD PTR 12[rsp]
	mov	edi, 1
	mov	ecx, edx
	shr	ecx, 31
	lea	eax, [rdx+rcx]
	and	eax, 1
	sub	eax, ecx
	lea	r15d, 7[rdx+rax]
	sub	r14d, r15d
	lea	esi, 1024[r14]
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR 4[r13]
	call	grub_le_to_cpu32@PLT
	mov	ecx, DWORD PTR GRUB_ISO9660_LOG2_BLKSZ[rip]
	mov	r8, r12
	mov	edi, ebp
	mov	edx, r15d
	sal	eax, cl
	mov	ecx, r14d
	mov	esi, eax
	call	grub_disk_read@PLT
	test	rax, rax
	jne	.L25
	mov	rdi, QWORD PTR 8[r12]
	mov	edx, 2
	lea	rsi, .LC2[rip]
	call	grub_strncmp@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, r12
	call	ENTRY_DATA@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	ebx, DWORD PTR susp_iterate[rip]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 8[r13], eax
	call	grub_le_to_cpu32@PLT
	mov	r9, r13
	mov	r8d, ebx
	mov	edx, r15d
	mov	ecx, DWORD PTR GRUB_ISO9660_LOG2_BLKSZ[rip]
	mov	rdi, r13
	sal	eax, cl
	mov	ecx, r14d
	mov	esi, eax
	call	grub_iso9660_susp_iterate@PLT
	test	rax, rax
	jne	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r13
	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
.L25:
	.cfi_restore_state
	mov	edi, DWORD PTR GRUB_ERR_BAD_FS[rip]
	lea	rsi, .LC0[rip]
	call	grub_error@PLT
.L4:
	mov	rdi, r13
	xor	r13d, r13d
	call	grub_free@PLT
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	grub_iso9660_mount, .-grub_iso9660_mount
	.comm	susp_iterate,4,4
	.comm	GRUB_ISO9660_VOLDESC_SUPP,8,8
	.comm	GRUB_ISO9660_VOLDESC_PRIMARY,8,8
	.comm	GRUB_ISO9660_VOLDESC_END,8,8
	.comm	GRUB_ISO9660_LOG2_BLKSZ,4,4
	.comm	GRUB_ERR_BAD_FS,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.c_grub_iso9660_mount.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"not a ISO9660 filesystem\000"
	.align	2
.LC1:
	.ascii	"CD001\000"
	.align	2
.LC2:
	.ascii	"SP\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grub_iso9660_mount, %function
grub_iso9660_mount:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L28
	sub	sp, sp, #44
	mov	r5, r0
	mov	r0, #16
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bl	grub_zalloc
	subs	r3, r0, #0
	str	r3, [sp, #12]
	beq	.L1
	mov	r4, #16
	ldr	r7, .L28+4
	ldr	r8, .L28+8
	ldr	r10, .L28+12
	ldr	fp, .L28+16
	ldr	r9, .L28+20
	str	r5, [r3, #12]
	add	r6, sp, #24
	b	.L8
.L7:
	ldr	r2, [r9]
	add	r4, r4, #1
	cmp	r2, r3
	beq	.L25
.L8:
	ldr	r1, [r7]
	mov	r3, #12
	mov	r2, #0
	mov	r0, r5
	str	r6, [sp]
	lsl	r1, r4, r1
	bl	grub_disk_read
	cmp	r0, #0
	bne	.L23
	mov	r2, #5
	mov	r1, r8
	ldr	r0, [sp, #32]
	bl	grub_strncmp
	cmp	r0, #0
	bne	.L23
	ldr	r3, [sp, #28]
	ldr	r2, [r10]
	cmp	r3, r2
	beq	.L6
	ldr	r2, [fp]
	cmp	r3, r2
	bne	.L7
	ldr	r2, [sp, #24]
	ldr	r1, [r2]
	cmp	r1, #37
	bne	.L7
	ldr	r1, [r2, #4]
	cmp	r1, #47
	bne	.L7
	ldr	r1, [r2, #8]
	sub	r2, r1, #67
	bic	r2, r2, #2
	cmp	r2, #0
	cmpne	r1, #64
	bne	.L7
	mov	r3, #1
	ldr	r2, [sp, #12]
	str	r3, [r2]
.L6:
	ldr	r3, [sp, #12]
	mov	r2, #12
	add	r0, r3, #4
	mov	r1, r6
	bl	grub_memcpy
	ldr	r3, [sp, #28]
	ldr	r2, [r9]
	add	r4, r4, #1
	cmp	r2, r3
	bne	.L8
.L25:
	ldr	r3, [sp, #12]
	ldr	r0, [r3, #4]
	bl	grub_le_to_cpu32
	ldr	r1, [r7]
	add	r3, sp, #16
	lsl	r1, r0, r1
	str	r3, [sp]
	mov	r2, #0
	mov	r3, #8
	mov	r0, r5
	bl	grub_disk_read
	cmp	r0, #0
	bne	.L23
	ldr	r3, [sp, #16]
	ldr	r8, [sp, #20]
	cmp	r3, #0
	and	r4, r3, #1
	rsblt	r4, r4, #0
	add	r3, r3, #7
	add	r4, r4, r3
	sub	r8, r8, r4
	mov	r0, #1
	add	r1, r8, #1024
	bl	calloc
	subs	r6, r0, #0
	beq	.L4
	ldr	r3, [sp, #12]
	ldr	r0, [r3, #4]
	bl	grub_le_to_cpu32
	mov	r1, r0
	ldr	r3, [r7]
	mov	r0, r5
	lsl	r1, r1, r3
	mov	r2, r4
	mov	r3, r8
	str	r6, [sp]
	bl	grub_disk_read
	cmp	r0, #0
	bne	.L23
	mov	r2, #2
	ldr	r1, .L28+24
	ldr	r0, [r6, #4]
	bl	grub_strncmp
	cmp	r0, #0
	beq	.L26
.L1:
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	ldr	r0, [sp, #12]
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r3, .L28+28
	ldr	r1, .L28+32
	ldr	r0, [r3]
	bl	grub_error
.L4:
	ldr	r0, [sp, #12]
	bl	grub_free
	mov	r3, #0
	str	r3, [sp, #12]
	b	.L1
.L26:
	mov	r0, r6
	bl	ENTRY_DATA
	ldr	r5, [sp, #12]
	ldr	r3, [r0, #8]
	ldr	r0, [r5, #4]
	str	r3, [r5, #8]
	bl	grub_le_to_cpu32
	ldr	r2, .L28+36
	ldr	r1, [r7]
	ldr	ip, [r2]
	lsl	r1, r0, r1
	mov	r3, r8
	mov	r2, r4
	mov	r0, r5
	str	r5, [sp, #4]
	str	ip, [sp]
	bl	grub_iso9660_susp_iterate
	cmp	r0, #0
	beq	.L1
	b	.L4
.L27:
	bl	__stack_chk_fail
.L29:
	.align	2
.L28:
	.word	.LC3
	.word	GRUB_ISO9660_LOG2_BLKSZ
	.word	.LC1
	.word	GRUB_ISO9660_VOLDESC_PRIMARY
	.word	GRUB_ISO9660_VOLDESC_SUPP
	.word	GRUB_ISO9660_VOLDESC_END
	.word	.LC2
	.word	GRUB_ERR_BAD_FS
	.word	.LC0
	.word	susp_iterate
	.size	grub_iso9660_mount, .-grub_iso9660_mount
	.comm	susp_iterate,4,4
	.comm	GRUB_ISO9660_VOLDESC_SUPP,4,4
	.comm	GRUB_ISO9660_VOLDESC_PRIMARY,4,4
	.comm	GRUB_ISO9660_VOLDESC_END,4,4
	.comm	GRUB_ISO9660_LOG2_BLKSZ,4,4
	.comm	GRUB_ERR_BAD_FS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
