	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnextinode                   ## -- Begin function getnextinode
	.p2align	4, 0x90
_getnextinode:                          ## @getnextinode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_nextino@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	leal	1(%rcx), %edx
	movl	%edx, (%rax)
	cmpq	%rdi, %rcx
	jne	LBB0_2
## %bb.1:
	movq	_lastvalidinum@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jge	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%ebx, %edx
	callq	_errx
LBB0_3:
	movq	_lastinum@GOTPCREL(%rip), %r14
	movq	(%r14), %rsi
	cmpq	%rbx, %rsi
	jle	LBB0_5
## %bb.4:
	leaq	_getnextinode.nextinop(%rip), %rbx
	jmp	LBB0_6
LBB0_5:
	movq	_readcnt@GOTPCREL(%rip), %r15
	incl	(%r15)
	movq	_sblock@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_ino_to_fsba
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_fsbtodb
	movl	%eax, %edi
	movl	(%r15), %eax
	movq	_readpercg@GOTPCREL(%rip), %rcx
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	movq	_fullcnt@GOTPCREL(%rip), %rax
	cmoveq	_partialcnt@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_inobufsize@GOTPCREL(%rip), %rcx
	cmoveq	_partialsize@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	addq	%rax, (%r14)
	movq	_inodebuf@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	callq	_blkread
LBB0_6:
	movq	(%rbx), %rax
	leaq	4(%rax), %rcx
	movq	%rcx, _getnextinode.nextinop(%rip)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_getnextinode.nextinop,8,3 ## @getnextinode.nextinop
	.comm	_nextino,4,2                    ## @nextino
	.comm	_lastvalidinum,8,3              ## @lastvalidinum
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad inode number %ju to nextinode"

	.comm	_lastinum,8,3                   ## @lastinum
	.comm	_readcnt,4,2                    ## @readcnt
	.comm	_sblock,8,3                     ## @sblock
	.comm	_readpercg,4,2                  ## @readpercg
	.comm	_partialsize,8,3                ## @partialsize
	.comm	_partialcnt,8,3                 ## @partialcnt
	.comm	_inobufsize,8,3                 ## @inobufsize
	.comm	_fullcnt,8,3                    ## @fullcnt
	.comm	_inodebuf,8,3                   ## @inodebuf
	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getnextinode                   ; -- Begin function getnextinode
	.p2align	2
_getnextinode:                          ; @getnextinode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x8, _nextino@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nextino@GOTPAGEOFF]
	ldrsw	x9, [x8]
	add	w10, w9, #1
	str	w10, [x8]
Lloh2:
	adrp	x8, _lastvalidinum@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lastvalidinum@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x9, x0
	ccmp	x8, x0, #8, eq
	b.ge	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x19
	bl	_errx
LBB0_2:
Lloh7:
	adrp	x20, _lastinum@GOTPAGE
Lloh8:
	ldr	x20, [x20, _lastinum@GOTPAGEOFF]
	ldr	x1, [x20]
	cmp	x1, x19
	b.le	LBB0_4
; %bb.3:
Lloh9:
	adrp	x19, _getnextinode.nextinop@PAGE
Lloh10:
	add	x19, x19, _getnextinode.nextinop@PAGEOFF
	b	LBB0_5
LBB0_4:
Lloh11:
	adrp	x21, _readcnt@GOTPAGE
Lloh12:
	ldr	x21, [x21, _readcnt@GOTPAGEOFF]
	ldr	w8, [x21]
	add	w8, w8, #1
	str	w8, [x21]
Lloh13:
	adrp	x19, _sblock@GOTPAGE
Lloh14:
	ldr	x19, [x19, _sblock@GOTPAGEOFF]
	mov	x0, x19
	bl	_ino_to_fsba
	mov	x1, x0
	mov	x0, x19
	bl	_fsbtodb
	ldr	w8, [x21]
Lloh15:
	adrp	x9, _readpercg@GOTPAGE
Lloh16:
	ldr	x9, [x9, _readpercg@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	sdiv	w10, w8, w9
Lloh18:
	adrp	x11, _partialcnt@GOTPAGE
Lloh19:
	ldr	x11, [x11, _partialcnt@GOTPAGEOFF]
	msub	w8, w10, w9, w8
Lloh20:
	adrp	x9, _fullcnt@GOTPAGE
Lloh21:
	ldr	x9, [x9, _fullcnt@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x11, x9, eq
	ldr	x8, [x8]
	ldr	x9, [x20]
	add	x8, x9, x8
Lloh22:
	adrp	x9, _partialsize@GOTPAGE
Lloh23:
	ldr	x9, [x9, _partialsize@GOTPAGEOFF]
Lloh24:
	adrp	x10, _inobufsize@GOTPAGE
Lloh25:
	ldr	x10, [x10, _inobufsize@GOTPAGEOFF]
	csel	x9, x9, x10, eq
	ldr	x2, [x9]
	str	x8, [x20]
Lloh26:
	adrp	x19, _inodebuf@GOTPAGE
Lloh27:
	ldr	x19, [x19, _inodebuf@GOTPAGEOFF]
	ldr	x1, [x19]
	bl	_blkread
LBB0_5:
	ldr	x0, [x19]
	add	x8, x0, #4
	adrp	x9, _getnextinode.nextinop@PAGE
	str	x8, [x9, _getnextinode.nextinop@PAGEOFF]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_getnextinode.nextinop,8,3 ; @getnextinode.nextinop
	.comm	_nextino,4,2                    ; @nextino
	.comm	_lastvalidinum,8,3              ; @lastvalidinum
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad inode number %ju to nextinode"

	.comm	_lastinum,8,3                   ; @lastinum
	.comm	_readcnt,4,2                    ; @readcnt
	.comm	_sblock,8,3                     ; @sblock
	.comm	_readpercg,4,2                  ; @readpercg
	.comm	_partialsize,8,3                ; @partialsize
	.comm	_partialcnt,8,3                 ; @partialcnt
	.comm	_inobufsize,8,3                 ; @inobufsize
	.comm	_fullcnt,8,3                    ; @fullcnt
	.comm	_inodebuf,8,3                   ; @inodebuf
	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
.subsections_via_symbols
