	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_lock_ea
_ffs_lock_ea:                           ## @ffs_lock_ea
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_VTOI
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_VI_LOCK
	movl	(%rbx), %eax
	movq	_IN_EA_LOCKED@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	testl	%eax, %ecx
	je	LBB0_3
## %bb.1:
	movq	%rbx, %r15
	addq	$4, %r15
	leaq	L_.str(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_IN_EA_LOCKWAIT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	movq	_PINOD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	addq	$2, %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r12, %rcx
	xorl	%r8d, %r8d
	callq	_msleep
	movl	(%rbx), %eax
	movl	(%r13), %ecx
	testl	%eax, %ecx
	jne	LBB0_2
LBB0_3:
	orl	%ecx, %eax
	movl	%eax, (%rbx)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VI_UNLOCK                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IN_EA_LOCKED,4,2               ## @IN_EA_LOCKED
	.comm	_IN_EA_LOCKWAIT,4,2             ## @IN_EA_LOCKWAIT
	.comm	_PINOD,8,3                      ## @PINOD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ufs_ea"

	.no_dead_strip	_ffs_lock_ea
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_lock_ea
_ffs_lock_ea:                           ; @ffs_lock_ea
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	bl	_VTOI
	mov	x20, x0
	mov	x0, x19
	bl	_VI_LOCK
	ldr	w8, [x20]
Lloh0:
	adrp	x23, _IN_EA_LOCKED@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IN_EA_LOCKED@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	add	x21, x20, #4
Lloh2:
	adrp	x24, _IN_EA_LOCKWAIT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _IN_EA_LOCKWAIT@GOTPAGEOFF]
Lloh4:
	adrp	x25, _PINOD@GOTPAGE
Lloh5:
	ldr	x25, [x25, _PINOD@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str@PAGE
Lloh7:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x25]
	add	x2, x8, #2
	mov	x0, x21
	mov	x1, x19
	mov	x3, x22
	mov	w4, #0
	bl	_msleep
	ldr	w8, [x20]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_2
LBB0_3:
	orr	w8, w9, w8
	str	w8, [x20]
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_VI_UNLOCK
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_IN_EA_LOCKED,4,2               ; @IN_EA_LOCKED
	.comm	_IN_EA_LOCKWAIT,4,2             ; @IN_EA_LOCKWAIT
	.comm	_PINOD,8,3                      ; @PINOD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ufs_ea"

	.no_dead_strip	_ffs_lock_ea
.subsections_via_symbols
