	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	(%rdi), %rax
	movq	_CINERGYT2_EP1_GET_TUNER_STATUS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -12(%rbp)
	movl	(%rax), %edi
	leaq	-12(%rbp), %rsi
	leaq	-24(%rbp), %rcx
	movl	$4, %edx
	movl	$8, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testl	%eax, %eax
	js	LBB0_14
## %bb.1:
	movl	$0, (%rbx)
	movl	-20(%rbp), %edi
	callq	_le16_to_cpu
	cmpl	$65504, %eax                    ## imm = 0xFFE0
	jg	LBB0_3
## %bb.2:
	movq	_FE_HAS_SIGNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
LBB0_3:
	movl	-24(%rbp), %eax
	testb	$64, %al
	jne	LBB0_4
## %bb.5:
	testb	$32, %al
	jne	LBB0_6
LBB0_7:
	testb	$16, %al
	jne	LBB0_8
LBB0_9:
	testb	$2, %al
	jne	LBB0_11
LBB0_10:
	movl	(%rbx), %ecx
	jmp	LBB0_12
LBB0_4:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	testb	$32, %al
	je	LBB0_7
LBB0_6:
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	testb	$16, %al
	je	LBB0_9
LBB0_8:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rbx)
	testb	$2, %al
	je	LBB0_10
LBB0_11:
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
LBB0_12:
	movq	_FE_HAS_CARRIER@GOTPCREL(%rip), %rax
	movq	_FE_HAS_VITERBI@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movq	_FE_HAS_SYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%ecx, %esi
	notl	%esi
	xorl	%eax, %eax
	testl	%esi, %edx
	je	LBB0_14
## %bb.13:
	movq	_FE_HAS_LOCK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	notl	%edx
	andl	%edx, %ecx
	movl	%ecx, (%rbx)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	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:
	sub	sp, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CINERGYT2_EP1_GET_TUNER_STATUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CINERGYT2_EP1_GET_TUNER_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	str	w9, [sp, #4]
	ldr	w0, [x8]
	add	x1, sp, #4
	add	x3, sp, #8
	mov	w2, #4
	mov	w4, #8
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	tbnz	w0, #31, LBB0_15
; %bb.1:
	str	wzr, [x19]
	ldr	w0, [sp, #12]
	bl	_le16_to_cpu
	mov	w8, #65504
	cmp	w0, w8
	b.gt	LBB0_3
; %bb.2:
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_3:
	ldr	w10, [sp, #8]
Lloh6:
	adrp	x8, _FE_HAS_LOCK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _FE_HAS_LOCK@GOTPAGEOFF]
	tbz	w10, #6, LBB0_5
; %bb.4:
	ldr	w9, [x8]
	ldr	w11, [x19]
	orr	w9, w11, w9
	str	w9, [x19]
LBB0_5:
Lloh8:
	adrp	x9, _FE_HAS_SYNC@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FE_HAS_SYNC@GOTPAGEOFF]
	tbz	w10, #5, LBB0_7
; %bb.6:
	ldr	w11, [x9]
	ldr	w12, [x19]
	orr	w11, w12, w11
	str	w11, [x19]
LBB0_7:
Lloh10:
	adrp	x11, _FE_HAS_CARRIER@GOTPAGE
Lloh11:
	ldr	x11, [x11, _FE_HAS_CARRIER@GOTPAGEOFF]
	tbz	w10, #4, LBB0_9
; %bb.8:
	ldr	w12, [x11]
	ldr	w13, [x19]
	orr	w12, w13, w12
	str	w12, [x19]
LBB0_9:
Lloh12:
	adrp	x12, _FE_HAS_VITERBI@GOTPAGE
Lloh13:
	ldr	x12, [x12, _FE_HAS_VITERBI@GOTPAGEOFF]
	tbnz	w10, #1, LBB0_11
; %bb.10:
	ldr	w10, [x19]
	b	LBB0_12
LBB0_11:
	ldr	w10, [x12]
	ldr	w13, [x19]
	orr	w10, w13, w10
	str	w10, [x19]
LBB0_12:
	ldr	w11, [x11]
	ldr	w12, [x12]
	orr	w11, w12, w11
	ldr	w9, [x9]
	orr	w9, w11, w9
	bics	wzr, w9, w10
	b.ne	LBB0_14
; %bb.13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	mov	w0, #0
	ldr	w8, [x8]
	bic	w8, w10, w8
	str	w8, [x19]
LBB0_15:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	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
