	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvenc_receive_packet        ## -- Begin function ff_nvenc_receive_packet
	.p2align	4, 0x90
_ff_nvenc_receive_packet:               ## @ff_nvenc_receive_packet
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	cmpl	$0, 24(%rbx)
	jne	LBB0_2
## %bb.1:
	cmpl	$0, 20(%rbx)
	je	LBB0_8
LBB0_2:
	cmpl	$0, 16(%rbx)
	je	LBB0_8
## %bb.3:
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	callq	_output_ready
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	movl	12(%rbx), %edi
	leaq	-40(%rbp), %rsi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_read
	movq	%r12, %rdi
	callq	_nvenc_push_context
	testl	%eax, %eax
	js	LBB0_13
## %bb.5:
	movq	-40(%rbp), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_process_output_surface
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_nvenc_pop_context
	testl	%eax, %eax
	js	LBB0_13
## %bb.6:
	testl	%r15d, %r15d
	jne	LBB0_14
## %bb.7:
	movl	8(%rbx), %edi
	xorl	%r15d, %r15d
	leaq	-40(%rbp), %rsi
	movl	$8, %edx
	xorl	%ecx, %ecx
	callq	_av_fifo_generic_write
	jmp	LBB0_14
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_10:
	cmpq	$0, (%rbx)
	je	LBB0_15
## %bb.11:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_14
LBB0_13:
	movl	%eax, %r15d
LBB0_14:
	movl	%r15d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_nvenc_receive_packet        ; -- Begin function ff_nvenc_receive_packet
	.p2align	2
_ff_nvenc_receive_packet:               ; @ff_nvenc_receive_packet
	.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	x20, x1
	mov	x19, x0
	ldr	x22, [x0]
	ldr	w8, [x22, #24]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x22, #20]
	cbz	w8, LBB0_8
LBB0_2:
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_8
; %bb.3:
	ldr	x1, [x22]
	mov	x0, x19
	bl	_output_ready
	cbz	x0, LBB0_10
; %bb.4:
	ldr	w0, [x22, #12]
	add	x1, sp, #8
	mov	w2, #8
	mov	x3, #0
	bl	_av_fifo_generic_read
	mov	x0, x19
	bl	_nvenc_push_context
	tbnz	w0, #31, LBB0_12
; %bb.5:
	ldr	x2, [sp, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_process_output_surface
	mov	x21, x0
	mov	x0, x19
	bl	_nvenc_pop_context
	tbnz	w0, #31, LBB0_12
; %bb.6:
	cbnz	w21, LBB0_13
; %bb.7:
	ldr	w0, [x22, #8]
	add	x1, sp, #8
	mov	w2, #8
	mov	x3, #0
	bl	_av_fifo_generic_write
	b	LBB0_13
LBB0_8:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	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:
	ldr	x8, [x22]
	cbz	x8, LBB0_14
; %bb.11:
Lloh2:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	b	LBB0_13
LBB0_12:
	mov	x21, x0
LBB0_13:
	mov	x0, x21
	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_14:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
