	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function osc_deviation
_osc_deviation:                         ## @osc_deviation
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	leaq	8(%rdi), %r15
	movq	$0, -40(%rbp)
	testl	%edx, %edx
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r12
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_dev_info
	movl	$4096, %esi                     ## imm = 0x1000
	addq	(%rbx), %rsi
	movq	%r15, %rdi
	movq	%r12, %rdx
	callq	_eeprom_write_ushort
	jmp	LBB0_6
LBB0_2:
	movl	$4096, %esi                     ## imm = 0x1000
	addq	(%rbx), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_eeprom_read_ushort
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	$0, -40(%rbp)
	xorl	%edx, %edx
	jmp	LBB0_5
LBB0_3:
	movq	-40(%rbp), %rdx
LBB0_5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	movq	-40(%rbp), %r12
LBB0_6:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"write deviation %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"read deviation %d\n"

	.no_dead_strip	_osc_deviation
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function osc_deviation
_osc_deviation:                         ; @osc_deviation
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x22, x0
	ldr	x8, [x0, #16]
	ldr	x19, [x8]
	add	x21, x0, #8
	str	xzr, [sp, #8]
	cbz	w2, LBB0_2
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_info
	ldr	x8, [x22]
	add	x1, x8, #1, lsl #12             ; =4096
	mov	x0, x21
	mov	x2, x20
	bl	_eeprom_write_ushort
	b	LBB0_6
LBB0_2:
	ldr	x8, [x22]
	add	x1, x8, #1, lsl #12             ; =4096
	add	x2, sp, #8
	mov	x0, x21
	bl	_eeprom_read_ushort
	cbz	x0, LBB0_4
; %bb.3:
	mov	x2, #0
	str	xzr, [sp, #8]
	b	LBB0_5
LBB0_4:
	ldr	x2, [sp, #8]
LBB0_5:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	ldr	x20, [sp, #8]
LBB0_6:
	mov	x0, 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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"write deviation %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"read deviation %d\n"

	.no_dead_strip	_osc_deviation
.subsections_via_symbols
