	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_flink
_alloc_flink:                           ## @alloc_flink
	.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	%rdi, %r14
	movq	8(%rdi), %rax
	cmpq	%rax, (%rdi)
	jb	LBB0_5
## %bb.1:
	leaq	(%rax,%rax,4), %rbx
	shrq	$2, %rbx
	addq	$16, %rbx
	movq	16(%r14), %rdi
	leal	(,%rbx,8), %esi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.4:
	movl	%ebx, %ecx
	movq	%rax, 16(%r14)
	movq	%rcx, 8(%r14)
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rdi
	subl	%ecx, %ebx
	shll	$3, %ebx
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
LBB0_5:
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%r14), %rcx
	movq	16(%r14), %rdx
	leaq	1(%rcx), %rsi
	movq	%rsi, (%r14)
	movq	%rax, (%rdx,%rcx,8)
	jmp	LBB0_8
LBB0_6:
	movq	24(%r14), %r14
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	24(%r14), %r14
	movq	_OSM_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str(%rip), %rdx
LBB0_3:
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %ecx
	callq	_OSM_LOG
	xorl	%eax, %eax
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OSM_LOG_ERROR,4,2              ## @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ERR 4E04: realloc: %s\n"

	.comm	_errno,4,2                      ## @errno
L_.str.1:                               ## @.str.1
	.asciz	"ERR 4E05: calloc: %s\n"

	.no_dead_strip	_alloc_flink
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_flink
_alloc_flink:                           ; @alloc_flink
	.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
	ldp	x9, x8, [x0]
	cmp	x9, x8
	b.lo	LBB0_3
; %bb.1:
	add	x8, x8, x8, lsl #2
	lsr	x8, x8, #2
	add	x20, x8, #16
	ldr	x0, [x19, #16]
	lsl	w1, w20, #3
	bl	_realloc
	cbz	x0, LBB0_6
; %bb.2:
	and	x8, x20, #0xffffffff
	stp	x8, x0, [x19, #8]
	ldr	x8, [x19]
	add	x0, x0, x8, lsl #3
	sub	w8, w20, w8
	lsl	w2, w8, #3
	mov	w1, #0
	bl	_memset
LBB0_3:
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_5
; %bb.4:
	ldr	x8, [x19, #16]
	ldr	x9, [x19]
	add	x10, x9, #1
	str	x10, [x19]
	str	x0, [x8, x9, lsl #3]
	b	LBB0_8
LBB0_5:
	ldr	x19, [x19, #24]
Lloh0:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
Lloh3:
	adrp	x8, _errno@GOTPAGE
Lloh4:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh6:
	adrp	x2, l_.str.1@PAGE
Lloh7:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	x19, [x19, #24]
Lloh8:
	adrp	x8, _OSM_LOG_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _OSM_LOG_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w20, [x8]
Lloh11:
	adrp	x8, _errno@GOTPAGE
Lloh12:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_strerror
	mov	x3, x0
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_OSM_LOG
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_OSM_LOG_ERROR,4,2              ; @OSM_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ERR 4E04: realloc: %s\n"

	.comm	_errno,4,2                      ; @errno
l_.str.1:                               ; @.str.1
	.asciz	"ERR 4E05: calloc: %s\n"

	.no_dead_strip	_alloc_flink
.subsections_via_symbols
