	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt2_mon_sync_stat ## -- Begin function cxd2880_tnrdmd_dvbt2_mon_sync_stat
	.p2align	4, 0x90
_cxd2880_tnrdmd_dvbt2_mon_sync_stat:    ## @cxd2880_tnrdmd_dvbt2_mon_sync_stat
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.2:
	movq	%rdx, %r12
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	%rcx, %r14
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.6:
	movq	8(%rbx), %rax
	movq	_CXD2880_DTV_SYS_DVBT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.7:
	movq	16(%rbx), %rdi
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	movl	$11, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.8:
	movq	16(%rbx), %rdi
	movl	(%r13), %esi
	leaq	-44(%rbp), %rcx
	movl	$16, %edx
	movl	$4, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	andl	$7, %ecx
	movl	%ecx, (%r15)
	movl	%eax, %ecx
	shrl	$5, %ecx
	andl	$1, %ecx
	movl	%ecx, (%r12)
	shrl	$4, %eax
	andl	$1, %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	cmpl	$7, (%r15)
	jne	LBB0_12
## %bb.10:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_11
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_11:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT2,8,3      ## @CXD2880_DTV_SYS_DVBT2
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_EAGAIN,4,2                     ## @EAGAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt2_mon_sync_stat ; -- Begin function cxd2880_tnrdmd_dvbt2_mon_sync_stat
	.p2align	2
_cxd2880_tnrdmd_dvbt2_mon_sync_stat:    ; @cxd2880_tnrdmd_dvbt2_mon_sync_stat
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_10
; %bb.2:
	mov	x21, x2
	cbz	x2, LBB0_10
; %bb.3:
	mov	x19, x3
	cbz	x3, LBB0_10
; %bb.4:
	mov	x22, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [x22, #8]
Lloh3:
	adrp	x9, _CXD2880_DTV_SYS_DVBT2@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_DTV_SYS_DVBT2@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.6:
	ldr	x0, [x22, #16]
	ldr	x8, [x0]
Lloh6:
	adrp	x23, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh7:
	ldr	x23, [x23, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #11
	blr	x8
	cbnz	w0, LBB0_12
; %bb.7:
	ldr	x0, [x22, #16]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	w2, #16
	mov	w4, #4
	blr	x8
	cbnz	w0, LBB0_12
; %bb.8:
	ldr	w8, [sp, #12]
	and	w9, w8, #0x7
	str	w9, [x20]
	ubfx	w9, w8, #5, #1
	str	w9, [x21]
	ubfx	w8, w8, #4, #1
	str	w8, [x19]
	ldr	w8, [x20]
	cmp	w8, #7
	b.ne	LBB0_13
; %bb.9:
Lloh8:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	w0, #0
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT2,8,3      ; @CXD2880_DTV_SYS_DVBT2
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_EAGAIN,4,2                     ; @EAGAIN
.subsections_via_symbols
