	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_string_ensure          ## -- Begin function archive_string_ensure
	.p2align	4, 0x90
_archive_string_ensure:                 ## @archive_string_ensure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	movq	8(%rbx), %rax
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	cmpq	%r14, %rax
	jae	LBB0_9
LBB0_2:
	movl	$32, %ecx
	cmpq	$32, %rax
	jb	LBB0_5
## %bb.3:
	cmpq	$8191, %rax                     ## imm = 0x1FFF
	ja	LBB0_7
## %bb.4:
	addq	%rax, %rax
	movq	%rax, %rcx
	jmp	LBB0_5
LBB0_7:
	movq	%rax, %rcx
	shrq	$2, %rcx
	addq	%rax, %rcx
	jb	LBB0_8
LBB0_5:
	cmpq	%r14, %rcx
	cmovaq	%rcx, %r14
	movq	%r14, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rax, (%rbx)
	movq	%r14, 8(%rbx)
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	callq	_archive_string_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_archive_string_ensure          ; -- Begin function archive_string_ensure
	.p2align	2
_archive_string_ensure:                 ; @archive_string_ensure
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x0, [x0]
	ldr	x8, [x19, #8]
	cmp	x0, #0
	ccmp	x8, x1, #0, ne
	b.hs	LBB0_9
; %bb.1:
	cmp	x8, #32
	b.hs	LBB0_3
; %bb.2:
	mov	w8, #32
	b	LBB0_6
LBB0_3:
	lsr	x9, x8, #13
	cbnz	x9, LBB0_5
; %bb.4:
	lsl	x8, x8, #1
	b	LBB0_6
LBB0_5:
	adds	x8, x8, x8, lsr #2
	b.hs	LBB0_8
LBB0_6:
	cmp	x8, x1
	csel	x20, x8, x1, hi
	mov	x1, x20
	bl	_realloc
	cbz	x0, LBB0_8
; %bb.7:
	stp	x0, x20, [x19]
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_archive_string_free
	mov	x19, #0
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
