	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function export_stream_params
_export_stream_params:                  ## @export_stream_params
	.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	%rsi, %rbx
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movq	24(%rdi), %r15
	movq	(%rsi), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %r12
	movl	112(%rsi), %eax
	movl	%eax, 80(%r15)
	movq	104(%rsi), %rax
	movq	%rax, 72(%r15)
	movq	96(%rsi), %rcx
	movq	%rcx, 64(%r15)
	movq	144(%rsi), %rdx
	addq	136(%rsi), %rdx
	subq	%rdx, %rax
	movq	%rax, 56(%r15)
	movq	128(%rsi), %rax
	addq	120(%rsi), %rax
	subq	%rax, %rcx
	movq	%rcx, 48(%r15)
	movq	88(%rsi), %rax
	movslq	8(%rsi), %rcx
	movl	-4(%rax,%rcx,4), %eax
	movl	%eax, 40(%r15)
	movl	84(%rsi), %eax
	movl	%eax, 36(%r15)
	movl	80(%rsi), %eax
	movl	%eax, 32(%r15)
	movl	72(%rsi), %esi
	movq	%r15, %rdi
	callq	_ff_set_sar
	cmpq	$0, 64(%rbx)
	je	LBB0_3
## %bb.1:
	cmpq	$0, 56(%rbx)
	jne	LBB0_2
LBB0_3:
	movq	_AVCOL_RANGE_MPEG@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
LBB0_4:
	movq	(%rax), %rax
	movq	%rax, 24(%r15)
	cmpq	$0, 48(%rbx)
	jne	LBB0_5
## %bb.6:
	movq	_AVCOL_PRI_UNSPECIFIED@GOTPCREL(%rip), %rax
	movq	_AVCOL_TRC_UNSPECIFIED@GOTPCREL(%rip), %rcx
	movq	_AVCOL_SPC_UNSPECIFIED@GOTPCREL(%rip), %rdx
	jmp	LBB0_7
LBB0_5:
	leaq	16(%rbx), %rcx
	leaq	44(%rbx), %rax
	leaq	40(%rbx), %rdx
LBB0_7:
	movl	(%rdx), %edx
	movq	(%rcx), %rcx
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movq	%rcx, (%r15)
	movl	%edx, 16(%r15)
	cmpq	$0, 8(%r12)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rbx
	addq	$4, %rbx
	jmp	LBB0_11
LBB0_9:
	cmpq	$0, 32(%rbx)
	je	LBB0_14
## %bb.10:
	leaq	24(%rbx), %r12
	addq	$28, %rbx
LBB0_11:
	movl	(%r12), %edx
	testl	%edx, %edx
	je	LBB0_14
## %bb.12:
	movl	(%rbx), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:
	leaq	12(%r15), %rdi
	leaq	8(%r15), %rsi
	movl	$1073741824, %r8d               ## imm = 0x40000000
	callq	_av_reduce
LBB0_14:
	cmpq	$0, 8(%r14)
	je	LBB0_18
## %bb.15:
	movq	(%r14), %rdi
	callq	_av_color_transfer_name
	testq	%rax, %rax
	je	LBB0_18
## %bb.16:
	movq	(%r14), %rax
	movq	_AVCOL_TRC_UNSPECIFIED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_18
## %bb.17:
	movq	%rax, (%r15)
LBB0_18:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCOL_RANGE_JPEG,8,3           ## @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,8,3           ## @AVCOL_RANGE_MPEG
	.comm	_AVCOL_PRI_UNSPECIFIED,4,2      ## @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,8,3      ## @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ## @AVCOL_SPC_UNSPECIFIED
	.no_dead_strip	_export_stream_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function export_stream_params
_export_stream_params:                  ; @export_stream_params
	.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	x21, x1
	mov	x20, x0
	ldp	x8, x19, [x0, #16]
	ldr	x9, [x1]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x22, [x8]
	ldr	w8, [x1, #112]
	str	w8, [x19, #80]
	ldp	x9, x8, [x1, #96]
	ldr	x10, [x1, #88]
	stp	x9, x8, [x19, #64]
	ldp	x12, x11, [x1, #136]
	add	x11, x11, x12
	sub	x8, x8, x11
	ldp	x12, x11, [x1, #120]
	add	x11, x11, x12
	sub	x9, x9, x11
	stp	x9, x8, [x19, #48]
	ldrsw	x8, [x1, #8]
	add	x8, x10, x8, lsl #2
	ldur	w8, [x8, #-4]
	str	w8, [x19, #40]
	ldr	d0, [x1, #80]
	str	d0, [x19, #32]
	ldr	w1, [x1, #72]
	mov	x0, x19
	bl	_ff_set_sar
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
	ldr	x9, [x21, #56]
Lloh2:
	adrp	x10, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh3:
	ldr	x10, [x10, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	b	LBB0_3
LBB0_2:
Lloh4:
	adrp	x8, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	str	x8, [x19, #24]
	add	x8, x21, #16
	ldr	x9, [x21, #48]
	add	x10, x21, #44
	add	x11, x21, #40
Lloh6:
	adrp	x12, _AVCOL_PRI_UNSPECIFIED@GOTPAGE
Lloh7:
	ldr	x12, [x12, _AVCOL_PRI_UNSPECIFIED@GOTPAGEOFF]
Lloh8:
	adrp	x23, _AVCOL_TRC_UNSPECIFIED@GOTPAGE
Lloh9:
	ldr	x23, [x23, _AVCOL_TRC_UNSPECIFIED@GOTPAGEOFF]
	cmp	x9, #0
	csel	x9, x12, x10, eq
	csel	x8, x23, x8, eq
Lloh10:
	adrp	x10, _AVCOL_SPC_UNSPECIFIED@GOTPAGE
Lloh11:
	ldr	x10, [x10, _AVCOL_SPC_UNSPECIFIED@GOTPAGEOFF]
	csel	x10, x10, x11, eq
	ldr	w10, [x10]
	ldr	x8, [x8]
	ldr	w9, [x9]
	str	x8, [x19]
	stp	w10, w9, [x19, #16]
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_5
; %bb.4:
	add	x8, x22, #4
	ldr	w2, [x22]
	cbnz	w2, LBB0_7
	b	LBB0_9
LBB0_5:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_9
; %bb.6:
	add	x22, x21, #24
	add	x8, x21, #28
	ldr	w2, [x22]
	cbz	w2, LBB0_9
LBB0_7:
	ldr	w3, [x8]
	cbz	w3, LBB0_9
; %bb.8:
	add	x0, x19, #12
	add	x1, x19, #8
	mov	w4, #1073741824
	bl	_av_reduce
LBB0_9:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_13
; %bb.10:
	ldr	x0, [x20]
	bl	_av_color_transfer_name
	cbz	x0, LBB0_13
; %bb.11:
	ldr	x8, [x20]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.12:
	str	x8, [x19]
LBB0_13:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCOL_RANGE_JPEG,8,3           ; @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,8,3           ; @AVCOL_RANGE_MPEG
	.comm	_AVCOL_PRI_UNSPECIFIED,4,2      ; @AVCOL_PRI_UNSPECIFIED
	.comm	_AVCOL_TRC_UNSPECIFIED,8,3      ; @AVCOL_TRC_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ; @AVCOL_SPC_UNSPECIFIED
	.no_dead_strip	_export_stream_params
.subsections_via_symbols
