	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvenc_check_codec_support
_nvenc_check_codec_support:             ## @nvenc_check_codec_support
	.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
	movq	(%rdi), %r12
	movl	$0, -44(%rbp)
	movl	4(%r12), %edi
	leaq	-44(%rbp), %rsi
	callq	*8(%r12)
	movq	_NV_ENC_SUCCESS@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_2
## %bb.1:
	movl	-44(%rbp), %edi
	testl	%edi, %edi
	je	LBB0_2
## %bb.4:
	shll	$2, %edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movl	4(%r12), %edi
	movl	-44(%rbp), %edx
	leaq	-44(%rbp), %rcx
	movq	%rax, %rsi
	callq	*16(%r12)
	movl	%eax, %r13d
	movl	(%rbx), %ebx
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	cmpl	%ebx, %r13d
	jne	LBB0_12
## %bb.7:
	cmpl	$0, -44(%rbp)
	jle	LBB0_12
## %bb.8:
	xorl	%r13d, %r13d
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_memcmp
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	movslq	-44(%rbp), %rax
	addq	$4, %rbx
	cmpq	%rax, %r13
	jl	LBB0_10
	jmp	LBB0_12
LBB0_2:
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_13
LBB0_11:
	xorl	%r15d, %r15d
LBB0_12:
	movq	%r14, %rdi
	callq	_av_free
LBB0_13:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_ENC_SUCCESS,4,2             ## @NV_ENC_SUCCESS
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_nvenc_check_codec_support
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvenc_check_codec_support
_nvenc_check_codec_support:             ; @nvenc_check_codec_support
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	x19, [x0]
	str	wzr, [sp, #12]
	ldr	x8, [x19, #8]
	ldr	w0, [x19, #4]
	add	x1, sp, #12
	blr	x8
Lloh0:
	adrp	x21, _NV_ENC_SUCCESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _NV_ENC_SUCCESS@GOTPAGEOFF]
	ldr	w9, [x21]
	ldr	w8, [sp, #12]
	cmp	w0, w9
	ccmp	w8, #0, #4, eq
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	lsl	w0, w8, #2
	bl	_av_malloc
	cbz	x0, LBB0_7
; %bb.3:
	mov	x20, x0
	ldr	x8, [x19, #16]
	ldr	w0, [x19, #4]
	ldr	w2, [sp, #12]
	add	x3, sp, #12
	mov	x1, x20
	blr	x8
	mov	x22, x0
	ldr	w23, [x21]
Lloh4:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	ldr	w8, [sp, #12]
	cmp	w22, w23
	ccmp	w8, #1, #8, eq
	b.lt	LBB0_10
; %bb.4:
	mov	x23, #0
	mov	x22, x20
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	w2, #4
	bl	_memcmp
	cbz	w0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [sp, #12]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_5
	b	LBB0_10
LBB0_7:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x21, x0
	b	LBB0_11
LBB0_9:
	mov	w21, #0
LBB0_10:
	mov	x0, x20
	bl	_av_free
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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_ENC_SUCCESS,4,2             ; @NV_ENC_SUCCESS
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_nvenc_check_codec_support
.subsections_via_symbols
