	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv0367ddb_read_status
_stv0367ddb_read_status:                ## @stv0367ddb_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movl	(%rax), %eax
	cmpl	$129, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_stv0367ter_read_status
	testl	%eax, %eax
	jne	LBB0_12
	jmp	LBB0_5
LBB0_3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_stv0367cab_read_status
	testl	%eax, %eax
	jne	LBB0_12
LBB0_5:
	movq	%rbx, %rdi
	callq	_stv0367ddb_read_signal_strength
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_stv0367ddb_read_snr
	jmp	LBB0_8
LBB0_7:
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_8:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_stv0367ddb_read_ucblocks
	jmp	LBB0_11
LBB0_10:
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movq	%rax, (%rcx)
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.no_dead_strip	_stv0367ddb_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv0367ddb_read_status
_stv0367ddb_read_status:                ; @stv0367ddb_read_status
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w8, [x8]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_stv0367ter_read_status
	cbnz	w0, LBB0_10
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	bl	_stv0367cab_read_status
	cbnz	w0, LBB0_10
LBB0_4:
	mov	x0, x19
	bl	_stv0367ddb_read_signal_strength
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _FE_HAS_CARRIER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _FE_HAS_CARRIER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_stv0367ddb_read_snr
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	str	x8, [x9]
LBB0_7:
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _FE_HAS_LOCK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FE_HAS_LOCK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_stv0367ddb_read_ucblocks
	mov	w0, #0
	b	LBB0_10
LBB0_9:
	mov	w0, #0
Lloh9:
	adrp	x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	ldr	x9, [x19]
	str	x8, [x9]
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.no_dead_strip	_stv0367ddb_read_status
.subsections_via_symbols
