	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_fat_find_dir_hook
_grub_fat_find_dir_hook:                ## @grub_fat_find_dir_hook
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-48(%rbp), %rdi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_grub_memset
	movl	(%rbx), %eax
	movq	_GRUB_FAT_ATTR_DIRECTORY@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	setne	%dl
	movl	%edx, -48(%rbp)
	movl	$1, -44(%rbp)
	movq	_GRUB_FAT_ATTR_VOLUME_ID@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_7
## %bb.1:
	movq	(%r15), %rdi
	cmpb	$0, (%rdi)
	je	LBB0_2
LBB0_4:
	movq	%r14, %rsi
	callq	_grub_strcasecmp
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	32(%r15), %r13
	movl	$1, 16(%r15)
	movl	(%rbx), %eax
	movl	%eax, (%r13)
	movl	12(%rbx), %edi
	callq	_grub_le_to_cpu32
	movl	%eax, 12(%r13)
	movl	8(%rbx), %edi
	callq	_grub_le_to_cpu16
	movl	%eax, %r12d
	shll	$16, %r12d
	movl	4(%rbx), %edi
	callq	_grub_le_to_cpu16
	orl	%r12d, %eax
	movl	%eax, 4(%r13)
	movl	$-1, 8(%r13)
	movl	$1, %r12d
	cmpq	$0, 24(%r15)
	je	LBB0_7
## %bb.6:
	movl	20(%r15), %edx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	*8(%r15)
	jmp	LBB0_7
LBB0_2:
	cmpq	$0, 24(%r15)
	je	LBB0_4
## %bb.3:
	movl	20(%r15), %edx
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	*8(%r15)
	movl	%eax, %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_FAT_ATTR_DIRECTORY,4,2    ## @GRUB_FAT_ATTR_DIRECTORY
	.comm	_GRUB_FAT_ATTR_VOLUME_ID,4,2    ## @GRUB_FAT_ATTR_VOLUME_ID
	.no_dead_strip	_grub_fat_find_dir_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_fat_find_dir_hook
_grub_fat_find_dir_hook:                ; @grub_fat_find_dir_hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #8
	bl	_grub_memset
	mov	w22, #0
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _GRUB_FAT_ATTR_DIRECTORY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GRUB_FAT_ATTR_DIRECTORY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w9, ne
	mov	w10, #1
	stp	w9, w10, [sp, #8]
Lloh3:
	adrp	x9, _GRUB_FAT_ATTR_VOLUME_ID@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRUB_FAT_ATTR_VOLUME_ID@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_8
; %bb.1:
	ldr	x0, [x20]
	ldrb	w8, [x0]
	cbz	w8, LBB0_4
LBB0_2:
	mov	x1, x19
	bl	_grub_strcasecmp
	cbz	x0, LBB0_6
; %bb.3:
	mov	w22, #0
	b	LBB0_8
LBB0_4:
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_2
; %bb.5:
	ldr	x8, [x20, #8]
	ldr	w2, [x20, #20]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	mov	x22, x0
	b	LBB0_8
LBB0_6:
	ldr	x24, [x20, #32]
	mov	w22, #1
	str	w22, [x20, #16]
	ldr	w8, [x21]
	str	w8, [x24]
	ldr	w0, [x21, #12]
	bl	_grub_le_to_cpu32
	str	w0, [x24, #12]
	ldr	w0, [x21, #8]
	bl	_grub_le_to_cpu16
	mov	x23, x0
	ldr	w0, [x21, #4]
	bl	_grub_le_to_cpu16
	orr	w8, w0, w23, lsl #16
	mov	w9, #-1
	stp	w8, w9, [x24, #4]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	w2, [x20, #20]
	add	x1, sp, #8
	mov	x0, x19
	blr	x8
	mov	w22, #1
LBB0_8:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_FAT_ATTR_DIRECTORY,4,2    ; @GRUB_FAT_ATTR_DIRECTORY
	.comm	_GRUB_FAT_ATTR_VOLUME_ID,4,2    ; @GRUB_FAT_ATTR_VOLUME_ID
	.no_dead_strip	_grub_fat_find_dir_hook
.subsections_via_symbols
