	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wrap_timestamp
_wrap_timestamp:                        ## @wrap_timestamp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %rax
	movq	(%rdi), %rcx
	movq	_AV_PTS_WRAP_IGNORE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_8
## %bb.1:
	movq	8(%rdi), %rdx
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	cmpq	%rsi, %rdx
	je	LBB0_8
## %bb.2:
	cmpq	%rax, %rsi
	je	LBB0_8
## %bb.3:
	movq	_AV_PTS_WRAP_ADD_OFFSET@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_5
## %bb.4:
	movl	$1, %esi
	cmpq	%rax, %rdx
	jg	LBB0_7
LBB0_5:
	movq	_AV_PTS_WRAP_SUB_OFFSET@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	jne	LBB0_8
## %bb.6:
	movq	$-1, %rsi
	cmpq	%rax, %rdx
	jg	LBB0_8
LBB0_7:
	movb	16(%rdi), %cl
	shlq	%cl, %rsi
	addq	%rsi, %rax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PTS_WRAP_IGNORE,8,3         ## @AV_PTS_WRAP_IGNORE
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_AV_PTS_WRAP_ADD_OFFSET,8,3     ## @AV_PTS_WRAP_ADD_OFFSET
	.comm	_AV_PTS_WRAP_SUB_OFFSET,8,3     ## @AV_PTS_WRAP_SUB_OFFSET
	.no_dead_strip	_wrap_timestamp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wrap_timestamp
_wrap_timestamp:                        ; @wrap_timestamp
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AV_PTS_WRAP_IGNORE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_PTS_WRAP_IGNORE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.1:
	ldr	x9, [x0, #8]
Lloh3:
	adrp	x10, _AV_NOPTS_VALUE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	x10, x1, #4, ne
	b.eq	LBB0_7
; %bb.2:
Lloh6:
	adrp	x10, _AV_PTS_WRAP_ADD_OFFSET@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_PTS_WRAP_ADD_OFFSET@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, x1, #4, eq
	b.gt	LBB0_5
; %bb.3:
Lloh9:
	adrp	x10, _AV_PTS_WRAP_SUB_OFFSET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AV_PTS_WRAP_SUB_OFFSET@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x10
	ccmp	x9, x1, #0, eq
	b.gt	LBB0_7
; %bb.4:
	mov	x8, #-1
	b	LBB0_6
LBB0_5:
	mov	w8, #1
LBB0_6:
	ldr	x9, [x0, #16]
	lsl	x8, x8, x9
	add	x1, x8, x1
LBB0_7:
	mov	x0, x1
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PTS_WRAP_IGNORE,8,3         ; @AV_PTS_WRAP_IGNORE
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_AV_PTS_WRAP_ADD_OFFSET,8,3     ; @AV_PTS_WRAP_ADD_OFFSET
	.comm	_AV_PTS_WRAP_SUB_OFFSET,8,3     ; @AV_PTS_WRAP_SUB_OFFSET
	.no_dead_strip	_wrap_timestamp
.subsections_via_symbols
