	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt_mon_mode_guard ## -- Begin function cxd2880_tnrdmd_dvbt_mon_mode_guard
	.p2align	4, 0x90
_cxd2880_tnrdmd_dvbt_mon_mode_guard:    ## @cxd2880_tnrdmd_dvbt_mon_mode_guard
	.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, -44(%rbp)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r15
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdx, %r14
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.4:
	movq	%rdi, %r12
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.5:
	movq	8(%r12), %rax
	movq	_CXD2880_DTV_SYS_DVBT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.6:
	movq	%r12, %rdi
	callq	_slvt_freeze_reg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.7:
	movq	%r12, %rdi
	callq	_is_tps_locked
	testl	%eax, %eax
	je	LBB0_10
## %bb.8:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_slvt_unfreeze_reg
	movq	16(%r12), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.9:
	movq	32(%r12), %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cxd2880_tnrdmd_dvbt_mon_mode_guard ## TAILCALL
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movq	24(%r12), %rdi
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%edx, %edx
	movl	$13, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_slvt_unfreeze_reg
	jmp	LBB0_14
LBB0_12:
	movq	24(%r12), %rdi
	movl	(%r13), %esi
	leaq	-44(%rbp), %rcx
	movl	$27, %edx
	movl	$1, %r8d
	callq	*8(%rdi)
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_slvt_unfreeze_reg
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.13:
	movl	-44(%rbp), %eax
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$3, %ecx
	movl	%ecx, (%r15)
	andl	$3, %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ## @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT,8,3       ## @CXD2880_DTV_SYS_DVBT
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_IO_TGT_DMD,4,2         ## @CXD2880_IO_TGT_DMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt_mon_mode_guard ; -- Begin function cxd2880_tnrdmd_dvbt_mon_mode_guard
	.p2align	2
_cxd2880_tnrdmd_dvbt_mon_mode_guard:    ; @cxd2880_tnrdmd_dvbt_mon_mode_guard
	.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, #12]
	cbz	x0, LBB0_9
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x19, x2
	cbz	x2, LBB0_9
; %bb.3:
	mov	x21, 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_9
; %bb.4:
	ldr	x8, [x21, #8]
Lloh3:
	adrp	x9, _CXD2880_DTV_SYS_DVBT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CXD2880_DTV_SYS_DVBT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x21
	bl	_slvt_freeze_reg
	mov	x22, x0
	cbnz	w0, LBB0_10
; %bb.6:
	mov	x0, x21
	bl	_is_tps_locked
	cbz	w0, LBB0_11
; %bb.7:
	mov	x22, x0
	mov	x0, x21
	bl	_slvt_unfreeze_reg
	ldr	x8, [x21, #16]
Lloh6:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.8:
	ldr	x0, [x21, #32]
	mov	x1, x20
	mov	x2, x19
	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
	b	_cxd2880_tnrdmd_dvbt_mon_mode_guard
LBB0_9:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_10:
	mov	x0, x22
	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_11:
	ldr	x0, [x21, #24]
	ldr	x8, [x0]
Lloh12:
	adrp	x23, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh13:
	ldr	x23, [x23, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w2, #0
	mov	w3, #13
	blr	x8
	cbz	w0, LBB0_13
; %bb.12:
	mov	x22, x0
	mov	x0, x21
	bl	_slvt_unfreeze_reg
	b	LBB0_10
LBB0_13:
	ldr	x0, [x21, #24]
	ldr	x8, [x0, #8]
	ldr	w1, [x23]
	add	x3, sp, #12
	mov	w2, #27
	mov	w4, #1
	blr	x8
	mov	x22, x0
	mov	x0, x21
	bl	_slvt_unfreeze_reg
	cbnz	w22, LBB0_10
; %bb.14:
	ldr	w8, [sp, #12]
	ubfx	w9, w8, #2, #2
	str	w9, [x20]
	and	w8, w8, #0x3
	str	w8, [x19]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CXD2880_TNRDMD_STATE_ACTIVE,8,3 ; @CXD2880_TNRDMD_STATE_ACTIVE
	.comm	_CXD2880_DTV_SYS_DVBT,8,3       ; @CXD2880_DTV_SYS_DVBT
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
	.comm	_CXD2880_IO_TGT_DMD,4,2         ; @CXD2880_IO_TGT_DMD
.subsections_via_symbols
