	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_metadata_read
_eli_metadata_read:                     ## @eli_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	%rsi, %rdi
	callq	_g_get_sectorsize
	testq	%rax, %rax
	je	LBB0_1
## %bb.5:
	movq	_G_ELI_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$8, %edx
	callq	_g_metadata_read
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_1:
	movq	_O_RDONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_2
## %bb.3:
	movl	%eax, %r12d
	leaq	-48(%rbp), %rsi
	movl	%eax, %edi
	movl	$8, %edx
	callq	_read
	cmpl	$8, %eax
	jne	LBB0_4
## %bb.7:
	movl	%r12d, %edi
	callq	_close
LBB0_8:
	leaq	-48(%rbp), %rdi
	movq	%r15, %rsi
	callq	_eli_metadata_decode
	testl	%eax, %eax
	je	LBB0_16
## %bb.9:
	cmpl	$129, %eax
	je	LBB0_12
## %bb.10:
	cmpl	$128, %eax
	jne	LBB0_13
## %bb.11:
	movl	(%r15), %ecx
	movq	_G_ELI_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_15
LBB0_2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_14
LBB0_4:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
	movl	%r12d, %edi
	callq	_close
	jmp	LBB0_15
LBB0_12:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_15
LBB0_13:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
LBB0_14:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_18
## %bb.17:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_O_RDONLY,4,2                   ## @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot open %s: %s."

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Cannot read metadata from %s: %s."

	.comm	_G_ELI_MAGIC,4,2                ## @G_ELI_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"Provider's %s metadata version %u is too new.\ngeli: The highest supported version is %u."

	.comm	_G_ELI_VERSION,4,2              ## @G_ELI_VERSION
L_.str.3:                               ## @.str.3
	.asciz	"Inconsistent provider's %s metadata."

L_.str.4:                               ## @.str.4
	.asciz	"Unexpected error while decoding provider's %s metadata: %s."

	.no_dead_strip	_eli_metadata_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_metadata_read
_eli_metadata_read:                     ; @eli_metadata_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	x0, x1
	bl	_g_get_sectorsize
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _G_ELI_MAGIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _G_ELI_MAGIC@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #8
	bl	_g_metadata_read
	cbz	w0, LBB0_6
; %bb.2:
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_14
LBB0_3:
Lloh8:
	adrp	x8, _O_RDONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _O_RDONLY@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.4:
	mov	x22, x0
	add	x1, sp, #16
	mov	w2, #8
	bl	_read
	cmp	w0, #8
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x22
	bl	_close
LBB0_6:
	add	x0, sp, #16
	mov	x1, x21
	bl	_eli_metadata_decode
	cbz	w0, LBB0_16
; %bb.7:
	cmp	w0, #129
	b.eq	LBB0_12
; %bb.8:
	cmp	w0, #128
	b.ne	LBB0_13
; %bb.9:
	ldr	x8, [x21]
Lloh11:
	adrp	x9, _G_ELI_VERSION@GOTPAGE
Lloh12:
	ldr	x9, [x9, _G_ELI_VERSION@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	stp	x8, x9, [sp]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_14
LBB0_10:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_14
LBB0_11:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_gctl_error
	mov	x0, x22
	bl	_close
	b	LBB0_15
LBB0_12:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_14
LBB0_13:
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh28:
	adrp	x1, l_.str.4@PAGE
Lloh29:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_14:
	mov	x0, x20
	mov	x2, x19
	bl	_gctl_error
LBB0_15:
	mov	w0, #-1
LBB0_16:
	ldr	x8, [sp, #24]
Lloh30:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh31:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.17:
	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
	add	sp, sp, #80
	ret
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_O_RDONLY,4,2                   ; @O_RDONLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot open %s: %s."

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Cannot read metadata from %s: %s."

	.comm	_G_ELI_MAGIC,4,2                ; @G_ELI_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"Provider's %s metadata version %u is too new.\ngeli: The highest supported version is %u."

	.comm	_G_ELI_VERSION,4,2              ; @G_ELI_VERSION
l_.str.3:                               ; @.str.3
	.asciz	"Inconsistent provider's %s metadata."

l_.str.4:                               ; @.str.4
	.asciz	"Unexpected error while decoding provider's %s metadata: %s."

	.no_dead_strip	_eli_metadata_read
.subsections_via_symbols
