	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbread                         ## -- Begin function sbread
	.p2align	4, 0x90
_sbread:                                ## @sbread
	.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
	xorl	%esi, %esi
	callq	_ERROR
	movl	40(%rbx), %edi
	movq	_STDSB@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rsi
	callq	_sbget
                                        ## kill: def $eax killed $eax def $rax
	movq	_errno@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	leal	-128(%rax), %ecx
	cmpl	$3, %ecx
	ja	LBB0_1
## %bb.4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rcx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_1:
	testl	%eax, %eax
	jne	LBB0_2
## %bb.10:
	leaq	16(%rbx), %r14
	movq	-32(%rbp), %rsi
	movl	20(%rsi), %edx
	movq	%r14, %rdi
	callq	_memcpy
	movq	-32(%rbp), %rdi
	callq	_free
	movq	%r14, -32(%rbp)
	movq	16(%rbx), %rax
	movq	_FS_UFS1_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:
	movl	$1, (%rbx)
LBB0_12:
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.13:
	movl	$2, (%rbx)
LBB0_14:
	movl	24(%rbx), %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_fsbtodb
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	movl	%eax, 4(%rbx)
	movq	-32(%rbp), %rsi
	movl	12(%rsi), %eax
	cltd
	idivl	%ecx
	movl	%eax, 8(%rbx)
	movl	16(%rsi), %eax
	movl	%eax, 12(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_6
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
LBB0_6:
	movq	%rbx, %rdi
	callq	_ERROR
LBB0_3:
	movl	$0, (%rbx)
	movl	$-1, %eax
LBB0_15:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ERROR
	movl	$130, (%r14)
	jmp	LBB0_3
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_5
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_STDSB,4,2                      ## @STDSB
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"non-existent or truncated superblock"

L_.str.1:                               ## @.str.1
	.asciz	"no usable known superblock found"

L_.str.2:                               ## @.str.2
	.asciz	"failed to allocate space for superblock information"

L_.str.3:                               ## @.str.3
	.asciz	"The previous newfs operation on this volume did not complete.\nYou must complete newfs before using this volume."

L_.str.4:                               ## @.str.4
	.asciz	"unknown superblock read error"

	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
	.comm	_FS_UFS2_MAGIC,8,3              ## @FS_UFS2_MAGIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sbread                         ; -- Begin function sbread
	.p2align	2
_sbread:                                ; @sbread
	.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	x19, x0
	mov	x1, #0
	bl	_ERROR
	ldr	w0, [x19, #40]
Lloh0:
	adrp	x8, _STDSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STDSB@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_sbget
Lloh3:
	adrp	x20, _errno@GOTPAGE
Lloh4:
	ldr	x20, [x20, _errno@GOTPAGEOFF]
	str	w0, [x20]
	sub	w8, w0, #128
	cmp	w8, #3
	b.hi	LBB0_3
; %bb.1:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_12
LBB0_3:
	cbnz	w0, LBB0_15
; %bb.4:
	add	x20, x19, #16
	ldr	x1, [sp, #8]
	ldr	w2, [x1, #20]
	mov	x0, x20
	bl	_memcpy
	ldr	x0, [sp, #8]
	bl	_free
	str	x20, [sp, #8]
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _FS_UFS1_MAGIC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FS_UFS1_MAGIC@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
	mov	w9, #1
	str	w9, [x19]
LBB0_6:
Lloh12:
	adrp	x9, _FS_UFS2_MAGIC@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	mov	w8, #2
	str	w8, [x19]
LBB0_8:
	ldr	w21, [x19, #24]
	mov	x0, x20
	mov	w1, #1
	bl	_fsbtodb
	mov	x8, x0
	mov	w0, #0
	sdiv	w8, w21, w8
	ldr	x9, [sp, #8]
	ldp	w10, w9, [x9, #12]
	sdiv	w10, w10, w8
	stp	w8, w10, [x19, #4]
	str	w9, [x19, #12]
	b	LBB0_14
LBB0_9:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_12
LBB0_10:
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x1, l_.str.3@PAGE
Lloh20:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_12:
	mov	x0, x19
	bl	_ERROR
LBB0_13:
	str	wzr, [x19]
	mov	w0, #-1
LBB0_14:
	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_15:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ERROR
	mov	w8, #130
	str	w8, [x20]
	b	LBB0_13
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_STDSB,4,2                      ; @STDSB
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"non-existent or truncated superblock"

l_.str.1:                               ; @.str.1
	.asciz	"no usable known superblock found"

l_.str.2:                               ; @.str.2
	.asciz	"failed to allocate space for superblock information"

l_.str.3:                               ; @.str.3
	.asciz	"The previous newfs operation on this volume did not complete.\nYou must complete newfs before using this volume."

l_.str.4:                               ; @.str.4
	.asciz	"unknown superblock read error"

	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
	.comm	_FS_UFS2_MAGIC,8,3              ; @FS_UFS2_MAGIC
.subsections_via_symbols
