	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function var_size_bme
_var_size_bme:                          ## @var_size_bme
	.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
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %r9d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	(%rdi), %ebx
	movl	$1, %eax
	movq	%r8, -104(%rbp)                 ## 8-byte Spill
	movl	%r8d, %ecx
	shll	%cl, %eax
	movl	4(%rdi), %ecx
	movl	%ecx, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, (%rdi)
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	addl	%edx, %ecx
	movl	4(%rax), %r8d
	addl	%r9d, %r8d
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%edx, %esi
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r9d, %edx
	callq	*8(%rdi)
	movl	%ebx, -80(%rbp)                 ## 4-byte Spill
	movl	%ebx, (%r13)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	16(%r15), %rax
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movl	$4, %edi
	movl	$24, %esi
	callq	_av_mallocz_array
	movq	%rax, 16(%r15)
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$1, 8(%r15)
	movq	-104(%rbp), %rax                ## 8-byte Reload
	leal	-1(%rax), %ecx
	movl	$1, %eax
	movl	%ecx, -64(%rbp)                 ## 4-byte Spill
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	leal	3(%r14), %ecx
	testl	%r14d, %r14d
	cmovnsl	%r14d, %ecx
	sarl	$2, %ecx
	movl	%ecx, -72(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	addl	%r8d, %eax
	movl	%eax, -108(%rbp)                ## 4-byte Spill
	movb	$1, %al
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	xorl	%r12d, %r12d
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r12d, %r14d
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r14d
	movq	(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	addl	%r8d, %ecx
	movl	%ecx, -56(%rbp)
	movl	4(%rax), %ecx
	addl	%ebx, %ecx
	movl	%ecx, -52(%rbp)
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, (%r13)
	movl	$2, 4(%r13)
	movl	(%rax), %ecx
	movl	%ecx, 16(%r13)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%r13)
	movl	(%rax), %esi
	addl	%r8d, %esi
	movl	4(%rax), %edx
	addl	%ebx, %edx
	movq	%r13, %rdi
	leaq	-56(%rbp), %rcx
	movq	%r8, %r15
	callq	_ff_me_search_ds
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, (%r13)
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 4(%r13)
	cmpl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r12,%r12), %r9
	addl	%ebx, %r14d
	leaq	(%r12,%r12,2), %rsi
	shlq	$4, %rsi
	movq	-120(%rbp), %rdi                ## 8-byte Reload
	addq	%rdi, %rsi
	subl	%ebx, %ecx
	subl	%r15d, %edx
	movq	(%rsi), %rax
	movq	(%rax), %rax
	movl	%edx, (%rax)
	movl	%ecx, 4(%rax)
	cmpl	$2, -104(%rbp)                  ## 4-byte Folded Reload
	movq	%r9, -136(%rbp)                 ## 8-byte Spill
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_var_size_bme
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_12
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	leaq	(%r9,%r9,2), %rax
	movl	$0, 8(%rdi,%rax,8)
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %r12
	movq	(%rax), %rax
	movq	(%rax), %rax
	movl	(%rax), %ecx
	addl	%r15d, %ecx
	movl	%ecx, -56(%rbp)
	movl	4(%rax), %ecx
	addl	%ebx, %ecx
	movl	%ecx, -52(%rbp)
	movq	-128(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, (%r13)
	movl	$2, 4(%r13)
	movl	(%rax), %ecx
	movl	%ecx, 16(%r13)
	movl	4(%rax), %ecx
	movl	%ecx, 20(%r13)
	movl	(%rax), %esi
	addl	%r15d, %esi
	movl	4(%rax), %edx
	addl	%ebx, %edx
	movq	%r13, %rdi
	leaq	-56(%rbp), %rcx
	callq	_ff_me_search_ds
	movl	-56(%rbp), %edx
	movl	-52(%rbp), %ecx
	movl	-80(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, (%r13)
	movl	-76(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 4(%r13)
	cmpl	-72(%rbp), %eax                 ## 4-byte Folded Reload
	jge	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-136(%rbp), %rax                ## 8-byte Reload
	orq	$1, %rax
	leaq	(%rax,%rax,2), %rax
	leaq	(%r12,%rax,8), %rsi
	subl	%ebx, %ecx
	subl	%r15d, %edx
	movq	(%rsi), %rdi
	movq	(%rdi), %rdi
	movl	%edx, (%rdi)
	movl	%ecx, 4(%rdi)
	cmpl	$1, -104(%rbp)                  ## 4-byte Folded Reload
	jle	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r13, %rdi
	movl	-108(%rbp), %edx                ## 4-byte Reload
	movl	%r14d, %ecx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	callq	_var_size_bme
	movq	-96(%rbp), %r8                  ## 8-byte Reload
	movl	-60(%rbp), %ebx                 ## 4-byte Reload
	testl	%eax, %eax
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_7 Depth=1
	testb	$1, -68(%rbp)                   ## 1-byte Folded Reload
	jne	LBB0_20
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	%r15, %r8
	movl	$0, 8(%r12,%rax,8)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testb	$1, -68(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
LBB0_20:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	16(%r15), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	movl	$1, %r12d
	movl	$0, -68(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_7
LBB0_1:
	movl	$0, 8(%r15)
	jmp	LBB0_17
LBB0_10:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 8(%rax)
LBB0_17:
	xorl	%eax, %eax
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.21:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.5:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_var_size_bme
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function var_size_bme
_var_size_bme:                          ; @var_size_bme
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldp	w20, w8, [x0]
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	mov	w8, #1
	str	w4, [sp, #28]                   ; 4-byte Folded Spill
	lsl	w8, w8, w4
	str	w8, [x0]
	ldr	x8, [x0, #8]
	ldr	x9, [x1]
	ldr	x9, [x9]
	ldp	w10, w9, [x9]
	add	w3, w10, w2
	add	w4, w9, w21
	mov	x1, x2
	mov	x2, x21
	blr	x8
	str	w20, [sp, #24]                  ; 4-byte Folded Spill
	str	w20, [x23]
	cbz	w0, LBB0_14
; %bb.1:
	mov	x25, x0
	ldr	x26, [x19, #16]
	cbnz	x26, LBB0_3
; %bb.2:
	mov	w0, #4
	mov	w1, #24
	bl	_av_mallocz_array
	mov	x26, x0
	str	x0, [x19, #16]
	cbz	x0, LBB0_19
LBB0_3:
	mov	x28, #0
	mov	w9, #1
	str	w9, [x19, #8]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	sub	w10, w8, #1
	mov	w8, #1
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	lsl	w20, w9, w10
	add	w8, w25, #3
	cmp	w25, #0
	csel	w8, w8, w25, lt
	asr	w8, w8, #2
	str	w8, [sp, #16]                   ; 4-byte Folded Spill
	add	w8, w20, w22
	stp	w8, w10, [sp]                   ; 8-byte Folded Spill
	mov	w24, #24
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w9, w10, [x8]
	add	w9, w9, w22
	add	w10, w10, w21
	stp	w9, w10, [sp, #32]
	mov	w9, #2
	stp	w20, w9, [x23]
	ldr	w9, [x8]
	str	w9, [x23, #16]
	ldr	w9, [x8, #4]
	str	w9, [x23, #20]
	ldp	w9, w8, [x8]
	add	w1, w9, w22
	add	w2, w8, w21
	add	x3, sp, #32
	mov	x0, x23
	bl	_ff_me_search_ds
	ldp	w8, w9, [sp, #32]
	ldr	w11, [sp, #24]                  ; 4-byte Folded Reload
	ldr	w10, [sp, #20]                  ; 4-byte Folded Reload
	stp	w11, w10, [x23]
	ldr	w10, [sp, #16]                  ; 4-byte Folded Reload
	cmp	w0, w10
	b.ge	LBB0_15
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	x25, x28, #1
	ldr	w4, [sp, #4]                    ; 4-byte Folded Reload
	lsl	w10, w28, w4
	add	w27, w10, w21
	mov	w10, #48
	madd	x1, x28, x10, x26
	sub	w9, w9, w21
	ldr	x10, [x1]
	ldr	x10, [x10]
	sub	w8, w8, w22
	stp	w8, w9, [x10]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #2
	b.lt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x2, x22
	mov	x3, x27
	bl	_var_size_bme
	cbz	w0, LBB0_8
	b	LBB0_17
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x25, x24, x26
	str	wzr, [x8, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x26, [x19, #16]
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldp	w9, w10, [x8]
	add	w9, w9, w22
	add	w10, w10, w21
	stp	w9, w10, [sp, #32]
	mov	w9, #2
	stp	w20, w9, [x23]
	ldr	w9, [x8]
	str	w9, [x23, #16]
	ldr	w9, [x8, #4]
	str	w9, [x23, #20]
	ldp	w9, w8, [x8]
	add	w1, w9, w22
	add	w2, w8, w21
	add	x3, sp, #32
	mov	x0, x23
	bl	_ff_me_search_ds
	ldp	w8, w10, [sp, #32]
	ldr	w11, [sp, #24]                  ; 4-byte Folded Reload
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	stp	w11, w9, [x23]
	ldr	w9, [sp, #16]                   ; 4-byte Folded Reload
	cmp	w0, w9
	b.ge	LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	orr	x9, x25, #0x1
	mov	w12, #24
	madd	x1, x9, x12, x26
	sub	w10, w10, w21
	ldr	x11, [x1]
	ldr	x11, [x11]
	sub	w8, w8, w22
	stp	w8, w10, [x11]
	ldr	w8, [sp, #28]                   ; 4-byte Folded Reload
	cmp	w8, #1
	b.le	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	ldp	w2, w4, [sp]                    ; 8-byte Folded Reload
	mov	x3, x27
	bl	_var_size_bme
	cbnz	w0, LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	tbnz	w8, #0, LBB0_13
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	madd	x8, x9, x12, x26
	str	wzr, [x8, #8]
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	tbz	w8, #0, LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w24, #24
	str	xzr, [sp, #8]                   ; 8-byte Folded Spill
	ldr	x26, [x19, #16]
	mov	w28, #1
	b	LBB0_4
LBB0_14:
	str	wzr, [x19, #8]
	b	LBB0_17
LBB0_15:
	mov	w0, #0
	str	wzr, [x19, #8]
	b	LBB0_17
LBB0_16:
	mov	w0, #0
LBB0_17:
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_19:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldr	x8, [sp, #40]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_AVERROR
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_var_size_bme
.subsections_via_symbols
