	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_sps
_set_sps:                               ## @set_sps
	.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	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %r15
	callq	_pic_arrays_free
	movq	$0, (%r15)
	movq	$0, 16(%r15)
	xorl	%eax, %eax
	testq	%r12, %r12
	je	LBB0_8
## %bb.1:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_pic_arrays_init
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_export_stream_params
	movq	40(%r15), %rax
	movl	%r13d, (%rax)
	leaq	56(%r15), %rdi
	movl	72(%r12), %esi
	callq	_ff_hevc_pred_init
	leaq	52(%r15), %rdi
	movl	72(%r12), %esi
	callq	_ff_hevc_dsp_init
	leaq	48(%r15), %rdi
	movl	72(%r12), %esi
	callq	_ff_videodsp_init
	movq	32(%r15), %rdi
	callq	_av_freep
	movq	24(%r15), %rdi
	callq	_av_freep
	movq	32(%r15), %rdi
	addq	$8, %rdi
	callq	_av_freep
	movq	24(%r15), %rdi
	addq	$8, %rdi
	callq	_av_freep
	movq	32(%r15), %rdi
	addq	$16, %rdi
	callq	_av_freep
	movq	24(%r15), %rdi
	addq	$16, %rdi
	callq	_av_freep
	cmpq	$0, 64(%r12)
	je	LBB0_6
## %bb.3:
	movq	40(%r15), %rax
	cmpl	$0, 4(%rax)
	jne	LBB0_6
## %bb.4:
	xorl	%eax, %eax
	cmpq	$0, (%r12)
	setne	%al
	leaq	(%rax,%rax), %r13
	incq	%r13
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%r12), %edi
	movq	16(%r12), %rax
	movzbl	(%rax,%r14,4), %ecx
	sarl	%cl, %edi
	movl	24(%r12), %ebx
	movq	32(%r12), %rax
	movzbl	(%rax,%r14,4), %ecx
	sarl	%cl, %ebx
	imull	40(%r12), %edi
	addl	%edi, %edi
	movzbl	44(%r12), %ecx
	shll	%cl, %edi
	callq	_av_malloc
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	imull	48(%r12), %ebx
	addl	%ebx, %ebx
	movzbl	44(%r12), %ecx
	shll	%cl, %ebx
	movl	%ebx, %edi
	callq	_av_malloc
	movq	24(%r15), %rcx
	movq	%rax, (%rcx,%r14,8)
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_5
LBB0_6:
	movq	%r12, (%r15)
	movq	8(%r15), %rax
	movq	56(%r12), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r15)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_7:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_pic_arrays_free
	movq	$0, (%r15)
	movl	%ebx, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_set_sps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_sps
_set_sps:                               ; @set_sps
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_pic_arrays_free
	str	xzr, [x19]
	str	xzr, [x19, #16]
	cbz	x20, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	bl	_pic_arrays_init
	tbnz	w0, #31, LBB0_8
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_export_stream_params
	ldr	x8, [x19, #40]
	str	w21, [x8]
	add	x0, x19, #56
	ldr	w1, [x20, #72]
	bl	_ff_hevc_pred_init
	add	x0, x19, #52
	ldr	w1, [x20, #72]
	bl	_ff_hevc_dsp_init
	add	x0, x19, #48
	ldr	w1, [x20, #72]
	bl	_ff_videodsp_init
	ldr	x0, [x19, #32]
	bl	_av_freep
	ldr	x0, [x19, #24]
	bl	_av_freep
	ldr	x8, [x19, #32]
	add	x0, x8, #8
	bl	_av_freep
	ldr	x8, [x19, #24]
	add	x0, x8, #8
	bl	_av_freep
	ldr	x8, [x19, #32]
	add	x0, x8, #16
	bl	_av_freep
	ldr	x8, [x19, #24]
	add	x0, x8, #16
	bl	_av_freep
	ldr	x8, [x20, #64]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	x8, [x19, #40]
	ldr	w8, [x8, #4]
	cbnz	w8, LBB0_6
; %bb.4:
	ldr	x21, [x20]
	ldr	w8, [x20, #8]
	ldr	x9, [x20, #16]
	ldr	w9, [x9]
	asr	w8, w8, w9
	ldr	w9, [x20, #24]
	ldr	x10, [x20, #32]
	ldr	w10, [x10]
	asr	w22, w9, w10
	ldp	w9, w10, [x20, #40]
	mul	w8, w8, w9
	lsl	w8, w8, #1
	lsl	w0, w8, w10
	bl	_av_malloc
	ldr	x8, [x19, #32]
	str	x0, [x8]
	ldp	w9, w8, [x20, #44]
	mul	w8, w22, w8
	lsl	w8, w8, #1
	lsl	w0, w8, w9
	bl	_av_malloc
	ldr	x8, [x19, #24]
	str	x0, [x8]
	cbz	x21, LBB0_6
; %bb.5:
	ldr	w8, [x20, #8]
	ldr	x9, [x20, #16]
	ldr	w9, [x9, #4]
	asr	w8, w8, w9
	ldr	w9, [x20, #24]
	ldr	x10, [x20, #32]
	ldr	w10, [x10, #4]
	asr	w21, w9, w10
	ldp	w9, w10, [x20, #40]
	mul	w8, w8, w9
	lsl	w8, w8, #1
	lsl	w0, w8, w10
	bl	_av_malloc
	ldr	x8, [x19, #32]
	str	x0, [x8, #8]
	ldp	w9, w8, [x20, #44]
	mul	w8, w21, w8
	lsl	w8, w8, #1
	lsl	w0, w8, w9
	bl	_av_malloc
	ldr	x8, [x19, #24]
	str	x0, [x8, #8]
	ldr	w8, [x20, #8]
	ldr	x9, [x20, #16]
	ldr	w9, [x9, #8]
	asr	w8, w8, w9
	ldr	w9, [x20, #24]
	ldr	x10, [x20, #32]
	ldr	w10, [x10, #8]
	asr	w21, w9, w10
	ldp	w9, w10, [x20, #40]
	mul	w8, w8, w9
	lsl	w8, w8, #1
	lsl	w0, w8, w10
	bl	_av_malloc
	ldr	x8, [x19, #32]
	str	x0, [x8, #16]
	ldp	w9, w8, [x20, #44]
	mul	w8, w21, w8
	lsl	w8, w8, #1
	lsl	w0, w8, w9
	bl	_av_malloc
	ldr	x8, [x19, #24]
	str	x0, [x8, #16]
LBB0_6:
	mov	w22, #0
	str	x20, [x19]
	ldr	x8, [x19, #8]
	ldr	x9, [x20, #56]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x8, [x8]
	str	x8, [x19, #16]
	b	LBB0_9
LBB0_7:
	mov	w22, #0
	b	LBB0_9
LBB0_8:
	mov	x22, x0
	mov	x0, x19
	bl	_pic_arrays_free
	str	xzr, [x19]
LBB0_9:
	mov	x0, x22
	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	_set_sps
.subsections_via_symbols
