	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib8000_read_snr
_dib8000_read_snr:                      ## @dib8000_read_snr
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$542, %esi                      ## imm = 0x21E
	callq	_dib8000_read_word
	movl	%eax, %r12d
	shrl	$6, %eax
	movzbl	%al, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r15d
	andl	$63, %r15d
	movq	%rbx, %rdi
	movl	$543, %esi                      ## imm = 0x21F
	callq	_dib8000_read_word
	movl	%eax, %ebx
	movl	%eax, %r13d
	shrl	$6, %r13d
	andl	$63, %eax
	shll	$26, %r12d
	sarl	$31, %r12d
	andl	$-64, %r12d
	shll	$26, %ebx
	sarl	$31, %ebx
	andl	$-64, %ebx
	orl	%eax, %ebx
	movl	$2, %edi
	callq	_intlog10
	movl	%eax, %r14d
	andl	$255, %r13d
	je	LBB0_2
## %bb.1:
	imull	%ebx, %r14d
	movl	%r13d, %edi
	callq	_intlog10
                                        ## kill: def $eax killed $eax def $rax
	addl	%r14d, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %r14d
	jmp	LBB0_3
LBB0_2:
	imull	%r14d, %ebx
	leal	(%rbx,%rbx,4), %eax
	leal	(%rax,%rax), %r14d
	addl	$-100, %r14d
LBB0_3:
	orl	%r15d, %r12d
	movl	$2, %edi
	callq	_intlog10
	movl	%eax, %ebx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	testl	%edi, %edi
	je	LBB0_5
## %bb.4:
	imull	%r12d, %ebx
	callq	_intlog10
                                        ## kill: def $eax killed $eax def $rax
	addl	%ebx, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	negl	%eax
	jmp	LBB0_6
LBB0_5:
	imull	%ebx, %r12d
	addl	%r12d, %r12d
	leal	(%r12,%r12,4), %ecx
	movl	$100, %eax
	subl	%ecx, %eax
LBB0_6:
	addl	%r14d, %eax
	cltq
	imulq	$-1610611775, %rax, %rcx        ## imm = 0xA00003C1
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$20, %eax
	addl	%ecx, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dib8000_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib8000_read_snr
_dib8000_read_snr:                      ; @dib8000_read_snr
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	x22, [x0]
	mov	x0, x22
	mov	w1, #542
	bl	_dib8000_read_word
	mov	x21, x0
	ubfx	w20, w0, #6, #8
	mov	x0, x22
	mov	w1, #543
	bl	_dib8000_read_word
	ubfx	w22, w0, #6, #8
	sbfx	w24, w21, #5, #1
	sbfx	w25, w0, #5, #1
	bfxil	w25, w0, #0, #6
	mov	w0, #2
	bl	_intlog10
	mov	x23, x0
	cbz	w22, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_intlog10
	madd	w8, w23, w25, w0
	add	w8, w8, w8, lsl #2
	lsl	w22, w8, #1
	b	LBB0_3
LBB0_2:
	mul	w8, w25, w23
	mov	w9, #10
	mul	w8, w8, w9
	sub	w22, w8, #100
LBB0_3:
	bfxil	w24, w21, #0, #6
	mov	w0, #2
	bl	_intlog10
	mov	x21, x0
	cbz	w20, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_intlog10
	madd	w8, w21, w24, w0
	mov	w9, #-10
	mul	w8, w8, w9
	b	LBB0_6
LBB0_5:
	mul	w8, w24, w21
	mov	w9, #-10
	mul	w8, w8, w9
	add	w8, w8, #100
LBB0_6:
	mov	w9, #961
	movk	w9, #40960, lsl #16
	add	w8, w8, w22
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #20
	add	w8, w9, w8, lsr #31
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dib8000_read_snr
.subsections_via_symbols
