	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function stream_toggle_pause
LCPI0_0:
	.quad	0x412e848000000000              ## double 1.0E+6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_stream_toggle_pause:                   ## @stream_toggle_pause
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpl	$0, (%rdi)
	je	LBB0_4
## %bb.1:
	xorl	%eax, %eax
	callq	_av_gettime_relative
	divsd	LCPI0_0(%rip), %xmm0
	subsd	32(%rbx), %xmm0
	cvtsi2sdl	52(%rbx), %xmm1
	leaq	32(%rbx), %r14
	addsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %eax
	movl	%eax, 52(%rbx)
	movq	8(%rbx), %r15
	movq	_ENOSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	cmpq	%rax, %r15
	je	LBB0_3
## %bb.2:
	movl	$0, 40(%rbx)
LBB0_3:
	movq	%r14, %rdi
	callq	_get_clock
	movl	44(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_clock
LBB0_4:
	leaq	16(%rbx), %r14
	movq	%r14, %rdi
	callq	_get_clock
	movl	28(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_clock
	xorl	%eax, %eax
	cmpl	$0, (%rbx)
	sete	%al
	movl	%eax, 24(%rbx)
	movl	%eax, 40(%rbx)
	movl	%eax, 48(%rbx)
	movl	%eax, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOSYS,4,2                     ## @ENOSYS
	.no_dead_strip	_stream_toggle_pause
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stream_toggle_pause
_stream_toggle_pause:                   ; @stream_toggle_pause
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	bl	_av_gettime_relative
	mov	x8, #145685290680320
	movk	x8, #16686, lsl #48
	fmov	d1, x8
	fdiv	d0, d0, d1
	mov	x20, x19
	ldr	d1, [x20, #32]!
	fsub	d0, d0, d1
	ldr	s1, [x20, #20]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	fadd	d0, d0, d1
	fcvtzs	w8, d0
	str	w8, [x20, #20]
	ldur	x21, [x20, #-24]
Lloh0:
	adrp	x8, _ENOSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOSYS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_AVERROR
	cmp	x21, x0
	b.eq	LBB0_3
; %bb.2:
	str	wzr, [x19, #40]
LBB0_3:
	mov	x0, x20
	bl	_get_clock
	mov	x1, x0
	ldr	w2, [x19, #44]
	mov	x0, x20
	bl	_set_clock
LBB0_4:
	add	x20, x19, #16
	mov	x0, x20
	bl	_get_clock
	mov	x1, x0
	ldr	w2, [x19, #28]
	mov	x0, x20
	bl	_set_clock
	ldr	w8, [x19]
	cmp	w8, #0
	cset	w8, eq
	str	w8, [x19, #24]
	str	w8, [x19, #40]
	str	w8, [x19, #48]
	str	w8, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOSYS,4,2                     ; @ENOSYS
	.no_dead_strip	_stream_toggle_pause
.subsections_via_symbols
