	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_set_pts
_v4l2_set_pts:                          ## @v4l2_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	%rdi, %r14
	movq	_AV_NOPTS_VALUE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	%rsi, (%rax)
	cmovneq	%rsi, %rbx
	callq	_v4l2_get_timebase
	movq	_v4l2_timebase@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_av_rescale_q
	movq	_USEC_PER_SEC@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	cqto
	idivq	%rcx
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	movq	%rdx, 8(%r14)
	movq	%rax, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ## @AV_NOPTS_VALUE
	.comm	_v4l2_timebase,4,2              ## @v4l2_timebase
	.comm	_USEC_PER_SEC,8,3               ## @USEC_PER_SEC
	.no_dead_strip	_v4l2_set_pts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_set_pts
_v4l2_set_pts:                          ; @v4l2_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, x0
Lloh0:
	adrp	x8, _AV_NOPTS_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_NOPTS_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	csel	x20, xzr, x1, eq
	bl	_v4l2_get_timebase
	mov	x1, x0
Lloh3:
	adrp	x8, _v4l2_timebase@GOTPAGE
Lloh4:
	ldr	x8, [x8, _v4l2_timebase@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_av_rescale_q
Lloh6:
	adrp	x8, _USEC_PER_SEC@GOTPAGE
Lloh7:
	ldr	x8, [x8, _USEC_PER_SEC@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	sdiv	x9, x0, x8
	msub	x8, x9, x8, x0
	stp	x9, x8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_NOPTS_VALUE,8,3             ; @AV_NOPTS_VALUE
	.comm	_v4l2_timebase,4,2              ; @v4l2_timebase
	.comm	_USEC_PER_SEC,8,3               ; @USEC_PER_SEC
	.no_dead_strip	_v4l2_set_pts
.subsections_via_symbols
