	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ds3000_set_carrier_offset
_ds3000_set_carrier_offset:             ## @ds3000_set_carrier_offset
	.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
                                        ## kill: def $esi killed $esi def $rsi
	movq	(%rdi), %r14
	shll	$17, %esi
	movq	_DS3000_SAMPLE_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%rsi,%rcx), %eax
	addl	%ecx, %ecx
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	leal	65536(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movl	%ebx, %edx
	sarl	$8, %edx
	movq	%r14, %rdi
	movl	$95, %esi
	callq	_ds3000_writereg
	movzbl	%bl, %edx
	movq	%r14, %rdi
	movl	$94, %esi
	callq	_ds3000_writereg
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DS3000_SAMPLE_RATE,4,2         ## @DS3000_SAMPLE_RATE
	.no_dead_strip	_ds3000_set_carrier_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ds3000_set_carrier_offset
_ds3000_set_carrier_offset:             ; @ds3000_set_carrier_offset
	.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
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _DS3000_SAMPLE_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DS3000_SAMPLE_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	add	w9, w8, w1, lsl #17
	lsl	w8, w8, #1
	sdiv	w8, w9, w8
	add	w9, w8, #16, lsl #12            ; =65536
	cmp	w8, #0
	csel	w20, w9, w8, lt
	asr	w2, w20, #8
	mov	x0, x19
	mov	w1, #95
	bl	_ds3000_writereg
	and	w2, w20, #0xff
	mov	x0, x19
	mov	w1, #94
	bl	_ds3000_writereg
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DS3000_SAMPLE_RATE,4,2         ; @DS3000_SAMPLE_RATE
	.no_dead_strip	_ds3000_set_carrier_offset
.subsections_via_symbols
