	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvenc_encode_frame          ## -- Begin function ff_nvenc_encode_frame
	.p2align	4, 0x90
_ff_nvenc_encode_frame:                 ## @ff_nvenc_encode_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%rdx, %rsi
	callq	_ff_nvenc_send_frame
	testl	%eax, %eax
	js	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ff_nvenc_receive_packet
	movl	%eax, %ebx
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %ecx
	xorl	%eax, %eax
	movl	$0, %edx
	cmpl	%ecx, %ebx
	je	LBB0_6
## %bb.3:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rcx
	movl	$0, %edx
	cmpl	(%rcx), %ebx
	je	LBB0_6
## %bb.4:
	movl	$1, %edx
	testl	%ebx, %ebx
	js	LBB0_5
LBB0_6:
	movl	%edx, (%r14)
	jmp	LBB0_7
LBB0_5:
	movl	%ebx, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvenc_encode_frame          ; -- Begin function ff_nvenc_encode_frame
	.p2align	2
_ff_nvenc_encode_frame:                 ; @ff_nvenc_encode_frame
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x3
	mov	x21, x1
	mov	x22, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, x2
	bl	_ff_nvenc_send_frame
	tbnz	w0, #31, LBB0_8
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_ff_nvenc_receive_packet
	mov	x20, x0
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
Lloh3:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w20, w0
	ccmp	w20, w8, #4, ne
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #0
	b	LBB0_6
LBB0_4:
	tbnz	w20, #31, LBB0_7
; %bb.5:
	mov	w8, #1
LBB0_6:
	mov	w20, #0
	str	w8, [x19]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x20, x0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
.subsections_via_symbols
