	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setinodebuf                    ## -- Begin function setinodebuf
	.p2align	4, 0x90
_setinodebuf:                           ## @setinodebuf
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_sblock@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	movl	%edi, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	_EEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_errx
	movl	(%r15), %ecx
LBB0_2:
	leal	(%rbx,%rcx), %eax
	decl	%eax
	movq	_lastvalidinum@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_startinum@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_nextino@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_lastinum@GOTPCREL(%rip), %rax
	movl	%ebx, (%rax)
	movq	_readcount@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_inobuf@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	jne	LBB0_7
## %bb.3:
	movq	_INOBUFSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_blkroundup
	movl	%eax, %ecx
	movq	_inobufsize@GOTPCREL(%rip), %r12
	movl	%eax, (%r12)
	movl	%eax, %esi
	sarl	$2, %esi
	movq	_fullcnt@GOTPCREL(%rip), %rax
	movl	%esi, (%rax)
	movl	(%r15), %eax
	cltd
	idivl	%esi
                                        ## kill: def $edx killed $edx def $rdx
	movq	_readpercg@GOTPCREL(%rip), %r9
	movl	%eax, (%r9)
	movq	_partialcnt@GOTPCREL(%rip), %r8
	movl	%edx, (%r8)
	leal	(,%rdx,4), %edi
	movq	_partialsize@GOTPCREL(%rip), %rbx
	movl	%edi, (%rbx)
	testl	%edx, %edx
	je	LBB0_5
## %bb.4:
	incl	%eax
	movl	%eax, (%r9)
	jmp	LBB0_6
LBB0_5:
	movl	%esi, (%r8)
	movl	%ecx, (%rbx)
LBB0_6:
	movq	_BT_INODES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_initbarea
	movl	(%r12), %edi
	callq	_Malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	_EEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_sblock,16,3                    ## @sblock
	.comm	_EEXIT,4,2                      ## @EEXIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad inode number %ju to setinodebuf"

	.comm	_lastvalidinum,4,2              ## @lastvalidinum
	.comm	_startinum,8,3                  ## @startinum
	.comm	_nextino,4,2                    ## @nextino
	.comm	_lastinum,4,2                   ## @lastinum
	.comm	_readcount,8,3                  ## @readcount
	.comm	_inobuf,8,3                     ## @inobuf
	.comm	_INOBUFSIZE,4,2                 ## @INOBUFSIZE
	.comm	_inobufsize,4,2                 ## @inobufsize
	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
	.comm	_fullcnt,4,2                    ## @fullcnt
	.comm	_readpercg,4,2                  ## @readpercg
	.comm	_partialcnt,4,2                 ## @partialcnt
	.comm	_partialsize,4,2                ## @partialsize
	.comm	_BT_INODES,4,2                  ## @BT_INODES
L_.str.1:                               ## @.str.1
	.asciz	"cannot allocate space for inode buffer"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_setinodebuf                    ; -- Begin function setinodebuf
	.p2align	2
_setinodebuf:                           ; @setinodebuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x0
Lloh0:
	adrp	x19, _sblock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _sblock@GOTPAGEOFF]
	ldr	w8, [x19]
	sdiv	w9, w0, w8
	msub	w9, w9, w8, w0
	cbz	w9, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EEXIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EEXIT@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	str	x20, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_errx
	ldr	w8, [x19]
LBB0_2:
	add	w8, w20, w8
	sub	w8, w8, #1
Lloh7:
	adrp	x9, _lastvalidinum@GOTPAGE
Lloh8:
	ldr	x9, [x9, _lastvalidinum@GOTPAGEOFF]
Lloh9:
	str	w8, [x9]
Lloh10:
	adrp	x8, _startinum@GOTPAGE
Lloh11:
	ldr	x8, [x8, _startinum@GOTPAGEOFF]
Lloh12:
	str	xzr, [x8]
Lloh13:
	adrp	x8, _nextino@GOTPAGE
Lloh14:
	ldr	x8, [x8, _nextino@GOTPAGEOFF]
Lloh15:
	str	w20, [x8]
Lloh16:
	adrp	x8, _lastinum@GOTPAGE
Lloh17:
	ldr	x8, [x8, _lastinum@GOTPAGEOFF]
Lloh18:
	str	w20, [x8]
Lloh19:
	adrp	x8, _readcount@GOTPAGE
Lloh20:
	ldr	x8, [x8, _readcount@GOTPAGEOFF]
Lloh21:
	str	xzr, [x8]
Lloh22:
	adrp	x20, _inobuf@GOTPAGE
Lloh23:
	ldr	x20, [x20, _inobuf@GOTPAGEOFF]
	ldr	x8, [x20]
	cbnz	x8, LBB0_7
; %bb.3:
Lloh24:
	adrp	x8, _INOBUFSIZE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _INOBUFSIZE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_blkroundup
Lloh27:
	adrp	x21, _inobufsize@GOTPAGE
Lloh28:
	ldr	x21, [x21, _inobufsize@GOTPAGEOFF]
	str	w0, [x21]
	asr	w8, w0, #2
Lloh29:
	adrp	x9, _fullcnt@GOTPAGE
Lloh30:
	ldr	x9, [x9, _fullcnt@GOTPAGEOFF]
Lloh31:
	str	w8, [x9]
	ldr	w12, [x19]
	sdiv	w9, w12, w8
Lloh32:
	adrp	x10, _readpercg@GOTPAGE
Lloh33:
	ldr	x10, [x10, _readpercg@GOTPAGEOFF]
	str	w9, [x10]
Lloh34:
	adrp	x11, _partialcnt@GOTPAGE
Lloh35:
	ldr	x11, [x11, _partialcnt@GOTPAGEOFF]
	msub	w13, w9, w8, w12
	str	w13, [x11]
	lsl	w14, w13, #2
Lloh36:
	adrp	x12, _partialsize@GOTPAGE
Lloh37:
	ldr	x12, [x12, _partialsize@GOTPAGEOFF]
	str	w14, [x12]
	cbz	w13, LBB0_5
; %bb.4:
	add	w8, w9, #1
	str	w8, [x10]
	b	LBB0_6
LBB0_5:
	str	w8, [x11]
	str	w0, [x12]
LBB0_6:
Lloh38:
	adrp	x8, _BT_INODES@GOTPAGE
Lloh39:
	ldr	x8, [x8, _BT_INODES@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_initbarea
	ldr	w0, [x21]
	bl	_Malloc
	str	x0, [x20]
	cbz	x0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh41:
	adrp	x8, _EEXIT@GOTPAGE
Lloh42:
	ldr	x8, [x8, _EEXIT@GOTPAGEOFF]
Lloh43:
	ldr	w0, [x8]
Lloh44:
	adrp	x1, l_.str.1@PAGE
Lloh45:
	add	x1, x1, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_errx
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotStr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotStr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotStr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_sblock,16,3                    ; @sblock
	.comm	_EEXIT,4,2                      ; @EEXIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad inode number %ju to setinodebuf"

	.comm	_lastvalidinum,4,2              ; @lastvalidinum
	.comm	_startinum,8,3                  ; @startinum
	.comm	_nextino,4,2                    ; @nextino
	.comm	_lastinum,4,2                   ; @lastinum
	.comm	_readcount,8,3                  ; @readcount
	.comm	_inobuf,8,3                     ; @inobuf
	.comm	_INOBUFSIZE,4,2                 ; @INOBUFSIZE
	.comm	_inobufsize,4,2                 ; @inobufsize
	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
	.comm	_fullcnt,4,2                    ; @fullcnt
	.comm	_readpercg,4,2                  ; @readpercg
	.comm	_partialcnt,4,2                 ; @partialcnt
	.comm	_partialsize,4,2                ; @partialsize
	.comm	_BT_INODES,4,2                  ; @BT_INODES
l_.str.1:                               ; @.str.1
	.asciz	"cannot allocate space for inode buffer"

.subsections_via_symbols
