	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function readsuper
_readsuper:                             ## @readsuper
	.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
	movl	%r8d, %r15d
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	_SBLOCKSIZE@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	movq	%rdx, %rsi
	movq	%rbx, %rdx
	callq	*%r9
	testl	%eax, %eax
	jne	LBB0_24
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	(%rbx), %r15
	movq	(%r15), %rax
	movq	_FS_BAD_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_3:
	movq	_FS_UFS1_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_21
## %bb.4:
	testl	%r13d, %r13d
	jne	LBB0_9
## %bb.5:
	movq	_SBLOCK_UFS1@GOTPCREL(%rip), %rcx
	cmpq	%r12, (%rcx)
	jge	LBB0_9
## %bb.6:
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
	jmp	LBB0_22
LBB0_21:
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.7:
	testl	%r13d, %r13d
	jne	LBB0_9
LBB0_8:
	cmpq	%r12, 8(%r15)
	jne	LBB0_22
LBB0_9:
	cmpl	$0, 16(%r15)
	jle	LBB0_22
## %bb.10:
	movq	24(%r15), %rbx
	movq	_MINBSIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jl	LBB0_22
## %bb.11:
	movq	_MAXBSIZE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jg	LBB0_22
## %bb.12:
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_roundup
	cmpq	%rax, %rbx
	jl	LBB0_22
## %bb.13:
	movq	32(%r15), %rax
	cmpq	(%r14), %rax
	jle	LBB0_14
LBB0_22:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
LBB0_24:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	_FS_METACKHASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 40(%r15)
	jne	LBB0_16
## %bb.15:
	movq	$0, 72(%r15)
LBB0_16:
	movl	44(%r15), %ebx
	movq	%r15, %rdi
	callq	_ffs_calc_sbhash
	cmpl	%eax, %ebx
	jne	LBB0_17
## %bb.20:
	movq	%r12, 64(%r15)
	movq	$0, 56(%r15)
	xorl	%eax, %eax
	jmp	LBB0_24
LBB0_17:
	movl	44(%r15), %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rdx, %rcx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %edx
	callq	_printf
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.19:
	movl	$0, 48(%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_18:
	movq	_FS_NEEDSFSCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 40(%r15)
	movl	$1, 48(%r15)
	xorl	%eax, %eax
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_SBLOCKSIZE,8,3                 ## @SBLOCKSIZE
	.comm	_FS_BAD_MAGIC,8,3               ## @FS_BAD_MAGIC
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
	.comm	_SBLOCK_UFS1,8,3                ## @SBLOCK_UFS1
	.comm	_FS_UFS2_MAGIC,8,3              ## @FS_UFS2_MAGIC
	.comm	_MINBSIZE,8,3                   ## @MINBSIZE
	.comm	_MAXBSIZE,8,3                   ## @MAXBSIZE
	.comm	_DEV_BSIZE,4,2                  ## @DEV_BSIZE
	.comm	_FS_METACKHASH,4,2              ## @FS_METACKHASH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Superblock check-hash failed: recorded check-hash 0x%x != computed check-hash 0x%x%s\n"

L_.str.1:                               ## @.str.1
	.asciz	" (Ignored)"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_FS_NEEDSFSCK,4,2               ## @FS_NEEDSFSCK
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_readsuper
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function readsuper
_readsuper:                             ; @readsuper
	.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, x4
	mov	x22, x3
	mov	x21, x2
	mov	x20, x1
Lloh0:
	adrp	x23, _SBLOCKSIZE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SBLOCKSIZE@GOTPAGEOFF]
	ldr	w3, [x23]
	mov	x1, x2
	mov	x2, x20
	blr	x5
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x20, [x20]
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _FS_BAD_MAGIC@GOTPAGE
Lloh3:
	ldr	x9, [x9, _FS_BAD_MAGIC@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_15
LBB0_3:
Lloh7:
	adrp	x9, _FS_UFS1_MAGIC@GOTPAGE
Lloh8:
	ldr	x9, [x9, _FS_UFS1_MAGIC@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	cbnz	w22, LBB0_10
; %bb.5:
Lloh10:
	adrp	x9, _SBLOCK_UFS1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _SBLOCK_UFS1@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x21
	b.ge	LBB0_10
; %bb.6:
Lloh13:
	adrp	x9, _FS_UFS2_MAGIC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
	b	LBB0_14
LBB0_7:
Lloh16:
	adrp	x9, _FS_UFS2_MAGIC@GOTPAGE
Lloh17:
	ldr	x9, [x9, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_14
; %bb.8:
	cbnz	w22, LBB0_10
LBB0_9:
	ldr	x8, [x20, #8]
	cmp	x8, x21
	b.ne	LBB0_14
LBB0_10:
	ldr	w8, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:
	ldr	x22, [x20, #24]
Lloh19:
	adrp	x8, _MINBSIZE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MINBSIZE@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
Lloh22:
	adrp	x9, _MAXBSIZE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MAXBSIZE@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x22, x8
	ccmp	x22, x9, #0, ge
	b.gt	LBB0_14
; %bb.12:
Lloh25:
	adrp	x8, _DEV_BSIZE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DEV_BSIZE@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_roundup
	cmp	x22, x0
	b.lt	LBB0_14
; %bb.13:
	ldr	x8, [x20, #32]
	ldr	x9, [x23]
	cmp	x8, x9
	b.le	LBB0_17
LBB0_14:
Lloh28:
	adrp	x8, _ENOENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
LBB0_16:
	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_17:
	ldr	w8, [x20, #40]
Lloh30:
	adrp	x9, _FS_METACKHASH@GOTPAGE
Lloh31:
	ldr	x9, [x9, _FS_METACKHASH@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.18:
	str	xzr, [x20, #72]
LBB0_19:
	ldr	w22, [x20, #44]
	mov	x0, x20
	bl	_ffs_calc_sbhash
	cmp	w22, w0
	b.ne	LBB0_21
; %bb.20:
	mov	w0, #0
	stp	xzr, x21, [x20, #56]
	b	LBB0_16
LBB0_21:
	mov	x2, x0
	ldr	w1, [x20, #44]
Lloh33:
	adrp	x8, l_.str.2@PAGE
Lloh34:
	add	x8, x8, l_.str.2@PAGEOFF
Lloh35:
	adrp	x9, l_.str.1@PAGE
Lloh36:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	w19, #0
	csel	x3, x9, x8, eq
Lloh37:
	adrp	x0, l_.str@PAGE
Lloh38:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	cbz	w19, LBB0_23
; %bb.22:
	str	wzr, [x20, #48]
	b	LBB0_2
LBB0_23:
	mov	w0, #0
Lloh39:
	adrp	x8, _FS_NEEDSFSCK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _FS_NEEDSFSCK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	ldr	w9, [x20, #40]
	orr	w8, w9, w8
	str	w8, [x20, #40]
	mov	w8, #1
	str	w8, [x20, #48]
	b	LBB0_16
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_SBLOCKSIZE,8,3                 ; @SBLOCKSIZE
	.comm	_FS_BAD_MAGIC,8,3               ; @FS_BAD_MAGIC
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
	.comm	_SBLOCK_UFS1,8,3                ; @SBLOCK_UFS1
	.comm	_FS_UFS2_MAGIC,8,3              ; @FS_UFS2_MAGIC
	.comm	_MINBSIZE,8,3                   ; @MINBSIZE
	.comm	_MAXBSIZE,8,3                   ; @MAXBSIZE
	.comm	_DEV_BSIZE,4,2                  ; @DEV_BSIZE
	.comm	_FS_METACKHASH,4,2              ; @FS_METACKHASH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Superblock check-hash failed: recorded check-hash 0x%x != computed check-hash 0x%x%s\n"

l_.str.1:                               ; @.str.1
	.asciz	" (Ignored)"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_FS_NEEDSFSCK,4,2               ; @FS_NEEDSFSCK
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_readsuper
.subsections_via_symbols
