	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ## -- Begin function main
	.p2align	4, 0x90
_main:                                  ## @main
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %ebx
	leaq	L_.str(%rip), %r14
	leaq	L_.str.1(%rip), %r13
	xorl	%r12d, %r12d
	jmp	LBB0_1
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rax
	cqto
	idivq	%rcx
	subq	%rdx, %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_getopt
	cmpb	$111, %al
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$-1, %al
	je	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_1
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_errx
	movq	_optarg@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	leaq	-72(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoimax
	movq	%rax, %r12
	movq	-72(%rbp), %rax
	cmpb	$0, (%rax)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r12, %r12
	jns	LBB0_9
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	movq	%r13, %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
	subq	%rdx, %r12
	jmp	LBB0_1
LBB0_12:
	movq	_optind@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	subl	%r14d, %ebx
	cmpl	$1, %ebx
	je	LBB0_14
## %bb.13:
	leaq	L_.str.1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_errx
LBB0_14:
	movq	(%r15,%r14,8), %rdi
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r13d, %r13d
	xorl	%edx, %edx
	callq	_open
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jns	LBB0_16
## %bb.15:
	movq	(%r15,%r14,8), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
LBB0_16:
	testq	%r12, %r12
	je	LBB0_19
## %bb.17:
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_lseek
	movl	%eax, %r13d
	cmpl	$-1, %eax
	jne	LBB0_19
## %bb.18:
	movq	(%r15,%r14,8), %rdx
	leaq	L_.str.2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	callq	_err
	movl	$-1, %r13d
LBB0_19:
	movl	$-1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_u@GOTPCREL(%rip), %rbx
	xorl	%r15d, %r15d
	movl	$-1, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DEV_BSIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%r15,4), %rsi
	addq	(%rbx), %rsi
	movq	(%r12), %rdx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_read
	movq	%rax, %r14
	movq	(%r12), %rcx
	cmpq	%rcx, %rax
	je	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	%r13d, %rbx
	testq	%r14, %r14
	je	LBB0_61
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	jns	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	$1, %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_err
	movq	(%r12), %rcx
LBB0_24:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	$1, %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %r8
	xorl	%eax, %eax
	callq	_errx
	movq	(%r12), %r14
	movq	_u@GOTPCREL(%rip), %rbx
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	addq	%r14, %r15
	addl	%r14d, %r13d
	cmpq	$4, %r15
	jb	LBB0_59
## %bb.26:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	%r13d, %rsi
	subq	%r15, %rsi
	movq	8(%rbx), %rax
	movq	_FS_UFS1_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_42
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rsi, %r12
	movq	%rsi, %rax
	orq	%r14, %rax
	movq	_SBLOCK_UFS1@GOTPCREL(%rip), %rcx
	subq	(%rcx), %r12
	shrq	$32, %rax
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rsi, %rax
	cqto
	idivq	%r14
	movq	%rax, %rdx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_42:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_FS_UFS2_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_59
## %bb.43:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rsi, %rbx
	movq	%rsi, %rax
	orq	%r14, %rax
	movq	_SBLOCK_UFS2@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rbx
	shrq	$32, %rax
	je	LBB0_44
## %bb.45:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rsi, %rax
	cqto
	idivq	%r14
	jmp	LBB0_46
LBB0_28:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r14d
	movl	%eax, %edx
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rdi
	xorl	%eax, %eax
	callq	_printf
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_31
## %bb.32:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rax
	cqto
	idivq	%rcx
	movq	%rax, %rdx
	jmp	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %edx
LBB0_33:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	L_.str.7(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_printf
	testl	%r14d, %r14d
	js	LBB0_38
## %bb.34:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_35
## %bb.36:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_37
LBB0_35:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_37:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r14d, %ecx
	subq	%rcx, %rax
	leaq	L_.str.8(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_38:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_DEV_BSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r12, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_39
## %bb.40:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%r12, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_41
LBB0_39:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_41:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_DEV_BSIZE@GOTPCREL(%rip), %r12
	subq	%rcx, %r15
	jmp	LBB0_58
LBB0_44:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%r14d
                                        ## kill: def $eax killed $eax def $rax
LBB0_46:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	L_.str.9(%rip), %rdi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	(%r12), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_47
## %bb.48:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_49
LBB0_47:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_49:                                ##   in Loop: Header=BB0_20 Depth=1
	leaq	L_.str.7(%rip), %rdi
	movq	%rbx, %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_printf
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	testl	%esi, %esi
	js	LBB0_54
## %bb.50:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r12), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_51
## %bb.52:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_53
LBB0_51:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_53:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%esi, %ecx
	subq	%rcx, %rax
	leaq	L_.str.8(%rip), %rdi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_printf
LBB0_54:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	(%r12), %rcx
	movq	%rbx, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_55
## %bb.56:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %rax
	cqto
	idivq	%rcx
	jmp	LBB0_57
LBB0_55:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_57:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	subq	%rcx, %r15
	movq	_u@GOTPCREL(%rip), %rbx
LBB0_58:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	(%rbx), %rdi
	leaq	(%rdi,%rcx,4), %rsi
	movq	%r15, %rdx
	callq	_memmove
LBB0_59:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_SBLOCKSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %r15
	jb	LBB0_20
## %bb.60:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	(%rbx), %rdi
	movq	(%r12), %rax
	leaq	(%rdi,%rax,4), %rsi
	subq	%rax, %rdx
	callq	_memmove
	subq	(%r12), %r15
	jmp	LBB0_20
LBB0_61:
	leaq	L_.str.3(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_printf
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"o:"

	.comm	_optarg,8,3                     ## @optarg
L_.str.1:                               ## @.str.1
	.asciz	"usage"

	.comm	_DEV_BSIZE,8,3                  ## @DEV_BSIZE
	.comm	_optind,8,3                     ## @optind
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
L_.str.2:                               ## @.str.2
	.asciz	"%s"

	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.comm	_u,16,3                         ## @u
L_.str.3:                               ## @.str.3
	.asciz	"reached end-of-file at %jd\n"

L_.str.4:                               ## @.str.4
	.asciz	"read"

L_.str.5:                               ## @.str.5
	.asciz	"short read %jd (wanted %d) at %jd"

	.comm	_FS_UFS1_MAGIC,8,3              ## @FS_UFS1_MAGIC
	.comm	_SBLOCK_UFS1,8,3                ## @SBLOCK_UFS1
L_.str.6:                               ## @.str.6
	.asciz	"Found UFS1 superblock at offset %jd, block %jd\n"

L_.str.7:                               ## @.str.7
	.asciz	"Filesystem might begin at offset %jd, block %jd\n"

L_.str.8:                               ## @.str.8
	.asciz	"%jd blocks from last guess\n"

	.comm	_FS_UFS2_MAGIC,8,3              ## @FS_UFS2_MAGIC
	.comm	_SBLOCK_UFS2,8,3                ## @SBLOCK_UFS2
L_.str.9:                               ## @.str.9
	.asciz	"Found UFS2 superblock at offset %jd, block %jd\n"

	.comm	_SBLOCKSIZE,8,3                 ## @SBLOCKSIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_main                           ; -- Begin function main
	.p2align	2
_main:                                  ; @main
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x1
	mov	x19, x0
	mov	x20, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
Lloh2:
	adrp	x24, _optarg@GOTPAGE
Lloh3:
	ldr	x24, [x24, _optarg@GOTPAGEOFF]
Lloh4:
	adrp	x26, _DEV_BSIZE@GOTPAGE
Lloh5:
	ldr	x26, [x26, _DEV_BSIZE@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x23
	bl	_errx
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x26]
	sdiv	x9, x20, x8
	mul	x20, x9, x8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_getopt
	cmp	w0, #111
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	and	w8, w0, #0xff
	cmp	w8, #255
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x23
	bl	_errx
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x24]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #1
	mov	x1, x23
	bl	_errx
	ldr	x0, [x24]
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x1, sp, #24
	mov	w2, #10
	bl	_strtoimax
	mov	x20, x0
	ldr	x8, [sp, #24]
	ldrb	w8, [x8]
	cbnz	w8, LBB0_1
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	tbz	x20, #63, LBB0_2
	b	LBB0_1
LBB0_10:
Lloh8:
	adrp	x8, _optind@GOTPAGE
Lloh9:
	ldr	x8, [x8, _optind@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	sub	w8, w19, w22
	cmp	w8, #1
	b.eq	LBB0_12
; %bb.11:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #1
	bl	_errx
LBB0_12:
	ldr	x0, [x21, x22, lsl #3]
Lloh13:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_open
	mov	x19, x0
	tbz	w0, #31, LBB0_14
; %bb.13:
	ldr	x8, [x21, x22, lsl #3]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
LBB0_14:
	cbz	x20, LBB0_17
; %bb.15:
Lloh18:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_lseek
	mov	x20, x0
	cmn	w0, #1
	b.ne	LBB0_17
; %bb.16:
	ldr	x8, [x21, x22, lsl #3]
	str	x8, [sp]
Lloh21:
	adrp	x1, l_.str.2@PAGE
Lloh22:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w0, #1
	bl	_err
	mov	w20, #-1
LBB0_17:
	mov	x21, #0
Lloh23:
	adrp	x24, _u@GOTPAGE
Lloh24:
	ldr	x24, [x24, _u@GOTPAGEOFF]
Lloh25:
	adrp	x23, _SBLOCKSIZE@GOTPAGE
Lloh26:
	ldr	x23, [x23, _SBLOCKSIZE@GOTPAGEOFF]
	mov	w27, #-1
	mov	x22, x27
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x1, x8, x21, lsl #2
	ldr	x2, [x26]
	mov	x0, x19
	bl	_read
	mov	x28, x0
	ldr	x8, [x26]
	cmp	x0, x8
	b.eq	LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	cbz	x28, LBB0_35
; %bb.20:                               ;   in Loop: Header=BB0_18 Depth=1
	tbz	x28, #63, LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	w0, #1
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_err
	ldr	x8, [x26]
LBB0_22:                                ;   in Loop: Header=BB0_18 Depth=1
	sxtw	x9, w20
	stp	x28, x8, [sp]
	str	x9, [sp, #16]
	mov	w0, #1
Lloh29:
	adrp	x1, l_.str.5@PAGE
Lloh30:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_errx
	ldr	x28, [x26]
LBB0_23:                                ;   in Loop: Header=BB0_18 Depth=1
	add	x21, x28, x21
	add	w20, w20, w28
	cmp	x21, #4
	b.lo	LBB0_33
; %bb.24:                               ;   in Loop: Header=BB0_18 Depth=1
	mov	x8, x20
	sxtw	x8, w8
	sub	x1, x8, x21
	ldr	x8, [x24, #8]
Lloh31:
	adrp	x9, _FS_UFS1_MAGIC@GOTPAGE
Lloh32:
	ldr	x9, [x9, _FS_UFS1_MAGIC@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh34:
	adrp	x8, _SBLOCK_UFS1@GOTPAGE
Lloh35:
	ldr	x8, [x8, _SBLOCK_UFS1@GOTPAGEOFF]
Lloh36:
	ldr	x8, [x8]
	sub	x25, x1, x8
	sdiv	x8, x1, x28
	str	x8, [sp]
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_printf
	ldr	x8, [x26]
	sdiv	x8, x25, x8
	str	x8, [sp]
Lloh39:
	adrp	x0, l_.str.7@PAGE
Lloh40:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x25
	bl	_printf
	tbnz	w22, #31, LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x26]
	sdiv	x8, x25, x8
	sub	x1, x8, w22, uxtw
Lloh41:
	adrp	x0, l_.str.8@PAGE
Lloh42:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
LBB0_27:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x26]
	sub	x21, x21, x8
	ldr	x0, [x24]
	add	x1, x0, x8, lsl #2
	sdiv	x22, x25, x8
	b	LBB0_32
LBB0_28:                                ;   in Loop: Header=BB0_18 Depth=1
Lloh43:
	adrp	x9, _FS_UFS2_MAGIC@GOTPAGE
Lloh44:
	ldr	x9, [x9, _FS_UFS2_MAGIC@GOTPAGEOFF]
Lloh45:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_33
; %bb.29:                               ;   in Loop: Header=BB0_18 Depth=1
Lloh46:
	adrp	x8, _SBLOCK_UFS2@GOTPAGE
Lloh47:
	ldr	x8, [x8, _SBLOCK_UFS2@GOTPAGEOFF]
Lloh48:
	ldr	x8, [x8]
	sub	x25, x1, x8
	sdiv	x8, x1, x28
	str	x8, [sp]
Lloh49:
	adrp	x0, l_.str.9@PAGE
Lloh50:
	add	x0, x0, l_.str.9@PAGEOFF
	bl	_printf
	ldr	x8, [x26]
	sdiv	x8, x25, x8
	str	x8, [sp]
Lloh51:
	adrp	x0, l_.str.7@PAGE
Lloh52:
	add	x0, x0, l_.str.7@PAGEOFF
	mov	x1, x25
	bl	_printf
	tbnz	w27, #31, LBB0_31
; %bb.30:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x26]
	sdiv	x8, x25, x8
	sub	x1, x8, w27, uxtw
Lloh53:
	adrp	x0, l_.str.8@PAGE
Lloh54:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_printf
LBB0_31:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x26]
	sub	x21, x21, x8
	ldr	x0, [x24]
	add	x1, x0, x8, lsl #2
	sdiv	x27, x25, x8
LBB0_32:                                ;   in Loop: Header=BB0_18 Depth=1
	mov	x2, x21
	bl	_memmove
LBB0_33:                                ;   in Loop: Header=BB0_18 Depth=1
	ldr	x8, [x23]
	cmp	x21, x8
	b.lo	LBB0_18
; %bb.34:                               ;   in Loop: Header=BB0_18 Depth=1
	ldr	x0, [x24]
	ldr	x9, [x26]
	add	x1, x0, x9, lsl #2
	sub	x2, x8, x9
	bl	_memmove
	ldr	x8, [x26]
	sub	x21, x21, x8
	b	LBB0_18
LBB0_35:
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	sxtw	x1, w20
Lloh55:
	adrp	x0, l_.str.3@PAGE
Lloh56:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printf
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh55, Lloh56
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"o:"

	.comm	_optarg,8,3                     ; @optarg
l_.str.1:                               ; @.str.1
	.asciz	"usage"

	.comm	_DEV_BSIZE,8,3                  ; @DEV_BSIZE
	.comm	_optind,8,3                     ; @optind
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
l_.str.2:                               ; @.str.2
	.asciz	"%s"

	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.comm	_u,16,3                         ; @u
l_.str.3:                               ; @.str.3
	.asciz	"reached end-of-file at %jd\n"

l_.str.4:                               ; @.str.4
	.asciz	"read"

l_.str.5:                               ; @.str.5
	.asciz	"short read %jd (wanted %d) at %jd"

	.comm	_FS_UFS1_MAGIC,8,3              ; @FS_UFS1_MAGIC
	.comm	_SBLOCK_UFS1,8,3                ; @SBLOCK_UFS1
l_.str.6:                               ; @.str.6
	.asciz	"Found UFS1 superblock at offset %jd, block %jd\n"

l_.str.7:                               ; @.str.7
	.asciz	"Filesystem might begin at offset %jd, block %jd\n"

l_.str.8:                               ; @.str.8
	.asciz	"%jd blocks from last guess\n"

	.comm	_FS_UFS2_MAGIC,8,3              ; @FS_UFS2_MAGIC
	.comm	_SBLOCK_UFS2,8,3                ; @SBLOCK_UFS2
l_.str.9:                               ; @.str.9
	.asciz	"Found UFS2 superblock at offset %jd, block %jd\n"

	.comm	_SBLOCKSIZE,8,3                 ; @SBLOCKSIZE
.subsections_via_symbols
