	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_status
_read_status:                           ## @read_status
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	40(%rdi), %rbx
	movl	$0, -36(%rbp)
	movq	(%rbx), %rdi
	callq	_mutex_lock
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_HYDRA_DEMOD_STATUS_LOCK
	movq	_HYDRA_DMD_LOCK_STATUS_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	8(%rbx), %edi
	callq	_HYDRA_DMD_STATUS_OFFSET
	addq	%rax, %r12
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_read_register
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	callq	_HYDRA_DEMOD_STATUS_UNLOCK
	movq	(%rbx), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	cmpl	$1, -36(%rbp)
	movl	$31, %ecx
	cmovnel	%eax, %ecx
	movl	%ecx, (%r14)
	movq	%r15, %rdi
	callq	_read_signal_strength
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_read_snr
	jmp	LBB0_3
LBB0_2:
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	32(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_3:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_read_ber
	jmp	LBB0_6
LBB0_5:
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	24(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	16(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rcx
	movq	8(%r15), %rdx
	movq	%rcx, (%rdx)
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, (%rcx)
LBB0_6:
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HYDRA_DMD_LOCK_STATUS_ADDR_OFFSET,8,3 ## @HYDRA_DMD_LOCK_STATUS_ADDR_OFFSET
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.no_dead_strip	_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_status
_read_status:                           ; @read_status
	.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	x20, x1
	mov	x19, x0
	ldr	x21, [x0, #40]
	str	wzr, [sp, #12]
	ldr	x0, [x21]
	bl	_mutex_lock
	ldr	w1, [x21, #8]
	mov	x0, x21
	bl	_HYDRA_DEMOD_STATUS_LOCK
Lloh0:
	adrp	x8, _HYDRA_DMD_LOCK_STATUS_ADDR_OFFSET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HYDRA_DMD_LOCK_STATUS_ADDR_OFFSET@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	ldr	w0, [x21, #8]
	bl	_HYDRA_DMD_STATUS_OFFSET
	add	x1, x0, x22
	add	x2, sp, #12
	mov	x0, x21
	bl	_read_register
	ldr	w1, [x21, #8]
	mov	x0, x21
	bl	_HYDRA_DEMOD_STATUS_UNLOCK
	ldr	x0, [x21]
	bl	_mutex_unlock
	ldr	w8, [sp, #12]
	mov	w9, #31
	cmp	w8, #1
	csel	w8, w9, wzr, eq
	str	w8, [x20]
	mov	x0, x19
	bl	_read_signal_strength
	ldr	w8, [x20]
Lloh3:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_read_snr
	b	LBB0_3
LBB0_2:
Lloh6:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	ldr	x9, [x19, #32]
	str	x8, [x9]
LBB0_3:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_read_ber
	b	LBB0_6
LBB0_5:
Lloh12:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	ldr	x9, [x8]
	ldp	x11, x10, [x19, #16]
	str	x9, [x10]
	ldr	x9, [x8]
	str	x9, [x11]
	ldr	x9, [x8]
	ldp	x11, x10, [x19]
	str	x9, [x10]
	ldr	x8, [x8]
	str	x8, [x11]
LBB0_6:
	mov	w0, #0
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_HYDRA_DMD_LOCK_STATUS_ADDR_OFFSET,8,3 ; @HYDRA_DMD_LOCK_STATUS_ADDR_OFFSET
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.no_dead_strip	_read_status
.subsections_via_symbols
