	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib7000p_get_snr
_dib7000p_get_snr:                      ## @dib7000p_get_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$479, %esi                      ## imm = 0x1DF
	callq	_dib7000p_read_word
	movl	%eax, %r15d
	shrl	$4, %eax
	movzbl	%al, %r14d
	movl	%r15d, %r12d
	andl	$15, %r12d
	movq	%rbx, %rdi
	movl	$480, %esi                      ## imm = 0x1E0
	callq	_dib7000p_read_word
	movl	%eax, %ebx
	shrl	$14, %eax
	andl	$3, %eax
	leal	(%rax,%r12,4), %ecx
	testb	$8, %r15b
	leal	-64(%rax,%r12,4), %r13d
	cmovel	%ecx, %r13d
	movl	%ebx, %r15d
	shrl	$6, %r15d
	movl	%ebx, %eax
	andl	$63, %eax
	shll	$26, %ebx
	sarl	$31, %ebx
	andl	$-64, %ebx
	orl	%eax, %ebx
	movl	$2, %edi
	callq	_intlog10
	movl	%eax, %r12d
	andl	$255, %r15d
	je	LBB0_2
## %bb.1:
	imull	%ebx, %r12d
	movl	%r15d, %edi
	callq	_intlog10
                                        ## kill: def $eax killed $eax def $rax
	addl	%r12d, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %r15d
	jmp	LBB0_3
LBB0_2:
	imull	%r12d, %ebx
	leal	(%rbx,%rbx,4), %eax
	leal	(%rax,%rax), %r15d
	addl	$-100, %r15d
LBB0_3:
	movl	$2, %edi
	callq	_intlog10
	movl	%eax, %ebx
	testl	%r14d, %r14d
	je	LBB0_5
## %bb.4:
	imull	%r13d, %ebx
	movl	%r14d, %edi
	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, %r13d
	addl	%r13d, %r13d
	leal	(%r13,%r13,4), %ecx
	movl	$100, %eax
	subl	%ecx, %eax
LBB0_6:
	addl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dib7000p_get_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib7000p_get_snr
_dib7000p_get_snr:                      ; @dib7000p_get_snr
	.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
	ldr	x20, [x0]
	mov	x0, x20
	mov	w1, #479
	bl	_dib7000p_read_word
	mov	x21, x0
	ubfx	w19, w0, #4, #8
	ubfiz	w22, w0, #2, #4
	mov	x0, x20
	mov	w1, #480
	bl	_dib7000p_read_word
	bfxil	w22, w0, #14, #2
	orr	w8, w22, #0xffffffc0
	tst	w21, #0x8
	csel	w22, w22, w8, eq
	ubfx	w20, w0, #6, #8
	sbfx	w23, w0, #5, #1
	bfxil	w23, w0, #0, #6
	mov	w0, #2
	bl	_intlog10
	mov	x21, x0
	cbz	w20, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_intlog10
	madd	w8, w21, w23, w0
	add	w8, w8, w8, lsl #2
	lsl	w21, w8, #1
	b	LBB0_3
LBB0_2:
	mul	w8, w23, w21
	mov	w9, #10
	mul	w8, w8, w9
	sub	w21, w8, #100
LBB0_3:
	mov	w0, #2
	bl	_intlog10
	mov	x20, x0
	cbz	w19, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_intlog10
	madd	w8, w20, w22, w0
	mov	w9, #-10
	mul	w8, w8, w9
	b	LBB0_6
LBB0_5:
	mul	w8, w22, w20
	mov	w9, #-10
	mul	w8, w8, w9
	add	w8, w8, #100
LBB0_6:
	add	w0, w8, w21
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dib7000p_get_snr
.subsections_via_symbols
