	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_side_data_set_encoder_stats ## -- Begin function ff_side_data_set_encoder_stats
	.p2align	4, 0x90
_ff_side_data_set_encoder_stats:        ## @ff_side_data_set_encoder_stats
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	movq	_AV_PKT_DATA_QUALITY_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	callq	_av_packet_get_side_data
	movq	%rax, %r15
	leal	8(,%rbx,8), %r13d
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	%r13d, -44(%rbp)
	movq	_AV_PKT_DATA_QUALITY_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_av_packet_new_side_data
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_3
LBB0_2:
	cmpl	%r13d, -44(%rbp)
	jge	LBB0_4
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r13d
	jmp	LBB0_8
LBB0_4:
	movq	%r15, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_AV_WL32
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r15)
	movl	%ebx, 20(%r15)
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.6:
	addq	$32, %r15
	movl	%ebx, %r12d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14,%rbx,4), %esi
	movq	%r15, %rdi
	callq	_AV_WL64
	incq	%rbx
	addq	$32, %r15
	cmpq	%rbx, %r12
	jne	LBB0_7
	jmp	LBB0_8
LBB0_5:
	xorl	%r13d, %r13d
LBB0_8:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PKT_DATA_QUALITY_STATS,4,2  ## @AV_PKT_DATA_QUALITY_STATS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_side_data_set_encoder_stats ; -- Begin function ff_side_data_set_encoder_stats
	.p2align	2
_ff_side_data_set_encoder_stats:        ; @ff_side_data_set_encoder_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	mov	x20, x3
	mov	x19, x2
	mov	x22, x1
	mov	x25, x0
Lloh0:
	adrp	x26, _AV_PKT_DATA_QUALITY_STATS@GOTPAGE
Lloh1:
	ldr	x26, [x26, _AV_PKT_DATA_QUALITY_STATS@GOTPAGEOFF]
	ldr	w1, [x26]
	add	x2, sp, #12
	bl	_av_packet_get_side_data
	mov	x23, x0
	lsl	w8, w20, #3
	add	w24, w8, #8
	cbnz	x0, LBB0_2
; %bb.1:
	str	w24, [sp, #12]
	ldr	w1, [x26]
	mov	x0, x25
	mov	x2, x24
	bl	_av_packet_new_side_data
	mov	x23, x0
	cbz	x0, LBB0_3
LBB0_2:
	ldr	w8, [sp, #12]
	cmp	w8, w24
	b.ge	LBB0_4
LBB0_3:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_8
LBB0_4:
	mov	x0, x23
	mov	x1, x22
	bl	_AV_WL32
	stp	w21, w20, [x23, #16]
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.5:
	add	x21, x23, #32
	mov	w20, w20
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x19], #4
	mov	x0, x21
	bl	_AV_WL64
	add	x21, x21, #32
	subs	x20, x20, #1
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PKT_DATA_QUALITY_STATS,4,2  ; @AV_PKT_DATA_QUALITY_STATS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
