	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_metadata_read                  ## -- Begin function metadata_read
	.p2align	4, 0x90
_metadata_read:                         ## @metadata_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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %r15d
	xorl	%r12d, %r12d
	cmpl	$-1, %r15d
	je	LBB0_1
LBB0_8:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_METADATA_SIZE@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_ebuf_alloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.12:
	movq	%rax, %r13
	movl	(%r15), %edx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_ebuf_add_tail
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.16:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ebuf_data
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_PJDLOG_ASSERT
	movl	(%r14), %edi
	movl	(%r15), %edx
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_pread
	cmpl	$-1, %eax
	je	LBB0_18
## %bb.17:
	cmpl	(%r15), %eax
	jne	LBB0_18
## %bb.19:
	movq	%r13, %rdi
	callq	_nv_ntoh
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:
	movq	%rax, %rbx
	leaq	L_.str.7(%rip), %rsi
	movq	%rax, %rdi
	callq	_nv_get_string
	testq	%rax, %rax
	je	LBB0_25
## %bb.22:
	movq	8(%r14), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_25
## %bb.23:
	movl	32(%r14), %esi
	movq	8(%r14), %rdx
	leaq	L_.str.8(%rip), %rdi
	callq	_pjdlog_error
	jmp	LBB0_24
LBB0_1:
	movl	%esi, %ebx
	movq	%r14, %rdi
	callq	_provinfo
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movl	32(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_pjdlog_debug
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.4:
	movl	(%r14), %edi
	movq	_LOCK_EX@GOTPCREL(%rip), %rax
	movq	_LOCK_NB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	callq	_flock
	xorl	%r12d, %r12d
	cmpl	$-1, %eax
	jne	LBB0_7
## %bb.5:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	jne	LBB0_37
## %bb.6:
	movl	32(%r14), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_pjdlog_warning
LBB0_7:
	movl	32(%r14), %edx
	leaq	L_.str.3(%rip), %rsi
	movl	$1, %edi
	callq	_pjdlog_debug
	jmp	LBB0_8
LBB0_9:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
	jmp	LBB0_10
LBB0_13:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_18:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
LBB0_14:
	xorl	%eax, %eax
	callq	_pjdlog_errno
LBB0_15:
	movq	%r13, %rdi
	callq	_ebuf_free
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	$-1, %eax
	jne	LBB0_11
LBB0_38:
	movl	(%r14), %edi
	callq	_close
	movl	$-1, (%r14)
	jmp	LBB0_11
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movl	$-1, %eax
LBB0_36:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %edx
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
	jmp	LBB0_15
LBB0_25:
	leaq	L_.str.9(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint64
	movq	%rax, 96(%r14)
	leaq	L_.str.10(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint32
	movl	%eax, 16(%r14)
	leaq	L_.str.11(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint32
	movl	%eax, 20(%r14)
	leaq	L_.str.12(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint64
	movq	%rax, 88(%r14)
	leaq	L_.str.13(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint64
	movq	%rax, 80(%r14)
	movq	24(%r14), %rax
	movq	_HAST_ROLE_PRIMARY@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	je	LBB0_27
## %bb.26:
	leaq	L_.str.14(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint64
	movq	%rax, 72(%r14)
	leaq	L_.str.15(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint64
	movq	%rax, 64(%r14)
	movq	24(%r14), %rax
LBB0_27:
	movq	_HAST_ROLE_SECONDARY@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rax
	je	LBB0_29
## %bb.28:
	leaq	L_.str.14(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint64
	movq	%rax, 56(%r14)
	leaq	L_.str.15(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_uint64
	movq	%rax, 48(%r14)
LBB0_29:
	leaq	L_.str.16(%rip), %rsi
	movq	%rbx, %rdi
	callq	_nv_get_string
	testq	%rax, %rax
	je	LBB0_33
## %bb.30:
	movq	%rax, %r12
	leaq	L_.str.17(%rip), %rsi
	movq	%rax, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_32
## %bb.31:
	leaq	L_.str.18(%rip), %rsi
	movq	%r12, %rdi
	callq	_strcmp
	movq	%r15, %r13
	testq	%rax, %rax
	jne	LBB0_33
LBB0_32:
	movq	(%r13), %rax
	movq	%rax, 40(%r14)
LBB0_33:
	movq	%rbx, %rdi
	callq	_nv_error
	testq	%rax, %rax
	je	LBB0_35
## %bb.34:
	movq	%rbx, %rdi
	callq	_nv_error
	movq	%rax, %r12
	movq	_errno@GOTPCREL(%rip), %rax
	movl	%r12d, (%rax)
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %edx
	leaq	L_.str.19(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
LBB0_24:
	movq	%rbx, %rdi
	callq	_nv_free
	jmp	LBB0_10
LBB0_37:
	movq	_LOG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	32(%r14), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_pjdlog_errno
	jmp	LBB0_38
LBB0_35:
	movq	%rbx, %rdi
	callq	_nv_free
	xorl	%eax, %eax
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Obtained info about %s."

	.comm	_LOCK_EX,4,2                    ## @LOCK_EX
	.comm	_LOCK_NB,4,2                    ## @LOCK_NB
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.1:                               ## @.str.1
	.asciz	"Unable to lock %s (operation not supported), but continuing."

	.comm	_LOG_ERR,4,2                    ## @LOG_ERR
L_.str.2:                               ## @.str.2
	.asciz	"Unable to lock %s"

L_.str.3:                               ## @.str.3
	.asciz	"Locked %s."

	.comm	_METADATA_SIZE,4,2              ## @METADATA_SIZE
L_.str.4:                               ## @.str.4
	.asciz	"Unable to allocate memory to read metadata"

L_.str.5:                               ## @.str.5
	.asciz	"Unable to read metadata"

L_.str.6:                               ## @.str.6
	.asciz	"Metadata read from %s is invalid"

L_.str.7:                               ## @.str.7
	.asciz	"resource"

L_.str.8:                               ## @.str.8
	.asciz	"Provider %s is not part of resource %s."

L_.str.9:                               ## @.str.9
	.asciz	"datasize"

L_.str.10:                              ## @.str.10
	.asciz	"extentsize"

L_.str.11:                              ## @.str.11
	.asciz	"keepdirty"

L_.str.12:                              ## @.str.12
	.asciz	"offset"

L_.str.13:                              ## @.str.13
	.asciz	"resuid"

	.comm	_HAST_ROLE_PRIMARY,8,3          ## @HAST_ROLE_PRIMARY
L_.str.14:                              ## @.str.14
	.asciz	"localcnt"

L_.str.15:                              ## @.str.15
	.asciz	"remotecnt"

	.comm	_HAST_ROLE_SECONDARY,8,3        ## @HAST_ROLE_SECONDARY
L_.str.16:                              ## @.str.16
	.asciz	"prevrole"

L_.str.17:                              ## @.str.17
	.asciz	"primary"

L_.str.18:                              ## @.str.18
	.asciz	"secondary"

L_.str.19:                              ## @.str.19
	.asciz	"Unable to read metadata from %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_metadata_read                  ; -- Begin function metadata_read
	.p2align	2
_metadata_read:                         ; @metadata_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x0
	ldr	w24, [x0]
Lloh0:
	adrp	x23, _errno@GOTPAGE
Lloh1:
	ldr	x23, [x23, _errno@GOTPAGEOFF]
	cmn	w24, #1
	b.eq	LBB0_6
; %bb.1:
	mov	w20, #0
LBB0_2:
Lloh2:
	adrp	x25, _METADATA_SIZE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _METADATA_SIZE@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_ebuf_alloc
	cbz	x0, LBB0_10
; %bb.3:
	mov	x22, x0
	ldr	w2, [x25]
	mov	x1, #0
	bl	_ebuf_add_tail
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.4:
	mov	x0, x22
	mov	x1, #0
	bl	_ebuf_data
	mov	x21, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_PJDLOG_ASSERT
	ldr	w0, [x19]
	ldr	w2, [x25]
	mov	x1, x21
	mov	w3, #0
	bl	_pread
	ldr	w8, [x25]
	cmn	w0, #1
	ccmp	w0, w8, #0, ne
	b.eq	LBB0_12
; %bb.5:
	ldr	w20, [x23]
Lloh4:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str.5@PAGE
Lloh8:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_26
LBB0_6:
	mov	x20, x1
	mov	x0, x19
	bl	_provinfo
	cmn	w0, #1
	b.eq	LBB0_16
; %bb.7:
	ldr	w2, [x19, #32]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_pjdlog_debug
	cbz	w20, LBB0_2
; %bb.8:
Lloh11:
	adrp	x8, _LOCK_EX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _LOCK_EX@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _LOCK_NB@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LOCK_NB@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w1, w9, w8
	bl	_flock
	cmn	w0, #1
	b.eq	LBB0_30
; %bb.9:
	mov	w20, #0
	b	LBB0_32
LBB0_10:
	ldr	w20, [x23]
Lloh17:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str.4@PAGE
Lloh21:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_pjdlog_errno
	cmn	w24, #1
	b.ne	LBB0_28
	b	LBB0_27
LBB0_11:
	ldr	w20, [x23]
Lloh22:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_26
LBB0_12:
	mov	x0, x22
	bl	_nv_ntoh
	cbz	x0, LBB0_25
; %bb.13:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_nv_get_string
	cbz	x0, LBB0_17
; %bb.14:
	ldr	x1, [x19, #8]
	bl	_strcmp
	cbz	x0, LBB0_17
; %bb.15:
	ldr	w1, [x19, #32]
	ldr	x2, [x19, #8]
Lloh29:
	adrp	x0, l_.str.8@PAGE
Lloh30:
	add	x0, x0, l_.str.8@PAGEOFF
	bl	_pjdlog_error
	b	LBB0_38
LBB0_16:
	ldr	w20, [x23]
	b	LBB0_28
LBB0_17:
Lloh31:
	adrp	x1, l_.str.9@PAGE
Lloh32:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint64
	str	x0, [x19, #96]
Lloh33:
	adrp	x1, l_.str.10@PAGE
Lloh34:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint32
	str	w0, [x19, #16]
Lloh35:
	adrp	x1, l_.str.11@PAGE
Lloh36:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint32
	str	w0, [x19, #20]
Lloh37:
	adrp	x1, l_.str.12@PAGE
Lloh38:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint64
	str	x0, [x19, #88]
Lloh39:
	adrp	x1, l_.str.13@PAGE
Lloh40:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint64
	str	x0, [x19, #80]
	ldr	x8, [x19, #24]
Lloh41:
	adrp	x9, _HAST_ROLE_PRIMARY@GOTPAGE
Lloh42:
	ldr	x9, [x9, _HAST_ROLE_PRIMARY@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.18:
Lloh44:
	adrp	x1, l_.str.14@PAGE
Lloh45:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint64
	str	x0, [x19, #72]
Lloh46:
	adrp	x1, l_.str.15@PAGE
Lloh47:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint64
	str	x0, [x19, #64]
	ldr	x8, [x19, #24]
LBB0_19:
Lloh48:
	adrp	x9, _HAST_ROLE_SECONDARY@GOTPAGE
Lloh49:
	ldr	x9, [x9, _HAST_ROLE_SECONDARY@GOTPAGEOFF]
Lloh50:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.20:
Lloh51:
	adrp	x1, l_.str.14@PAGE
Lloh52:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint64
	str	x0, [x19, #56]
Lloh53:
	adrp	x1, l_.str.15@PAGE
Lloh54:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x21
	bl	_nv_get_uint64
	str	x0, [x19, #48]
LBB0_21:
Lloh55:
	adrp	x1, l_.str.16@PAGE
Lloh56:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x21
	bl	_nv_get_string
	cbz	x0, LBB0_36
; %bb.22:
	mov	x20, x0
Lloh57:
	adrp	x1, l_.str.17@PAGE
Lloh58:
	add	x1, x1, l_.str.17@PAGEOFF
	bl	_strcmp
	cbz	x0, LBB0_34
; %bb.23:
Lloh59:
	adrp	x1, l_.str.18@PAGE
Lloh60:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x20
	bl	_strcmp
	cbnz	x0, LBB0_36
; %bb.24:
Lloh61:
	adrp	x8, _HAST_ROLE_SECONDARY@GOTPAGE
Lloh62:
	ldr	x8, [x8, _HAST_ROLE_SECONDARY@GOTPAGEOFF]
	b	LBB0_35
LBB0_25:
	ldr	w20, [x23]
Lloh63:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh64:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh65:
	ldr	w0, [x8]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh66:
	adrp	x1, l_.str.6@PAGE
Lloh67:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_26:
	bl	_pjdlog_errno
	mov	x0, x22
	bl	_ebuf_free
	cmn	w24, #1
	b.ne	LBB0_28
LBB0_27:
	ldr	w0, [x19]
	bl	_close
	mov	w8, #-1
	str	w8, [x19]
LBB0_28:
	str	w20, [x23]
	mov	w0, #-1
LBB0_29:
	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
	add	sp, sp, #96
	ret
LBB0_30:
	ldr	w20, [x23]
Lloh68:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh69:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh70:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ne	LBB0_33
; %bb.31:
	ldr	w1, [x19, #32]
Lloh71:
	adrp	x0, l_.str.1@PAGE
Lloh72:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pjdlog_warning
LBB0_32:
	ldr	w2, [x19, #32]
Lloh73:
	adrp	x1, l_.str.3@PAGE
Lloh74:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	w0, #1
	bl	_pjdlog_debug
	b	LBB0_2
LBB0_33:
Lloh75:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh76:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh77:
	ldr	w0, [x8]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh78:
	adrp	x1, l_.str.2@PAGE
Lloh79:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_pjdlog_errno
	b	LBB0_27
LBB0_34:
Lloh80:
	adrp	x8, _HAST_ROLE_PRIMARY@GOTPAGE
Lloh81:
	ldr	x8, [x8, _HAST_ROLE_PRIMARY@GOTPAGEOFF]
LBB0_35:
	ldr	x8, [x8]
	str	x8, [x19, #40]
LBB0_36:
	mov	x0, x21
	bl	_nv_error
	cbz	x0, LBB0_39
; %bb.37:
	mov	x0, x21
	bl	_nv_error
	mov	x20, x0
	str	w20, [x23]
Lloh82:
	adrp	x8, _LOG_ERR@GOTPAGE
Lloh83:
	ldr	x8, [x8, _LOG_ERR@GOTPAGEOFF]
Lloh84:
	ldr	w0, [x8]
	ldr	w8, [x19, #32]
	str	x8, [sp]
Lloh85:
	adrp	x1, l_.str.19@PAGE
Lloh86:
	add	x1, x1, l_.str.19@PAGEOFF
	bl	_pjdlog_errno
LBB0_38:
	mov	x0, x21
	bl	_nv_free
	cmn	w24, #1
	b.ne	LBB0_28
	b	LBB0_27
LBB0_39:
	mov	x0, x21
	bl	_nv_free
	mov	w0, #0
	b	LBB0_29
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh46, Lloh47
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh57, Lloh58
	.loh AdrpAdd	Lloh59, Lloh60
	.loh AdrpLdrGot	Lloh61, Lloh62
	.loh AdrpAdd	Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpAdd	Lloh71, Lloh72
	.loh AdrpAdd	Lloh73, Lloh74
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh80, Lloh81
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Obtained info about %s."

	.comm	_LOCK_EX,4,2                    ; @LOCK_EX
	.comm	_LOCK_NB,4,2                    ; @LOCK_NB
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.1:                               ; @.str.1
	.asciz	"Unable to lock %s (operation not supported), but continuing."

	.comm	_LOG_ERR,4,2                    ; @LOG_ERR
l_.str.2:                               ; @.str.2
	.asciz	"Unable to lock %s"

l_.str.3:                               ; @.str.3
	.asciz	"Locked %s."

	.comm	_METADATA_SIZE,4,2              ; @METADATA_SIZE
l_.str.4:                               ; @.str.4
	.asciz	"Unable to allocate memory to read metadata"

l_.str.5:                               ; @.str.5
	.asciz	"Unable to read metadata"

l_.str.6:                               ; @.str.6
	.asciz	"Metadata read from %s is invalid"

l_.str.7:                               ; @.str.7
	.asciz	"resource"

l_.str.8:                               ; @.str.8
	.asciz	"Provider %s is not part of resource %s."

l_.str.9:                               ; @.str.9
	.asciz	"datasize"

l_.str.10:                              ; @.str.10
	.asciz	"extentsize"

l_.str.11:                              ; @.str.11
	.asciz	"keepdirty"

l_.str.12:                              ; @.str.12
	.asciz	"offset"

l_.str.13:                              ; @.str.13
	.asciz	"resuid"

	.comm	_HAST_ROLE_PRIMARY,8,3          ; @HAST_ROLE_PRIMARY
l_.str.14:                              ; @.str.14
	.asciz	"localcnt"

l_.str.15:                              ; @.str.15
	.asciz	"remotecnt"

	.comm	_HAST_ROLE_SECONDARY,8,3        ; @HAST_ROLE_SECONDARY
l_.str.16:                              ; @.str.16
	.asciz	"prevrole"

l_.str.17:                              ; @.str.17
	.asciz	"primary"

l_.str.18:                              ; @.str.18
	.asciz	"secondary"

l_.str.19:                              ; @.str.19
	.asciz	"Unable to read metadata from %s"

.subsections_via_symbols
