	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvenc_set_timestamp
_nvenc_set_timestamp:                   ## @nvenc_set_timestamp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	movq	8(%rdi), %rax
	movl	(%rsi), %ecx
	movl	%ecx, 8(%rdx)
	cmpq	$0, (%rdi)
	jle	LBB0_13
## %bb.1:
	cmpl	$0, (%rax)
	jne	LBB0_13
## %bb.2:
	movq	8(%rax), %rdx
	movq	8(%rdx), %rcx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_3
LBB0_13:
	movl	16(%rax), %edi
	callq	_timestamp_queue_dequeue
	movq	%rax, (%rbx)
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	js	LBB0_4
## %bb.6:
	je	LBB0_8
## %bb.7:
	movq	_INT64_MIN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	%rdx, %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_8
	jmp	LBB0_5
LBB0_4:
	movq	_INT64_MAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	%rdx, %rsi
	cmpq	%rsi, %rcx
	jg	LBB0_5
LBB0_8:
	subq	%rdx, %rcx
	js	LBB0_9
## %bb.10:
	je	LBB0_12
## %bb.11:
	movq	_INT64_MIN@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	%rcx, %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_5
LBB0_12:
	subq	%rcx, %rdx
	movq	%rdx, (%rbx)
	movl	$1, (%rax)
	jmp	LBB0_14
LBB0_9:
	movq	_INT64_MAX@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	addq	%rcx, %rsi
	cmpq	%rsi, %rdx
	jle	LBB0_12
LBB0_5:
	movq	_ERANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_INT64_MAX,8,3                  ## @INT64_MAX
	.comm	_INT64_MIN,8,3                  ## @INT64_MIN
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_nvenc_set_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvenc_set_timestamp
_nvenc_set_timestamp:                   ; @nvenc_set_timestamp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	ldr	w8, [x1]
	str	w8, [x2, #8]
	ldp	x9, x8, [x0]
	cmp	x9, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	w9, [x8]
	cbnz	w9, LBB0_3
; %bb.2:
	ldr	x9, [x8, #8]
	ldr	x10, [x9, #8]
Lloh0:
	adrp	x11, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_5
LBB0_3:
	ldr	w0, [x8, #16]
	bl	_timestamp_queue_dequeue
	str	x0, [x19]
LBB0_4:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x9, [x9]
	tbnz	x9, #63, LBB0_8
; %bb.6:
	cbz	x9, LBB0_9
; %bb.7:
Lloh3:
	adrp	x11, _INT64_MIN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _INT64_MIN@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	add	x11, x11, x9
	cmp	x10, x11
	b.ge	LBB0_9
	b	LBB0_14
LBB0_8:
Lloh6:
	adrp	x11, _INT64_MAX@GOTPAGE
Lloh7:
	ldr	x11, [x11, _INT64_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	add	x11, x11, x9
	cmp	x10, x11
	b.gt	LBB0_14
LBB0_9:
	subs	x10, x10, x9
	b.mi	LBB0_13
; %bb.10:
	b.eq	LBB0_12
; %bb.11:
Lloh9:
	adrp	x11, _INT64_MIN@GOTPAGE
Lloh10:
	ldr	x11, [x11, _INT64_MIN@GOTPAGEOFF]
Lloh11:
	ldr	x11, [x11]
	add	x11, x11, x10
	cmp	x9, x11
	b.lt	LBB0_14
LBB0_12:
	sub	x9, x9, x10
	str	x9, [x19]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_4
LBB0_13:
Lloh12:
	adrp	x11, _INT64_MAX@GOTPAGE
Lloh13:
	ldr	x11, [x11, _INT64_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x11, [x11]
	add	x11, x11, x10
	cmp	x9, x11
	b.le	LBB0_12
LBB0_14:
Lloh15:
	adrp	x8, _ERANGE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_INT64_MAX,8,3                  ; @INT64_MAX
	.comm	_INT64_MIN,8,3                  ; @INT64_MIN
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_nvenc_set_timestamp
.subsections_via_symbols
