	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function airspy_convert_stream
_airspy_convert_stream:                 ## @airspy_convert_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, %r13
	movq	(%rdi), %rax
	movq	_V4L2_SDR_FMT_RU12LE@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	%rsi, %rdi
	movq	%rdx, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, %ebx
LBB0_2:
	movq	24(%r13), %rdi
	callq	_time_is_before_jiffies
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	subq	24(%r13), %rbx
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	%rbx, %rdi
	callq	_jiffies_to_msecs
	movl	%eax, %r15d
	movl	8(%r13), %r12d
	subl	12(%r13), %r12d
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	$10000, %edi                    ## imm = 0x2710
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	%rax, 24(%r13)
	movl	8(%r13), %eax
	movl	16(%r13), %edi
	movl	%eax, 12(%r13)
	imulq	$1000, %r12, %rax               ## imm = 0x3E8
	movl	%r15d, %r8d
	movabsq	$4393751543808, %rcx            ## imm = 0x3FF00000000
	testq	%rcx, %rax
	je	LBB0_4
## %bb.5:
	xorl	%edx, %edx
	divq	%r8
	jmp	LBB0_6
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r8d
                                        ## kill: def $eax killed $eax def $rax
LBB0_6:
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edx
	movl	%r12d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movl	%eax, %r9d
	callq	_dev_dbg
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_7:
	shrl	%r14d
	addl	%r14d, 8(%r13)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_SDR_FMT_RU12LE,8,3        ## @V4L2_SDR_FMT_RU12LE
	.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	_airspy_convert_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function airspy_convert_stream
_airspy_convert_stream:                 ; @airspy_convert_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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _V4L2_SDR_FMT_RU12LE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _V4L2_SDR_FMT_RU12LE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x19
	bl	_memcpy
	mov	x21, x19
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
	ldr	x0, [x20, #24]
	bl	_time_is_before_jiffies
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x24, _jiffies@GOTPAGE
Lloh4:
	ldr	x24, [x24, _jiffies@GOTPAGEOFF]
	ldr	x8, [x24]
	ldr	x9, [x20, #24]
	sub	x22, x8, x9
	mov	w0, #10000
	bl	_msecs_to_jiffies
	add	x0, x22, x0
	bl	_jiffies_to_msecs
	mov	x22, x0
	ldp	w8, w9, [x20, #8]
	sub	w23, w8, w9
	ldr	x24, [x24]
	mov	w0, #10000
	bl	_msecs_to_jiffies
	add	x8, x0, x24
	str	x8, [x20, #24]
	ldr	w8, [x20, #8]
	str	w8, [x20, #12]
	ldr	w0, [x20, #16]
	mov	w8, #1000
	umull	x8, w23, w8
	mov	w9, w22
	udiv	x5, x8, x9
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x23
	mov	x4, x22
                                        ; kill: def $w5 killed $w5 killed $x5
	bl	_dev_dbg
LBB0_5:
	ldr	w8, [x20, #8]
	add	w8, w8, w19, lsr #1
	str	w8, [x20, #8]
	mov	x0, x21
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_SDR_FMT_RU12LE,8,3        ; @V4L2_SDR_FMT_RU12LE
	.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	_airspy_convert_stream
.subsections_via_symbols
