	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_backup_create
_eli_backup_create:                     ## @eli_backup_create
	.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	%rdx, %r12
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, %rdi
	callq	_g_get_sectorsize
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.2:
	movq	%rax, %r14
	movq	_G_ELI_MAGIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_g_metadata_read
	testl	%eax, %eax
	je	LBB0_11
## %bb.3:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
LBB0_4:
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
LBB0_5:
	movl	$-1, %ebx
LBB0_6:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_10
LBB0_7:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_9
LBB0_8:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_gctl_error
LBB0_9:
	movl	$-1, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_O_WRONLY@GOTPCREL(%rip), %rax
	movq	_O_TRUNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	_O_CREAT@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movq	%r12, %rdi
	movl	$384, %edx                      ## imm = 0x180
	callq	_open
	cmpl	$-1, %eax
	je	LBB0_14
## %bb.12:
	movl	%eax, %ebx
	movl	%eax, %edi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_write
	cmpq	%r13, %rax
	jne	LBB0_15
## %bb.13:
	movl	%ebx, %edi
	callq	_fsync
	movl	%ebx, %edi
	callq	_close
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_14:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	jmp	LBB0_4
LBB0_15:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
	movl	%ebx, %edi
	callq	_close
	movq	%r12, %rdi
	callq	_unlink
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cannot get informations about %s: %s."

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"Cannot allocate memory."

	.comm	_G_ELI_MAGIC,4,2                ## @G_ELI_MAGIC
L_.str.2:                               ## @.str.2
	.asciz	"Unable to read metadata from %s: %s."

	.comm	_O_WRONLY,4,2                   ## @O_WRONLY
	.comm	_O_TRUNC,4,2                    ## @O_TRUNC
	.comm	_O_CREAT,4,2                    ## @O_CREAT
L_.str.3:                               ## @.str.3
	.asciz	"Unable to open %s: %s."

L_.str.4:                               ## @.str.4
	.asciz	"Unable to write to %s: %s."

	.no_dead_strip	_eli_backup_create
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_backup_create
_eli_backup_create:                     ; @eli_backup_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	mov	x0, x1
	bl	_g_get_sectorsize
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.2:
	mov	x20, x0
Lloh0:
	adrp	x8, _G_ELI_MAGIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _G_ELI_MAGIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x23
	mov	x1, x20
	mov	x2, x19
	bl	_g_metadata_read
	cbz	w0, LBB0_11
; %bb.3:
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh3:
	adrp	x1, l_.str.2@PAGE
Lloh4:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_4:
	mov	x0, x21
	bl	_gctl_error
LBB0_5:
	mov	w21, #-1
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_explicit_bzero
	mov	x0, x20
	bl	_free
	b	LBB0_10
LBB0_7:
Lloh5:
	adrp	x8, _errno@GOTPAGE
Lloh6:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_9:
	mov	x0, x21
	bl	_gctl_error
	mov	w21, #-1
LBB0_10:
	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
	add	sp, sp, #80
	ret
LBB0_11:
Lloh12:
	adrp	x8, _O_WRONLY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _O_WRONLY@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _O_TRUNC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _O_TRUNC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _O_CREAT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _O_CREAT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w1, w8, w9
	mov	x0, x22
	mov	w2, #384
	bl	_open
	cmn	w0, #1
	b.eq	LBB0_14
; %bb.12:
	mov	x23, x0
	mov	x1, x20
	mov	x2, x19
	bl	_write
	cmp	x0, x19
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x23
	bl	_fsync
	mov	x0, x23
	bl	_close
	mov	w21, #0
	b	LBB0_6
LBB0_14:
Lloh21:
	adrp	x8, _errno@GOTPAGE
Lloh22:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_15:
Lloh26:
	adrp	x8, _errno@GOTPAGE
Lloh27:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x22, x0, [sp]
Lloh29:
	adrp	x1, l_.str.4@PAGE
Lloh30:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x21
	bl	_gctl_error
	mov	x0, x23
	bl	_close
	mov	x0, x22
	bl	_unlink
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cannot get informations about %s: %s."

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"Cannot allocate memory."

	.comm	_G_ELI_MAGIC,4,2                ; @G_ELI_MAGIC
l_.str.2:                               ; @.str.2
	.asciz	"Unable to read metadata from %s: %s."

	.comm	_O_WRONLY,4,2                   ; @O_WRONLY
	.comm	_O_TRUNC,4,2                    ; @O_TRUNC
	.comm	_O_CREAT,4,2                    ; @O_CREAT
l_.str.3:                               ; @.str.3
	.asciz	"Unable to open %s: %s."

l_.str.4:                               ; @.str.4
	.asciz	"Unable to write to %s: %s."

	.no_dead_strip	_eli_backup_create
.subsections_via_symbols
