	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eli_resize
_eli_resize:                            ## @eli_resize
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	L_.str(%rip), %rsi
	callq	_gctl_get_int
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.1:
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	callq	_gctl_get_ascii
	movq	%rax, %r13
	movq	%rax, %rdi
	movl	$1, %esi
	callq	_g_open
	cmpl	$-1, %eax
	je	LBB0_10
## %bb.2:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_g_mediasize
	movl	%eax, %r12d
	movl	%r14d, %edi
	callq	_g_sectorsize
	cmpl	$-1, %r12d
	je	LBB0_11
## %bb.3:
	movl	%eax, %ebx
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.4:
	movl	%ebx, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.5:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	callq	_gctl_get_intmax
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movl	%eax, %ebx
	cmpl	%r12d, %eax
	jg	LBB0_14
## %bb.7:
	jne	LBB0_18
## %bb.8:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gctl_error                     ## TAILCALL
LBB0_10:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_gctl_error                     ## TAILCALL
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_13
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_gctl_error
LBB0_13:
	movl	%r14d, %edi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_g_close                        ## TAILCALL
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
LBB0_15:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_gctl_error
LBB0_16:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_17:
	movl	%r14d, %edi
	callq	_g_close
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_explicit_bzero
	movq	%rbx, %rdi
	callq	_free
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	%ebx, %ecx
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	subl	%edx, %ecx
	movl	%r14d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	callq	_pread
	cmpl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_23
## %bb.19:
	leaq	-80(%rbp), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_eli_metadata_decode
	testl	%eax, %eax
	je	LBB0_25
## %bb.20:
	cmpl	$129, %eax
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	je	LBB0_24
## %bb.21:
	cmpl	$128, %eax
	jne	LBB0_27
## %bb.22:
	movl	-72(%rbp), %ecx
	movq	_G_ELI_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_17
LBB0_23:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_16
LBB0_24:
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_17
LBB0_25:
	cmpl	%ebx, -80(%rbp)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	jne	LBB0_28
## %bb.26:
	movl	%r12d, -80(%rbp)
	leaq	-80(%rbp), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_eli_metadata_store
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	callq	_eli_trash_metadata
	movl	%ebx, %r12d
	jmp	LBB0_17
LBB0_27:
	movl	%eax, %edi
	callq	_strerror
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_gctl_error
	jmp	LBB0_17
LBB0_28:
	leaq	L_.str.13(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_gctl_error
	movl	%ebx, %r12d
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nargs"

L_.str.1:                               ## @.str.1
	.asciz	"Invalid number of arguments."

L_.str.2:                               ## @.str.2
	.asciz	"arg0"

L_.str.3:                               ## @.str.3
	.asciz	"Cannot open %s: %s."

	.comm	_errno,4,2                      ## @errno
L_.str.4:                               ## @.str.4
	.asciz	"Cannot get information about %s: %s."

L_.str.5:                               ## @.str.5
	.asciz	"Cannot allocate memory."

L_.str.6:                               ## @.str.6
	.asciz	"oldsize"

L_.str.7:                               ## @.str.7
	.asciz	"Invalid oldsize: Out of range."

L_.str.8:                               ## @.str.8
	.asciz	"Size hasn't changed."

L_.str.9:                               ## @.str.9
	.asciz	"Cannot read old metadata: %s."

L_.str.10:                              ## @.str.10
	.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.11:                              ## @.str.11
	.asciz	"Inconsistent provider's %s metadata."

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

L_.str.13:                              ## @.str.13
	.asciz	"Provider size mismatch at oldsize."

	.no_dead_strip	_eli_resize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eli_resize
_eli_resize:                            ; @eli_resize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_gctl_get_int
	cmp	w0, #1
	b.ne	LBB0_9
; %bb.1:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_gctl_get_ascii
	mov	x23, x0
	mov	w1, #1
	bl	_g_open
	cmn	w0, #1
	b.eq	LBB0_10
; %bb.2:
	mov	x19, x0
	bl	_g_mediasize
	mov	x24, x0
	mov	x0, x19
	bl	_g_sectorsize
	cmn	w24, #1
	b.eq	LBB0_11
; %bb.3:
	mov	x21, x0
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.4:
	mov	x0, x21
	bl	_malloc
	cbz	x0, LBB0_12
; %bb.5:
	mov	x22, x0
Lloh4:
	adrp	x1, l_.str.6@PAGE
Lloh5:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_gctl_get_intmax
	tbnz	w0, #31, LBB0_14
; %bb.6:
	mov	x26, x0
	cmp	w0, w24
	b.gt	LBB0_14
; %bb.7:
	b.ne	LBB0_18
; %bb.8:
Lloh6:
	adrp	x1, l_.str.8@PAGE
Lloh7:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_15
LBB0_9:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_gctl_error
LBB0_10:
Lloh10:
	adrp	x8, _errno@GOTPAGE
Lloh11:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_gctl_error
	b	LBB0_17
LBB0_11:
Lloh15:
	adrp	x8, _errno@GOTPAGE
Lloh16:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
LBB0_13:
	mov	x0, x20
	bl	_gctl_error
	mov	x0, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_g_close
LBB0_14:
Lloh22:
	adrp	x1, l_.str.7@PAGE
Lloh23:
	add	x1, x1, l_.str.7@PAGEOFF
LBB0_15:
	mov	x0, x20
	bl	_gctl_error
LBB0_16:
	mov	x0, x19
	bl	_g_close
	mov	x0, x22
	mov	x1, x21
	bl	_explicit_bzero
	mov	x0, x22
	bl	_free
LBB0_17:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_18:
	sub	w25, w26, w21
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x25
	bl	_pread
	cmp	w0, w21
	b.ne	LBB0_23
; %bb.19:
	add	x1, sp, #32
	mov	x0, x22
	bl	_eli_metadata_decode
	cbz	w0, LBB0_25
; %bb.20:
	cmp	w0, #129
	b.eq	LBB0_24
; %bb.21:
	cmp	w0, #128
	b.ne	LBB0_27
; %bb.22:
	ldr	x8, [sp, #40]
Lloh24:
	adrp	x9, _G_ELI_VERSION@GOTPAGE
Lloh25:
	ldr	x9, [x9, _G_ELI_VERSION@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	stp	x8, x9, [sp, #8]
	str	x23, [sp]
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
	b	LBB0_15
LBB0_23:
Lloh29:
	adrp	x8, _errno@GOTPAGE
Lloh30:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh32:
	adrp	x1, l_.str.9@PAGE
Lloh33:
	add	x1, x1, l_.str.9@PAGEOFF
	b	LBB0_15
LBB0_24:
	str	x23, [sp]
Lloh34:
	adrp	x1, l_.str.11@PAGE
Lloh35:
	add	x1, x1, l_.str.11@PAGEOFF
	b	LBB0_15
LBB0_25:
	ldr	w8, [sp, #32]
	cmp	w8, w26
	b.ne	LBB0_28
; %bb.26:
	str	w24, [sp, #32]
	add	x2, sp, #32
	mov	x0, x20
	mov	x1, x23
	bl	_eli_metadata_store
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x25
	bl	_eli_trash_metadata
	b	LBB0_16
LBB0_27:
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	stp	x23, x0, [sp]
Lloh36:
	adrp	x1, l_.str.12@PAGE
Lloh37:
	add	x1, x1, l_.str.12@PAGEOFF
	b	LBB0_15
LBB0_28:
Lloh38:
	adrp	x1, l_.str.13@PAGE
Lloh39:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nargs"

l_.str.1:                               ; @.str.1
	.asciz	"Invalid number of arguments."

l_.str.2:                               ; @.str.2
	.asciz	"arg0"

l_.str.3:                               ; @.str.3
	.asciz	"Cannot open %s: %s."

	.comm	_errno,4,2                      ; @errno
l_.str.4:                               ; @.str.4
	.asciz	"Cannot get information about %s: %s."

l_.str.5:                               ; @.str.5
	.asciz	"Cannot allocate memory."

l_.str.6:                               ; @.str.6
	.asciz	"oldsize"

l_.str.7:                               ; @.str.7
	.asciz	"Invalid oldsize: Out of range."

l_.str.8:                               ; @.str.8
	.asciz	"Size hasn't changed."

l_.str.9:                               ; @.str.9
	.asciz	"Cannot read old metadata: %s."

l_.str.10:                              ; @.str.10
	.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.11:                              ; @.str.11
	.asciz	"Inconsistent provider's %s metadata."

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

l_.str.13:                              ; @.str.13
	.asciz	"Provider size mismatch at oldsize."

	.no_dead_strip	_eli_resize
.subsections_via_symbols
