	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cuda_frames_init
_cuda_frames_init:                      ## @cuda_frames_init
	.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	%rdi, %r12
	movq	8(%rdi), %rax
	movq	8(%rax), %r14
	movq	_supported_formats@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_3
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	(%r15), %rdi
	cmpq	(%rdi,%rbx,8), %rax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	incq	%rbx
	callq	_FF_ARRAY_ELEMS
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_1
LBB0_3:
	movq	(%r15), %rdi
	callq	_FF_ARRAY_ELEMS
	cmpl	%eax, %ebx
	jne	LBB0_5
## %bb.4:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	(%r12), %rdi
	callq	_av_get_pix_fmt_name
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%eax, %ecx
	callq	_av_log
	movq	_ENOSYS@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_5:
	movq	(%r12), %rdi
	leaq	4(%r14), %rsi
	movq	%r14, %rdx
	callq	_av_pix_fmt_get_chroma_sub_sample
	xorl	%eax, %eax
	cmpl	$0, 24(%r12)
	je	LBB0_6
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	(%r12), %rdi
	movl	20(%r12), %esi
	movl	16(%r12), %edx
	movq	_CUDA_FRAME_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_av_image_get_buffer_size
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	_cuda_pool_alloc@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	movq	%r12, %rsi
	xorl	%ecx, %ecx
	callq	_av_buffer_pool_init2
	movl	%eax, %ecx
	movq	8(%r12), %rax
	movl	%ecx, (%rax)
	movl	$0, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
## %bb.8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_supported_formats,8,3          ## @supported_formats
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Pixel format '%s' is not supported\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_CUDA_FRAME_ALIGNMENT,4,2       ## @CUDA_FRAME_ALIGNMENT
	.comm	_cuda_pool_alloc,4,2            ## @cuda_pool_alloc
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_cuda_frames_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cuda_frames_init
_cuda_frames_init:                      ; @cuda_frames_init
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x20, [x8, #8]
Lloh0:
	adrp	x21, _supported_formats@GOTPAGE
Lloh1:
	ldr	x21, [x21, _supported_formats@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w0, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	x0, [x21]
	ldr	x9, [x0, x22, lsl #3]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	bl	_FF_ARRAY_ELEMS
	cmp	x22, w0, sxtw
	b.lt	LBB0_2
	b	LBB0_5
LBB0_4:
	mov	w22, #0
LBB0_5:
	ldr	x0, [x21]
	bl	_FF_ARRAY_ELEMS
	cmp	w22, w0
	b.ne	LBB0_8
; %bb.6:
Lloh2:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	x0, [x19]
	bl	_av_get_pix_fmt_name
	mov	x3, x0
Lloh5:
	adrp	x2, l_.str@PAGE
Lloh6:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	bl	_av_log
Lloh7:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	b	_AVERROR
LBB0_8:
	ldr	x0, [x19]
	add	x1, x20, #4
	mov	x2, x20
	bl	_av_pix_fmt_get_chroma_sub_sample
	ldr	w8, [x19, #24]
	cbz	w8, LBB0_11
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
LBB0_11:
	ldr	x0, [x19]
	ldp	w2, w1, [x19, #16]
Lloh9:
	adrp	x8, _CUDA_FRAME_ALIGNMENT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CUDA_FRAME_ALIGNMENT@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	bl	_av_image_get_buffer_size
	tbnz	w0, #31, LBB0_10
; %bb.12:
Lloh12:
	adrp	x8, _cuda_pool_alloc@GOTPAGE
Lloh13:
	ldr	x8, [x8, _cuda_pool_alloc@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x1, x19
	mov	x3, #0
	bl	_av_buffer_pool_init2
	ldr	x8, [x19, #8]
	str	w0, [x8]
	cbnz	w0, LBB0_9
; %bb.13:
Lloh15:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_supported_formats,8,3          ; @supported_formats
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Pixel format '%s' is not supported\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_CUDA_FRAME_ALIGNMENT,4,2       ; @CUDA_FRAME_ALIGNMENT
	.comm	_cuda_pool_alloc,4,2            ; @cuda_pool_alloc
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_cuda_frames_init
.subsections_via_symbols
