	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_read_snr
_dib9000_read_snr:                      ## @dib9000_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	%r15, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_dib9000_get_snr
	movl	%eax, %r13d
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %r12
	cmpq	$2, (%r12)
	jb	LBB0_6
## %bb.3:
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	callq	_dib9000_get_snr
	addl	%eax, %r13d
	incq	%rbx
	cmpq	(%r12), %rbx
	jb	LBB0_4
LBB0_6:
	xorl	%r12d, %r12d
	movl	$0, %eax
	cmpl	$65536, %r13d                   ## imm = 0x10000
	jb	LBB0_8
## %bb.7:
	sarl	$16, %r13d
	movl	%r13d, %edi
	callq	_intlog10
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %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
LBB0_8:
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movq	_EINTR@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_9:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not get the lock\n"

	.comm	_EINTR,4,2                      ## @EINTR
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ## @MAX_NUMBER_OF_FRONTENDS
	.no_dead_strip	_dib9000_read_snr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_read_snr
_dib9000_read_snr:                      ; @dib9000_read_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
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x0]
	mov	x0, x20
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_7
; %bb.1:
	mov	x0, x21
	bl	_dib9000_get_snr
	mov	x21, x0
Lloh0:
	adrp	x22, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
	ldr	x8, [x22]
	cmp	x8, #2
	b.lo	LBB0_5
; %bb.2:
	mov	w23, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x0, [x8, x23, lsl #3]
	cbz	x0, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	bl	_dib9000_get_snr
	add	w21, w0, w21
	add	x23, x23, #1
	ldr	x8, [x22]
	cmp	x23, x8
	b.lo	LBB0_3
LBB0_5:
	cmp	w21, #16, lsl #12               ; =65536
	b.hs	LBB0_8
; %bb.6:
	mov	w8, #0
	b	LBB0_9
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh4:
	adrp	x8, _EINTR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINTR@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_8:
	asr	w0, w21, #16
	bl	_intlog10
	add	w8, w0, w0, lsl #2
	lsl	w8, w8, #1
	mov	w9, #961
	movk	w9, #40960, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #20
	add	w8, w9, w8, lsr #31
LBB0_9:
	str	w8, [x19]
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
LBB0_10:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not get the lock\n"

	.comm	_EINTR,4,2                      ; @EINTR
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ; @MAX_NUMBER_OF_FRONTENDS
	.no_dead_strip	_dib9000_read_snr
.subsections_via_symbols
