	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_metadata_store
_eli_metadata_store:                    ## @eli_metadata_store
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	-28(%rbp), %rsi
	movq	%rdx, %rdi
	callq	_eli_metadata_encode
	movq	%rbx, %rdi
	callq	_g_get_sectorsize
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	-28(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$4, %edx
	callq	_g_metadata_store
	testl	%eax, %eax
	je	LBB0_6
## %bb.2:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_7
## %bb.4:
	movl	%eax, %r15d
	leaq	-28(%rbp), %rsi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_write
	cmpl	$4, %eax
	jne	LBB0_11
## %bb.5:
	movl	%r15d, %edi
	callq	_close
LBB0_6:
	leaq	-28(%rbp), %rdi
	movl	$4, %esi
	callq	_explicit_bzero
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
LBB0_8:
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	callq	_gctl_error
	leaq	-28(%rbp), %rdi
	movl	$4, %esi
	callq	_explicit_bzero
LBB0_9:
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	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
	callq	_gctl_error
	leaq	-28(%rbp), %rdi
	movl	$4, %esi
	callq	_explicit_bzero
	movl	%r15d, %edi
	callq	_close
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.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 write metadata to %s: %s."

	.no_dead_strip	_eli_metadata_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_metadata_store
_eli_metadata_store:                    ; @eli_metadata_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	add	x1, sp, #12
	mov	x0, x2
	bl	_eli_metadata_encode
	mov	x0, x19
	bl	_g_get_sectorsize
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, sp, #12
	mov	x0, x19
	mov	w2, #4
	bl	_g_metadata_store
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_3:
Lloh5:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_7
; %bb.4:
	mov	x21, x0
	add	x1, sp, #12
	mov	w2, #4
	bl	_write
	cmp	w0, #4
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x21
	bl	_close
LBB0_6:
	add	x0, sp, #12
	mov	w1, #4
	bl	_explicit_bzero
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_8:
	mov	x0, x20
	mov	x2, x19
	bl	_gctl_error
	add	x0, sp, #12
	mov	w1, #4
	bl	_explicit_bzero
LBB0_9:
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_11:
Lloh16:
	adrp	x8, _errno@GOTPAGE
Lloh17:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_gctl_error
	add	x0, sp, #12
	mov	w1, #4
	bl	_explicit_bzero
	mov	x0, x21
	bl	_close
	b	LBB0_9
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.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 write metadata to %s: %s."

	.no_dead_strip	_eli_metadata_store
.subsections_via_symbols
