	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxf_set_audio_pts
_mxf_set_audio_pts:                     ## @mxf_set_audio_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rdx), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	8(%r12), %rsi
	movq	(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	movq	%rsi, %r15
	callq	_av_get_bits_per_sample
	movq	%r15, %rsi
LBB0_2:
	movq	(%rsi), %r15
	movq	%r15, 8(%r13)
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	jle	LBB0_5
## %bb.3:
	testq	%rax, %rax
	jle	LBB0_5
## %bb.4:
	imulq	%rax, %rcx
	cmpq	$7, %rcx
	jg	LBB0_6
LBB0_5:
	movl	(%r12), %ebx
	movl	8(%rsi), %edi
	movq	%rsi, %r13
	callq	_av_inv_q
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_av_rescale_q
	leaq	1(%rax), %rdx
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_mxf_compute_sample_count
	movq	%r13, %rsi
	jmp	LBB0_10
LBB0_6:
	movq	16(%r13), %rax
	shrq	$3, %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_7
## %bb.8:
	cqto
	idivq	%rcx
	jmp	LBB0_9
LBB0_7:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_9:
	addq	%r15, %rax
LBB0_10:
	movq	%rax, (%rsi)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mxf_set_audio_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_audio_pts
_mxf_set_audio_pts:                     ; @mxf_set_audio_pts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x9, [x2]
	ldr	x20, [x8, x9, lsl #3]
	ldr	x24, [x20, #8]
	ldr	x0, [x1]
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x22, #16]
	bl	_av_get_bits_per_sample
LBB0_2:
	ldr	x23, [x24]
	str	x23, [x21, #8]
	ldr	x8, [x22, #8]
	cmp	x8, #1
	ccmp	x0, #1, #8, ge
	mul	x8, x8, x0
	ccmp	x8, #7, #4, ge
	b.gt	LBB0_4
; %bb.3:
	ldr	w21, [x20]
	ldr	w0, [x24, #8]
	bl	_av_inv_q
	mov	x2, x0
	mov	x0, x23
	mov	x1, x21
	bl	_av_rescale_q
	add	x2, x0, #1
	mov	x0, x19
	mov	x1, x20
	bl	_mxf_compute_sample_count
	b	LBB0_5
LBB0_4:
	ldr	x9, [x21, #16]
	lsr	x8, x8, #3
	sdiv	x8, x9, x8
	add	x0, x8, x23
LBB0_5:
	str	x0, [x24]
	mov	w0, #0
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mxf_set_audio_pts
.subsections_via_symbols
