	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r5l_load_log
_r5l_load_log:                          ## @r5l_load_log
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	56(%rdi), %r15
	movq	(%r15), %r13
	cmpq	8(%r15), %r13
	jge	LBB0_2
## %bb.1:
	movq	_BLOCK_SECTORS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_round_down
	cmpq	%r13, %rax
	je	LBB0_3
LBB0_2:
	xorl	%r13d, %r13d
LBB0_3:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_alloc_page
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r12
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movl	$0, (%rsp)
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rcx
	xorl	%r9d, %r9d
	callq	_sync_page_io
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	%r12, %rdi
	callq	_page_address
	movq	%rax, %rbx
	movq	24(%rax), %rdi
	callq	_le32_to_cpu
	movq	_R5LOG_MAGIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.8:
	movq	(%rbx), %rax
	movq	_R5LOG_VERSION@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.9:
	movq	16(%rbx), %rdi
	callq	_le32_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 16(%rbx)
	movl	48(%r14), %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_crc32c_le
	cmpq	%rax, -48(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_11
## %bb.10:
	movl	12(%rbx), %edi
	callq	_le64_to_cpu
	cmpq	%r13, %rax
	jne	LBB0_11
## %bb.12:
	movl	8(%rbx), %edi
	callq	_le64_to_cpu
	movq	%rax, 16(%r14)
	movb	$1, %bl
	jmp	LBB0_13
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
LBB0_11:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_prandom_u32
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	xorl	%esi, %esi
	movq	%rax, %rdx
	callq	_r5l_log_write_empty_meta_block
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_r5l_write_super
	xorl	%r13d, %r13d
LBB0_13:
	movq	8(%r15), %rdi
	movq	_BLOCK_SECTORS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_round_down
	movl	%eax, (%r14)
	movq	_RECLAIM_MAX_FREE_SPACE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movq	_RECLAIM_MAX_FREE_SPACE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %eax
	cmovgel	%ecx, %eax
	movl	%eax, 4(%r14)
	movq	%r13, 40(%r14)
	movq	%r12, %rdi
	callq	___free_page
	testb	%bl, %bl
	je	LBB0_14
## %bb.15:
	movq	%r14, %rdi
	callq	_r5l_recovery_log
	movl	%eax, %ebx
	jmp	LBB0_16
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	%r12, %rdi
	callq	___free_page
	jmp	LBB0_17
LBB0_14:
	movl	(%r15), %edx
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_r5l_ring_add
	movl	%eax, 32(%r14)
	movq	16(%r14), %rax
	incq	%rax
	movq	%rax, 24(%r14)
	movq	%r13, 8(%r14)
	xorl	%ebx, %ebx
LBB0_16:
	movq	%r14, %rdi
	callq	_r5c_update_log_state
LBB0_17:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLOCK_SECTORS,4,2              ## @BLOCK_SECTORS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_EIO,4,2                        ## @EIO
	.comm	_R5LOG_MAGIC,8,3                ## @R5LOG_MAGIC
	.comm	_R5LOG_VERSION,8,3              ## @R5LOG_VERSION
	.comm	_RECLAIM_MAX_FREE_SPACE_SHIFT,4,2 ## @RECLAIM_MAX_FREE_SPACE_SHIFT
	.comm	_RECLAIM_MAX_FREE_SPACE,4,2     ## @RECLAIM_MAX_FREE_SPACE
	.no_dead_strip	_r5l_load_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r5l_load_log
_r5l_load_log:                          ; @r5l_load_log
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x21, [x0, #56]
	ldp	x20, x8, [x21]
	cmp	x20, x8
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _BLOCK_SECTORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BLOCK_SECTORS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_round_down
	cmp	x0, x20
	b.eq	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
Lloh3:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_alloc_page
	cbz	x0, LBB0_10
; %bb.4:
	mov	x22, x0
Lloh6:
	adrp	x25, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x25, [x25, _PAGE_SIZE@GOTPAGEOFF]
	ldr	w2, [x25]
Lloh8:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh10:
	ldr	w4, [x8]
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	w5, #0
	mov	w6, #0
	bl	_sync_page_io
	cbz	w0, LBB0_14
; %bb.5:
	mov	x0, x22
	bl	_page_address
	mov	x23, x0
	ldr	x0, [x0, #24]
	bl	_le32_to_cpu
Lloh11:
	adrp	x8, _R5LOG_MAGIC@GOTPAGE
Lloh12:
	ldr	x8, [x8, _R5LOG_MAGIC@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.6:
	ldr	x8, [x23]
Lloh14:
	adrp	x9, _R5LOG_VERSION@GOTPAGE
Lloh15:
	ldr	x9, [x9, _R5LOG_VERSION@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.7:
	ldr	x0, [x23, #16]
	bl	_le32_to_cpu
	mov	x24, x0
	str	xzr, [x23, #16]
	ldr	w0, [x19, #48]
	ldr	w2, [x25]
	mov	x1, x23
	bl	_crc32c_le
	cmp	x24, x0
	b.ne	LBB0_11
; %bb.8:
	ldr	w0, [x23, #12]
	bl	_le64_to_cpu
	cmp	x0, x20
	b.ne	LBB0_11
; %bb.9:
	ldr	w0, [x23, #8]
	bl	_le64_to_cpu
	str	x0, [x19, #16]
	mov	w23, #1
	b	LBB0_12
LBB0_10:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_17
LBB0_11:
	bl	_prandom_u32
	mov	x2, x0
	str	x0, [x19, #16]
	mov	x0, x19
	mov	x1, #0
	bl	_r5l_log_write_empty_meta_block
	mov	x0, x19
	mov	x1, #0
	bl	_r5l_write_super
	mov	w23, #0
	mov	x20, #0
LBB0_12:
	ldr	x0, [x21, #8]
Lloh20:
	adrp	x21, _BLOCK_SECTORS@GOTPAGE
Lloh21:
	ldr	x21, [x21, _BLOCK_SECTORS@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_round_down
	str	w0, [x19]
Lloh22:
	adrp	x8, _RECLAIM_MAX_FREE_SPACE_SHIFT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _RECLAIM_MAX_FREE_SPACE_SHIFT@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _RECLAIM_MAX_FREE_SPACE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RECLAIM_MAX_FREE_SPACE@GOTPAGEOFF]
	asr	w8, w0, w8
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	csel	w8, w8, w9, lt
	str	w8, [x19, #4]
	str	x20, [x19, #40]
	mov	x0, x22
	bl	___free_page
	tbz	w23, #0, LBB0_15
; %bb.13:
	mov	x0, x19
	bl	_r5l_recovery_log
	mov	x21, x0
	b	LBB0_16
LBB0_14:
Lloh28:
	adrp	x8, _EIO@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w21, w8
	mov	x0, x22
	bl	___free_page
	b	LBB0_17
LBB0_15:
	ldr	w2, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_r5l_ring_add
	mov	w21, #0
	str	w0, [x19, #32]
	ldr	x8, [x19, #16]
	add	x8, x8, #1
	str	x8, [x19, #24]
	str	x20, [x19, #8]
LBB0_16:
	mov	x0, x19
	bl	_r5c_update_log_state
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_BLOCK_SECTORS,4,2              ; @BLOCK_SECTORS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_EIO,4,2                        ; @EIO
	.comm	_R5LOG_MAGIC,8,3                ; @R5LOG_MAGIC
	.comm	_R5LOG_VERSION,8,3              ; @R5LOG_VERSION
	.comm	_RECLAIM_MAX_FREE_SPACE_SHIFT,4,2 ; @RECLAIM_MAX_FREE_SPACE_SHIFT
	.comm	_RECLAIM_MAX_FREE_SPACE,4,2     ; @RECLAIM_MAX_FREE_SPACE
	.no_dead_strip	_r5l_load_log
.subsections_via_symbols
