	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function evmap_make_space
_evmap_make_space:                      ## @evmap_make_space
	.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
	movl	(%rdi), %eax
	xorl	%r13d, %r13d
	cmpl	%esi, %eax
	jg	LBB0_6
## %bb.1:
	movl	%edx, %r14d
	movq	%rdi, %r12
	testl	%eax, %eax
	movl	$32, %ecx
	cmovnel	%eax, %ecx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %ebx
	leal	(%rbx,%rbx), %ecx
	cmpl	%esi, %ebx
	jle	LBB0_2
## %bb.3:
	movq	8(%r12), %rdi
	movl	%ebx, %esi
	imull	%r14d, %esi
	callq	_mm_realloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r15
	movslq	(%r12), %rax
	leaq	(%r15,%rax,8), %rdi
	movl	%ebx, %edx
	subl	%eax, %edx
	imull	%r14d, %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_memset
	movl	%ebx, (%r12)
	movq	%r15, 8(%r12)
	jmp	LBB0_6
LBB0_4:
	movl	$-1, %r13d
LBB0_6:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_evmap_make_space
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function evmap_make_space
_evmap_make_space:                      ; @evmap_make_space
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	w8, [x0]
	cmp	w8, w1
	b.le	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
	mov	x20, x2
	mov	x19, x0
	mov	w9, #32
	cmp	w8, #0
	csel	w8, w9, w8, eq
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x22, x8
	lsl	w8, w8, #1
	cmp	w22, w1
	b.le	LBB0_3
; %bb.4:
	ldr	x0, [x19, #8]
	mul	w1, w22, w20
	bl	_mm_realloc
	cbz	x0, LBB0_6
; %bb.5:
	mov	x21, x0
	ldrsw	x8, [x19]
	add	x0, x0, x8, lsl #3
	sub	w8, w22, w8
	mul	w2, w8, w20
	mov	w1, #0
	bl	_memset
	mov	w0, #0
	str	w22, [x19]
	str	x21, [x19, #8]
	b	LBB0_7
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_evmap_make_space
.subsections_via_symbols
