	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_ntfs_read_run_list        ## -- Begin function grub_ntfs_read_run_list
	.p2align	4, 0x90
_grub_ntfs_read_run_list:               ## @grub_ntfs_read_run_list
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	movb	(%rbx), %al
	movl	%eax, %ecx
	andb	$15, %cl
	je	LBB0_1
LBB0_11:
	movzbl	%cl, %esi
	shrb	$4, %al
	movzbl	%al, %r15d
	incq	%rbx
	leaq	-40(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	callq	_read_run_data
	movl	20(%r14), %ecx
	movl	%ecx, 24(%r14)
	addl	-40(%rbp), %ecx
	movl	%ecx, 20(%r14)
	movq	%rax, %rdi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movl	$1, %ecx
	callq	_read_run_data
	movq	-40(%rbp), %rdx
	addq	%rdx, 8(%r14)
	movq	_RF_BLNK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.13:
	notl	%ecx
	andl	%ecx, 16(%r14)
	jmp	LBB0_14
LBB0_1:
	movq	_AF_ALST@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	testl	%eax, (%rdi)
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	32(%r14), %rax
	movq	(%rax), %r12
	movq	$0, (%rax)
	movq	8(%rdi), %rax
	movzbl	(%rax), %esi
	callq	_find_attr
	movq	%rax, %rbx
	movq	32(%r14), %rax
	movq	%r12, (%rax)
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, 8(%rbx)
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movl	$32, %esi
	callq	_u16at
	movslq	%eax, %rdx
	movq	$0, 8(%r14)
	movzbl	(%rbx,%rdx), %eax
	movl	%eax, %ecx
	andb	$15, %cl
	je	LBB0_2
## %bb.10:
	addq	%rdx, %rbx
	jmp	LBB0_11
LBB0_12:
	orl	%ecx, 16(%r14)
LBB0_14:
	movq	%rax, (%r14)
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_7
LBB0_6:
	movq	_GRUB_ERR_BAD_FS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_grub_error                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AF_ALST,4,2                    ## @AF_ALST
	.comm	_GRUB_ERR_BAD_FS,4,2            ## @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"$DATA should be non-resident"

L_.str.1:                               ## @.str.1
	.asciz	"run list overflown"

	.comm	_RF_BLNK,4,2                    ## @RF_BLNK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_grub_ntfs_read_run_list        ; -- Begin function grub_ntfs_read_run_list
	.p2align	2
_grub_ntfs_read_run_list:               ; @grub_ntfs_read_run_list
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	ldr	x9, [x0]
	ldrb	w8, [x9]
	ands	w1, w8, #0xf
	b.eq	LBB0_3
LBB0_1:
	lsr	w20, w8, #4
	add	x0, x9, #1
	add	x2, sp, #8
	mov	w3, #0
	bl	_read_run_data
	ldr	w8, [x19, #20]
	ldr	w9, [sp, #8]
	add	w9, w8, w9
	stp	w9, w8, [x19, #20]
	add	x2, sp, #8
	mov	x1, x20
	mov	w3, #1
	bl	_read_run_data
	ldr	x9, [sp, #8]
	ldr	x8, [x19, #8]
	add	x8, x8, x9
	str	x8, [x19, #8]
Lloh0:
	adrp	x8, _RF_BLNK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF_BLNK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	x9, LBB0_10
; %bb.2:
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
	b	LBB0_11
LBB0_3:
Lloh3:
	adrp	x21, _AF_ALST@GOTPAGE
Lloh4:
	ldr	x21, [x21, _AF_ALST@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #40]
	cbz	x0, LBB0_12
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x0]
	ldr	w9, [x21]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #32]
	ldr	x22, [x8]
	str	xzr, [x8]
	ldr	x8, [x0, #8]
	ldrb	w1, [x8]
	bl	_find_attr
	ldr	x8, [x19, #32]
	str	x22, [x8]
	cbz	x0, LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x20, x0
	ldrb	w8, [x0, #8]
	cbz	w8, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #32
	bl	_u16at
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x9, w0
	str	xzr, [x19, #8]
	ldrb	w8, [x20, x9]
	ands	w1, w8, #0xf
	b.eq	LBB0_4
; %bb.9:
	add	x9, x20, x9
	b	LBB0_1
LBB0_10:
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
LBB0_11:
	str	w8, [x19, #16]
	str	x0, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
Lloh5:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_13:
Lloh10:
	adrp	x8, _GRUB_ERR_BAD_FS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GRUB_ERR_BAD_FS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
LBB0_14:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_grub_error
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_AF_ALST,4,2                    ; @AF_ALST
	.comm	_GRUB_ERR_BAD_FS,4,2            ; @GRUB_ERR_BAD_FS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"$DATA should be non-resident"

l_.str.1:                               ; @.str.1
	.asciz	"run list overflown"

	.comm	_RF_BLNK,4,2                    ; @RF_BLNK
.subsections_via_symbols
