	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_hfs_dir_hook
_grub_hfs_dir_hook:                     ## @grub_hfs_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	%r12
	pushq	%rbx
	subq	$64, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	(%rdi), %r12
	movq	8(%rdi), %rbx
	leaq	-88(%rbp), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_grub_memset
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	leaq	-80(%rbp), %rdi
	callq	_grub_strncpy
	movb	(%r12), %al
	movq	_GRUB_HFS_FILETYPE_DIR@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	cmpb	%cl, %al
	je	LBB0_2
## %bb.1:
	movq	_GRUB_HFS_FILETYPE_FILE@GOTPCREL(%rip), %rdx
	cmpb	(%rdx), %al
	jne	LBB0_3
LBB0_2:
	xorl	%edx, %edx
	cmpb	%cl, %al
	sete	%dl
	movl	%edx, -88(%rbp)
	movl	8(%r14), %edx
	leaq	-80(%rbp), %rdi
	leaq	-88(%rbp), %rsi
	callq	*(%r14)
	movl	%eax, %r15d
LBB0_3:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_5
## %bb.4:
	movl	%r15d, %eax
	addq	$64, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GRUB_HFS_FILETYPE_DIR,1,0      ## @GRUB_HFS_FILETYPE_DIR
	.comm	_GRUB_HFS_FILETYPE_FILE,1,0     ## @GRUB_HFS_FILETYPE_FILE
	.no_dead_strip	_grub_hfs_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_hfs_dir_hook
_grub_hfs_dir_hook:                     ; @grub_hfs_dir_hook
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	ldp	x20, x21, [x0]
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_grub_memset
	ldr	x1, [x21, #8]
	ldr	w2, [x21]
	add	x0, sp, #16
	bl	_grub_strncpy
	mov	w0, #0
	ldrb	w8, [x20]
Lloh3:
	adrp	x9, _GRUB_HFS_FILETYPE_DIR@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GRUB_HFS_FILETYPE_DIR@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh5:
	adrp	x10, _GRUB_HFS_FILETYPE_FILE@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GRUB_HFS_FILETYPE_FILE@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	cmp	w8, w9
	cset	w8, eq
	str	w8, [sp, #8]
	ldr	x8, [x19]
	ldr	w2, [x19, #8]
	add	x0, sp, #16
	add	x1, sp, #8
	blr	x8
LBB0_2:
	ldur	x8, [x29, #-40]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_GRUB_HFS_FILETYPE_DIR,1,0      ; @GRUB_HFS_FILETYPE_DIR
	.comm	_GRUB_HFS_FILETYPE_FILE,1,0     ; @GRUB_HFS_FILETYPE_FILE
	.no_dead_strip	_grub_hfs_dir_hook
.subsections_via_symbols
