	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hackrf_copy_stream
_hackrf_copy_stream:                    ## @hackrf_copy_stream
	.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
	movl	%ecx, %r14d
	movq	%rdi, %r12
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	callq	_memcpy
	movq	16(%r12), %rdi
	callq	_time_is_before_jiffies
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	subq	16(%r12), %rbx
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_jiffies_to_msecs
	movl	%eax, %r13d
	movl	(%r12), %r15d
	subl	4(%r12), %r15d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	%rax, 16(%r12)
	movl	(%r12), %eax
	movl	8(%r12), %edi
	movl	%eax, 4(%r12)
	imulq	$1000, %r15, %rax               ## imm = 0x3E8
	movl	%r13d, %r8d
	movabsq	$4393751543808, %rcx            ## imm = 0x3FF00000000
	testq	%rcx, %rax
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%r8
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%eax, %r9d
	callq	_dev_dbg
LBB0_5:
	shrl	%r14d
	addl	%r14d, (%r12)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"slen=%u samples=%u msecs=%u sample rate=%lu\n"

	.comm	_MSECS,4,2                      ## @MSECS
	.no_dead_strip	_hackrf_copy_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hackrf_copy_stream
_hackrf_copy_stream:                    ; @hackrf_copy_stream
	.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	x19, x3
	mov	x20, x0
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	bl	_memcpy
	ldr	x0, [x20, #16]
	bl	_time_is_before_jiffies
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x23, _jiffies@GOTPAGE
Lloh1:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	x9, [x20, #16]
	sub	x21, x8, x9
	mov	w0, #10000
	bl	_msecs_to_jiffies
	add	x0, x21, x0
	bl	_jiffies_to_msecs
	mov	x21, x0
	ldp	w8, w9, [x20]
	sub	w22, w8, w9
	ldr	x23, [x23]
	mov	w0, #10000
	bl	_msecs_to_jiffies
	add	x8, x0, x23
	str	x8, [x20, #16]
	ldr	w8, [x20]
	str	w8, [x20, #4]
	ldr	w0, [x20, #8]
	mov	w8, #1000
	umull	x8, w22, w8
	mov	w9, w21
	udiv	x5, x8, x9
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	mov	x4, x21
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_dev_dbg
LBB0_2:
	ldr	w8, [x20]
	add	w8, w8, w19, lsr #1
	str	w8, [x20]
	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
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"slen=%u samples=%u msecs=%u sample rate=%lu\n"

	.comm	_MSECS,4,2                      ; @MSECS
	.no_dead_strip	_hackrf_copy_stream
.subsections_via_symbols
