	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginode                         ## -- Begin function ginode
	.p2align	4, 0x90
_ginode:                                ## @ginode
	.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, %r13
	movq	_UFS_ROOTINO@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jg	LBB0_2
## %bb.1:
	movq	_maxino@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	jge	LBB0_3
LBB0_2:
	movq	_EEXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_errx
LBB0_3:
	movq	_startinum@GOTPCREL(%rip), %r15
	movq	(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.4:
	cmpq	%r13, %rbx
	jg	LBB0_6
## %bb.5:
	movq	_sblock@GOTPCREL(%rip), %rdi
	callq	_INOPB
	addq	%rbx, %rax
	cmpq	%r13, %rax
	jg	LBB0_9
LBB0_6:
	movq	_sblock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_ino_to_fsba
	movq	_pbp@GOTPCREL(%rip), %r12
	movq	(%r12), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	_B_INUSE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, 16(%rcx)
LBB0_8:
	movl	8(%r14), %esi
	movq	_BT_INODES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_getdatablk
	movq	%rax, (%r12)
	movq	%r14, %rdi
	callq	_INOPB
	movq	%r13, %rdi
	movq	%rax, %rsi
	callq	_rounddown
	movq	%rax, (%r15)
LBB0_9:
	movq	_sblock@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_FS_UFS1_MAGIC@GOTPCREL(%rip), %rdx
	movq	_pbp@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.10:
	movq	8(%rax), %r14
	movq	_sblock@GOTPCREL(%rip), %rdi
	callq	_INOPB
	movq	%rax, %rcx
	orq	%r13, %rax
	shrq	$32, %rax
	je	LBB0_11
## %bb.12:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	leaq	(%r14,%rdx,4), %r14
	jmp	LBB0_22
LBB0_13:
	movq	(%rax), %r14
	movq	_sblock@GOTPCREL(%rip), %rdi
	callq	_INOPB
	movq	%rax, %rcx
	orq	%r13, %rax
	shrq	$32, %rax
	je	LBB0_14
## %bb.15:
	movq	%r13, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_16
LBB0_11:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	leaq	(%r14,%rdx,4), %r14
	jmp	LBB0_22
LBB0_14:
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_16:
	leaq	(%r14,%rdx,4), %r14
	movq	_sblock@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_ffs_verify_dinode_ckhash
	testq	%rax, %rax
	je	LBB0_22
## %bb.17:
	leaq	L_.str.1(%rip), %rdi
	callq	_pwarn
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_prtinode
	movq	_preen@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_18
LBB0_20:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_21:
	movq	_sblock@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_ffs_update_dinode_ckhash
	movq	%r14, %rdi
	callq	_inodirty
LBB0_22:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	callq	_reply
	testq	%rax, %rax
	je	LBB0_22
## %bb.19:
	cmpq	$0, (%rbx)
	jne	LBB0_20
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_UFS_ROOTINO,8,3                ## @UFS_ROOTINO
	.comm	_maxino,8,3                     ## @maxino
	.comm	_EEXIT,4,2                      ## @EEXIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad inode number %ju to ginode"

	.comm	_startinum,8,3                  ## @startinum
	.comm	_sblock,16,3                    ## @sblock
	.comm	_pbp,8,3                        ## @pbp
	.comm	_B_INUSE,4,2                    ## @B_INUSE
	.comm	_BT_INODES,4,2                  ## @BT_INODES
	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
L_.str.1:                               ## @.str.1
	.asciz	"INODE CHECK-HASH FAILED"

	.comm	_preen,8,3                      ## @preen
L_.str.2:                               ## @.str.2
	.asciz	"FIX"

L_str:                                  ## @str
	.asciz	" (FIXED)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ginode                         ; -- Begin function ginode
	.p2align	2
_ginode:                                ; @ginode
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _UFS_ROOTINO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UFS_ROOTINO@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _maxino@GOTPAGE
Lloh4:
	ldr	x9, [x9, _maxino@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x0
	ccmp	x9, x0, #8, le
	b.ge	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _EEXIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EEXIT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_errx
LBB0_2:
Lloh11:
	adrp	x21, _startinum@GOTPAGE
Lloh12:
	ldr	x21, [x21, _startinum@GOTPAGEOFF]
	ldr	x20, [x21]
	cmp	x20, #0
	ccmp	x20, x19, #0, ne
Lloh13:
	adrp	x23, _sblock@GOTPAGE
Lloh14:
	ldr	x23, [x23, _sblock@GOTPAGEOFF]
Lloh15:
	adrp	x22, _pbp@GOTPAGE
Lloh16:
	ldr	x22, [x22, _pbp@GOTPAGEOFF]
	b.gt	LBB0_4
; %bb.3:
Lloh17:
	adrp	x0, _sblock@GOTPAGE
Lloh18:
	ldr	x0, [x0, _sblock@GOTPAGEOFF]
	bl	_INOPB
	add	x8, x0, x20
	cmp	x8, x19
	b.gt	LBB0_7
LBB0_4:
Lloh19:
	adrp	x20, _sblock@GOTPAGE
Lloh20:
	ldr	x20, [x20, _sblock@GOTPAGEOFF]
	mov	x0, x20
	mov	x1, x19
	bl	_ino_to_fsba
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
Lloh21:
	adrp	x9, _B_INUSE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _B_INUSE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	ldr	w10, [x8, #16]
	bic	w9, w10, w9
	str	w9, [x8, #16]
LBB0_6:
	ldr	w1, [x20, #8]
Lloh24:
	adrp	x8, _BT_INODES@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BT_INODES@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	bl	_getdatablk
	str	x0, [x22]
	mov	x0, x20
	bl	_INOPB
	mov	x1, x0
	mov	x0, x19
	bl	_rounddown
	str	x0, [x21]
LBB0_7:
	ldr	x9, [x23]
Lloh27:
	adrp	x8, _FS_UFS1_MAGIC@GOTPAGE
Lloh28:
	ldr	x8, [x8, _FS_UFS1_MAGIC@GOTPAGEOFF]
Lloh29:
	ldr	x10, [x8]
	ldr	x8, [x22]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
	ldr	x20, [x8, #8]
Lloh30:
	adrp	x0, _sblock@GOTPAGE
Lloh31:
	ldr	x0, [x0, _sblock@GOTPAGEOFF]
	bl	_INOPB
	sdiv	x8, x19, x0
	msub	x8, x8, x0, x19
	add	x20, x20, x8, lsl #2
	b	LBB0_13
LBB0_9:
	ldr	x20, [x8]
Lloh32:
	adrp	x21, _sblock@GOTPAGE
Lloh33:
	ldr	x21, [x21, _sblock@GOTPAGEOFF]
	mov	x0, x21
	bl	_INOPB
	sdiv	x8, x19, x0
	msub	x8, x8, x0, x19
	add	x20, x20, x8, lsl #2
	mov	x0, x21
	mov	x1, x20
	bl	_ffs_verify_dinode_ckhash
	cbz	x0, LBB0_13
; %bb.10:
Lloh34:
	adrp	x0, l_.str.1@PAGE
Lloh35:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pwarn
	mov	x0, x19
	mov	x1, x20
	bl	_prtinode
Lloh36:
	adrp	x19, _preen@GOTPAGE
Lloh37:
	ldr	x19, [x19, _preen@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_14
LBB0_11:
Lloh38:
	adrp	x0, l_str@PAGE
Lloh39:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_12:
Lloh40:
	adrp	x0, _sblock@GOTPAGE
Lloh41:
	ldr	x0, [x0, _sblock@GOTPAGEOFF]
	mov	x1, x20
	bl	_ffs_update_dinode_ckhash
	mov	x0, x20
	bl	_inodirty
LBB0_13:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_14:
Lloh42:
	adrp	x0, l_.str.2@PAGE
Lloh43:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_reply
	cbz	x0, LBB0_13
; %bb.15:
	ldr	x8, [x19]
	cbnz	x8, LBB0_11
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_UFS_ROOTINO,8,3                ; @UFS_ROOTINO
	.comm	_maxino,8,3                     ; @maxino
	.comm	_EEXIT,4,2                      ; @EEXIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad inode number %ju to ginode"

	.comm	_startinum,8,3                  ; @startinum
	.comm	_sblock,16,3                    ; @sblock
	.comm	_pbp,8,3                        ; @pbp
	.comm	_B_INUSE,4,2                    ; @B_INUSE
	.comm	_BT_INODES,4,2                  ; @BT_INODES
	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
l_.str.1:                               ; @.str.1
	.asciz	"INODE CHECK-HASH FAILED"

	.comm	_preen,8,3                      ; @preen
l_.str.2:                               ; @.str.2
	.asciz	"FIX"

l_str:                                  ; @str
	.asciz	" (FIXED)"

.subsections_via_symbols
