	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function emem_store
_emem_store:                            ## @emem_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	%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	%rdi, %r14
	movq	8(%rdi), %r15
	movq	(%r15), %rdi
	movq	16(%r15), %rbx
	movslq	8(%r15), %rax
	addq	%rdi, %rax
	subq	%rbx, %rax
	cmpq	%rdx, %rax
	jae	LBB0_4
## %bb.1:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	subq	%rdi, %rbx
	leaq	(%rbx,%r12), %r13
	cmpq	$4096, %r13                     ## imm = 0x1000
	setb	%cl
	shlq	%cl, %r13
	movq	%r13, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	%r13d, 8(%r15)
	movq	%rax, (%r15)
	addq	%rax, %rbx
	movq	%rbx, 16(%r15)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
LBB0_4:
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_memmove
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	*(%r14)
	jmp	LBB0_5
LBB0_2:
	movl	$-1, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_emem_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function emem_store
_emem_store:                            ; @emem_store
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	x0, [x23]
	ldrsw	x9, [x23, #8]
	ldr	x8, [x23, #16]
	add	x9, x0, x9
	sub	x9, x9, x8
	cmp	x9, x2
	b.hs	LBB0_3
; %bb.1:
	sub	x24, x8, x0
	add	x8, x24, x19
	cmp	x8, #1, lsl #12                 ; =4096
	cset	w9, lo
	lsl	x22, x8, x9
	mov	x1, x22
	bl	_realloc
	cbz	x0, LBB0_4
; %bb.2:
	str	w22, [x23, #8]
	str	x0, [x23]
	add	x8, x0, x24
	str	x8, [x23, #16]
LBB0_3:
	mov	x0, x8
	mov	x1, x21
	mov	x2, x19
	bl	_memmove
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _SEEK_CUR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SEEK_CUR@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	b	LBB0_5
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_emem_store
.subsections_via_symbols
