	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BtrFsOpen                      ## -- Begin function BtrFsOpen
	.p2align	4, 0x90
_BtrFsOpen:                             ## @BtrFsOpen
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_OpenReadOnly@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_BtrFsInfo@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movl	(%rdi), %esi
	leaq	-36(%rbp), %r8
	leaq	-56(%rbp), %rcx
	movq	%r12, %rdx
	movl	$40, %r9d
	callq	_btrfs_lookup_path
	movl	%eax, %r15d
	movq	_INVALID_INODE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_ENOENT@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_1:
	movq	_EACCES@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-56(%rbp), %rax
	movq	_BTRFS_FT_REG_FILE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movl	-36(%rbp), %edx
	leaq	L_.str.3(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movl	%r15d, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	_TAG_BTRFS_FILE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$16, %edi
	callq	_FrLdrTempAlloc
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movl	$16, %edx
	callq	_memcpy
	movl	(%r14), %edi
	movl	%ebx, %esi
	callq	_FsSetDeviceSpecific
	movq	_ESUCCESS@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	movl	%r12d, %esi
	xorl	%eax, %eax
	callq	_TRACE
	movq	_EISDIR@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BtrFsOpen %s\n"

	.comm	_OpenReadOnly,8,3               ## @OpenReadOnly
	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_BtrFsInfo,8,3                  ## @BtrFsInfo
	.comm	_INVALID_INODE,4,2              ## @INVALID_INODE
L_.str.1:                               ## @.str.1
	.asciz	"Cannot lookup file %s\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_BTRFS_FT_REG_FILE,8,3          ## @BTRFS_FT_REG_FILE
L_.str.2:                               ## @.str.2
	.asciz	"Not a regular file: %s\n"

	.comm	_EISDIR,4,2                     ## @EISDIR
L_.str.3:                               ## @.str.3
	.asciz	"found inode inr=%llu size=%llu\n"

	.comm	_TAG_BTRFS_FILE,4,2             ## @TAG_BTRFS_FILE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ESUCCESS,4,2                   ## @ESUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BtrFsOpen                      ; -- Begin function BtrFsOpen
	.p2align	2
_BtrFsOpen:                             ; @BtrFsOpen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh2:
	adrp	x8, _OpenReadOnly@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OpenReadOnly@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _BtrFsInfo@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BtrFsInfo@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	ldr	w1, [x0]
	add	x8, sp, #8
	add	x4, x8, #12
	add	x3, sp, #24
	mov	x2, x20
	mov	w5, #40
	bl	_btrfs_lookup_path
Lloh8:
	adrp	x8, _INVALID_INODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _INVALID_INODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.2:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
Lloh15:
	adrp	x8, _EACCES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
LBB0_4:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
LBB0_5:
	ldr	x8, [sp, #24]
Lloh17:
	adrp	x9, _BTRFS_FT_REG_FILE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BTRFS_FT_REG_FILE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	mov	x21, x0
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	str	w21, [sp, #16]
	str	xzr, [sp, #8]
Lloh22:
	adrp	x8, _TAG_BTRFS_FILE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TAG_BTRFS_FILE@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	w0, #16
	bl	_FrLdrTempAlloc
	cbz	w0, LBB0_9
; %bb.7:
	mov	x20, x0
	add	x1, sp, #8
	mov	w2, #16
	bl	_memcpy
	ldr	w0, [x19]
	mov	x1, x20
	bl	_FsSetDeviceSpecific
Lloh25:
	adrp	x8, _ESUCCESS@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ESUCCESS@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
Lloh27:
	adrp	x0, l_.str.2@PAGE
Lloh28:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_TRACE
Lloh29:
	adrp	x8, _EISDIR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EISDIR@GOTPAGEOFF]
	b	LBB0_4
LBB0_9:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BtrFsOpen %s\n"

	.comm	_OpenReadOnly,8,3               ; @OpenReadOnly
	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_BtrFsInfo,8,3                  ; @BtrFsInfo
	.comm	_INVALID_INODE,4,2              ; @INVALID_INODE
l_.str.1:                               ; @.str.1
	.asciz	"Cannot lookup file %s\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_BTRFS_FT_REG_FILE,8,3          ; @BTRFS_FT_REG_FILE
l_.str.2:                               ; @.str.2
	.asciz	"Not a regular file: %s\n"

	.comm	_EISDIR,4,2                     ; @EISDIR
l_.str.3:                               ; @.str.3
	.asciz	"found inode inr=%llu size=%llu\n"

	.comm	_TAG_BTRFS_FILE,4,2             ; @TAG_BTRFS_FILE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ESUCCESS,4,2                   ; @ESUCCESS
.subsections_via_symbols
