	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vivid_thread_sdr_cap
_vivid_thread_sdr_cap:                  ## @vivid_thread_sdr_cap
	.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	%rdi, %r15
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	callq	_dprintk
	xorl	%eax, %eax
	callq	_set_freezable
	xorl	%eax, %eax
	cmpq	$0, 32(%r15)
	sete	%al
	shll	$7, %eax
	addl	$-128, %eax
	movl	%eax, (%r15)
	movq	_jiffies@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%rax, 8(%r15)
	movl	$0, 16(%r15)
	xorl	%eax, %eax
	callq	_try_to_freeze
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	leaq	L_.str.1(%rip), %rdx
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_dprintk
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	28(%r15), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, 8(%r15)
	movl	%r12d, (%r15)
	movl	%r12d, %eax
	xorl	%r12d, %r12d
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rbx
	addl	%r12d, %eax
	movl	%eax, 20(%r15)
	movq	%r15, %rdi
	callq	_vivid_thread_sdr_cap_tick
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_SDR_CAP_SAMPLES_PER_BUF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%eax, %r12d
	movq	(%rbx), %r13
	subq	8(%r15), %r13
	addl	%eax, %r12d
	movq	_HZ@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movl	24(%r15), %esi
	movl	%esi, %ebx
	shrl	$31, %ebx
	addl	%esi, %ebx
	sarl	%ebx
	addl	%r12d, %ebx
	movl	%ebx, %edi
	callq	_do_div
	movslq	%ebx, %rdi
	movq	_jiffies@GOTPCREL(%rip), %rbx
	cmpq	%r13, %rdi
	cmovbl	%r13d, %edi
	subl	%r13d, %edi
	movl	$1, %eax
	cmovel	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_schedule_timeout_interruptible
	xorl	%eax, %eax
	callq	_try_to_freeze
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testq	%rax, %rax
	jne	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	(%rbx), %r13
	cmpl	$0, 16(%r15)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, 8(%r15)
	movl	20(%r15), %eax
	incl	%eax
	movl	%eax, (%r15)
	movq	$0, 16(%r15)
	movq	%r13, %rax
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rax
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %rbx
	subq	%rax, %rbx
	movl	24(%r15), %eax
	imull	%ebx, %eax
	movq	_SDR_CAP_SAMPLES_PER_BUF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_HZ@GOTPCREL(%rip), %rcx
	imull	(%rcx), %esi
	movl	%esi, %r12d
	shrl	$31, %r12d
	addl	%esi, %r12d
	sarl	%r12d
	addl	%eax, %r12d
	movl	%r12d, %edi
	callq	_do_div
	movq	_JIFFIES_RESYNC@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %eax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SDR Capture Thread Start\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_SDR_CAP_SAMPLES_PER_BUF,4,2    ## @SDR_CAP_SAMPLES_PER_BUF
	.comm	_JIFFIES_RESYNC,8,3             ## @JIFFIES_RESYNC
L_.str.1:                               ## @.str.1
	.asciz	"SDR Capture Thread End\n"

	.no_dead_strip	_vivid_thread_sdr_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vivid_thread_sdr_cap
_vivid_thread_sdr_cap:                  ; @vivid_thread_sdr_cap
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	bl	_set_freezable
	ldr	x8, [x19, #32]
	cmp	x8, #0
	mov	w8, #-128
	csel	w8, wzr, w8, eq
	str	w8, [x19]
Lloh2:
	adrp	x22, _jiffies@GOTPAGE
Lloh3:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
	str	x8, [x19, #8]
	str	wzr, [x19, #16]
	bl	_try_to_freeze
	bl	_kthread_should_stop
	cbz	x0, LBB0_2
LBB0_1:
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dprintk
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_2:
	add	x20, x19, #28
Lloh6:
	adrp	x23, _HZ@GOTPAGE
Lloh7:
	ldr	x23, [x23, _HZ@GOTPAGEOFF]
Lloh8:
	adrp	x24, _SDR_CAP_SAMPLES_PER_BUF@GOTPAGE
Lloh9:
	ldr	x24, [x24, _SDR_CAP_SAMPLES_PER_BUF@GOTPAGEOFF]
Lloh10:
	adrp	x25, _JIFFIES_RESYNC@GOTPAGE
Lloh11:
	ldr	x25, [x25, _JIFFIES_RESYNC@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x26, [x19, #8]
	str	w21, [x19]
	mov	x8, x21
	mov	w21, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w8, w8, w21
	str	w8, [x19, #20]
	mov	x0, x19
	bl	_vivid_thread_sdr_cap_tick
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x24]
	ldr	x9, [x22]
	ldr	x10, [x19, #8]
	sub	x26, x9, x10
	madd	w8, w8, w21, w8
	ldr	w9, [x23]
	mul	w8, w9, w8
	ldr	w1, [x19, #24]
	cmp	w1, #0
	cinc	w9, w1, lt
	add	w21, w8, w9, asr #1
	mov	x0, x21
	bl	_do_div
	sxtw	x8, w21
	cmp	x8, x26
	csel	w8, w26, w21, lo
	subs	w8, w8, w26
	csinc	w0, w8, wzr, ne
	bl	_schedule_timeout_interruptible
	bl	_try_to_freeze
	bl	_kthread_should_stop
	cbnz	x0, LBB0_1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_mutex_lock
	ldr	x26, [x22]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19]
	stp	x26, xzr, [x19, #8]
	mov	x8, x26
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	x27, x26, x8
	ldr	w8, [x19, #24]
	mul	w8, w8, w27
	ldr	w9, [x23]
	ldr	w10, [x24]
	mul	w1, w10, w9
	cmp	w1, #0
	cinc	w9, w1, lt
	add	w21, w8, w9, asr #1
	mov	x0, x21
	bl	_do_div
	ldr	x8, [x25]
	cmp	x27, x8
	b.hi	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x19]
	b	LBB0_4
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SDR Capture Thread Start\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_SDR_CAP_SAMPLES_PER_BUF,4,2    ; @SDR_CAP_SAMPLES_PER_BUF
	.comm	_JIFFIES_RESYNC,8,3             ; @JIFFIES_RESYNC
l_.str.1:                               ; @.str.1
	.asciz	"SDR Capture Thread End\n"

	.no_dead_strip	_vivid_thread_sdr_cap
.subsections_via_symbols
