	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt2_mon_code_rate ## -- Begin function cxd2880_tnrdmd_dvbt2_mon_code_rate
	.p2align	4, 0x90
_cxd2880_tnrdmd_dvbt2_mon_code_rate:    ## @cxd2880_tnrdmd_dvbt2_mon_code_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -48(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.4:
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_SUB@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.5:
	movq	8(%r15), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.6:
	movq	16(%r15), %rax
	movq	_CXD2880_DTV_SYS_DVBT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.7:
	movl	%esi, %r12d
	movq	%r15, %rdi
	callq	_slvt_freeze_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_20
## %bb.8:
	movq	24(%r15), %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.10:
	movq	24(%r15), %rdi
	movl	(%r13), %esi
	leaq	-48(%rbp), %rcx
	movl	$134, %edx
	movl	$1, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	je	LBB0_11
LBB0_9:
	movl	%eax, %ebx
	movq	%r15, %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:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	testb	$1, -48(%rbp)
	jne	LBB0_13
LBB0_12:
	movq	%r15, %rdi
	callq	_slvt_unfreeze_reg
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_13:
	movq	_CXD2880_DVBT2_PLP_COMMON@GOTPCREL(%rip), %rcx
	movq	24(%r15), %rdi
	movq	8(%rdi), %rax
	movl	(%r13), %esi
	cmpl	%r12d, (%rcx)
	jne	LBB0_17
## %bb.14:
	leaq	-44(%rbp), %rcx
	movl	$182, %edx
	movl	$1, %r8d
	callq	*%rax
	testl	%eax, %eax
	jne	LBB0_9
## %bb.15:
	cmpl	$0, -44(%rbp)
	je	LBB0_12
## %bb.16:
	movq	24(%r15), %rdi
	movl	(%r13), %esi
	leaq	-44(%rbp), %rcx
	movl	$176, %edx
	movl	$1, %r8d
	callq	*8(%rdi)
	jmp	LBB0_18
LBB0_17:
	leaq	-44(%rbp), %rcx
	movl	$157, %edx
	movl	$1, %r8d
	callq	*%rax
LBB0_18:
	testl	%eax, %eax
	jne	LBB0_9
## %bb.19:
	movq	%r15, %rdi
	callq	_slvt_unfreeze_reg
	movl	-44(%rbp), %eax
	andl	$7, %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_20
	.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	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.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_code_rate ; -- Begin function cxd2880_tnrdmd_dvbt2_mon_code_rate
	.p2align	2
_cxd2880_tnrdmd_dvbt2_mon_code_rate:    ; @cxd2880_tnrdmd_dvbt2_mon_code_rate
	.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
	str	wzr, [sp, #8]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x2
	cbz	x2, LBB0_9
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_SUB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.3:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_TNRDMD_STATE_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.4:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _CXD2880_DTV_SYS_DVBT2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXD2880_DTV_SYS_DVBT2@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x22, x1
	mov	x0, x19
	bl	_slvt_freeze_reg
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	x0, [x19, #24]
	ldr	x8, [x0]
Lloh9:
	adrp	x23, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh10:
	ldr	x23, [x23, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #11
	blr	x8
	cbnz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #8
	mov	w2, #134
	mov	w4, #1
	blr	x8
	cbz	w0, LBB0_12
LBB0_8:
	mov	x21, x0
	mov	x0, x19
	bl	_slvt_unfreeze_reg
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	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_12:
	ldrb	w8, [sp, #8]
	tbnz	w8, #0, LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_slvt_unfreeze_reg
Lloh13:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_10
LBB0_14:
Lloh15:
	adrp	x8, _CXD2880_DVBT2_PLP_COMMON@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CXD2880_DVBT2_PLP_COMMON@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x8]
	ldr	x0, [x19, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #12
	cmp	w9, w22
	b.ne	LBB0_18
; %bb.15:
	mov	w2, #182
	mov	w4, #1
	blr	x8
	cbnz	w0, LBB0_8
; %bb.16:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_13
; %bb.17:
	ldr	x0, [x19, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	w2, #176
	b	LBB0_19
LBB0_18:
	mov	w2, #157
LBB0_19:
	mov	w4, #1
	blr	x8
	cbnz	w0, LBB0_8
; %bb.20:
	mov	x0, x19
	bl	_slvt_unfreeze_reg
	mov	w21, #0
	ldr	w8, [sp, #12]
	and	w8, w8, #0x7
	str	w8, [x20]
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.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	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_CXD2880_DVBT2_PLP_COMMON,4,2   ; @CXD2880_DVBT2_PLP_COMMON
.subsections_via_symbols
