	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function frame_configure_elements
_frame_configure_elements:              ## @frame_configure_elements
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %r12
	movq	_MAX_ELEM_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_45
## %bb.1:
	movq	16(%r12), %rcx
	movq	(%rcx), %rdx
	movq	%r9, %r8
	decq	%r8
	je	LBB0_2
## %bb.3:
	movl	%r9d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_9
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx), %rcx
	movl	(%rcx), %eax
	movl	8(%rcx), %ebx
	movl	%eax, 4(%rcx)
	movl	%ebx, 12(%rcx)
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %ebx
	movl	%ecx, 4(%rax)
	movl	%ebx, 12(%rax)
	jmp	LBB0_8
LBB0_2:
	xorl	%esi, %esi
LBB0_9:
	testb	$1, %r9b
	je	LBB0_12
## %bb.10:
	movq	(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_12
## %bb.11:
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %edx
	movl	%ecx, 4(%rax)
	movl	%edx, 12(%rax)
LBB0_12:
	movq	16(%r12), %rax
	movq	8(%rax), %rdx
	testq	%r8, %r8
	je	LBB0_13
## %bb.14:
	movl	%r9d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_15 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_20
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %ebx
	movl	%ecx, 4(%rax)
	movl	%ebx, 12(%rax)
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	8(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %ebx
	movl	%ecx, 4(%rax)
	movl	%ebx, 12(%rax)
	jmp	LBB0_19
LBB0_13:
	xorl	%esi, %esi
LBB0_20:
	testb	$1, %r9b
	je	LBB0_23
## %bb.21:
	movq	(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_23
## %bb.22:
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %edx
	movl	%ecx, 4(%rax)
	movl	%edx, 12(%rax)
LBB0_23:
	movq	16(%r12), %rax
	movq	16(%rax), %rdx
	testq	%r8, %r8
	je	LBB0_24
## %bb.25:
	movl	%r9d, %edi
	andl	$-2, %edi
	xorl	%esi, %esi
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	addq	$2, %rsi
	cmpq	%rsi, %rdi
	je	LBB0_31
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %ebx
	movl	%ecx, 4(%rax)
	movl	%ebx, 12(%rax)
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	movq	8(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %ebx
	movl	%ecx, 4(%rax)
	movl	%ebx, 12(%rax)
	jmp	LBB0_30
LBB0_24:
	xorl	%esi, %esi
LBB0_31:
	testb	$1, %r9b
	je	LBB0_34
## %bb.32:
	movq	(%rdx,%rsi,8), %rcx
	testq	%rcx, %rcx
	je	LBB0_34
## %bb.33:
	movq	(%rcx), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %edx
	movl	%ecx, 4(%rax)
	movl	%edx, 12(%rax)
LBB0_34:
	movq	16(%r12), %rax
	movq	24(%rax), %rdx
	testq	%r8, %r8
	je	LBB0_35
## %bb.36:
	movl	%r9d, %esi
	andl	$-2, %esi
	xorl	%ecx, %ecx
	jmp	LBB0_37
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_37 Depth=1
	addq	$2, %rcx
	cmpq	%rcx, %rsi
	je	LBB0_42
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rdx,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.38:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	8(%rax), %ebx
	movl	%edi, 4(%rax)
	movl	%ebx, 12(%rax)
LBB0_39:                                ##   in Loop: Header=BB0_37 Depth=1
	movq	8(%rdx,%rcx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_37 Depth=1
	movq	(%rdi), %rax
	movl	(%rax), %edi
	movl	8(%rax), %ebx
	movl	%edi, 4(%rax)
	movl	%ebx, 12(%rax)
	jmp	LBB0_41
LBB0_35:
	xorl	%ecx, %ecx
LBB0_42:
	testb	$1, %r9b
	je	LBB0_45
## %bb.43:
	movq	(%rdx,%rcx,8), %rax
	testq	%rax, %rax
	je	LBB0_45
## %bb.44:
	movq	(%rax), %rax
	movl	(%rax), %ecx
	movl	8(%rax), %edx
	movl	%ecx, 4(%rax)
	movl	%edx, 12(%rax)
LBB0_45:
	movq	(%r12), %rdi
	callq	_av_frame_unref
	cmpl	$0, (%r14)
	je	LBB0_46
## %bb.47:
	movq	(%r12), %rsi
	movl	$2048, (%rsi)                   ## imm = 0x800
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_48
## %bb.49:
	movl	(%r14), %eax
	testl	%eax, %eax
	jle	LBB0_61
## %bb.50:
	movq	8(%r12), %rcx
	xorl	%r15d, %r15d
	cmpl	$1, %eax
	jne	LBB0_52
## %bb.51:
	xorl	%edx, %edx
LBB0_58:
	testb	$1, %al
	je	LBB0_61
## %bb.59:
	movq	(%rcx,%rdx,8), %rax
	testq	%rax, %rax
	je	LBB0_61
## %bb.60:
	movq	(%r12), %rcx
	movq	8(%rcx), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	%rcx, (%rax)
	jmp	LBB0_61
LBB0_46:
	movl	$1, %r15d
	jmp	LBB0_61
LBB0_48:
	movl	%eax, %r15d
LBB0_61:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	movl	%eax, %esi
	andl	$-2, %esi
	xorl	%edx, %edx
	jmp	LBB0_53
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_53 Depth=1
	addq	$2, %rdx
	cmpq	%rdx, %rsi
	je	LBB0_58
LBB0_53:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rcx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_55
## %bb.54:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	(%r12), %rbx
	movq	8(%rbx), %rbx
	movq	(%rbx,%rdx,8), %rbx
	movq	%rbx, (%rdi)
LBB0_55:                                ##   in Loop: Header=BB0_53 Depth=1
	movq	8(%rcx,%rdx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_57
## %bb.56:                              ##   in Loop: Header=BB0_53 Depth=1
	movq	(%r12), %rbx
	movq	8(%rbx), %rbx
	movq	8(%rbx,%rdx,8), %rbx
	movq	%rbx, (%rdi)
	jmp	LBB0_57
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_ELEM_ID,4,2                ## @MAX_ELEM_ID
	.no_dead_strip	_frame_configure_elements
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function frame_configure_elements
_frame_configure_elements:              ; @frame_configure_elements
	.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
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _MAX_ELEM_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_ELEM_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_17
; %bb.1:
	ldr	x9, [x20, #16]
	ldr	x9, [x9]
	mov	x10, x8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.eq	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x11]
	ldr	w12, [x11]
	str	w12, [x11, #4]
	ldr	w12, [x11, #8]
	str	w12, [x11, #12]
	b	LBB0_2
LBB0_5:
	ldr	x9, [x20, #16]
	ldr	x9, [x9, #8]
	mov	x10, x8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x11, [x11]
	ldr	w12, [x11]
	str	w12, [x11, #4]
	ldr	w12, [x11, #8]
	str	w12, [x11, #12]
	b	LBB0_6
LBB0_9:
	ldr	x9, [x20, #16]
	ldr	x9, [x9, #16]
	mov	x10, x8
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x9, x9, #8
	subs	x10, x10, #1
	b.eq	LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	cbz	x11, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x11, [x11]
	ldr	w12, [x11]
	str	w12, [x11, #4]
	ldr	w12, [x11, #8]
	str	w12, [x11, #12]
	b	LBB0_10
LBB0_13:
	ldr	x9, [x20, #16]
	ldr	x9, [x9, #24]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x9, x9, #8
	subs	x8, x8, #1
	b.eq	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9]
	cbz	x10, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x10, [x10]
	ldr	w11, [x10]
	str	w11, [x10, #4]
	ldr	w11, [x10, #8]
	str	w11, [x10, #12]
	b	LBB0_14
LBB0_17:
	ldr	x0, [x20]
	bl	_av_frame_unref
	ldr	w8, [x19]
	cbz	w8, LBB0_24
; %bb.18:
	ldr	x1, [x20]
	mov	w8, #2048
	str	w8, [x1]
	mov	x0, x19
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_26
; %bb.19:
	ldr	w10, [x19]
	cmp	w10, #1
	b.lt	LBB0_25
; %bb.20:
	mov	x8, #0
	ldr	x9, [x20, #8]
	lsl	x10, x10, #3
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	add	x8, x8, #8
	cmp	x10, x8
	b.eq	LBB0_25
LBB0_22:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x8]
	cbz	x11, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	ldr	x12, [x20]
	ldr	x12, [x12, #8]
	ldr	x12, [x12, x8]
	str	x12, [x11]
	b	LBB0_21
LBB0_24:
	mov	w0, #1
	b	LBB0_26
LBB0_25:
	mov	w0, #0
LBB0_26:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_ELEM_ID,4,2                ; @MAX_ELEM_ID
	.no_dead_strip	_frame_configure_elements
.subsections_via_symbols
