	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poseidon_read_signal_strength
_poseidon_read_signal_strength:         ## @poseidon_read_signal_strength
	.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	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r15
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_TUNER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TLG_MODE_DVB_T@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-64(%rbp), %rcx
	leaq	-28(%rbp), %r8
	movq	%r15, %rdi
	movl	$24, %r9d
	callq	_send_get_req
	movl	%eax, %ebx
	orl	-28(%rbp), %eax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rax
	movl	-64(%rbp), %ecx
	testl	%ecx, %ecx
	movl	$65535, %edx                    ## imm = 0xFFFF
	cmovnel	%ecx, %edx
	orq	-56(%rbp), %rax
	cmovel	%ecx, %edx
	movl	%edx, (%r14)
LBB0_2:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TUNER_STATUS,4,2               ## @TUNER_STATUS
	.comm	_TLG_MODE_DVB_T,4,2             ## @TLG_MODE_DVB_T
	.no_dead_strip	_poseidon_read_signal_strength
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poseidon_read_signal_strength
_poseidon_read_signal_strength:         ; @poseidon_read_signal_strength
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x1
	ldr	x19, [x0]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x8, _TUNER_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TUNER_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _TLG_MODE_DVB_T@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TLG_MODE_DVB_T@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x19
	mov	w5, #24
	bl	_send_get_req
	mov	x21, x0
	ldr	w8, [sp, #4]
	orr	w8, w8, w0
	cbnz	w8, LBB0_2
; %bb.1:
	ldp	x9, x8, [sp, #16]
	orr	x8, x8, x9
	ldr	w9, [sp, #8]
	cmp	w9, #0
	ccmp	x8, #0, #4, eq
	mov	w8, #65535
	csel	w8, w9, w8, eq
	str	w8, [x20]
LBB0_2:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TUNER_STATUS,4,2               ; @TUNER_STATUS
	.comm	_TLG_MODE_DVB_T,4,2             ; @TLG_MODE_DVB_T
	.no_dead_strip	_poseidon_read_signal_strength
.subsections_via_symbols
