	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_header
_read_header:                           ## @read_header
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_REQ_OP_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_rw_header
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	leaq	8(%rbx), %r14
	movl	32(%rbx), %esi
	movq	%r14, %rdi
	callq	_header_from_disk
	movq	(%rbx), %rax
	movq	_DEFAULTSYNC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.3:
	movq	_MIRROR_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, (%r14)
	jne	LBB0_4
## %bb.5:
	movl	16(%rbx), %ecx
	movq	_MIRROR_DISK_VERSION@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_DMWARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	_MIRROR_MAGIC@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_4:
	movq	%rax, 8(%rbx)
	movq	_MIRROR_DISK_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 24(%rbx)
	xorl	%eax, %eax
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REQ_OP_READ,4,2                ## @REQ_OP_READ
	.comm	_DEFAULTSYNC,8,3                ## @DEFAULTSYNC
	.comm	_MIRROR_MAGIC,8,3               ## @MIRROR_MAGIC
	.comm	_MIRROR_DISK_VERSION,4,2        ## @MIRROR_DISK_VERSION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"incompatible disk log version"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_read_header
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_header
_read_header:                           ; @read_header
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _REQ_OP_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REQ_OP_READ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_rw_header
	cbnz	w0, LBB0_7
; %bb.1:
	add	x20, x19, #8
	ldr	w1, [x19, #32]
	mov	x0, x20
	bl	_header_from_disk
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _DEFAULTSYNC@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEFAULTSYNC@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	ldr	x9, [x20]
Lloh6:
	adrp	x8, _MIRROR_MAGIC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MIRROR_MAGIC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.3:
	ldr	w8, [x19, #16]
Lloh9:
	adrp	x9, _MIRROR_DISK_VERSION@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MIRROR_DISK_VERSION@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh12:
	adrp	x8, _MIRROR_MAGIC@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MIRROR_MAGIC@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
LBB0_6:
	mov	w0, #0
	str	x8, [x19, #8]
Lloh15:
	adrp	x8, _MIRROR_DISK_VERSION@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MIRROR_DISK_VERSION@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	str	xzr, [x19, #24]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DMWARN
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REQ_OP_READ,4,2                ; @REQ_OP_READ
	.comm	_DEFAULTSYNC,8,3                ; @DEFAULTSYNC
	.comm	_MIRROR_MAGIC,8,3               ; @MIRROR_MAGIC
	.comm	_MIRROR_DISK_VERSION,4,2        ; @MIRROR_DISK_VERSION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"incompatible disk log version"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_read_header
.subsections_via_symbols
