	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvenc_check_cap
_nvenc_check_cap:                       ## @nvenc_check_cap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	(%rdi), %rax
	movl	$0, -8(%rbp)
	movl	$0, -4(%rbp)
	movq	_NV_ENC_CAPS_PARAM_VER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -12(%rbp)
	movl	%esi, -16(%rbp)
	movl	(%rax), %esi
	movl	4(%rax), %edi
	leaq	-16(%rbp), %rdx
	leaq	-4(%rbp), %rcx
	callq	*8(%rax)
	movl	%eax, %ecx
	movq	_NV_ENC_SUCCESS@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpl	(%rdx), %ecx
	jne	LBB0_2
## %bb.1:
	movl	-4(%rbp), %eax
LBB0_2:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NV_ENC_CAPS_PARAM_VER,4,2      ## @NV_ENC_CAPS_PARAM_VER
	.comm	_NV_ENC_SUCCESS,4,2             ## @NV_ENC_SUCCESS
	.no_dead_strip	_nvenc_check_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvenc_check_cap
_nvenc_check_cap:                       ; @nvenc_check_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	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
	ldr	x8, [x0]
	str	wzr, [sp, #24]
	str	wzr, [sp, #12]
Lloh0:
	adrp	x9, _NV_ENC_CAPS_PARAM_VER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_ENC_CAPS_PARAM_VER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	stp	w1, w9, [sp, #16]
	ldr	x9, [x8, #8]
	ldp	w1, w0, [x8]
	add	x2, sp, #16
	add	x3, sp, #12
	blr	x9
Lloh3:
	adrp	x8, _NV_ENC_SUCCESS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NV_ENC_SUCCESS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	cmp	w0, w8
	csel	w0, w9, wzr, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NV_ENC_CAPS_PARAM_VER,4,2      ; @NV_ENC_CAPS_PARAM_VER
	.comm	_NV_ENC_SUCCESS,4,2             ; @NV_ENC_SUCCESS
	.no_dead_strip	_nvenc_check_cap
.subsections_via_symbols
