	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvdec_frame_params          ## -- Begin function ff_nvdec_frame_params
	.p2align	4, 0x90
_ff_nvdec_frame_params:                 ## @ff_nvdec_frame_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r12d
	movl	%edx, %r15d
	movq	%rdi, %rbx
	movq	(%rsi), %r13
	movl	8(%rdi), %edi
	callq	_av_pix_fmt_desc_get
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	%rax, %r14
	movl	12(%rbx), %edi
	callq	_map_avcodec_id
	testl	%eax, %eax
	js	LBB0_9
## %bb.2:
	movl	8(%rbx), %edi
	callq	_map_chroma_format
	testl	%eax, %eax
	js	LBB0_12
## %bb.3:
	testl	%r12d, %r12d
	setne	%r12b
	movq	_cudaVideoChromaFormat_444@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	movq	_AV_PIX_FMT_CUDA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r13)
	movl	(%rbx), %eax
	incl	%eax
	andl	$-2, %eax
	movl	%eax, (%r13)
	movl	4(%rbx), %eax
	incl	%eax
	andl	$-2, %eax
	movl	%eax, 4(%r13)
	addl	$2, %r15d
	movl	%r15d, 8(%r13)
	movq	_nvdec_free_dummy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_nvdec_alloc_dummy@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_av_buffer_pool_init
	movl	%eax, 24(%r13)
	testl	%eax, %eax
	je	LBB0_14
## %bb.4:
	andb	-41(%rbp), %r12b                ## 1-byte Folded Reload
	movq	(%r14), %rax
	movl	(%rax), %eax
	cmpl	$12, %eax
	je	LBB0_16
## %bb.5:
	cmpl	$10, %eax
	je	LBB0_18
## %bb.6:
	cmpl	$8, %eax
	jne	LBB0_13
## %bb.7:
	testb	%r12b, %r12b
	je	LBB0_20
## %bb.8:
	movq	_AV_PIX_FMT_YUV444P@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_9:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
LBB0_10:
	movq	_AVERROR_BUG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_14:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_15:
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_16:
	testb	%r12b, %r12b
	jne	LBB0_19
## %bb.21:
	movq	_AV_PIX_FMT_P016@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_18:
	testb	%r12b, %r12b
	je	LBB0_22
LBB0_19:
	movq	_AV_PIX_FMT_YUV444P16@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_20:
	movq	_AV_PIX_FMT_NV12@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_22:
	movq	_AV_PIX_FMT_P010@GOTPCREL(%rip), %rax
LBB0_23:
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_BUG,4,2                ## @AVERROR_BUG
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unsupported codec ID\n"

	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported chroma format\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_cudaVideoChromaFormat_444,4,2  ## @cudaVideoChromaFormat_444
	.comm	_AV_PIX_FMT_CUDA,4,2            ## @AV_PIX_FMT_CUDA
	.comm	_nvdec_free_dummy,4,2           ## @nvdec_free_dummy
	.comm	_nvdec_alloc_dummy,4,2          ## @nvdec_alloc_dummy
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_AV_PIX_FMT_YUV444P,8,3         ## @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_NV12,8,3            ## @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_YUV444P16,8,3       ## @AV_PIX_FMT_YUV444P16
	.comm	_AV_PIX_FMT_P010,8,3            ## @AV_PIX_FMT_P010
	.comm	_AV_PIX_FMT_P016,8,3            ## @AV_PIX_FMT_P016
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvdec_frame_params          ; -- Begin function ff_nvdec_frame_params
	.p2align	2
_ff_nvdec_frame_params:                 ; @ff_nvdec_frame_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	x22, x3
	mov	x21, x2
	mov	x20, x0
	ldr	x23, [x1]
	ldr	w0, [x0, #8]
	bl	_av_pix_fmt_desc_get
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x0
	ldr	w0, [x20, #12]
	bl	_map_avcodec_id
	tbnz	w0, #31, LBB0_8
; %bb.2:
	ldr	w0, [x20, #8]
	bl	_map_chroma_format
	tbnz	w0, #31, LBB0_11
; %bb.3:
	cmp	w22, #0
Lloh0:
	adrp	x8, _cudaVideoChromaFormat_444@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cudaVideoChromaFormat_444@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w0, w8, #0, ne
	cset	w22, eq
Lloh3:
	adrp	x8, _AV_PIX_FMT_CUDA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AV_PIX_FMT_CUDA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x23, #32]
	ldr	d0, [x20]
	movi.2s	v1, #1
	add.2s	v0, v0, v1
	bic.2s	v0, #1
	str	d0, [x23]
	add	w8, w21, #2
Lloh6:
	adrp	x9, _nvdec_free_dummy@GOTPAGE
Lloh7:
	ldr	x9, [x9, _nvdec_free_dummy@GOTPAGEOFF]
	str	w8, [x23, #8]
Lloh8:
	ldr	w8, [x9]
	str	w8, [x23, #28]
Lloh9:
	adrp	x8, _nvdec_alloc_dummy@GOTPAGE
Lloh10:
	ldr	x8, [x8, _nvdec_alloc_dummy@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_av_buffer_pool_init
	str	w0, [x23, #24]
	cbz	w0, LBB0_13
; %bb.4:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #12
	b.eq	LBB0_15
; %bb.5:
	cmp	w8, #10
	b.eq	LBB0_16
; %bb.6:
	cmp	w8, #8
	b.ne	LBB0_12
; %bb.7:
	mov	w0, #0
Lloh12:
	adrp	x8, _AV_PIX_FMT_YUV444P@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_PIX_FMT_YUV444P@GOTPAGEOFF]
Lloh14:
	adrp	x9, _AV_PIX_FMT_NV12@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AV_PIX_FMT_NV12@GOTPAGEOFF]
	b	LBB0_17
LBB0_8:
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_9:
Lloh21:
	adrp	x8, _AVERROR_BUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AVERROR_BUG@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
LBB0_10:
	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
LBB0_11:
Lloh24:
	adrp	x8, _AV_LOG_VERBOSE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x2, l_.str.1@PAGE
Lloh28:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_av_log
LBB0_12:
Lloh29:
	adrp	x8, _EINVAL@GOTPAGE
Lloh30:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh31:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_14:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_AVERROR
LBB0_15:
	mov	w0, #0
Lloh33:
	adrp	x8, _AV_PIX_FMT_YUV444P16@GOTPAGE
Lloh34:
	ldr	x8, [x8, _AV_PIX_FMT_YUV444P16@GOTPAGEOFF]
Lloh35:
	adrp	x9, _AV_PIX_FMT_P016@GOTPAGE
Lloh36:
	ldr	x9, [x9, _AV_PIX_FMT_P016@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:
	mov	w0, #0
Lloh37:
	adrp	x8, _AV_PIX_FMT_YUV444P16@GOTPAGE
Lloh38:
	ldr	x8, [x8, _AV_PIX_FMT_YUV444P16@GOTPAGEOFF]
Lloh39:
	adrp	x9, _AV_PIX_FMT_P010@GOTPAGE
Lloh40:
	ldr	x9, [x9, _AV_PIX_FMT_P010@GOTPAGEOFF]
LBB0_17:
	cmp	w22, #0
	csel	x8, x8, x9, ne
	ldr	x8, [x8]
	str	x8, [x23, #16]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_BUG,4,2                ; @AVERROR_BUG
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unsupported codec ID\n"

	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported chroma format\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_cudaVideoChromaFormat_444,4,2  ; @cudaVideoChromaFormat_444
	.comm	_AV_PIX_FMT_CUDA,4,2            ; @AV_PIX_FMT_CUDA
	.comm	_nvdec_free_dummy,4,2           ; @nvdec_free_dummy
	.comm	_nvdec_alloc_dummy,4,2          ; @nvdec_alloc_dummy
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_AV_PIX_FMT_YUV444P,8,3         ; @AV_PIX_FMT_YUV444P
	.comm	_AV_PIX_FMT_NV12,8,3            ; @AV_PIX_FMT_NV12
	.comm	_AV_PIX_FMT_YUV444P16,8,3       ; @AV_PIX_FMT_YUV444P16
	.comm	_AV_PIX_FMT_P010,8,3            ; @AV_PIX_FMT_P010
	.comm	_AV_PIX_FMT_P016,8,3            ; @AV_PIX_FMT_P016
.subsections_via_symbols
