	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cinergyt2_fe_read_status
_cinergyt2_fe_read_status:              ## @cinergyt2_fe_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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rdi), %r12
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_CINERGYT2_EP1_GET_TUNER_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	16(%r12), %rcx
	movl	%eax, (%rcx)
	movl	24(%r12), %edi
	movq	%rcx, %rsi
	movl	$1, %edx
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jns	LBB0_3
	jmp	LBB0_16
LBB0_1:
	movq	16(%r12), %rsi
	movq	%r12, %rdi
	movl	$8, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_3:
	movl	$0, (%r14)
	movl	4(%r12), %edi
	callq	_le16_to_cpu
	cmpl	$65504, %eax                    ## imm = 0xFFE0
	jg	LBB0_5
## %bb.4:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_5:
	movl	(%r12), %eax
	testb	$64, %al
	jne	LBB0_6
## %bb.7:
	testb	$32, %al
	jne	LBB0_8
LBB0_9:
	testb	$16, %al
	jne	LBB0_10
LBB0_11:
	testb	$2, %al
	jne	LBB0_13
LBB0_12:
	movl	(%r14), %eax
	jmp	LBB0_14
LBB0_6:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	(%r12), %eax
	testb	$32, %al
	je	LBB0_9
LBB0_8:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	(%r12), %eax
	testb	$16, %al
	je	LBB0_11
LBB0_10:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
	movl	(%r12), %eax
	testb	$2, %al
	je	LBB0_12
LBB0_13:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rcx
	movl	(%r14), %eax
	orl	(%rcx), %eax
	movl	%eax, (%r14)
LBB0_14:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%eax, %ecx
	notl	%ecx
	xorl	%ebx, %ebx
	testl	%ecx, %edx
	je	LBB0_16
## %bb.15:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	movl	%eax, (%r14)
LBB0_16:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CINERGYT2_EP1_GET_TUNER_STATUS,4,2 ## @CINERGYT2_EP1_GET_TUNER_STATUS
	.comm	_FE_HAS_SIGNAL,4,2              ## @FE_HAS_SIGNAL
	.comm	_FE_HAS_LOCK,4,2                ## @FE_HAS_LOCK
	.comm	_FE_HAS_SYNC,4,2                ## @FE_HAS_SYNC
	.comm	_FE_HAS_CARRIER,4,2             ## @FE_HAS_CARRIER
	.comm	_FE_HAS_VITERBI,4,2             ## @FE_HAS_VITERBI
	.no_dead_strip	_cinergyt2_fe_read_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cinergyt2_fe_read_status
_cinergyt2_fe_read_status:              ; @cinergyt2_fe_read_status
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x1
	ldr	x20, [x0]
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x8, _CINERGYT2_EP1_GET_TUNER_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CINERGYT2_EP1_GET_TUNER_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	x1, [x20, #16]
	str	w8, [x1]
	ldr	w0, [x20, #24]
	mov	w2, #1
	mov	x3, x1
	mov	w4, #8
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_unlock
	tbz	w22, #31, LBB0_3
	b	LBB0_17
LBB0_2:
	ldr	x1, [x20, #16]
	mov	x0, x20
	mov	w2, #8
	bl	_memcpy
	mov	x0, x21
	bl	_mutex_unlock
LBB0_3:
	str	wzr, [x19]
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	mov	w8, #65504
	cmp	w0, w8
	b.gt	LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _FE_HAS_SIGNAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FE_HAS_SIGNAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_5:
	ldr	w11, [x20]
Lloh6:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
	tbz	w11, #6, LBB0_7
; %bb.6:
	ldr	w9, [x8]
	ldr	w10, [x19]
	orr	w9, w10, w9
	str	w9, [x19]
	ldr	w11, [x20]
LBB0_7:
Lloh8:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
	tbz	w11, #5, LBB0_9
; %bb.8:
	ldr	w10, [x9]
	ldr	w11, [x19]
	orr	w10, w11, w10
	str	w10, [x19]
	ldr	w11, [x20]
LBB0_9:
Lloh10:
	adrp	x10, _FE_HAS_CARRIER@GOTPAGE
Lloh11:
	ldr	x10, [x10, _FE_HAS_CARRIER@GOTPAGEOFF]
	tbz	w11, #4, LBB0_11
; %bb.10:
	ldr	w11, [x10]
	ldr	w12, [x19]
	orr	w11, w12, w11
	str	w11, [x19]
	ldr	w11, [x20]
LBB0_11:
Lloh12:
	adrp	x12, _FE_HAS_VITERBI@GOTPAGE
Lloh13:
	ldr	x12, [x12, _FE_HAS_VITERBI@GOTPAGEOFF]
	tbnz	w11, #1, LBB0_13
; %bb.12:
	ldr	w11, [x19]
	b	LBB0_14
LBB0_13:
	ldr	w11, [x12]
	ldr	w13, [x19]
	orr	w11, w13, w11
	str	w11, [x19]
LBB0_14:
	ldr	w10, [x10]
	ldr	w12, [x12]
	orr	w10, w12, w10
	ldr	w9, [x9]
	orr	w9, w10, w9
	bics	wzr, w9, w11
	b.ne	LBB0_16
; %bb.15:
	mov	w22, #0
	b	LBB0_17
LBB0_16:
	mov	w22, #0
	ldr	w8, [x8]
	bic	w8, w11, w8
	str	w8, [x19]
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_CINERGYT2_EP1_GET_TUNER_STATUS,4,2 ; @CINERGYT2_EP1_GET_TUNER_STATUS
	.comm	_FE_HAS_SIGNAL,4,2              ; @FE_HAS_SIGNAL
	.comm	_FE_HAS_LOCK,4,2                ; @FE_HAS_LOCK
	.comm	_FE_HAS_SYNC,4,2                ; @FE_HAS_SYNC
	.comm	_FE_HAS_CARRIER,4,2             ; @FE_HAS_CARRIER
	.comm	_FE_HAS_VITERBI,4,2             ; @FE_HAS_VITERBI
	.no_dead_strip	_cinergyt2_fe_read_status
.subsections_via_symbols
