	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function suj_read
_suj_read:                              ## @suj_read
	.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
	movl	$4194328, %eax                  ## imm = 0x400018
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_suj_jblocks@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	leaq	-4194356(%rbp), %rdx
	movl	$4194304, %esi                  ## imm = 0x400000
	callq	_jblocks_next
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_2 Depth=1
	imull	%r12d, %r15d
	movq	_suj_jblocks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r15d, %esi
	movq	%rax, %r15
	callq	_jblocks_advance
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %edi
	movl	$4194304, %esi                  ## imm = 0x400000
	leaq	-4194356(%rbp), %rdx
	callq	_jblocks_next
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##       Child Loop BB0_18 Depth 3
	movl	-4194356(%rbp), %r13d
	movq	_disk@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	leaq	-4194352(%rbp), %rdx
	movl	%r13d, %ecx
	callq	_bread
	cmpl	$-1, %eax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_8
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_err_suj
	testl	%r13d, %r13d
	je	LBB0_5
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	-4194352(%rbp), %rbx
	jmp	LBB0_9
LBB0_31:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_ss_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_allsegs@GOTPCREL(%rip), %rdi
	movq	%r15, %rsi
	callq	_TAILQ_INSERT_TAIL
	movl	%r14d, %r12d
	movq	_suj_jblocks@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	(%r15), %edi
	movl	%r12d, %esi
	callq	_jblocks_advance
	movslq	%r12d, %rax
	addq	%rax, %rbx
	subl	%eax, %r13d
	je	LBB0_5
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_18 Depth 3
	movq	_real_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	(%rbx), %rsi
	movq	_fs@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rsi
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpq	$0, 8(%rbx)
	je	LBB0_13
## %bb.15:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	16(%rbx), %ecx
	movl	%ecx, %r14d
	imull	%r12d, %r14d
	cmpl	%r13d, %r14d
	jle	LBB0_16
## %bb.23:                              ##   in Loop: Header=BB0_9 Depth=2
	movl	8(%rax), %eax
	cmpl	%eax, %r13d
	jge	LBB0_26
## %bb.24:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	-4194356(%rbp), %r13d
	je	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_9 Depth=2
	cmpl	%eax, %r14d
	jle	LBB0_5
LBB0_26:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	_printf
	movq	_real_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	L_.str.1(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_32
LBB0_13:                                ##   in Loop: Header=BB0_9 Depth=2
	movq	_debug@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_32
## %bb.14:                              ##   in Loop: Header=BB0_9 Depth=2
	leaq	L_.str.2(%rip), %rdi
	xorl	%esi, %esi
	xorl	%eax, %eax
	callq	_printf
	jmp	LBB0_32
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=2
	cmpl	$2, %ecx
	jl	LBB0_29
## %bb.17:                              ##   in Loop: Header=BB0_9 Depth=2
	movslq	%r12d, %rdx
	movl	20(%rbx), %eax
	leaq	(%rbx,%rdx), %rdi
	movl	$1, %r15d
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_2 Depth=1
                                        ##     Parent Loop BB0_9 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	%eax, 20(%rdi)
	jne	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_18 Depth=3
	cmpq	%rsi, (%rdi)
	jne	LBB0_20
## %bb.28:                              ##   in Loop: Header=BB0_18 Depth=3
	incq	%r15
	addq	%rdx, %rdi
	cmpq	%r15, %rcx
	jne	LBB0_18
LBB0_29:                                ##   in Loop: Header=BB0_9 Depth=2
	movl	$40, %edi
	callq	_errmalloc
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_errmalloc
	movq	%rax, (%r15)
	movups	(%rbx), %xmm0
	movups	16(%rbx), %xmm1
	movups	%xmm0, 8(%r15)
	movups	%xmm1, 24(%r15)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_memmove
	movq	24(%rbx), %rax
	movq	_oldseq@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_31
## %bb.30:                              ##   in Loop: Header=BB0_9 Depth=2
	movq	_oldseq@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_debug@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.4(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_printf
	movq	_real_dev_bsize@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_22
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_33
## %bb.7:
	addq	$4194328, %rsp                  ## imm = 0x400018
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_33:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_suj_jblocks,4,2                ## @suj_jblocks
	.comm	_disk,4,2                       ## @disk
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error reading journal block %jd\n"

	.comm	_real_dev_bsize,4,2             ## @real_dev_bsize
	.comm	_fs,8,3                         ## @fs
	.comm	_debug,8,3                      ## @debug
L_.str.1:                               ## @.str.1
	.asciz	"Rec time %jd != fs mtime %jd\n"

L_.str.2:                               ## @.str.2
	.asciz	"Found illegal count %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Found invalid segsize %d > %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Incomplete record %jd (%d)\n"

	.comm	_oldseq,8,3                     ## @oldseq
	.comm	_allsegs,4,2                    ## @allsegs
	.comm	_ss_next,4,2                    ## @ss_next
	.no_dead_strip	_suj_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function suj_read
_suj_read:                              ; @suj_read
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	w9, #32
	movk	w9, #64, lsl #16
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #1024, lsl #12          ; =4194304
	sub	sp, sp, #32
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
Lloh5:
	adrp	x20, _suj_jblocks@GOTPAGE
Lloh6:
	ldr	x20, [x20, _suj_jblocks@GOTPAGEOFF]
	ldr	w0, [x20]
	add	x2, sp, #12
	mov	w1, #4194304
	bl	_jblocks_next
	cbz	x0, LBB0_29
; %bb.1:
	mov	x23, x0
Lloh7:
	adrp	x22, _real_dev_bsize@GOTPAGE
Lloh8:
	ldr	x22, [x22, _real_dev_bsize@GOTPAGEOFF]
Lloh9:
	adrp	x24, _fs@GOTPAGE
Lloh10:
	ldr	x24, [x24, _fs@GOTPAGEOFF]
Lloh11:
	adrp	x21, _debug@GOTPAGE
Lloh12:
	ldr	x21, [x21, _debug@GOTPAGEOFF]
Lloh13:
	adrp	x25, l_.str.1@PAGE
Lloh14:
	add	x25, x25, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mul	w1, w28, w19
	ldr	w0, [x20]
	bl	_jblocks_advance
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	add	x2, sp, #12
	mov	w1, #4194304
	bl	_jblocks_next
	mov	x23, x0
	cbz	x0, LBB0_29
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
                                        ;       Child Loop BB0_22 Depth 3
	ldr	w26, [sp, #12]
	add	x2, sp, #16
Lloh15:
	adrp	x0, _disk@GOTPAGE
Lloh16:
	ldr	x0, [x0, _disk@GOTPAGEOFF]
	mov	x1, x23
	mov	x3, x26
	bl	_bread
	cmn	w0, #1
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w26, LBB0_7
	b	LBB0_3
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x23
	bl	_err_suj
	cbz	w26, LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, sp, #16
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=2
Lloh19:
	adrp	x8, _ss_next@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ss_next@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x0, _allsegs@GOTPAGE
Lloh23:
	ldr	x0, [x0, _allsegs@GOTPAGEOFF]
	mov	x1, x28
	bl	_TAILQ_INSERT_TAIL
	mov	x28, x23
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=2
	ldr	w0, [x20]
	mov	x1, x28
	bl	_jblocks_advance
	add	x27, x27, w28, sxtw
	subs	w26, w26, w28
	b.eq	LBB0_3
LBB0_10:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_22 Depth 3
	ldr	w28, [x22]
	ldr	x1, [x27]
	ldr	x8, [x24]
	ldr	x9, [x8]
	cmp	x1, x9
	b.ne	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x9, [x27, #8]
	cbz	x9, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w9, [x27, #16]
	mul	w23, w9, w28
	cmp	w23, w26
	b.le	LBB0_20
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	w8, [x8, #8]
	ldr	w9, [sp, #12]
	cmp	w26, w8
	ccmp	w26, w9, #4, lt
	ccmp	w23, w8, #0, ne
	b.le	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.15:                               ;   in Loop: Header=BB0_10 Depth=2
	str	x26, [sp]
Lloh24:
	adrp	x0, l_.str.3@PAGE
Lloh25:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x23
	bl	_printf
	ldr	w28, [x22]
	b	LBB0_9
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=2
	str	x9, [sp]
	mov	x0, x25
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_printf
	b	LBB0_9
LBB0_18:                                ;   in Loop: Header=BB0_10 Depth=2
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.19:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh26:
	adrp	x0, l_.str.2@PAGE
Lloh27:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	w1, #0
	bl	_printf
	b	LBB0_9
LBB0_20:                                ;   in Loop: Header=BB0_10 Depth=2
	cmp	w9, #2
	b.lt	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=2
	sxtw	x10, w28
	ldr	w8, [x27, #20]
	add	x11, x27, x10
	mov	w19, #1
LBB0_22:                                ;   Parent Loop BB0_4 Depth=1
                                        ;     Parent Loop BB0_10 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w12, [x11, #20]
	cmp	w12, w8
	b.ne	LBB0_27
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=3
	ldr	x12, [x11]
	cmp	x12, x1
	b.ne	LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_22 Depth=3
	add	x19, x19, #1
	add	x11, x11, x10
	cmp	x9, x19
	b.ne	LBB0_22
LBB0_25:                                ;   in Loop: Header=BB0_10 Depth=2
	mov	w0, #40
	bl	_errmalloc
	mov	x28, x0
	mov	x0, x23
	bl	_errmalloc
	str	x0, [x28]
	ldp	q1, q0, [x27]
	stur	q1, [x28, #8]
	stur	q0, [x28, #24]
	mov	x1, x27
	mov	x2, x23
	bl	_memmove
	ldr	x8, [x27, #24]
Lloh28:
	adrp	x9, _oldseq@GOTPAGE
Lloh29:
	ldr	x9, [x9, _oldseq@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.le	LBB0_8
; %bb.26:                               ;   in Loop: Header=BB0_10 Depth=2
Lloh31:
	adrp	x9, _oldseq@GOTPAGE
Lloh32:
	ldr	x9, [x9, _oldseq@GOTPAGEOFF]
Lloh33:
	str	x8, [x9]
	b	LBB0_8
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x21]
	cbz	x9, LBB0_2
; %bb.28:                               ;   in Loop: Header=BB0_4 Depth=1
	str	x19, [sp]
Lloh34:
	adrp	x0, l_.str.4@PAGE
Lloh35:
	add	x0, x0, l_.str.4@PAGEOFF
	mov	x1, x8
	bl	_printf
	ldr	w28, [x22]
	b	LBB0_2
LBB0_29:
	ldur	x8, [x29, #-96]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_31
; %bb.30:
	add	sp, sp, #1024, lsl #12          ; =4194304
	add	sp, sp, #32
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_31:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotStr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_suj_jblocks,4,2                ; @suj_jblocks
	.comm	_disk,4,2                       ; @disk
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error reading journal block %jd\n"

	.comm	_real_dev_bsize,4,2             ; @real_dev_bsize
	.comm	_fs,8,3                         ; @fs
	.comm	_debug,8,3                      ; @debug
l_.str.1:                               ; @.str.1
	.asciz	"Rec time %jd != fs mtime %jd\n"

l_.str.2:                               ; @.str.2
	.asciz	"Found illegal count %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Found invalid segsize %d > %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Incomplete record %jd (%d)\n"

	.comm	_oldseq,8,3                     ; @oldseq
	.comm	_allsegs,4,2                    ; @allsegs
	.comm	_ss_next,4,2                    ; @ss_next
	.no_dead_strip	_suj_read
.subsections_via_symbols
