	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alloc_array_elem
_alloc_array_elem:                      ## @alloc_array_elem
	.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, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	(%rdx), %edi
	cmpl	(%rcx), %edi
	jne	LBB0_4
## %bb.1:
	movq	%rcx, %r15
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %esi
	movl	$32, %edi
	callq	_FFMAX
	cmpl	%eax, (%r13)
	jge	LBB0_7
## %bb.2:
	movl	%eax, %ebx
	movq	(%r12), %rdi
	movl	%eax, %esi
	movq	%r14, %rdx
	callq	_av_realloc_f
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	%ebx, (%r15)
	movl	(%r13), %edi
	jmp	LBB0_5
LBB0_4:
	movq	(%r12), %rax
LBB0_5:
	movslq	%edi, %rbx
	imulq	%r14, %rbx
	addq	%rax, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r14, %rdx
	callq	_memset
	incl	(%r13)
	jmp	LBB0_8
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_alloc_array_elem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alloc_array_elem
_alloc_array_elem:                      ; @alloc_array_elem
	.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	x20, x1
	mov	x22, x0
	ldr	w0, [x2]
	ldr	w8, [x3]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x3
Lloh0:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w1, w8, #1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_FFMIN
	lsl	w1, w0, #1
	mov	w0, #32
	bl	_FFMAX
	ldr	w8, [x19]
	cmp	w8, w0
	b.ge	LBB0_6
; %bb.2:
	mov	x23, x0
	ldr	x0, [x22]
	mov	x1, x23
	mov	x2, x20
	bl	_av_realloc_f
	str	x0, [x22]
	cbz	x0, LBB0_6
; %bb.3:
	mov	x8, x0
	str	w23, [x21]
	ldr	w0, [x19]
	b	LBB0_5
LBB0_4:
	ldr	x8, [x22]
LBB0_5:
	sxtw	x9, w0
	madd	x21, x9, x20, x8
	mov	x0, x21
	mov	w1, #0
	mov	x2, x20
	bl	_memset
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	mov	x21, #0
LBB0_7:
	mov	x0, x21
	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	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_alloc_array_elem
.subsections_via_symbols
