	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ffs_close_ea
_ffs_close_ea:                          ## @ffs_close_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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_VTOI
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_ffs_lock_ea
	cmpq	$0, 24(%r13)
	je	LBB0_1
## %bb.2:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%r13), %ebx
	testl	%r12d, %r12d
	je	LBB0_9
## %bb.3:
	testl	%ebx, %ebx
	jne	LBB0_9
## %bb.4:
	movq	32(%r13), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_ASSERT_VOP_ELOCKED
	movq	_NOCRED@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	(%r14), %rax
	movq	(%rax), %r15
LBB0_6:
	movq	24(%r13), %rax
	movq	%rax, -56(%rbp)
	movq	8(%r13), %rax
	movq	%rax, -64(%rbp)
	leaq	-64(%rbp), %rcx
	movq	%rcx, -72(%rbp)
	movl	$1, -112(%rbp)
	movq	$0, -80(%rbp)
	movq	%rax, -104(%rbp)
	movq	_UIO_SYSSPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -84(%rbp)
	movq	_UIO_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -88(%rbp)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, -96(%rbp)
	cmpq	(%rbx), %rax
	jge	LBB0_8
## %bb.7:
	movq	_IO_EXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%r15, %rcx
	callq	_ffs_truncate
LBB0_8:
	movq	_IO_EXT@GOTPCREL(%rip), %rax
	movq	_IO_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-112(%rbp), %rsi
	movq	%r14, %rdi
	movq	%r15, %rcx
	callq	_ffs_extwrite
	movl	%eax, %ebx
LBB0_9:
	decq	16(%r13)
	jne	LBB0_11
## %bb.10:
	movq	24(%r13), %rdi
	movq	_M_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_free
	movq	$0, 24(%r13)
	movq	$0, 8(%r13)
	movl	$0, (%r13)
LBB0_11:
	movq	%r14, %rdi
	callq	_ffs_unlock_ea
	jmp	LBB0_12
LBB0_1:
	movq	%r14, %rdi
	callq	_ffs_unlock_ea
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ffs_close_ea commit"

	.comm	_NOCRED,8,3                     ## @NOCRED
	.comm	_UIO_SYSSPACE,4,2               ## @UIO_SYSSPACE
	.comm	_UIO_WRITE,4,2                  ## @UIO_WRITE
	.comm	_IO_EXT,4,2                     ## @IO_EXT
	.comm	_IO_SYNC,4,2                    ## @IO_SYNC
	.comm	_M_TEMP,4,2                     ## @M_TEMP
	.no_dead_strip	_ffs_close_ea
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ffs_close_ea
_ffs_close_ea:                          ; @ffs_close_ea
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x22, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	bl	_VTOI
	mov	x20, x0
	mov	x0, x19
	bl	_ffs_lock_ea
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_11
; %bb.1:
	ldr	w23, [x20]
	cbz	w24, LBB0_8
; %bb.2:
	cbnz	w23, LBB0_8
; %bb.3:
	ldr	x23, [x20, #32]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ASSERT_VOP_ELOCKED
Lloh2:
	adrp	x8, _NOCRED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NOCRED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_5
; %bb.4:
	ldr	x8, [x19]
	ldr	x21, [x8]
LBB0_5:
	ldr	x8, [x20, #24]
	str	x8, [sp, #8]
	ldr	x8, [x20, #8]
	str	x8, [sp]
	mov	x9, sp
	mov	w10, #1
	str	w10, [sp, #16]
	stp	xzr, x9, [sp, #48]
Lloh5:
	adrp	x9, _UIO_SYSSPACE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _UIO_SYSSPACE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _UIO_WRITE@GOTPAGE
Lloh9:
	ldr	x10, [x10, _UIO_WRITE@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	stp	w10, w9, [sp, #40]
	stp	x8, x22, [sp, #24]
	ldr	x9, [x23]
Lloh11:
	adrp	x22, _IO_EXT@GOTPAGE
Lloh12:
	ldr	x22, [x22, _IO_EXT@GOTPAGEOFF]
	cmp	x8, x9
	b.ge	LBB0_7
; %bb.6:
	ldr	w2, [x22]
	mov	x0, x19
	mov	w1, #0
	mov	x3, x21
	bl	_ffs_truncate
LBB0_7:
	ldr	w8, [x22]
Lloh13:
	adrp	x9, _IO_SYNC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _IO_SYNC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w2, w9, w8
	add	x1, sp, #16
	mov	x0, x19
	mov	x3, x21
	bl	_ffs_extwrite
	mov	x23, x0
LBB0_8:
	ldr	x8, [x20, #16]
	subs	x8, x8, #1
	str	x8, [x20, #16]
	b.ne	LBB0_10
; %bb.9:
	ldr	x0, [x20, #24]
Lloh16:
	adrp	x8, _M_TEMP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M_TEMP@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	bl	_free
	str	xzr, [x20, #24]
	str	xzr, [x20, #8]
	str	wzr, [x20]
LBB0_10:
	mov	x0, x19
	bl	_ffs_unlock_ea
	b	LBB0_12
LBB0_11:
	mov	x0, x19
	bl	_ffs_unlock_ea
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ffs_close_ea commit"

	.comm	_NOCRED,8,3                     ; @NOCRED
	.comm	_UIO_SYSSPACE,4,2               ; @UIO_SYSSPACE
	.comm	_UIO_WRITE,4,2                  ; @UIO_WRITE
	.comm	_IO_EXT,4,2                     ; @IO_EXT
	.comm	_IO_SYNC,4,2                    ; @IO_SYNC
	.comm	_M_TEMP,4,2                     ; @M_TEMP
	.no_dead_strip	_ffs_close_ea
.subsections_via_symbols
