	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvenc_send_frame            ## -- Begin function ff_nvenc_send_frame
	.p2align	4, 0x90
_ff_nvenc_send_frame:                   ## @ff_nvenc_send_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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	16(%rdi), %r12
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movq	$0, -64(%rbp)
	movq	_NV_ENC_PIC_PARAMS_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	cmpl	$0, 60(%r12)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 56(%r12)
	je	LBB0_6
LBB0_2:
	cmpl	$0, 36(%r12)
	je	LBB0_6
## %bb.3:
	cmpl	$0, (%r12)
	je	LBB0_9
## %bb.4:
	movq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_38
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_8:
	movl	$0, (%r12)
	movq	$0, 48(%r12)
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	8(%r12), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	%rax, 8(%rdx)
	movl	32(%r12), %edi
	callq	_av_fifo_reset
LBB0_9:
	testq	%r14, %r14
	je	LBB0_17
## %bb.10:
	movq	%r12, %rdi
	callq	_get_free_frame
	movq	%rax, -128(%rbp)
	testq	%rax, %rax
	je	LBB0_23
## %bb.11:
	movq	%rax, %r13
	movq	%r15, %rdi
	callq	_nvenc_push_context
	testl	%eax, %eax
	js	LBB0_25
## %bb.12:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_reconfig_encoder
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%r13, %rdx
	callq	_nvenc_upload_frame
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_nvenc_pop_context
	testl	%eax, %eax
	js	LBB0_25
## %bb.13:
	testl	%ebx, %ebx
	jne	LBB0_38
## %bb.14:
	movl	20(%r13), %eax
	movl	%eax, -72(%rbp)
	movl	16(%r13), %eax
	movl	%eax, -76(%rbp)
	movups	(%r13), %xmm0
	movups	%xmm0, -92(%rbp)
	movq	_AV_CODEC_FLAG_INTERLACED_DCT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_39
## %bb.15:
	cmpq	$0, 16(%r14)
	jne	LBB0_40
## %bb.16:
	movq	_NV_ENC_PIC_STRUCT_FIELD_BOTTOM_TOP@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_17:
	movq	_NV_ENC_PIC_FLAG_EOS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movl	$1, (%r12)
LBB0_18:
	movq	%r15, %rdi
	callq	_nvenc_push_context
	testl	%eax, %eax
	js	LBB0_25
## %bb.19:
	movl	36(%r12), %edi
	leaq	-112(%rbp), %rsi
	callq	*64(%r12)
	movq	%rax, %r13
	movq	-48(%rbp), %rdi
	callq	_av_free
	movq	%r15, %rdi
	callq	_nvenc_pop_context
	testl	%eax, %eax
	js	LBB0_25
## %bb.20:
	movq	_NV_ENC_SUCCESS@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r13
	je	LBB0_28
## %bb.21:
	movq	_NV_ENC_ERR_NEED_MORE_INPUT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r13
	je	LBB0_28
## %bb.22:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_nvenc_print_error
	movl	%eax, %ebx
	jmp	LBB0_38
LBB0_25:
	movl	%eax, %ebx
LBB0_38:
	movl	%ebx, %eax
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_28:
	testq	%r14, %r14
	je	LBB0_34
## %bb.29:
	movq	%rdx, %rbx
	movl	28(%r12), %edi
	leaq	-128(%rbp), %rsi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
	movl	32(%r12), %edi
	movq	8(%r14), %rsi
	callq	_timestamp_queue_enqueue
	movq	8(%r12), %rax
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, (%rax)
	jne	LBB0_31
## %bb.30:
	movq	%rbx, %rdx
	jmp	LBB0_33
LBB0_31:
	cmpq	%rcx, 8(%rax)
	movq	%rbx, %rdx
	jne	LBB0_34
## %bb.32:
	addq	$8, %rax
LBB0_33:
	movq	8(%r14), %rcx
	movq	%rcx, (%rax)
LBB0_34:
	xorl	%ebx, %ebx
	cmpq	(%rdx), %r13
	jne	LBB0_38
## %bb.35:
	movl	28(%r12), %edi
	callq	_av_fifo_size
	testq	%rax, %rax
	jle	LBB0_38
## %bb.36:
	leaq	-136(%rbp), %r14
	.p2align	4, 0x90
LBB0_37:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r12), %edi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_read
	movl	24(%r12), %edi
	movq	%r14, %rsi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
	movl	28(%r12), %edi
	callq	_av_fifo_size
	testq	%rax, %rax
	jg	LBB0_37
	jmp	LBB0_38
LBB0_39:
	movq	_NV_ENC_PIC_STRUCT_FRAME@GOTPCREL(%rip), %rax
	jmp	LBB0_41
LBB0_40:
	movq	_NV_ENC_PIC_STRUCT_FIELD_TOP_BOTTOM@GOTPCREL(%rip), %rax
LBB0_41:
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	movq	16(%r12), %rax
	testq	%rax, %rax
	js	LBB0_46
## %bb.42:
	movq	(%r14), %rcx
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_46
## %bb.43:
	testq	%rax, %rax
	jne	LBB0_47
## %bb.44:
	movq	_NV_ENC_PIC_FLAG_FORCEINTRA@GOTPCREL(%rip), %rax
	jmp	LBB0_48
LBB0_46:
	xorl	%eax, %eax
	jmp	LBB0_49
LBB0_47:
	movq	_NV_ENC_PIC_FLAG_FORCEIDR@GOTPCREL(%rip), %rax
LBB0_48:
	movq	(%rax), %rax
LBB0_49:
	movq	%rax, -104(%rbp)
	movq	8(%r14), %rax
	movq	%rax, -112(%rbp)
	cmpq	$0, 40(%r12)
	je	LBB0_57
## %bb.50:
	movq	_AV_FRAME_DATA_A53_CC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_av_frame_get_side_data
	testq	%rax, %rax
	je	LBB0_57
## %bb.51:
	leaq	-48(%rbp), %rdx
	leaq	-120(%rbp), %rcx
	movq	%r14, %rdi
	movl	$24, %esi
	callq	_ff_alloc_a53_sei
	testq	%rax, %rax
	jns	LBB0_53
## %bb.52:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r12, %rdi
	callq	_av_log
LBB0_53:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_57
## %bb.54:
	movq	-120(%rbp), %rax
	movq	%rax, 16(%rdx)
	movl	$4, (%rdx)
	leaq	24(%rdx), %rax
	movq	%rax, 8(%rdx)
	jmp	LBB0_58
LBB0_57:
	xorl	%edx, %edx
LBB0_58:
	leaq	-112(%rbp), %rsi
	movq	%r15, %rdi
	callq	_nvenc_codec_specific_pic_params
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_ENC_PIC_PARAMS_VER,4,2      ## @NV_ENC_PIC_PARAMS_VER
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AV_CODEC_FLAG_INTERLACED_DCT,4,2 ## @AV_CODEC_FLAG_INTERLACED_DCT
	.comm	_NV_ENC_PIC_STRUCT_FIELD_TOP_BOTTOM,4,2 ## @NV_ENC_PIC_STRUCT_FIELD_TOP_BOTTOM
	.comm	_NV_ENC_PIC_STRUCT_FIELD_BOTTOM_TOP,4,2 ## @NV_ENC_PIC_STRUCT_FIELD_BOTTOM_TOP
	.comm	_NV_ENC_PIC_STRUCT_FRAME,4,2    ## @NV_ENC_PIC_STRUCT_FRAME
	.comm	_AV_PICTURE_TYPE_I,8,3          ## @AV_PICTURE_TYPE_I
	.comm	_NV_ENC_PIC_FLAG_FORCEIDR,8,3   ## @NV_ENC_PIC_FLAG_FORCEIDR
	.comm	_NV_ENC_PIC_FLAG_FORCEINTRA,8,3 ## @NV_ENC_PIC_FLAG_FORCEINTRA
	.comm	_AV_FRAME_DATA_A53_CC,4,2       ## @AV_FRAME_DATA_A53_CC
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not enough memory for closed captions, skipping\n"

	.comm	_NV_ENC_PIC_FLAG_EOS,8,3        ## @NV_ENC_PIC_FLAG_EOS
	.comm	_NV_ENC_SUCCESS,8,3             ## @NV_ENC_SUCCESS
	.comm	_NV_ENC_ERR_NEED_MORE_INPUT,8,3 ## @NV_ENC_ERR_NEED_MORE_INPUT
L_.str.1:                               ## @.str.1
	.asciz	"EncodePicture failed!"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvenc_send_frame            ; -- Begin function ff_nvenc_send_frame
	.p2align	2
_ff_nvenc_send_frame:                   ; @ff_nvenc_send_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x1
	mov	x21, x0
	str	xzr, [sp, #72]
	ldr	x19, [x0, #16]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	xzr, [sp, #48]
	str	q0, [sp]
Lloh0:
	adrp	x8, _NV_ENC_PIC_PARAMS_VER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_ENC_PIC_PARAMS_VER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #44]
	ldr	w8, [x19, #60]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #56]
	cbz	w8, LBB0_6
LBB0_2:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_6
; %bb.3:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.4:
	ldr	x8, [x21, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_8
; %bb.5:
Lloh3:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x8]
	b	LBB0_23
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_AVERROR
LBB0_8:
	str	wzr, [x19]
	str	xzr, [x19, #48]
Lloh8:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	x10, [x19, #8]
	str	x9, [x10]
	ldr	x8, [x8]
	str	x8, [x10, #8]
	ldr	w0, [x19, #32]
	bl	_av_fifo_reset
LBB0_9:
	cbz	x20, LBB0_16
; %bb.10:
	mov	x0, x19
	bl	_get_free_frame
	stur	x0, [x29, #-64]
	cbz	x0, LBB0_24
; %bb.11:
	mov	x22, x0
	mov	x0, x21
	bl	_nvenc_push_context
	tbnz	w0, #31, LBB0_22
; %bb.12:
	mov	x0, x21
	mov	x1, x20
	bl	_reconfig_encoder
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	bl	_nvenc_upload_frame
	mov	x23, x0
	mov	x0, x21
	bl	_nvenc_pop_context
	tbnz	w0, #31, LBB0_22
; %bb.13:
	cbnz	w23, LBB0_23
; %bb.14:
	ldr	d0, [x22, #16]
	stur	d0, [sp, #36]
	ldr	q0, [x22]
	stur	q0, [sp, #20]
	ldr	w8, [x21]
Lloh10:
	adrp	x9, _AV_CODEC_FLAG_INTERLACED_DCT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _AV_CODEC_FLAG_INTERLACED_DCT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_33
; %bb.15:
	ldr	x8, [x20, #16]
Lloh13:
	adrp	x9, _NV_ENC_PIC_STRUCT_FIELD_TOP_BOTTOM@GOTPAGE
Lloh14:
	ldr	x9, [x9, _NV_ENC_PIC_STRUCT_FIELD_TOP_BOTTOM@GOTPAGEOFF]
Lloh15:
	adrp	x10, _NV_ENC_PIC_STRUCT_FIELD_BOTTOM_TOP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _NV_ENC_PIC_STRUCT_FIELD_BOTTOM_TOP@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	b	LBB0_34
LBB0_16:
Lloh17:
	adrp	x8, _NV_ENC_PIC_FLAG_EOS@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NV_ENC_PIC_FLAG_EOS@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	mov	w8, #1
	str	w8, [x19]
LBB0_17:
	mov	x0, x21
	bl	_nvenc_push_context
	tbnz	w0, #31, LBB0_22
; %bb.18:
	ldr	x8, [x19, #64]
	ldr	w0, [x19, #36]
	mov	x1, sp
	blr	x8
	mov	x22, x0
	ldr	x0, [sp, #72]
	bl	_av_free
	mov	x0, x21
	bl	_nvenc_pop_context
	tbnz	w0, #31, LBB0_22
; %bb.19:
Lloh20:
	adrp	x23, _NV_ENC_SUCCESS@GOTPAGE
Lloh21:
	ldr	x23, [x23, _NV_ENC_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x23]
	cmp	x22, x8
	b.eq	LBB0_25
; %bb.20:
Lloh22:
	adrp	x8, _NV_ENC_ERR_NEED_MORE_INPUT@GOTPAGE
Lloh23:
	ldr	x8, [x8, _NV_ENC_ERR_NEED_MORE_INPUT@GOTPAGEOFF]
Lloh24:
	ldr	x8, [x8]
	cmp	x22, x8
	b.eq	LBB0_25
; %bb.21:
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x21
	mov	x1, x22
	bl	_nvenc_print_error
	mov	x23, x0
	b	LBB0_23
LBB0_22:
	mov	x23, x0
LBB0_23:
	mov	x0, x23
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_24:
Lloh27:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh28:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_7
LBB0_25:
	cbz	x20, LBB0_29
; %bb.26:
	ldr	w0, [x19, #28]
	sub	x1, x29, #64
	mov	w2, #8
	mov	x3, #0
	bl	_av_fifo_generic_write
	ldr	w0, [x19, #32]
	ldr	x1, [x20, #8]
	bl	_timestamp_queue_enqueue
	ldr	x8, [x19, #8]
	ldr	x10, [x8]
Lloh29:
	adrp	x9, _AV_NOPTS_VALUE@GOTPAGE
Lloh30:
	ldr	x9, [x9, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x10, x9
	b.eq	LBB0_28
; %bb.27:
	ldr	x10, [x8, #8]!
	cmp	x10, x9
	b.ne	LBB0_29
LBB0_28:
	ldr	x9, [x20, #8]
	str	x9, [x8]
LBB0_29:
	ldr	x8, [x23]
	cmp	x22, x8
	b.ne	LBB0_32
; %bb.30:
	ldr	w0, [x19, #28]
	bl	_av_fifo_size
	cmp	x0, #1
	b.lt	LBB0_32
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #28]
	sub	x1, x29, #56
	mov	w2, #8
	mov	x3, #0
	bl	_av_fifo_generic_read
	ldr	w0, [x19, #24]
	sub	x1, x29, #56
	mov	w2, #8
	mov	x3, #0
	bl	_av_fifo_generic_write
	ldr	w0, [x19, #28]
	bl	_av_fifo_size
	mov	w23, #0
	cmp	x0, #0
	b.gt	LBB0_31
	b	LBB0_23
LBB0_32:
	mov	w23, #0
	b	LBB0_23
LBB0_33:
Lloh32:
	adrp	x8, _NV_ENC_PIC_STRUCT_FRAME@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NV_ENC_PIC_STRUCT_FRAME@GOTPAGEOFF]
LBB0_34:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x8, [x19, #16]
	tbnz	x8, #63, LBB0_37
; %bb.35:
	ldr	x9, [x20]
Lloh34:
	adrp	x10, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh35:
	ldr	x10, [x10, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_37
; %bb.36:
Lloh37:
	adrp	x9, _NV_ENC_PIC_FLAG_FORCEIDR@GOTPAGE
Lloh38:
	ldr	x9, [x9, _NV_ENC_PIC_FLAG_FORCEIDR@GOTPAGEOFF]
Lloh39:
	adrp	x10, _NV_ENC_PIC_FLAG_FORCEINTRA@GOTPAGE
Lloh40:
	ldr	x10, [x10, _NV_ENC_PIC_FLAG_FORCEINTRA@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	x8, [x8]
	b	LBB0_38
LBB0_37:
	mov	x8, #0
LBB0_38:
	ldr	x9, [x20, #8]
	stp	x9, x8, [sp]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_44
; %bb.39:
Lloh41:
	adrp	x8, _AV_FRAME_DATA_A53_CC@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_FRAME_DATA_A53_CC@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_av_frame_get_side_data
	cbz	x0, LBB0_44
; %bb.40:
	add	x2, sp, #72
	add	x3, sp, #64
	mov	x0, x20
	mov	w1, #24
	bl	_ff_alloc_a53_sei
	tbz	x0, #63, LBB0_42
; %bb.41:
Lloh44:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
Lloh47:
	adrp	x2, l_.str@PAGE
Lloh48:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_42:
	ldr	x2, [sp, #72]
	cbz	x2, LBB0_45
; %bb.43:
	ldr	x8, [sp, #64]
	mov	w9, #4
	str	w9, [x2]
	add	x9, x2, #24
	stp	x9, x8, [x2, #8]
	b	LBB0_45
LBB0_44:
	mov	x2, #0
LBB0_45:
	mov	x1, sp
	mov	x0, x21
	bl	_nvenc_codec_specific_pic_params
	b	LBB0_17
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_ENC_PIC_PARAMS_VER,4,2      ; @NV_ENC_PIC_PARAMS_VER
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AV_CODEC_FLAG_INTERLACED_DCT,4,2 ; @AV_CODEC_FLAG_INTERLACED_DCT
	.comm	_NV_ENC_PIC_STRUCT_FIELD_TOP_BOTTOM,4,2 ; @NV_ENC_PIC_STRUCT_FIELD_TOP_BOTTOM
	.comm	_NV_ENC_PIC_STRUCT_FIELD_BOTTOM_TOP,4,2 ; @NV_ENC_PIC_STRUCT_FIELD_BOTTOM_TOP
	.comm	_NV_ENC_PIC_STRUCT_FRAME,4,2    ; @NV_ENC_PIC_STRUCT_FRAME
	.comm	_AV_PICTURE_TYPE_I,8,3          ; @AV_PICTURE_TYPE_I
	.comm	_NV_ENC_PIC_FLAG_FORCEIDR,8,3   ; @NV_ENC_PIC_FLAG_FORCEIDR
	.comm	_NV_ENC_PIC_FLAG_FORCEINTRA,8,3 ; @NV_ENC_PIC_FLAG_FORCEINTRA
	.comm	_AV_FRAME_DATA_A53_CC,4,2       ; @AV_FRAME_DATA_A53_CC
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not enough memory for closed captions, skipping\n"

	.comm	_NV_ENC_PIC_FLAG_EOS,8,3        ; @NV_ENC_PIC_FLAG_EOS
	.comm	_NV_ENC_SUCCESS,8,3             ; @NV_ENC_SUCCESS
	.comm	_NV_ENC_ERR_NEED_MORE_INPUT,8,3 ; @NV_ENC_ERR_NEED_MORE_INPUT
l_.str.1:                               ; @.str.1
	.asciz	"EncodePicture failed!"

.subsections_via_symbols
