	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scale_frame
_scale_frame:                           ## @scale_frame
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r13
	movq	%rdi, %rcx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rsi, -160(%rbp)
	movq	(%rdi), %rdi
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	16(%rcx), %rax
	movq	8(%rax), %rcx
	movq	16(%rax), %r12
	movq	(%rcx), %r15
	callq	_av_pix_fmt_desc_get
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	$0, (%rbx)
	movl	48(%r13), %eax
	movq	_AVCOL_SPC_YCGCO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_2
## %bb.1:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_av_log
LBB0_2:
	movl	(%r13), %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpl	8(%rcx), %eax
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_7
## %bb.3:
	movl	4(%r13), %ecx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpl	12(%rdx), %ecx
	jne	LBB0_7
## %bb.4:
	movq	8(%r13), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.5:
	movq	32(%r13), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	24(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	40(%r13), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	cmpq	32(%rdx), %rcx
	je	LBB0_10
LBB0_7:
	movq	(%r12), %rcx
	movq	_EVAL_MODE_INIT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_9
## %bb.8:
	movl	8(%r15), %ecx
	movq	%r15, %rbx
	leaq	L_.str.1(%rip), %r15
	leaq	-80(%rbp), %r14
	movq	%r14, %rdi
	movl	$31, %esi
	movq	%r15, %rdx
	callq	_snprintf
	leaq	L_.str.2(%rip), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_av_opt_set
	movl	12(%rbx), %ecx
	movq	%r14, %rdi
	movl	$31, %esi
	movq	%r15, %rdx
	movq	%rbx, %r15
	movq	-104(%rbp), %r12                ## 8-byte Reload
	callq	_snprintf
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	xorl	%ecx, %ecx
	callq	_av_opt_set
	movl	(%r13), %eax
LBB0_9:
	movq	8(%r13), %rcx
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	movq	16(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movq	%rcx, (%rdx)
	movl	%eax, 8(%rdx)
	movl	4(%r13), %eax
	movl	%eax, 12(%rdx)
	movups	32(%r13), %xmm0
	movups	%xmm0, 16(%rdx)
	movq	%r15, %rdi
	callq	_config_props
	testl	%eax, %eax
	js	LBB0_57
LBB0_10:
	cmpq	$0, 32(%r12)
	je	LBB0_11
## %bb.12:
	movq	-136(%rbp), %rcx                ## 8-byte Reload
	movl	4(%rcx), %eax
	movl	%eax, 76(%r12)
	movl	(%rcx), %eax
	movl	%eax, 72(%r12)
	movl	8(%r15), %esi
	movl	12(%r15), %edx
	movq	%r15, %rdi
	callq	_ff_get_video_buffer
	testq	%rax, %rax
	je	LBB0_13
## %bb.14:
	movq	%rax, %rbx
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%rbx, (%rax)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_av_frame_copy_props
	movl	8(%r15), %eax
	movl	%eax, (%rbx)
	movl	12(%r15), %eax
	movl	%eax, 4(%rbx)
	cmpq	$0, 64(%r12)
	je	LBB0_18
## %bb.15:
	movq	56(%rbx), %rax
	movq	8(%rax), %rdi
	movq	(%r15), %rsi
	movq	_AV_PIX_FMT_PAL8@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_17
## %bb.16:
	movq	_AV_PIX_FMT_BGR8@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
LBB0_17:
	callq	_avpriv_set_systematic_pal2
LBB0_18:
	movq	%rbx, -136(%rbp)                ## 8-byte Spill
	movl	16(%r13), %r12d
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	cmpq	$0, 48(%rbx)
	jne	LBB0_23
## %bb.19:
	cmpq	$0, 56(%rbx)
	je	LBB0_20
LBB0_23:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	32(%rbx), %rdi
	leaq	-116(%rbp), %rax
	leaq	-120(%rbp), %rbx
	leaq	-152(%rbp), %rsi
	leaq	-96(%rbp), %rdx
	leaq	-144(%rbp), %rcx
	leaq	-92(%rbp), %r8
	leaq	-124(%rbp), %r9
	pushq	%rax
	pushq	%rbx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	callq	_sws_getColorspaceDetails
	addq	$16, %rsp
	movq	48(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.24:
	movl	48(%r13), %esi
	callq	_parse_yuv_type
	movq	%rax, -152(%rbp)
LBB0_25:
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_27
## %bb.26:
	movq	_AVCOL_SPC_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_parse_yuv_type
	jmp	LBB0_29
LBB0_11:
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	%r13, (%rax)
	jmp	LBB0_56
LBB0_13:
	leaq	-160(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_57
LBB0_27:
	cmpq	$0, 48(%rbx)
	je	LBB0_30
## %bb.28:
	movq	-152(%rbp), %rax
LBB0_29:
	movq	%rax, -144(%rbp)
LBB0_30:
	movl	8(%rbx), %ecx
	movq	_AVCOL_RANGE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %ecx
	jne	LBB0_31
## %bb.32:
	cmpl	%ecx, %r12d
	je	LBB0_34
## %bb.33:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpl	(%rcx), %r12d
	sete	%dl
	movl	%edx, -96(%rbp)
	jmp	LBB0_34
LBB0_31:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	cmpl	(%rdx), %ecx
	sete	%sil
	movl	%esi, -96(%rbp)
LBB0_34:
	movl	12(%rbx), %ecx
	cmpl	%eax, %ecx
	jne	LBB0_36
## %bb.35:
	movl	-92(%rbp), %r8d
	jmp	LBB0_37
LBB0_36:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	cmpl	(%rax), %ecx
	sete	%r8b
	movl	%r8d, -92(%rbp)
LBB0_37:
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	32(%rbx), %rdi
	movq	-152(%rbp), %rsi
	movl	-96(%rbp), %edx
	movq	-144(%rbp), %rcx
	movl	-124(%rbp), %r9d
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %ebx
	pushq	%rbx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	pushq	%rax
	callq	_sws_setColorspaceDetails
	addq	$16, %rsp
	movq	40(%rbx), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_39
## %bb.38:
	movq	-152(%rbp), %rsi
	movl	-96(%rbp), %edx
	movq	-144(%rbp), %rcx
	movl	-92(%rbp), %r8d
	movl	-124(%rbp), %r9d
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %ebx
	pushq	%rbx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	pushq	%rax
	callq	_sws_setColorspaceDetails
	addq	$16, %rsp
	movq	40(%rbx), %rax
LBB0_39:
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_41
## %bb.40:
	movq	-152(%rbp), %rsi
	movl	-96(%rbp), %edx
	movq	-144(%rbp), %rcx
	movl	-92(%rbp), %r8d
	movl	-124(%rbp), %r9d
	movl	-120(%rbp), %eax
	movl	-116(%rbp), %ebx
	pushq	%rbx
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	pushq	%rax
	callq	_sws_setColorspaceDetails
	addq	$16, %rsp
LBB0_41:
	cmpl	$0, -92(%rbp)
	jne	LBB0_42
## %bb.43:
	movq	_AVCOL_RANGE_MPEG@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_42:
	movq	_AVCOL_RANGE_JPEG@GOTPCREL(%rip), %rax
LBB0_44:
	movq	-112(%rbp), %r15                ## 8-byte Reload
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
LBB0_45:
	movq	-136(%rbp), %r12                ## 8-byte Reload
	leaq	40(%r12), %rdi
	movq	%r12, %rsi
	addq	$32, %rsi
	movl	8(%r15), %ecx
	movl	12(%r15), %edx
	imull	40(%r13), %edx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	imull	8(%rax), %edx
	imull	32(%r13), %ecx
	imull	12(%rax), %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_av_reduce
	cmpq	$0, 16(%rbx)
	jle	LBB0_46
LBB0_48:
	movq	40(%rbx), %rax
	movq	(%rax), %rcx
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	12(%r14), %eax
	movl	%eax, %edx
	incl	%edx
	shrl	$31, %edx
	leal	(%rax,%rdx), %r9d
	incl	%r9d
	sarl	%r9d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$2
	callq	_scale_slice
	addq	$16, %rsp
	movq	40(%rbx), %rax
	movq	8(%rax), %rcx
	movl	12(%r14), %eax
	movl	%eax, %r9d
	shrl	$31, %r9d
	addl	%eax, %r9d
	sarl	%r9d
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	pushq	$1
	pushq	$2
LBB0_54:
	callq	_scale_slice
	addq	$16, %rsp
LBB0_55:
	leaq	-160(%rbp), %rdi
	callq	_av_frame_free
LBB0_56:
	xorl	%eax, %eax
LBB0_57:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_59
## %bb.58:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_46:
	js	LBB0_47
LBB0_49:
	movl	24(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_53
## %bb.50:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %esi
	callq	_FFMIN
	movl	%eax, -104(%rbp)                ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_55
## %bb.51:
	movq	%r12, %r15
	movq	%rbx, %rcx
	movq	%r13, %rbx
	movl	-104(%rbp), %eax                ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	negl	%eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r8d, %r8d
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_52:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi), %eax
	imull	%r12d, %eax
	cltd
	idivl	-104(%rbp)                      ## 4-byte Folded Reload
	movl	%eax, %r14d
	movl	%eax, %r9d
	subl	%r8d, %r9d
	movq	%rcx, %r13
	movq	32(%rcx), %rcx
	movq	%r15, %rsi
	movq	%rbx, %rdx
	pushq	$0
	pushq	$1
	callq	_scale_slice
	addq	$16, %rsp
	movq	-112(%rbp), %rax                ## 8-byte Reload
	addl	%r12d, %eax
	incl	%eax
	movl	%r12d, %ecx
	incl	%ecx
	movl	%ecx, %r12d
	movq	%r13, %rcx
	movl	%r14d, %r8d
	cmpl	$1, %eax
	jne	LBB0_52
	jmp	LBB0_55
LBB0_20:
	movq	_AVCOL_RANGE_UNSPECIFIED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, 8(%rbx)
	jne	LBB0_23
## %bb.21:
	cmpl	%eax, %r12d
	jne	LBB0_23
## %bb.22:
	cmpl	%r12d, 12(%rbx)
	jne	LBB0_23
	jmp	LBB0_45
LBB0_47:
	cmpq	$0, 24(%r13)
	jne	LBB0_48
	jmp	LBB0_49
LBB0_53:
	movq	32(%rbx), %rcx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	12(%rdi), %r9d
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%r8d, %r8d
	pushq	$0
	pushq	$1
	jmp	LBB0_54
LBB0_59:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AVCOL_SPC_YCGCO,4,2            ## @AVCOL_SPC_YCGCO
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Detected unsupported YCgCo colorspace.\n"

	.comm	_EVAL_MODE_INIT,8,3             ## @EVAL_MODE_INIT
L_.str.1:                               ## @.str.1
	.asciz	"%d"

L_.str.2:                               ## @.str.2
	.asciz	"w"

L_.str.3:                               ## @.str.3
	.asciz	"h"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_PAL8,8,3            ## @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_BGR8,8,3            ## @AV_PIX_FMT_BGR8
	.comm	_AVCOL_RANGE_UNSPECIFIED,4,2    ## @AVCOL_RANGE_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ## @AVCOL_SPC_UNSPECIFIED
	.comm	_AVCOL_RANGE_JPEG,4,2           ## @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,4,2           ## @AVCOL_RANGE_MPEG
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.no_dead_strip	_scale_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scale_frame
_scale_frame:                           ; @scale_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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	x24, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	str	x1, [sp, #48]
	ldr	x8, [x0, #16]
	ldp	x8, x21, [x8, #8]
	ldr	x22, [x8]
	ldr	x0, [x0]
	bl	_av_pix_fmt_desc_get
	mov	x23, x0
	str	xzr, [x24]
	ldr	w8, [x19, #48]
Lloh3:
	adrp	x9, _AVCOL_SPC_YCGCO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVCOL_SPC_YCGCO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20, #16]
Lloh6:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
LBB0_2:
	ldr	w8, [x19]
	ldr	w9, [x20, #8]
	cmp	w8, w9
	b.ne	LBB0_7
; %bb.3:
	ldr	w9, [x19, #4]
	ldr	w10, [x20, #12]
	cmp	w9, w10
	b.ne	LBB0_7
; %bb.4:
	ldr	x9, [x19, #8]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.5:
	ldr	x9, [x19, #32]
	ldr	x10, [x20, #24]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.6:
	ldr	x9, [x19, #40]
	ldr	x10, [x20, #32]
	cmp	x9, x10
	b.eq	LBB0_10
LBB0_7:
	ldr	x9, [x21]
Lloh11:
	adrp	x10, _EVAL_MODE_INIT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _EVAL_MODE_INIT@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
; %bb.8:
	ldr	w3, [x22, #8]
Lloh14:
	adrp	x25, l_.str.1@PAGE
Lloh15:
	add	x25, x25, l_.str.1@PAGEOFF
	add	x0, sp, #56
	mov	w1, #31
	mov	x2, x25
	bl	_snprintf
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #56
	mov	x0, x21
	mov	w3, #0
	bl	_av_opt_set
	ldr	w3, [x22, #12]
	add	x0, sp, #56
	mov	w1, #31
	mov	x2, x25
	bl	_snprintf
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #56
	mov	x0, x21
	mov	w3, #0
	bl	_av_opt_set
	ldr	w8, [x19]
LBB0_9:
	ldr	x9, [x19, #8]
	ldr	x10, [x20, #16]
	ldr	x10, [x10]
	ldr	x10, [x10]
	str	x9, [x10]
	str	w8, [x10, #8]
	ldr	w8, [x19, #4]
	str	w8, [x10, #12]
	ldr	q0, [x19, #32]
	str	q0, [x10, #16]
	mov	x0, x22
	bl	_config_props
	tbnz	w0, #31, LBB0_41
LBB0_10:
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_20
; %bb.11:
	ldr	d0, [x23]
	str	d0, [x21, #72]
	ldp	w1, w2, [x22, #8]
	mov	x0, x22
	bl	_ff_get_video_buffer
	cbz	x0, LBB0_21
; %bb.12:
	mov	x23, x0
	str	x0, [x24]
	mov	x1, x19
	bl	_av_frame_copy_props
	ldr	d0, [x22, #8]
	str	d0, [x23]
	ldr	x8, [x21, #64]
	cbz	x8, LBB0_14
; %bb.13:
	ldr	x8, [x23, #56]
	ldr	x0, [x8, #8]
	ldr	x8, [x22]
Lloh20:
	adrp	x9, _AV_PIX_FMT_PAL8@GOTPAGE
Lloh21:
	ldr	x9, [x9, _AV_PIX_FMT_PAL8@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	adrp	x10, _AV_PIX_FMT_BGR8@GOTPAGE
Lloh24:
	ldr	x10, [x10, _AV_PIX_FMT_BGR8@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x8, x9
	csel	x1, x10, x8, eq
	bl	_avpriv_set_systematic_pal2
LBB0_14:
	ldr	w25, [x19, #16]
	ldr	x8, [x21, #48]
Lloh26:
	adrp	x24, _AVCOL_RANGE_UNSPECIFIED@GOTPAGE
Lloh27:
	ldr	x24, [x24, _AVCOL_RANGE_UNSPECIFIED@GOTPAGEOFF]
	cbnz	x8, LBB0_16
; %bb.15:
	ldr	x8, [x21, #56]
	cbz	x8, LBB0_48
LBB0_16:
	ldr	x0, [x21, #32]
	add	x1, sp, #16
	add	x2, sp, #44
	add	x3, sp, #8
	add	x4, sp, #40
	add	x5, sp, #36
	add	x6, sp, #32
	add	x7, sp, #28
	bl	_sws_getColorspaceDetails
	ldr	x0, [x21, #48]
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w1, [x19, #48]
	bl	_parse_yuv_type
	str	x0, [sp, #16]
LBB0_18:
	ldr	x0, [x21, #56]
	cbz	x0, LBB0_22
; %bb.19:
Lloh28:
	adrp	x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AVCOL_SPC_UNSPECIFIED@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_parse_yuv_type
	str	x0, [sp, #8]
	b	LBB0_24
LBB0_20:
	mov	w0, #0
	str	x19, [x24]
	b	LBB0_41
LBB0_21:
	add	x0, sp, #48
	bl	_av_frame_free
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh33:
	ldr	w0, [x8]
	bl	_AVERROR
	b	LBB0_41
LBB0_22:
	ldr	x8, [x21, #48]
	cbz	x8, LBB0_24
; %bb.23:
	ldr	x8, [sp, #16]
	str	x8, [sp, #8]
LBB0_24:
	ldr	w9, [x21, #8]
	ldr	w8, [x24]
Lloh34:
	adrp	x24, _AVCOL_RANGE_JPEG@GOTPAGE
Lloh35:
	ldr	x24, [x24, _AVCOL_RANGE_JPEG@GOTPAGEOFF]
	cmp	w9, w8
	b.ne	LBB0_27
; %bb.25:
	cmp	w25, w9
	b.eq	LBB0_29
; %bb.26:
	ldr	w9, [x24]
	cmp	w25, w9
	b	LBB0_28
LBB0_27:
	ldr	w10, [x24]
	cmp	w9, w10
LBB0_28:
	cset	w9, eq
	str	w9, [sp, #44]
LBB0_29:
	ldr	w9, [x21, #12]
	cmp	w9, w8
	b.ne	LBB0_31
; %bb.30:
	ldr	w4, [sp, #40]
	b	LBB0_32
LBB0_31:
	ldr	w8, [x24]
	cmp	w9, w8
	cset	w4, eq
	str	w4, [sp, #40]
LBB0_32:
	ldr	x0, [x21, #32]
	ldp	x3, x1, [sp, #8]
	ldr	w2, [sp, #44]
	ldp	w6, w5, [sp, #32]
	ldr	w7, [sp, #28]
	bl	_sws_setColorspaceDetails
	ldr	x8, [x21, #40]
	ldr	x0, [x8]
	cbz	x0, LBB0_34
; %bb.33:
	ldp	x3, x1, [sp, #8]
	ldp	w4, w2, [sp, #40]
	ldp	w6, w5, [sp, #32]
	ldr	w7, [sp, #28]
	bl	_sws_setColorspaceDetails
	ldr	x8, [x21, #40]
LBB0_34:
	ldr	x0, [x8, #8]
	cbz	x0, LBB0_36
; %bb.35:
	ldp	x3, x1, [sp, #8]
	ldp	w4, w2, [sp, #40]
	ldp	w6, w5, [sp, #32]
	ldr	w7, [sp, #28]
	bl	_sws_setColorspaceDetails
LBB0_36:
	ldr	w8, [sp, #40]
Lloh36:
	adrp	x9, _AVCOL_RANGE_MPEG@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AVCOL_RANGE_MPEG@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x9, x24, eq
	ldr	w8, [x8]
	str	w8, [x23, #16]
LBB0_37:
	add	x0, x23, #40
	add	x1, x23, #32
	ldr	w8, [x19, #40]
	ldp	w10, w9, [x22, #8]
	mul	w8, w9, w8
	ldp	w9, w11, [x20, #8]
	mul	w2, w8, w9
	ldr	w8, [x19, #32]
	mul	w8, w10, w8
	mul	w3, w8, w11
Lloh38:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh39:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh40:
	ldr	w4, [x8]
	bl	_av_reduce
	ldr	x8, [x21, #16]
	cmp	x8, #0
	b.le	LBB0_43
LBB0_38:
	ldr	x8, [x21, #40]
	ldr	x3, [x8]
	ldr	w8, [x20, #12]
	add	w9, w8, #1
	add	w10, w8, #2
	cmp	w9, #0
	csinc	w8, w10, w8, lt
	asr	w5, w8, #1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	w4, #0
	mov	w6, #2
	mov	w7, #0
	bl	_scale_slice
	ldr	x8, [x21, #40]
	ldr	x3, [x8, #8]
	ldr	w8, [x20, #12]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w5, w8, #1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	w4, #0
	mov	w6, #2
	mov	w7, #1
LBB0_39:
	bl	_scale_slice
LBB0_40:
	add	x0, sp, #48
	bl	_av_frame_free
	mov	w0, #0
LBB0_41:
	ldur	x8, [x29, #-72]
Lloh41:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh42:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_53
; %bb.42:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_43:
	tbnz	x8, #63, LBB0_51
LBB0_44:
	ldr	w0, [x21, #24]
	cbz	w0, LBB0_52
; %bb.45:
	ldr	w1, [x20, #12]
	bl	_FFMIN
	cmp	w0, #1
	b.lt	LBB0_40
; %bb.46:
	mov	x22, x0
	mov	w4, #0
	mov	w24, #0
LBB0_47:                                ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #12]
	add	w24, w24, #1
	mul	w8, w8, w24
	sdiv	w25, w8, w22
	sub	w5, w25, w4
	ldr	x3, [x21, #32]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	w6, #1
	mov	w7, #0
	bl	_scale_slice
	mov	x4, x25
	cmp	w22, w24
	b.ne	LBB0_47
	b	LBB0_40
LBB0_48:
	ldr	w9, [x21, #8]
	ldr	w8, [x24]
	cmp	w9, w8
	b.ne	LBB0_16
; %bb.49:
	cmp	w25, w8
	b.ne	LBB0_16
; %bb.50:
	ldr	w8, [x21, #12]
	cmp	w8, w25
	b.ne	LBB0_16
	b	LBB0_37
LBB0_51:
	ldr	x8, [x19, #24]
	cbnz	x8, LBB0_38
	b	LBB0_44
LBB0_52:
	ldr	x3, [x21, #32]
	ldr	w5, [x20, #12]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	w4, #0
	mov	w6, #1
	mov	w7, #0
	b	LBB0_39
LBB0_53:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.cfi_endproc
                                        ; -- End function
	.comm	_AVCOL_SPC_YCGCO,4,2            ; @AVCOL_SPC_YCGCO
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Detected unsupported YCgCo colorspace.\n"

	.comm	_EVAL_MODE_INIT,8,3             ; @EVAL_MODE_INIT
l_.str.1:                               ; @.str.1
	.asciz	"%d"

l_.str.2:                               ; @.str.2
	.asciz	"w"

l_.str.3:                               ; @.str.3
	.asciz	"h"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_PAL8,8,3            ; @AV_PIX_FMT_PAL8
	.comm	_AV_PIX_FMT_BGR8,8,3            ; @AV_PIX_FMT_BGR8
	.comm	_AVCOL_RANGE_UNSPECIFIED,4,2    ; @AVCOL_RANGE_UNSPECIFIED
	.comm	_AVCOL_SPC_UNSPECIFIED,4,2      ; @AVCOL_SPC_UNSPECIFIED
	.comm	_AVCOL_RANGE_JPEG,4,2           ; @AVCOL_RANGE_JPEG
	.comm	_AVCOL_RANGE_MPEG,4,2           ; @AVCOL_RANGE_MPEG
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.no_dead_strip	_scale_frame
.subsections_via_symbols
