	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function grub_xfs_iterate_dir
_grub_xfs_iterate_dir:                  ## @grub_xfs_iterate_dir
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -104(%rbp)
	movq	%rdx, -88(%rbp)
	movq	%rdi, -96(%rbp)
	movl	8(%rdi), %edx
	leal	-129(%rdx), %eax
	cmpl	$2, %eax
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	jae	LBB0_1
## %bb.14:
	movq	8(%r15), %rax
	movl	4(%rax), %r14d
	addl	(%rax), %r14d
	movl	$1, %edi
	movl	%r14d, %ecx
	shll	%cl, %edi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_grub_malloc
	xorl	%r12d, %r12d
	testq	%rax, %rax
	je	LBB0_31
## %bb.15:
	movq	%rax, %rbx
	movl	(%r15), %edi
	callq	_grub_be_to_cpu64
	movl	%r14d, %ecx
	sarl	%cl, %eax
	testl	%eax, %eax
	jle	LBB0_28
## %bb.16:
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	leal	-8(%rcx), %eax
	cltq
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	leal	-16(%rcx), %r12d
	leaq	-104(%rbp), %r13
	xorl	%r8d, %r8d
	movl	%r14d, -56(%rbp)                ## 4-byte Spill
	movl	%r12d, -60(%rbp)                ## 4-byte Spill
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_17 Depth=1
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	incl	%r14d
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	movl	(%r15), %edi
	callq	_grub_be_to_cpu64
	movl	%r14d, %r8d
	movl	-56(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %ecx
	sarl	%cl, %eax
	cmpl	%eax, %r8d
	jge	LBB0_28
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_20 Depth 2
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %ecx
	shll	%cl, %r8d
	subq	$8, %rsp
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	%r15d, %r9d
	pushq	%rbx
	callq	_grub_xfs_read_file
	addq	$16, %rsp
	cmpl	%r15d, %eax
	jne	LBB0_30
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	%r13, %r12
	movq	-112(%rbp), %r13                ## 8-byte Reload
	movl	4(%rbx,%r13), %edi
	callq	_grub_be_to_cpu32
	movl	%eax, %r14d
	movl	(%rbx,%r13), %edi
	movq	%r12, %r13
	movl	-60(%rbp), %r12d                ## 4-byte Reload
	callq	_grub_be_to_cpu32
	cmpl	$33, %r15d
	jl	LBB0_27
## %bb.19:                              ##   in Loop: Header=BB0_17 Depth=1
	subl	%eax, %r14d
	movl	$16, %r15d
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_20 Depth=2
	movl	4(%rbx,%r15), %edi
	callq	_grub_be_to_cpu16
	addl	%eax, %r15d
	cmpl	%r12d, %r15d
	jge	LBB0_27
LBB0_20:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movslq	%r15d, %r15
	cmpl	$65535, (%rbx,%r15)             ## imm = 0xFFFF
	je	LBB0_21
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=2
	leaq	(%rbx,%r15), %rsi
	addq	$16, %rsi
	leaq	(%rbx,%r15), %rax
	movq	(%rbx,%r15), %rcx
	movb	$0, 16(%rcx,%rax)
	movl	8(%rbx,%r15), %edi
	movq	%r13, %rdx
	callq	_call_hook
	testl	%eax, %eax
	jne	LBB0_23
## %bb.24:                              ##   in Loop: Header=BB0_20 Depth=2
	decl	%r14d
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_20 Depth=2
	movq	(%rbx,%r15), %rsi
	movl	%r15d, %edi
	callq	_GRUB_XFS_NEXT_DIRENT
	movl	%eax, %edi
	callq	_GRUB_XFS_ROUND_TO_DIRENT
	movl	%eax, %r15d
	cmpl	%r12d, %r15d
	jl	LBB0_20
	jmp	LBB0_27
LBB0_1:
	cmpl	$128, %edx
	jne	LBB0_29
## %bb.2:
	movq	32(%r15), %rbx
	movl	28(%r15), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	20(%r15), %r14d
	jmp	LBB0_5
LBB0_29:
	movq	_GRUB_ERR_NOT_IMPLEMENTED_YET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_grub_error
	jmp	LBB0_30
LBB0_28:
	movq	%rbx, %rdi
	callq	_grub_free
LBB0_30:
	xorl	%r12d, %r12d
	jmp	LBB0_31
LBB0_23:
	movq	%rbx, %rdi
	callq	_grub_free
	movl	$1, %r12d
	jmp	LBB0_31
LBB0_3:
	movl	24(%r15), %edi
	callq	_grub_be_to_cpu32
	movl	%eax, %edi
	callq	_grub_cpu_to_be64
	movl	%eax, %r14d
	addq	$-4, %rbx
LBB0_5:
	movl	(%r15), %edi
	leaq	L_.str(%rip), %rsi
	leaq	-104(%rbp), %rdx
	callq	_call_hook
	movl	$1, %r12d
	testl	%eax, %eax
	jne	LBB0_31
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	leaq	-104(%rbp), %rdx
	movl	%r14d, %edi
	callq	_call_hook
	testl	%eax, %eax
	je	LBB0_7
LBB0_31:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.32:
	movl	%r12d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpl	$0, 16(%r15)
	jle	LBB0_30
## %bb.8:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rsp, %r13
	movq	(%rbx), %r15
	leaq	1(%r15), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movl	15(%rbx,%r15), %r15d
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%r15d, %edi
	callq	_grub_be_to_cpu32
	movl	%eax, %edi
	callq	_grub_cpu_to_be64
	movl	%eax, %r15d
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movl	8(%rbx), %esi
	movq	(%rbx), %rdx
	movq	%r12, %rdi
	callq	_grub_memcpy
	movq	(%rbx), %rax
	movb	$0, (%r12,%rax)
	movl	%r15d, %edi
	movq	%r12, %rsi
	leaq	-104(%rbp), %rdx
	callq	_call_hook
	testl	%eax, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%rbx), %rax
	addq	$16, %rbx
	addq	%rax, %rbx
	addq	$3, %rbx
	movq	%r13, %rsp
	incl	%r14d
	xorl	%r12d, %r12d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	cmpl	16(%rax), %r14d
	jl	LBB0_9
	jmp	LBB0_31
LBB0_12:
	movq	%r13, %rsp
	movl	$1, %r12d
	jmp	LBB0_31
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"."

L_.str.1:                               ## @.str.1
	.asciz	".."

	.comm	_GRUB_ERR_NOT_IMPLEMENTED_YET,4,2 ## @GRUB_ERR_NOT_IMPLEMENTED_YET
L_.str.2:                               ## @.str.2
	.asciz	"XFS does not support inode format %d yet"

	.no_dead_strip	_grub_xfs_iterate_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function grub_xfs_iterate_dir
_grub_xfs_iterate_dir:                  ; @grub_xfs_iterate_dir
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	stp	x0, x2, [x29, #-104]
	stur	x1, [x29, #-112]
	ldr	w2, [x0, #8]
	sub	w8, w2, #129
	cmp	w8, #2
	b.hs	LBB0_13
; %bb.1:
	ldr	x8, [x19, #8]
	ldp	w9, w8, [x8]
	add	w23, w8, w9
	mov	w8, #1
	lsl	w20, w8, w23
	mov	x0, x20
	bl	_grub_malloc
	cbz	x0, LBB0_24
; %bb.2:
	mov	x21, x0
	ldr	w0, [x19]
	bl	_grub_be_to_cpu64
	asr	w8, w0, w23
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.3:
	mov	w24, #0
	sub	w8, w20, #8
	add	x8, x21, w8, sxtw
	stur	x8, [x29, #-120]                ; 8-byte Folded Spill
	sub	w26, w20, #16
	mov	w27, #65535
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w24, w24, #1
	ldr	w0, [x19]
	bl	_grub_be_to_cpu64
	asr	w8, w0, w23
	cmp	w24, w8
	b.ge	LBB0_17
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
	lsl	w4, w24, w23
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	mov	x5, x20
	mov	x6, x21
	bl	_grub_xfs_read_file
	cmp	w0, w20
	b.ne	LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldur	x25, [x29, #-120]               ; 8-byte Folded Reload
	ldr	w0, [x25, #4]
	bl	_grub_be_to_cpu32
	mov	x22, x0
	ldr	w0, [x25]
	bl	_grub_be_to_cpu32
	cmp	w20, #33
	b.lt	LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w28, w22, w0
	mov	w0, #16
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	w0, [x25, #4]
	bl	_grub_be_to_cpu16
	add	w0, w0, w22
	cmp	w0, w26
	b.ge	LBB0_4
LBB0_9:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sxtw	x22, w0
	add	x25, x21, x22
	ldr	w8, [x25]
	cmp	w8, w27
	b.eq	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x1, x25
	ldr	x8, [x1], #16
	strb	wzr, [x1, x8]
	ldr	w0, [x25, #8]
	sub	x2, x29, #112
	bl	_call_hook
	cbnz	w0, LBB0_19
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	subs	w28, w28, #1
	b.eq	LBB0_4
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=2
	ldr	x1, [x25]
	mov	x0, x22
	bl	_GRUB_XFS_NEXT_DIRENT
	bl	_GRUB_XFS_ROUND_TO_DIRENT
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	w0, w26
	b.lt	LBB0_9
	b	LBB0_4
LBB0_13:
	cmp	w2, #128
	b.ne	LBB0_16
; %bb.14:
	ldr	x23, [x19, #32]
	ldr	w22, [x19, #28]
	cbz	w22, LBB0_20
; %bb.15:
	ldr	w20, [x19, #20]
	b	LBB0_21
LBB0_16:
Lloh3:
	adrp	x8, _GRUB_ERR_NOT_IMPLEMENTED_YET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GRUB_ERR_NOT_IMPLEMENTED_YET@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_grub_error
	b	LBB0_18
LBB0_17:
	mov	x0, x21
	bl	_grub_free
LBB0_18:
	mov	w0, #0
	b	LBB0_24
LBB0_19:
	mov	x0, x21
	bl	_grub_free
	b	LBB0_23
LBB0_20:
	ldr	w0, [x19, #24]
	bl	_grub_be_to_cpu32
	bl	_grub_cpu_to_be64
	mov	x20, x0
	sub	x23, x23, #4
LBB0_21:
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #112
	bl	_call_hook
	cbnz	w0, LBB0_23
; %bb.22:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #112
	mov	x0, x20
	bl	_call_hook
	cbz	w0, LBB0_26
LBB0_23:
	mov	w0, #1
LBB0_24:
	ldur	x8, [x29, #-88]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_33
; %bb.25:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_26:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.27:
	mov	w24, #0
LBB0_28:                                ; =>This Inner Loop Header: Depth=1
	mov	x25, sp
	mov	x26, x23
	ldr	x8, [x26], #16
	add	x12, x26, x8
	add	x9, x8, #1
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #16
	and	x8, x8, #0xfffffffffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldur	w21, [x12, #-1]
	cbnz	w22, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=1
	mov	x0, x21
	bl	_grub_be_to_cpu32
	bl	_grub_cpu_to_be64
	mov	x21, x0
LBB0_30:                                ;   in Loop: Header=BB0_28 Depth=1
	ldr	w1, [x23, #8]
	ldr	x2, [x23]
	mov	x0, x20
	bl	_grub_memcpy
	ldr	x8, [x23]
	strb	wzr, [x20, x8]
	sub	x2, x29, #112
	mov	x0, x21
	mov	x1, x20
	bl	_call_hook
	cbnz	w0, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_28 Depth=1
	ldr	x8, [x23]
	add	x8, x26, x8
	add	x23, x8, #3
	mov	sp, x25
	add	w24, w24, #1
	ldr	w8, [x19, #16]
	cmp	w24, w8
	b.lt	LBB0_28
	b	LBB0_24
LBB0_32:
	mov	sp, x25
	b	LBB0_23
LBB0_33:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"."

l_.str.1:                               ; @.str.1
	.asciz	".."

	.comm	_GRUB_ERR_NOT_IMPLEMENTED_YET,4,2 ; @GRUB_ERR_NOT_IMPLEMENTED_YET
l_.str.2:                               ; @.str.2
	.asciz	"XFS does not support inode format %d yet"

	.no_dead_strip	_grub_xfs_iterate_dir
.subsections_via_symbols
