	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvenc_check_capabilities
_nvenc_check_capabilities:              ## @nvenc_check_capabilities
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	24(%rdi), %r15
	callq	_nvenc_check_codec_support
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	_NV_ENC_CAPS_SUPPORT_YUV444_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movq	%rax, %rbx
	movl	56(%r15), %edi
	callq	_IS_YUV444
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	testl	%ebx, %ebx
	jg	LBB0_7
## %bb.4:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_5
LBB0_1:
	movl	%eax, %ebx
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_40:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movq	(%r15), %rcx
	movq	_PRESET_LOSSLESS_DEFAULT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_10
## %bb.8:
	testl	%eax, %eax
	jg	LBB0_10
## %bb.9:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_5:
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_6
LBB0_10:
	movq	_NV_ENC_CAPS_WIDTH_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movl	(%r14), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_13
## %bb.11:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_12
LBB0_13:
	movq	_NV_ENC_CAPS_HEIGHT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movl	4(%r14), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_15
## %bb.14:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_12
LBB0_15:
	movq	_NV_ENC_CAPS_NUM_MAX_BFRAMES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movl	8(%r14), %ecx
	cmpl	%eax, %ecx
	jle	LBB0_17
## %bb.16:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	leaq	L_.str.5(%rip), %rdx
LBB0_12:
	movq	%r14, %rdi
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_av_log
LBB0_6:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_17:
	movq	_NV_ENC_CAPS_SUPPORT_FIELD_ENCODING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	testl	%eax, %eax
	jle	LBB0_18
LBB0_20:
	movq	_NV_ENC_CAPS_SUPPORT_10BIT_ENCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movq	%rax, %rbx
	movl	56(%r15), %edi
	callq	_IS_10BIT
	testq	%rax, %rax
	je	LBB0_23
## %bb.21:
	testl	%ebx, %ebx
	jg	LBB0_23
## %bb.22:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_5
LBB0_23:
	movq	_NV_ENC_CAPS_SUPPORT_LOOKAHEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	cmpq	$0, 8(%r15)
	jle	LBB0_26
## %bb.24:
	testl	%eax, %eax
	jg	LBB0_26
## %bb.25:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_5
LBB0_18:
	movq	_AV_CODEC_FLAG_INTERLACED_DCT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 12(%r14)
	je	LBB0_20
## %bb.19:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.6(%rip), %rdx
	movq	%r14, %rdi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_6
LBB0_26:
	movq	_NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	cmpq	$0, 16(%r15)
	jle	LBB0_29
## %bb.27:
	testl	%eax, %eax
	jg	LBB0_29
## %bb.28:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.9(%rip), %rdx
	jmp	LBB0_5
LBB0_29:
	movq	_NV_ENC_CAPS_SUPPORT_WEIGHTED_PREDICTION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	cmpq	$0, 24(%r15)
	jle	LBB0_32
## %bb.30:
	testl	%eax, %eax
	jg	LBB0_32
## %bb.31:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.10(%rip), %rdx
	jmp	LBB0_5
LBB0_32:
	movq	_NV_ENC_CAPS_SUPPORT_CABAC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movq	32(%r15), %rcx
	movq	_NV_ENC_H264_ENTROPY_CODING_MODE_CABAC@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_35
## %bb.33:
	testl	%eax, %eax
	jg	LBB0_35
## %bb.34:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.11(%rip), %rdx
	jmp	LBB0_5
LBB0_35:
	cmpq	$0, 40(%r15)
	je	LBB0_37
## %bb.36:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.12(%rip), %rdx
	jmp	LBB0_5
LBB0_37:
	cmpq	$0, 16(%r14)
	je	LBB0_39
## %bb.38:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.13(%rip), %rdx
	jmp	LBB0_5
LBB0_39:
	movq	_NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_nvenc_check_cap
	movq	%rax, 48(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Codec not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_YUV444_ENCODE,4,2 ## @NV_ENC_CAPS_SUPPORT_YUV444_ENCODE
L_.str.1:                               ## @.str.1
	.asciz	"YUV444P not supported\n"

	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE,4,2 ## @NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE
	.comm	_PRESET_LOSSLESS_DEFAULT,8,3    ## @PRESET_LOSSLESS_DEFAULT
L_.str.2:                               ## @.str.2
	.asciz	"Lossless encoding not supported\n"

	.comm	_NV_ENC_CAPS_WIDTH_MAX,4,2      ## @NV_ENC_CAPS_WIDTH_MAX
L_.str.3:                               ## @.str.3
	.asciz	"Width %d exceeds %d\n"

	.comm	_NV_ENC_CAPS_HEIGHT_MAX,4,2     ## @NV_ENC_CAPS_HEIGHT_MAX
L_.str.4:                               ## @.str.4
	.asciz	"Height %d exceeds %d\n"

	.comm	_NV_ENC_CAPS_NUM_MAX_BFRAMES,4,2 ## @NV_ENC_CAPS_NUM_MAX_BFRAMES
L_.str.5:                               ## @.str.5
	.asciz	"Max B-frames %d exceed %d\n"

	.comm	_NV_ENC_CAPS_SUPPORT_FIELD_ENCODING,4,2 ## @NV_ENC_CAPS_SUPPORT_FIELD_ENCODING
	.comm	_AV_CODEC_FLAG_INTERLACED_DCT,4,2 ## @AV_CODEC_FLAG_INTERLACED_DCT
L_.str.6:                               ## @.str.6
	.asciz	"Interlaced encoding is not supported. Supported level: %d\n"

	.comm	_NV_ENC_CAPS_SUPPORT_10BIT_ENCODE,4,2 ## @NV_ENC_CAPS_SUPPORT_10BIT_ENCODE
L_.str.7:                               ## @.str.7
	.asciz	"10 bit encode not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_LOOKAHEAD,4,2 ## @NV_ENC_CAPS_SUPPORT_LOOKAHEAD
L_.str.8:                               ## @.str.8
	.asciz	"RC lookahead not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ,4,2 ## @NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ
L_.str.9:                               ## @.str.9
	.asciz	"Temporal AQ not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_WEIGHTED_PREDICTION,4,2 ## @NV_ENC_CAPS_SUPPORT_WEIGHTED_PREDICTION
L_.str.10:                              ## @.str.10
	.asciz	"Weighted Prediction not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_CABAC,4,2  ## @NV_ENC_CAPS_SUPPORT_CABAC
	.comm	_NV_ENC_H264_ENTROPY_CODING_MODE_CABAC,8,3 ## @NV_ENC_H264_ENTROPY_CODING_MODE_CABAC
L_.str.11:                              ## @.str.11
	.asciz	"CABAC entropy coding not supported\n"

L_.str.12:                              ## @.str.12
	.asciz	"B frames as references need SDK 8.1 at build time\n"

L_.str.13:                              ## @.str.13
	.asciz	"Multiple reference frames need SDK 9.1 at build time\n"

	.comm	_NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE,4,2 ## @NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE
	.comm	_NV_ENC_BFRAME_REF_MODE_DISABLED,8,3 ## @NV_ENC_BFRAME_REF_MODE_DISABLED
	.comm	_NV_ENC_BFRAME_REF_MODE_EACH,8,3 ## @NV_ENC_BFRAME_REF_MODE_EACH
	.comm	_NV_ENC_CAPS_SUPPORT_BFRAME_REF_MODE,4,2 ## @NV_ENC_CAPS_SUPPORT_BFRAME_REF_MODE
	.comm	_NV_ENC_CAPS_SUPPORT_MULTIPLE_REF_FRAMES,4,2 ## @NV_ENC_CAPS_SUPPORT_MULTIPLE_REF_FRAMES
	.comm	_NV_ENC_NUM_REF_FRAMES_AUTOSELECT,8,3 ## @NV_ENC_NUM_REF_FRAMES_AUTOSELECT
	.no_dead_strip	_nvenc_check_capabilities
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvenc_check_capabilities
_nvenc_check_capabilities:              ; @nvenc_check_capabilities
	.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	x19, x0
	ldr	x21, [x0, #24]
	bl	_nvenc_check_codec_support
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh0:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_YUV444_ENCODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_YUV444_ENCODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	mov	x20, x0
	ldr	w0, [x21, #56]
	bl	_IS_YUV444
	cmp	x0, #0
	ccmp	w20, #0, #0, ne
	b.le	LBB0_7
; %bb.2:
Lloh3:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	x8, [x21]
Lloh6:
	adrp	x9, _PRESET_LOSSLESS_DEFAULT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PRESET_LOSSLESS_DEFAULT@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	ccmp	w0, #0, #0, ge
	b.le	LBB0_8
; %bb.3:
Lloh9:
	adrp	x8, _NV_ENC_CAPS_WIDTH_MAX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NV_ENC_CAPS_WIDTH_MAX@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	w8, [x19]
	cmp	w8, w0
	b.le	LBB0_10
; %bb.4:
Lloh12:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x8, x0, [sp]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_5:
	mov	x20, x0
Lloh17:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x2, l_.str@PAGE
Lloh21:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_6:
	mov	x0, x20
	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_7:
Lloh22:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh23:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x2, l_.str.1@PAGE
Lloh26:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh27:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh28:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x2, l_.str.2@PAGE
Lloh31:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_av_log
Lloh32:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh33:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh34:
	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
LBB0_10:
Lloh35:
	adrp	x8, _NV_ENC_CAPS_HEIGHT_MAX@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NV_ENC_CAPS_HEIGHT_MAX@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	w8, [x19, #4]
	cmp	w8, w0
	b.le	LBB0_12
; %bb.11:
Lloh38:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh39:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x8, x0, [sp]
Lloh41:
	adrp	x2, l_.str.4@PAGE
Lloh42:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_12:
Lloh43:
	adrp	x8, _NV_ENC_CAPS_NUM_MAX_BFRAMES@GOTPAGE
Lloh44:
	ldr	x8, [x8, _NV_ENC_CAPS_NUM_MAX_BFRAMES@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	w8, [x19, #8]
	cmp	w8, w0
	b.le	LBB0_14
; %bb.13:
Lloh46:
	adrp	x9, _AV_LOG_WARNING@GOTPAGE
Lloh47:
	ldr	x9, [x9, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x9]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	stp	x8, x0, [sp]
Lloh49:
	adrp	x2, l_.str.5@PAGE
Lloh50:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_9
LBB0_14:
Lloh51:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_FIELD_ENCODING@GOTPAGE
Lloh52:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_FIELD_ENCODING@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	cmp	w0, #0
	b.le	LBB0_21
LBB0_15:
Lloh54:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_10BIT_ENCODE@GOTPAGE
Lloh55:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_10BIT_ENCODE@GOTPAGEOFF]
Lloh56:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	mov	x20, x0
	ldr	w0, [x21, #56]
	bl	_IS_10BIT
	cbz	x0, LBB0_18
; %bb.16:
	cmp	w20, #0
	b.gt	LBB0_18
; %bb.17:
Lloh57:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.7@PAGE
Lloh61:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_9
LBB0_18:
Lloh62:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_LOOKAHEAD@GOTPAGE
Lloh63:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_LOOKAHEAD@GOTPAGEOFF]
Lloh64:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	x8, [x21, #8]
	cmp	x8, #1
	b.lt	LBB0_23
; %bb.19:
	cmp	w0, #0
	b.gt	LBB0_23
; %bb.20:
Lloh65:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh66:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh67:
	ldr	w1, [x8]
Lloh68:
	adrp	x2, l_.str.8@PAGE
Lloh69:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_9
LBB0_21:
	ldr	w8, [x19, #12]
Lloh70:
	adrp	x9, _AV_CODEC_FLAG_INTERLACED_DCT@GOTPAGE
Lloh71:
	ldr	x9, [x9, _AV_CODEC_FLAG_INTERLACED_DCT@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.22:
Lloh73:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh74:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh75:
	ldr	w1, [x8]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	str	x0, [sp]
Lloh76:
	adrp	x2, l_.str.6@PAGE
Lloh77:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_9
LBB0_23:
Lloh78:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ@GOTPAGE
Lloh79:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ@GOTPAGEOFF]
Lloh80:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	x8, [x21, #16]
	cmp	x8, #1
	b.lt	LBB0_26
; %bb.24:
	cmp	w0, #0
	b.gt	LBB0_26
; %bb.25:
Lloh81:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh82:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh83:
	ldr	w1, [x8]
Lloh84:
	adrp	x2, l_.str.9@PAGE
Lloh85:
	add	x2, x2, l_.str.9@PAGEOFF
	b	LBB0_9
LBB0_26:
Lloh86:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_WEIGHTED_PREDICTION@GOTPAGE
Lloh87:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_WEIGHTED_PREDICTION@GOTPAGEOFF]
Lloh88:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	x8, [x21, #24]
	cmp	x8, #1
	b.lt	LBB0_29
; %bb.27:
	cmp	w0, #0
	b.gt	LBB0_29
; %bb.28:
Lloh89:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh90:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh91:
	ldr	w1, [x8]
Lloh92:
	adrp	x2, l_.str.10@PAGE
Lloh93:
	add	x2, x2, l_.str.10@PAGEOFF
	b	LBB0_9
LBB0_29:
Lloh94:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_CABAC@GOTPAGE
Lloh95:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_CABAC@GOTPAGEOFF]
Lloh96:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	ldr	x8, [x21, #32]
Lloh97:
	adrp	x9, _NV_ENC_H264_ENTROPY_CODING_MODE_CABAC@GOTPAGE
Lloh98:
	ldr	x9, [x9, _NV_ENC_H264_ENTROPY_CODING_MODE_CABAC@GOTPAGEOFF]
Lloh99:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.30:
	cmp	w0, #0
	b.gt	LBB0_32
; %bb.31:
Lloh100:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh101:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh102:
	ldr	w1, [x8]
Lloh103:
	adrp	x2, l_.str.11@PAGE
Lloh104:
	add	x2, x2, l_.str.11@PAGEOFF
	b	LBB0_9
LBB0_32:
	ldr	x8, [x21, #40]
	cbz	x8, LBB0_34
; %bb.33:
Lloh105:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh106:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh107:
	ldr	w1, [x8]
Lloh108:
	adrp	x2, l_.str.12@PAGE
Lloh109:
	add	x2, x2, l_.str.12@PAGEOFF
	b	LBB0_9
LBB0_34:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_36
; %bb.35:
Lloh110:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh111:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh112:
	ldr	w1, [x8]
Lloh113:
	adrp	x2, l_.str.13@PAGE
Lloh114:
	add	x2, x2, l_.str.13@PAGEOFF
	b	LBB0_9
LBB0_36:
Lloh115:
	adrp	x8, _NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE@GOTPAGE
Lloh116:
	ldr	x8, [x8, _NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE@GOTPAGEOFF]
Lloh117:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nvenc_check_cap
	mov	w20, #0
	str	x0, [x21, #48]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotLdr	Lloh62, Lloh63, Lloh64
	.loh AdrpAdd	Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpLdrGotLdr	Lloh73, Lloh74, Lloh75
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpAdd	Lloh84, Lloh85
	.loh AdrpLdrGotLdr	Lloh81, Lloh82, Lloh83
	.loh AdrpLdrGotLdr	Lloh86, Lloh87, Lloh88
	.loh AdrpAdd	Lloh92, Lloh93
	.loh AdrpLdrGotLdr	Lloh89, Lloh90, Lloh91
	.loh AdrpLdrGotLdr	Lloh97, Lloh98, Lloh99
	.loh AdrpLdrGotLdr	Lloh94, Lloh95, Lloh96
	.loh AdrpAdd	Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh100, Lloh101, Lloh102
	.loh AdrpAdd	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpAdd	Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh110, Lloh111, Lloh112
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Codec not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_YUV444_ENCODE,4,2 ; @NV_ENC_CAPS_SUPPORT_YUV444_ENCODE
l_.str.1:                               ; @.str.1
	.asciz	"YUV444P not supported\n"

	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE,4,2 ; @NV_ENC_CAPS_SUPPORT_LOSSLESS_ENCODE
	.comm	_PRESET_LOSSLESS_DEFAULT,8,3    ; @PRESET_LOSSLESS_DEFAULT
l_.str.2:                               ; @.str.2
	.asciz	"Lossless encoding not supported\n"

	.comm	_NV_ENC_CAPS_WIDTH_MAX,4,2      ; @NV_ENC_CAPS_WIDTH_MAX
l_.str.3:                               ; @.str.3
	.asciz	"Width %d exceeds %d\n"

	.comm	_NV_ENC_CAPS_HEIGHT_MAX,4,2     ; @NV_ENC_CAPS_HEIGHT_MAX
l_.str.4:                               ; @.str.4
	.asciz	"Height %d exceeds %d\n"

	.comm	_NV_ENC_CAPS_NUM_MAX_BFRAMES,4,2 ; @NV_ENC_CAPS_NUM_MAX_BFRAMES
l_.str.5:                               ; @.str.5
	.asciz	"Max B-frames %d exceed %d\n"

	.comm	_NV_ENC_CAPS_SUPPORT_FIELD_ENCODING,4,2 ; @NV_ENC_CAPS_SUPPORT_FIELD_ENCODING
	.comm	_AV_CODEC_FLAG_INTERLACED_DCT,4,2 ; @AV_CODEC_FLAG_INTERLACED_DCT
l_.str.6:                               ; @.str.6
	.asciz	"Interlaced encoding is not supported. Supported level: %d\n"

	.comm	_NV_ENC_CAPS_SUPPORT_10BIT_ENCODE,4,2 ; @NV_ENC_CAPS_SUPPORT_10BIT_ENCODE
l_.str.7:                               ; @.str.7
	.asciz	"10 bit encode not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_LOOKAHEAD,4,2 ; @NV_ENC_CAPS_SUPPORT_LOOKAHEAD
l_.str.8:                               ; @.str.8
	.asciz	"RC lookahead not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ,4,2 ; @NV_ENC_CAPS_SUPPORT_TEMPORAL_AQ
l_.str.9:                               ; @.str.9
	.asciz	"Temporal AQ not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_WEIGHTED_PREDICTION,4,2 ; @NV_ENC_CAPS_SUPPORT_WEIGHTED_PREDICTION
l_.str.10:                              ; @.str.10
	.asciz	"Weighted Prediction not supported\n"

	.comm	_NV_ENC_CAPS_SUPPORT_CABAC,4,2  ; @NV_ENC_CAPS_SUPPORT_CABAC
	.comm	_NV_ENC_H264_ENTROPY_CODING_MODE_CABAC,8,3 ; @NV_ENC_H264_ENTROPY_CODING_MODE_CABAC
l_.str.11:                              ; @.str.11
	.asciz	"CABAC entropy coding not supported\n"

l_.str.12:                              ; @.str.12
	.asciz	"B frames as references need SDK 8.1 at build time\n"

l_.str.13:                              ; @.str.13
	.asciz	"Multiple reference frames need SDK 9.1 at build time\n"

	.comm	_NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE,4,2 ; @NV_ENC_CAPS_SUPPORT_DYN_BITRATE_CHANGE
	.comm	_NV_ENC_BFRAME_REF_MODE_DISABLED,8,3 ; @NV_ENC_BFRAME_REF_MODE_DISABLED
	.comm	_NV_ENC_BFRAME_REF_MODE_EACH,8,3 ; @NV_ENC_BFRAME_REF_MODE_EACH
	.comm	_NV_ENC_CAPS_SUPPORT_BFRAME_REF_MODE,4,2 ; @NV_ENC_CAPS_SUPPORT_BFRAME_REF_MODE
	.comm	_NV_ENC_CAPS_SUPPORT_MULTIPLE_REF_FRAMES,4,2 ; @NV_ENC_CAPS_SUPPORT_MULTIPLE_REF_FRAMES
	.comm	_NV_ENC_NUM_REF_FRAMES_AUTOSELECT,8,3 ; @NV_ENC_NUM_REF_FRAMES_AUTOSELECT
	.no_dead_strip	_nvenc_check_capabilities
.subsections_via_symbols
