	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_ber
_read_ber:                              ## @read_ber
	.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	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	40(%rdi), %r15
	movq	(%r15), %rdi
	callq	_mutex_lock
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	_HYDRA_DEMOD_STATUS_LOCK
	movq	_HYDRA_DMD_DVBS_1ST_CORR_RS_ERRORS_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r15), %edi
	callq	_HYDRA_DMD_STATUS_OFFSET
	addq	%rax, %rbx
	leaq	-96(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_read_register_block
	movl	8(%r15), %esi
	movq	%r15, %rdi
	callq	_HYDRA_DEMOD_STATUS_UNLOCK
	movl	$-129, %eax
	addl	(%r14), %eax
	cmpl	$1, %eax
	ja	LBB0_2
## %bb.1:
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	32(%r14), %rdx
	movq	%rcx, 8(%rdx)
	movq	-80(%rbp), %rcx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	24(%r14), %rcx
	movq	%rax, 8(%rcx)
	movq	-72(%rbp), %rax
	movq	%rax, (%rcx)
LBB0_2:
	movq	_HYDRA_DMD_DVBS2_CRC_ERRORS_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	8(%r15), %edi
	callq	_HYDRA_DMD_STATUS_OFFSET
	addq	%rax, %rbx
	leaq	-96(%rbp), %rcx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movl	$56, %edx
	callq	_read_register_block
	movl	(%r14), %eax
	addl	$-128, %eax
	cmpl	$2, %eax
	ja	LBB0_4
## %bb.3:
	cltq
	leaq	l_switch.table.read_ber(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.read_ber.1(%rip), %rdx
	movq	(%rdx,%rax,8), %rax
	movq	_FE_SCALE_COUNTER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	16(%r14), %rdi
	movq	%rsi, 8(%rdi)
	movq	-96(%rbp,%rcx,8), %rcx
	movq	%rcx, (%rdi)
	movq	(%rdx), %rcx
	movq	8(%r14), %rdx
	movq	%rcx, 8(%rdx)
	movq	-96(%rbp,%rax,8), %rax
	movq	%rax, (%rdx)
LBB0_4:
	movq	(%r15), %rdi
	callq	_mutex_unlock
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HYDRA_DMD_DVBS_1ST_CORR_RS_ERRORS_ADDR_OFFSET,8,3 ## @HYDRA_DMD_DVBS_1ST_CORR_RS_ERRORS_ADDR_OFFSET
	.comm	_FE_SCALE_COUNTER,8,3           ## @FE_SCALE_COUNTER
	.comm	_HYDRA_DMD_DVBS2_CRC_ERRORS_ADDR_OFFSET,8,3 ## @HYDRA_DMD_DVBS2_CRC_ERRORS_ADDR_OFFSET
	.no_dead_strip	_read_ber
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.read_ber
l_switch.table.read_ber:
	.quad	1                               ## 0x1
	.quad	5                               ## 0x5
	.quad	5                               ## 0x5

	.p2align	3                               ## @switch.table.read_ber.1
l_switch.table.read_ber.1:
	.quad	2                               ## 0x2
	.quad	6                               ## 0x6
	.quad	6                               ## 0x6

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_ber
_read_ber:                              ; @read_ber
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldr	x19, [x0, #40]
	ldr	x0, [x19]
	bl	_mutex_lock
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_HYDRA_DEMOD_STATUS_LOCK
Lloh3:
	adrp	x8, _HYDRA_DMD_DVBS_1ST_CORR_RS_ERRORS_ADDR_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HYDRA_DMD_DVBS_1ST_CORR_RS_ERRORS_ADDR_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	ldr	w0, [x19, #8]
	bl	_HYDRA_DMD_STATUS_OFFSET
	add	x1, x0, x21
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #32
	bl	_read_register_block
	ldr	w1, [x19, #8]
	mov	x0, x19
	bl	_HYDRA_DEMOD_STATUS_UNLOCK
	ldr	w8, [x20]
	sub	w8, w8, #129
Lloh6:
	adrp	x21, _FE_SCALE_COUNTER@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FE_SCALE_COUNTER@GOTPAGEOFF]
	cmp	w8, #1
	b.hi	LBB0_2
; %bb.1:
	ldr	x8, [x21]
	ldr	x9, [x20, #32]
	str	x8, [x9, #8]
	ldr	x8, [sp, #24]
	str	x8, [x9]
	ldr	x8, [x21]
	ldr	x9, [x20, #24]
	str	x8, [x9, #8]
	ldr	x8, [sp, #32]
	str	x8, [x9]
LBB0_2:
Lloh8:
	adrp	x8, _HYDRA_DMD_DVBS2_CRC_ERRORS_ADDR_OFFSET@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HYDRA_DMD_DVBS2_CRC_ERRORS_ADDR_OFFSET@GOTPAGEOFF]
Lloh10:
	ldr	x22, [x8]
	ldr	w0, [x19, #8]
	bl	_HYDRA_DMD_STATUS_OFFSET
	add	x1, x0, x22
	add	x22, sp, #8
	add	x3, sp, #8
	mov	x0, x19
	mov	w2, #56
	bl	_read_register_block
	ldr	w8, [x20]
	sub	w8, w8, #128
	cmp	w8, #2
	b.hi	LBB0_4
; %bb.3:
	sbfiz	x8, x8, #3, #32
Lloh11:
	adrp	x9, l_switch.table.read_ber@PAGE
Lloh12:
	add	x9, x9, l_switch.table.read_ber@PAGEOFF
	ldr	x9, [x9, x8]
Lloh13:
	adrp	x10, l_switch.table.read_ber.1@PAGE
Lloh14:
	add	x10, x10, l_switch.table.read_ber.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	x10, [x21]
	ldr	x11, [x20, #16]
	str	x10, [x11, #8]
	ldr	x9, [x22, x9, lsl #3]
	str	x9, [x11]
	ldr	x9, [x21]
	ldr	x10, [x20, #8]
	str	x9, [x10, #8]
	ldr	x8, [x22, x8, lsl #3]
	str	x8, [x10]
LBB0_4:
	ldr	x0, [x19]
	bl	_mutex_unlock
	ldur	x8, [x29, #-40]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_HYDRA_DMD_DVBS_1ST_CORR_RS_ERRORS_ADDR_OFFSET,8,3 ; @HYDRA_DMD_DVBS_1ST_CORR_RS_ERRORS_ADDR_OFFSET
	.comm	_FE_SCALE_COUNTER,8,3           ; @FE_SCALE_COUNTER
	.comm	_HYDRA_DMD_DVBS2_CRC_ERRORS_ADDR_OFFSET,8,3 ; @HYDRA_DMD_DVBS2_CRC_ERRORS_ADDR_OFFSET
	.no_dead_strip	_read_ber
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.read_ber
l_switch.table.read_ber:
	.quad	1                               ; 0x1
	.quad	5                               ; 0x5
	.quad	5                               ; 0x5

	.p2align	3                               ; @switch.table.read_ber.1
l_switch.table.read_ber.1:
	.quad	2                               ; 0x2
	.quad	6                               ; 0x6
	.quad	6                               ; 0x6

.subsections_via_symbols
