	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function NtfsPrepareAttributeContext
_NtfsPrepareAttributeContext:           ## @NtfsPrepareAttributeContext
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_NTFS_ATTR_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_Record@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_FIELD_OFFSET
	addq	8(%r14), %rax
	movq	_TAG_NTFS_CONTEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_FrLdrTempAlloc
	movq	%rax, %r15
	movq	%rax, %rbx
	addq	$40, %rbx
	movq	8(%r14), %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_RtlCopyMemory
	cmpq	$0, (%r14)
	je	LBB0_2
## %bb.1:
	addq	40(%r15), %rbx
	movq	%rbx, 24(%r15)
	movq	$0, 32(%r15)
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_NtfsDecodeRun
	movq	%rax, 24(%r15)
	movl	-28(%rbp), %eax
	movl	%eax, 16(%r15)
	movl	-32(%rbp), %eax
	xorl	%ecx, %ecx
	cmpl	$-1, %eax
	cmovnel	%eax, %ecx
	movl	%eax, (%r15)
	movl	%ecx, 4(%r15)
	movq	$0, 8(%r15)
LBB0_2:
	movq	%r15, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NTFS_ATTR_CONTEXT,4,2          ## @NTFS_ATTR_CONTEXT
	.comm	_Record,4,2                     ## @Record
	.comm	_TAG_NTFS_CONTEXT,4,2           ## @TAG_NTFS_CONTEXT
	.no_dead_strip	_NtfsPrepareAttributeContext
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function NtfsPrepareAttributeContext
_NtfsPrepareAttributeContext:           ; @NtfsPrepareAttributeContext
	.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	x21, x0
Lloh0:
	adrp	x8, _NTFS_ATTR_CONTEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NTFS_ATTR_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _Record@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Record@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_FIELD_OFFSET
	ldr	x8, [x21, #8]
	add	x0, x8, x0
Lloh6:
	adrp	x8, _TAG_NTFS_CONTEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TAG_NTFS_CONTEXT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_FrLdrTempAlloc
	mov	x19, x0
	add	x20, x0, #40
	ldr	x2, [x21, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_RtlCopyMemory
	ldr	x8, [x21]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #40]
	add	x0, x8, x20
	stp	x0, xzr, [x19, #24]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_NtfsDecodeRun
	str	x0, [x19, #24]
	ldr	w8, [sp, #8]
	str	w8, [x19, #16]
	ldr	w8, [sp, #12]
	cmn	w8, #1
	csel	w9, wzr, w8, eq
	stp	w8, w9, [x19]
	str	xzr, [x19, #8]
LBB0_2:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NTFS_ATTR_CONTEXT,4,2          ; @NTFS_ATTR_CONTEXT
	.comm	_Record,4,2                     ; @Record
	.comm	_TAG_NTFS_CONTEXT,4,2           ; @TAG_NTFS_CONTEXT
	.no_dead_strip	_NtfsPrepareAttributeContext
.subsections_via_symbols
