	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_init_vscale                 ## -- Begin function ff_init_vscale
	.p2align	4, 0x90
_ff_init_vscale:                        ## @ff_init_vscale
	.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	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	40(%rdi), %edi
	callq	_isPlanarYUV
	testq	%rax, %rax
	je	LBB0_1
LBB0_3:
	movl	$4, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:
	movq	_lum_planar_vscale@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movq	%rax, 24(%r14)
	movq	%r12, 16(%r14)
	movq	%r15, 8(%r14)
	movl	36(%rbx), %eax
	movl	%eax, (%r14)
	movl	40(%rbx), %edi
	callq	_isGray
	testq	%rax, %rax
	jne	LBB0_12
## %bb.5:
	movl	$4, %edi
	callq	_av_mallocz
	testq	%rax, %rax
	je	LBB0_13
## %bb.6:
	movq	_chr_planar_vscale@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 72(%r14)
	movq	%rax, 64(%r14)
	movq	%r12, 56(%r14)
	movq	%r15, 48(%r14)
	jmp	LBB0_12
LBB0_1:
	movl	40(%rbx), %edi
	callq	_isGray
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movl	40(%rbx), %edi
	callq	_isALPHA
	testl	%eax, %eax
	je	LBB0_3
LBB0_7:
	movl	$4, %edi
	movl	$2, %esi
	callq	_av_mallocz_array
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	cmpq	$0, 8(%rbx)
	jne	LBB0_9
## %bb.10:
	movq	_any_vscale@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_13:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_9:
	movq	_packed_vscale@GOTPCREL(%rip), %rcx
LBB0_11:
	movl	(%rcx), %ecx
	movl	%ecx, 32(%r14)
	movq	%rax, 24(%r14)
	movq	%r12, 16(%r14)
	movq	%r15, 8(%r14)
	movl	36(%rbx), %eax
	movl	%eax, (%r14)
LBB0_12:
	movl	32(%rbx), %esi
	movl	28(%rbx), %edx
	movl	24(%rbx), %ecx
	movl	20(%rbx), %r8d
	movl	16(%rbx), %r9d
	movl	(%rbx), %eax
	movl	4(%rbx), %r10d
	subq	$8, %rsp
	movq	%rbx, %rdi
	pushq	%rax
	pushq	%r10
	pushq	8(%rbx)
	callq	_ff_init_vscale_pfn
	addq	$32, %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_lum_planar_vscale,4,2          ## @lum_planar_vscale
	.comm	_chr_planar_vscale,4,2          ## @chr_planar_vscale
	.comm	_packed_vscale,4,2              ## @packed_vscale
	.comm	_any_vscale,4,2                 ## @any_vscale
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_init_vscale                 ; -- Begin function ff_init_vscale
	.p2align	2
_ff_init_vscale:                        ; @ff_init_vscale
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #40]
	bl	_isPlanarYUV
	cbz	x0, LBB0_5
LBB0_1:
	mov	w0, #4
	bl	_av_mallocz
	cbz	x0, LBB0_10
; %bb.2:
Lloh0:
	adrp	x8, _lum_planar_vscale@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lum_planar_vscale@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #32]
	stp	x22, x0, [x20, #16]
	str	x21, [x20, #8]
	ldp	w8, w0, [x19, #36]
	str	w8, [x20]
	bl	_isGray
	cbnz	x0, LBB0_9
; %bb.3:
	mov	w0, #4
	bl	_av_mallocz
	cbz	x0, LBB0_10
; %bb.4:
Lloh3:
	adrp	x8, _chr_planar_vscale@GOTPAGE
Lloh4:
	ldr	x8, [x8, _chr_planar_vscale@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x20, #72]
	stp	x22, x0, [x20, #56]
	str	x21, [x20, #48]
	b	LBB0_9
LBB0_5:
	ldr	w0, [x19, #40]
	bl	_isGray
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x19, #40]
	bl	_isALPHA
	cbz	w0, LBB0_1
LBB0_7:
	mov	w0, #4
	mov	w1, #2
	bl	_av_mallocz_array
	cbz	x0, LBB0_10
; %bb.8:
Lloh6:
	adrp	x8, _packed_vscale@GOTPAGE
Lloh7:
	ldr	x8, [x8, _packed_vscale@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh8:
	adrp	x10, _any_vscale@GOTPAGE
Lloh9:
	ldr	x10, [x10, _any_vscale@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w8, [x8]
	str	w8, [x20, #32]
	stp	x22, x0, [x20, #16]
	str	x21, [x20, #8]
	ldr	w8, [x19, #36]
	str	w8, [x20]
LBB0_9:
	ldp	w2, w1, [x19, #28]
	ldp	w4, w3, [x19, #20]
	ldr	w5, [x19, #16]
	ldr	x6, [x19, #8]
	ldp	w8, w7, [x19]
	str	w8, [sp]
	mov	x0, x19
	bl	_ff_init_vscale_pfn
	mov	w0, #0
	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
	add	sp, sp, #64
	ret
LBB0_10:
Lloh10:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_lum_planar_vscale,4,2          ; @lum_planar_vscale
	.comm	_chr_planar_vscale,4,2          ; @chr_planar_vscale
	.comm	_packed_vscale,4,2              ; @packed_vscale
	.comm	_any_vscale,4,2                 ; @any_vscale
.subsections_via_symbols
