	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_snapdata_alloc
_ffs_snapdata_alloc:                    ## @ffs_snapdata_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_snapfree_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_snapfree@GOTPCREL(%rip), %rdi
	callq	_LIST_FIRST
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	_sn_link@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_LIST_REMOVE
	movq	_snapfree_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	jmp	LBB0_3
LBB0_2:
	movq	_snapfree_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_M_UFSMNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_M_WAITOK@GOTPCREL(%rip), %rax
	movq	_M_ZERO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	$8, %edi
	callq	_malloc
	movq	%rax, %rbx
	leaq	4(%rax), %rdi
	callq	_TAILQ_INIT
	movq	_PVFS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_VLKTIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LK_CANRECURSE@GOTPCREL(%rip), %rax
	movq	_LK_NOSHARE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %r8d
	orl	(%rax), %r8d
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_lockinit
LBB0_3:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_snapfree_lock,4,2              ## @snapfree_lock
	.comm	_snapfree,4,2                   ## @snapfree
	.comm	_sn_link,4,2                    ## @sn_link
	.comm	_M_UFSMNT,4,2                   ## @M_UFSMNT
	.comm	_M_WAITOK,4,2                   ## @M_WAITOK
	.comm	_M_ZERO,4,2                     ## @M_ZERO
	.comm	_PVFS,4,2                       ## @PVFS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snaplk"

	.comm	_VLKTIMEOUT,4,2                 ## @VLKTIMEOUT
	.comm	_LK_CANRECURSE,4,2              ## @LK_CANRECURSE
	.comm	_LK_NOSHARE,4,2                 ## @LK_NOSHARE
	.no_dead_strip	_ffs_snapdata_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_snapdata_alloc
_ffs_snapdata_alloc:                    ; @ffs_snapdata_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, _snapfree_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _snapfree_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh2:
	adrp	x0, _snapfree@GOTPAGE
Lloh3:
	ldr	x0, [x0, _snapfree@GOTPAGEOFF]
	bl	_LIST_FIRST
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh4:
	adrp	x8, _sn_link@GOTPAGE
Lloh5:
	ldr	x8, [x8, _sn_link@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_LIST_REMOVE
Lloh7:
	adrp	x0, _snapfree_lock@GOTPAGE
Lloh8:
	ldr	x0, [x0, _snapfree_lock@GOTPAGEOFF]
	bl	_mtx_unlock
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x0, _snapfree_lock@GOTPAGE
Lloh10:
	ldr	x0, [x0, _snapfree_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh11:
	adrp	x8, _M_UFSMNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _M_UFSMNT@GOTPAGEOFF]
Lloh13:
	adrp	x9, _M_WAITOK@GOTPAGE
Lloh14:
	ldr	x9, [x9, _M_WAITOK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	ldr	w8, [x9]
Lloh17:
	adrp	x9, _M_ZERO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _M_ZERO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	w0, #8
	bl	_malloc
	mov	x19, x0
	add	x0, x0, #4
	bl	_TAILQ_INIT
Lloh20:
	adrp	x8, _PVFS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _PVFS@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x8, _VLKTIMEOUT@GOTPAGE
Lloh24:
	ldr	x8, [x8, _VLKTIMEOUT@GOTPAGEOFF]
Lloh25:
	adrp	x9, _LK_CANRECURSE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _LK_CANRECURSE@GOTPAGEOFF]
Lloh27:
	ldr	w3, [x8]
Lloh28:
	ldr	w8, [x9]
Lloh29:
	adrp	x9, _LK_NOSHARE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _LK_NOSHARE@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	orr	w4, w9, w8
Lloh32:
	adrp	x2, l_.str@PAGE
Lloh33:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_lockinit
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh27
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh15
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_snapfree_lock,4,2              ; @snapfree_lock
	.comm	_snapfree,4,2                   ; @snapfree
	.comm	_sn_link,4,2                    ; @sn_link
	.comm	_M_UFSMNT,4,2                   ; @M_UFSMNT
	.comm	_M_WAITOK,4,2                   ; @M_WAITOK
	.comm	_M_ZERO,4,2                     ; @M_ZERO
	.comm	_PVFS,4,2                       ; @PVFS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snaplk"

	.comm	_VLKTIMEOUT,4,2                 ; @VLKTIMEOUT
	.comm	_LK_CANRECURSE,4,2              ; @LK_CANRECURSE
	.comm	_LK_NOSHARE,4,2                 ; @LK_NOSHARE
	.no_dead_strip	_ffs_snapdata_alloc
.subsections_via_symbols
