	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ufs_gjournal_modref
_ufs_gjournal_modref:                   ## @ufs_gjournal_modref
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	callq	_VTOI
	movq	%rax, %r14
	movl	16(%rbx), %edi
	callq	_VFSTOUFS
	movq	%rax, %r15
	movq	(%rax), %r13
	movq	8(%rax), %rbx
	movq	(%r14), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_ino_to_cg
	movl	%eax, %r12d
	movq	(%r13), %rcx
	movq	_VREG@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_6
## %bb.1:
	movl	16(%r13), %edi
	callq	_VFSTOUFS
	movq	(%rax), %rax
	jmp	LBB0_2
LBB0_6:
	movq	_VCHR@GOTPCREL(%rip), %rdx
	movq	%r13, %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_7
LBB0_2:
	movl	4(%rbx), %ecx
	imull	(%rbx), %ecx
	cmpl	%r14d, %ecx
	jg	LBB0_4
## %bb.3:
	movq	8(%rax), %rdi
	callq	_devtoname
	movl	16(%rbx), %ecx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	callq	_panic
LBB0_4:
	leaq	-56(%rbp), %r8
	leaq	-64(%rbp), %r9
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	xorl	%ecx, %ecx
	callq	_ffs_getcg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movq	-64(%rbp), %rax
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	addl	%r14d, (%rax)
	movq	%r15, %rdi
	callq	_UFS_LOCK
	addl	%r14d, 8(%rbx)
	movl	$1, 12(%rbx)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_ACTIVECLEAR
	movq	%r15, %rdi
	callq	_UFS_UNLOCK
	movq	-56(%rbp), %rdi
	callq	_bdwrite
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movq	_EIO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VREG,8,3                       ## @VREG
	.comm	_VCHR,8,3                       ## @VCHR
	.comm	_EIO,4,2                        ## @EIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ufs_gjournal_modref: range: dev = %s, ino = %lu, fs = %s"

	.no_dead_strip	_ufs_gjournal_modref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ufs_gjournal_modref
_ufs_gjournal_modref:                   ; @ufs_gjournal_modref
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_VTOI
	mov	x22, x0
	ldr	w0, [x20, #16]
	bl	_VFSTOUFS
	mov	x20, x0
	ldp	x23, x21, [x0]
	ldr	x24, [x22]
	mov	x0, x21
	mov	x1, x24
	bl	_ino_to_cg
	mov	x22, x0
	ldr	x9, [x23]
Lloh0:
	adrp	x8, _VREG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VREG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x23, #16]
	bl	_VFSTOUFS
	ldr	x8, [x0]
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _VCHR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VCHR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x8]
	mov	x8, x23
	cmp	x9, x10
	b.ne	LBB0_7
LBB0_3:
	ldp	w9, w10, [x21]
	mul	w9, w10, w9
	cmp	w9, w24
	b.gt	LBB0_5
; %bb.4:
	ldr	x0, [x8, #8]
	bl	_devtoname
	mov	x1, x0
	ldr	w3, [x21, #16]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x24
	bl	_panic
LBB0_5:
	mov	x4, sp
	add	x5, sp, #8
	mov	x0, x21
	mov	x1, x23
	mov	x2, x22
	mov	w3, #0
	bl	_ffs_getcg
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	x8, [sp, #8]
	ldr	w9, [x8]
	add	w9, w9, w19
	str	w9, [x8]
	mov	x0, x20
	bl	_UFS_LOCK
	ldr	w8, [x21, #8]
	add	w8, w8, w19
	mov	w9, #1
	stp	w8, w9, [x21, #8]
	mov	x0, x21
	mov	x1, x22
	bl	_ACTIVECLEAR
	mov	x0, x20
	bl	_UFS_UNLOCK
	ldr	x0, [sp]
	bl	_bdwrite
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VREG,8,3                       ; @VREG
	.comm	_VCHR,8,3                       ; @VCHR
	.comm	_EIO,4,2                        ; @EIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ufs_gjournal_modref: range: dev = %s, ino = %lu, fs = %s"

	.no_dead_strip	_ufs_gjournal_modref
.subsections_via_symbols
