	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_stage
_init_stage:                            ## @init_stage
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movl	40(%rdi), %edi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	callq	_av_pix_fmt_get_chroma_sub_sample
	movl	24(%r12), %edi
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	callq	_av_pix_fmt_get_chroma_sub_sample
	movq	8(%r12), %rax
	movq	32(%r12), %rdi
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	(%rdi), %ecx
	movl	%ecx, (%rax)
	movl	4(%rdi), %ecx
	movl	%ecx, 4(%rax)
LBB0_2:
	callq	_FF_ARRAY_ELEMS
	cmpl	$2, %eax
	jl	LBB0_5
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r12), %rdi
	movl	(%rdi), %eax
	movzbl	-48(%rbp), %ecx
	sarl	%cl, %eax
	movl	%eax, (%rdi,%rbx,8)
	movl	4(%rdi), %eax
	movzbl	-44(%rbp), %ecx
	sarl	%cl, %eax
	movl	%eax, 4(%rdi,%rbx,8)
	movq	8(%r12), %rax
	movl	(%rax), %edx
	movzbl	-40(%rbp), %ecx
	sarl	%cl, %edx
	movl	%edx, (%rax,%rbx,8)
	movl	4(%rax), %edx
	movzbl	-36(%rbp), %ecx
	sarl	%cl, %edx
	movl	%edx, 4(%rax,%rbx,8)
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	movq	%r14, %rdi
	callq	_av_hwframe_ctx_alloc
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	(%rax), %rbx
	movq	_AV_PIX_FMT_CUDA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	24(%r12), %eax
	movl	%eax, 16(%rbx)
	movq	8(%r12), %rax
	movl	(%rax), %edi
	movl	$32, %esi
	callq	_FFALIGN
	movq	%rax, 8(%rbx)
	movq	8(%r12), %rax
	movl	4(%rax), %edi
	movl	$32, %esi
	callq	_FFALIGN
	movq	%rax, (%rbx)
	movq	-56(%rbp), %r15
	movq	%r15, %rdi
	callq	_av_hwframe_ctx_init
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	16(%r12), %rdi
	callq	_av_frame_unref
	movq	16(%r12), %rsi
	xorl	%r14d, %r14d
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_av_hwframe_get_buffer
	testl	%eax, %eax
	js	LBB0_9
## %bb.11:
	movq	8(%r12), %rax
	movq	16(%r12), %rcx
	movl	(%rax), %edx
	movl	%edx, (%rcx)
	movl	4(%rax), %eax
	movl	%eax, 4(%rcx)
	movq	%r12, %rdi
	callq	_av_buffer_unref
	movq	%r15, (%r12)
	jmp	LBB0_10
LBB0_6:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r14d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
	leaq	-56(%rbp), %rdi
	callq	_av_buffer_unref
LBB0_10:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_CUDA,4,2            ## @AV_PIX_FMT_CUDA
	.no_dead_strip	_init_stage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_stage
_init_stage:                            ; @init_stage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #40]
	add	x1, sp, #20
	add	x2, sp, #16
	bl	_av_pix_fmt_get_chroma_sub_sample
	ldr	w0, [x19, #24]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_av_pix_fmt_get_chroma_sub_sample
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	ldr	x0, [x19, #32]
	cbnz	w9, LBB0_2
; %bb.1:
	ldr	d0, [x0]
	str	d0, [x8]
LBB0_2:
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #2
	b.lt	LBB0_5
; %bb.3:
	mov	x21, #0
	mov	w22, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #32]
	ldr	w8, [sp, #20]
	ldp	w9, w10, [x0]
	asr	w8, w9, w8
	add	x9, x0, x21
	str	w8, [x9, #8]
	ldr	w8, [sp, #16]
	asr	w8, w10, w8
	str	w8, [x9, #12]
	ldr	x8, [x19, #8]
	ldr	w9, [sp, #12]
	ldp	w10, w11, [x8]
	asr	w9, w10, w9
	add	x8, x8, x21
	str	w9, [x8, #8]
	ldr	w9, [sp, #8]
	asr	w9, w11, w9
	str	w9, [x8, #12]
	add	x22, x22, #1
	bl	_FF_ARRAY_ELEMS
	add	x21, x21, #8
	cmp	x22, w0, sxtw
	b.lt	LBB0_4
LBB0_5:
	mov	x0, x20
	bl	_av_hwframe_ctx_alloc
	str	x0, [sp, #24]
	cbz	x0, LBB0_9
; %bb.6:
	ldr	x20, [x0]
Lloh0:
	adrp	x8, _AV_PIX_FMT_CUDA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_PIX_FMT_CUDA@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #20]
	ldr	w8, [x19, #24]
	str	w8, [x20, #16]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #32
	bl	_FFALIGN
	str	x0, [x20, #8]
	ldr	x8, [x19, #8]
	ldr	w0, [x8, #4]
	mov	w1, #32
	bl	_FFALIGN
	str	x0, [x20]
	ldr	x20, [sp, #24]
	mov	x0, x20
	bl	_av_hwframe_ctx_init
	tbnz	w0, #31, LBB0_10
; %bb.7:
	ldr	x0, [x19, #16]
	bl	_av_frame_unref
	ldr	x1, [x19, #16]
	mov	x0, x20
	mov	w2, #0
	bl	_av_hwframe_get_buffer
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldp	x8, x9, [x19, #8]
	ldr	d0, [x8]
	str	d0, [x9]
	mov	x0, x19
	bl	_av_buffer_unref
	mov	w21, #0
	str	x20, [x19]
	b	LBB0_11
LBB0_9:
Lloh3:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_11
LBB0_10:
	mov	x21, x0
	add	x0, sp, #24
	bl	_av_buffer_unref
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_CUDA,4,2            ; @AV_PIX_FMT_CUDA
	.no_dead_strip	_init_stage
.subsections_via_symbols
