	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_set_pts
_mxf_set_pts:                           ## @mxf_set_pts
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	(%rsi), %rbx
	movq	8(%rsi), %rsi
	movq	(%rsi), %rax
	movq	_AVMEDIA_TYPE_VIDEO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.1:
	movl	16(%rbx), %esi
	callq	_mxf_find_index_table
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	(%rbx), %rcx
	cmpq	(%rax), %rcx
	jae	LBB0_4
## %bb.3:
	movq	8(%rax), %rdx
	addq	%rcx, %rdx
	movq	%rdx, (%r14)
	movq	16(%rax), %rax
	movq	(%rax,%rcx,8), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_AVMEDIA_TYPE_AUDIO@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	%r14, %rdx
	callq	_mxf_set_audio_pts
	testl	%eax, %eax
	jns	LBB0_11
	jmp	LBB0_12
LBB0_4:
	cmpq	$0, 8(%rbx)
	movq	(%rbx), %rax
	movq	%rax, %rcx
	je	LBB0_10
LBB0_5:
	movq	%rax, 8(%r14)
	movq	%rcx, %rax
	jmp	LBB0_10
LBB0_8:
	testq	%rbx, %rbx
	je	LBB0_11
## %bb.9:
	movq	(%rbx), %rax
	movq	%rax, 8(%r14)
	movq	%rax, (%r14)
	movl	$1, 16(%r14)
LBB0_10:
	incq	%rax
	movq	%rax, (%rbx)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ## @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ## @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_mxf_set_pts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxf_set_pts
_mxf_set_pts:                           ; @mxf_set_pts
	.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
	mov	x8, x1
	ldr	x1, [x1, #8]
	ldr	x20, [x8]
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _AVMEDIA_TYPE_VIDEO@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVMEDIA_TYPE_VIDEO@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w1, [x20, #16]
	bl	_mxf_find_index_table
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x9, [x20]
	ldr	x8, [x0]
	cmp	x9, x8
	b.hs	LBB0_6
; %bb.3:
	ldp	x8, x10, [x0, #8]
	add	x8, x8, x9
	str	x8, [x19]
	ldr	x8, [x10, x9, lsl #3]
	b	LBB0_7
LBB0_4:
Lloh3:
	adrp	x9, _AVMEDIA_TYPE_AUDIO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AVMEDIA_TYPE_AUDIO@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	mov	x2, x19
	bl	_mxf_set_audio_pts
	tbz	w0, #31, LBB0_11
	b	LBB0_12
LBB0_6:
	ldp	x8, x10, [x20]
	mov	x9, x8
	cbz	x10, LBB0_10
LBB0_7:
	str	x8, [x19, #8]
	mov	x8, x9
	b	LBB0_10
LBB0_8:
	cbz	x20, LBB0_11
; %bb.9:
	ldr	x8, [x20]
	stp	x8, x8, [x19]
	mov	w9, #1
	str	w9, [x19, #16]
LBB0_10:
	add	x8, x8, #1
	str	x8, [x20]
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVMEDIA_TYPE_VIDEO,8,3         ; @AVMEDIA_TYPE_VIDEO
	.comm	_AVMEDIA_TYPE_AUDIO,8,3         ; @AVMEDIA_TYPE_AUDIO
	.no_dead_strip	_mxf_set_pts
.subsections_via_symbols
