	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate ## -- Begin function cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate
	.p2align	4, 0x90
_cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate: ## @cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -80(%rbp)
	movl	$0, -72(%rbp)
	movl	$0, -76(%rbp)
	movl	$0, -68(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.5:
	movq	8(%r12), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.6:
	movq	16(%r12), %rax
	movq	_CXD2880_DTV_SYS_DVBT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.7:
	movl	%esi, %r15d
	movq	%r12, %rdi
	callq	_slvt_freeze_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	leaq	-80(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	leaq	-76(%rbp), %rcx
	movq	%r12, %rdi
	callq	_cxd2880_tnrdmd_dvbt2_mon_sync_stat
	testl	%eax, %eax
	je	LBB0_10
LBB0_9:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_slvt_unfreeze_reg
	jmp	LBB0_20
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_20:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_22
## %bb.21:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	cmpl	$0, -72(%rbp)
	je	LBB0_11
## %bb.12:
	movq	24(%r12), %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_9
## %bb.13:
	movq	24(%r12), %rdi
	movl	(%r13), %esi
	leaq	-68(%rbp), %rcx
	movl	$134, %edx
	movl	$1, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.14:
	testb	$1, -68(%rbp)
	jne	LBB0_15
LBB0_11:
	movq	%r12, %rdi
	callq	_slvt_unfreeze_reg
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_15:
	movq	_CXD2880_DVBT2_PLP_COMMON@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	movl	$186, %eax
	movl	$167, %edx
	cmovel	%eax, %edx
	movq	24(%r12), %rdi
	movl	(%r13), %esi
	leaq	-64(%rbp), %rcx
	movl	$1, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.16:
	testb	$-128, -64(%rbp)
	je	LBB0_11
## %bb.17:
	movq	24(%r12), %rdi
	movl	(%r13), %esi
	xorl	%edx, %edx
	movl	$37, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.18:
	xorl	%eax, %eax
	movq	_CXD2880_DVBT2_PLP_COMMON@GOTPCREL(%rip), %rcx
	cmpl	%r15d, (%rcx)
	setne	%al
	leal	166(,%rax,4), %edx
	movq	24(%r12), %rdi
	movl	(%r13), %esi
	leaq	-64(%rbp), %rcx
	movl	$4, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_9
## %bb.19:
	movl	-64(%rbp), %eax
	movl	-60(%rbp), %ecx
	andl	$7, %eax
	shll	$24, %eax
	shll	$16, %ecx
	movl	-56(%rbp), %edx
	shll	$8, %edx
	orl	%ecx, %edx
	orl	%eax, %edx
	orl	-52(%rbp), %edx
	movl	%edx, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_20
LBB0_22:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ## @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT2,8,3      ## @CXD2880_DTV_SYS_DVBT2
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_CXD2880_DVBT2_PLP_COMMON,4,2   ## @CXD2880_DVBT2_PLP_COMMON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate ; -- Begin function cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate
	.p2align	2
_cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate: ; @cxd2880_tnrdmd_dvbt2_mon_in_bandb_ts_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	stp	xzr, xzr, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _CXD2880_DTV_SYS_DVBT2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CXD2880_DTV_SYS_DVBT2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x21, x1
	mov	x0, x19
	bl	_slvt_freeze_reg
	mov	x22, x0
	cbnz	w0, LBB0_11
; %bb.6:
	add	x1, sp, #20
	add	x2, sp, #16
	add	x3, sp, #12
	mov	x0, x19
	bl	_cxd2880_tnrdmd_dvbt2_mon_sync_stat
	cbz	w0, LBB0_13
LBB0_7:
	mov	x22, x0
LBB0_8:
	mov	x0, x19
	bl	_slvt_unfreeze_reg
	b	LBB0_11
LBB0_9:
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_11:
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.12:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_13:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_17
; %bb.14:
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
Lloh17:
	adrp	x23, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh18:
	ldr	x23, [x23, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #11
	blr	x8
	cbnz	w0, LBB0_7
; %bb.15:
	ldr	x0, [x19, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #8
	mov	w2, #134
	mov	w4, #1
	blr	x8
	cbnz	w0, LBB0_7
; %bb.16:
	ldrb	w8, [sp, #8]
	tbnz	w8, #0, LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_slvt_unfreeze_reg
Lloh19:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_10
LBB0_18:
Lloh21:
	adrp	x24, _CXD2880_DVBT2_PLP_COMMON@GOTPAGE
Lloh22:
	ldr	x24, [x24, _CXD2880_DVBT2_PLP_COMMON@GOTPAGEOFF]
	ldr	w8, [x24]
	mov	w9, #167
	mov	w10, #186
	cmp	w8, w21
	csel	w2, w10, w9, eq
	ldr	x0, [x19, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #24
	mov	w4, #1
	blr	x8
	cbnz	w0, LBB0_7
; %bb.19:
	ldrb	w8, [sp, #24]
	tbz	w8, #7, LBB0_17
; %bb.20:
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #37
	blr	x8
	cbnz	w0, LBB0_7
; %bb.21:
	ldr	w8, [x24]
	mov	w9, #170
	mov	w10, #166
	cmp	w8, w21
	csel	w2, w10, w9, eq
	ldr	x0, [x19, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #24
	mov	w4, #4
	blr	x8
	mov	x22, x0
	cbnz	w0, LBB0_8
; %bb.22:
	ldp	w8, w9, [sp, #24]
	ubfiz	w8, w8, #24, #3
	orr	w8, w8, w9, lsl #16
	ldp	w9, w10, [sp, #32]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10
	str	w8, [x20]
	b	LBB0_11
LBB0_23:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_DIVERMODE_SUB,8,3 ; @CXD2880_TNRDMD_DIVERMODE_SUB
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT2,8,3      ; @CXD2880_DTV_SYS_DVBT2
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_CXD2880_DVBT2_PLP_COMMON,4,2   ; @CXD2880_DVBT2_PLP_COMMON
.subsections_via_symbols
