	.file	"extr_hfs.c_grub_hfs_dir.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"not a directory"
	.text
	.p2align 4
	.type	grub_hfs_dir, @function
grub_hfs_dir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	pxor	xmm0, xmm0
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 72
	.cfi_def_cfa_offset 112
	mov	edi, DWORD PTR my_mod[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 16[rsp], xmm0
	call	grub_dl_ref@PLT
	mov	edi, DWORD PTR 0[rbp]
	call	grub_hfs_mount@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L3
	lea	rcx, 12[rsp]
	lea	rdx, 16[rsp]
	mov	rsi, r12
	mov	rdi, rax
	call	grub_hfs_find_dir@PLT
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR GRUB_HFS_FILETYPE_DIR[rip]
	cmp	QWORD PTR 16[rsp], rax
	je	.L5
	mov	edi, DWORD PTR GRUB_ERR_BAD_FILE_TYPE[rip]
	lea	rsi, .LC0[rip]
	call	grub_error@PLT
.L3:
	mov	rdi, rbp
	call	grub_free@PLT
	mov	edi, DWORD PTR my_mod[rip]
	call	grub_dl_unref@PLT
	mov	eax, DWORD PTR grub_errno[rip]
	mov	rbx, QWORD PTR 56[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edx, DWORD PTR 12[rsp]
	mov	esi, DWORD PTR 0[rbp]
	lea	r8, 32[rsp]
	mov	rdi, rbp
	mov	ecx, DWORD PTR grub_hfs_dir_hook[rip]
	mov	QWORD PTR 32[rsp], rbx
	mov	QWORD PTR 40[rsp], r13
	call	grub_hfs_iterate_dir@PLT
	jmp	.L3
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	grub_hfs_dir, .-grub_hfs_dir
	.comm	my_mod,4,4
	.comm	grub_hfs_dir_hook,4,4
	.comm	grub_errno,4,4
	.comm	GRUB_HFS_FILETYPE_DIR,8,8
	.comm	GRUB_ERR_BAD_FILE_TYPE,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_hfs.c_grub_hfs_dir.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"not a directory\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	grub_hfs_dir, %function
grub_hfs_dir:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	ip, #0
	mov	r4, r0
	ldr	r6, .L10
	mov	r8, r3
	ldr	r3, .L10+4
	sub	sp, sp, #32
	ldr	r0, [r6]
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	mov	r5, r1
	mov	r7, r2
	str	ip, [sp, #12]
	str	ip, [sp, #16]
	bl	grub_dl_ref
	ldr	r0, [r4]
	bl	grub_hfs_mount
	subs	r4, r0, #0
	beq	.L3
	mov	r1, r5
	add	r2, sp, #12
	add	r3, sp, #8
	bl	grub_hfs_find_dir
	cmp	r0, #0
	bne	.L3
	ldr	r3, .L10+8
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	ldr	r3, .L10+12
	ldr	r1, .L10+16
	ldr	r0, [r3]
	bl	grub_error
.L3:
	mov	r0, r4
	bl	grub_free
	ldr	r0, [r6]
	bl	grub_dl_unref
	ldr	r3, .L10+20
	ldr	r0, [r3]
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L10+24
	add	r2, sp, #20
	ldr	r1, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	str	r2, [sp]
	ldr	r2, [sp, #8]
	str	r7, [sp, #20]
	str	r8, [sp, #24]
	bl	grub_hfs_iterate_dir
	b	.L3
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	my_mod
	.word	.LC1
	.word	GRUB_HFS_FILETYPE_DIR
	.word	GRUB_ERR_BAD_FILE_TYPE
	.word	.LC0
	.word	grub_errno
	.word	grub_hfs_dir_hook
	.size	grub_hfs_dir, .-grub_hfs_dir
	.comm	my_mod,4,4
	.comm	grub_hfs_dir_hook,4,4
	.comm	grub_errno,4,4
	.comm	GRUB_HFS_FILETYPE_DIR,4,4
	.comm	GRUB_ERR_BAD_FILE_TYPE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
