	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt2_mon_profile ## -- Begin function cxd2880_tnrdmd_dvbt2_mon_profile
	.p2align	4, 0x90
_cxd2880_tnrdmd_dvbt2_mon_profile:      ## @cxd2880_tnrdmd_dvbt2_mon_profile
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.4:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_CXD2880_TNRDMD_STATE_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	movq	8(%rbx), %rax
	movq	_CXD2880_DTV_SYS_DVBT2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.6:
	movq	32(%rbx), %rdi
	movq	_CXD2880_IO_TGT_DMD@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	xorl	%edx, %edx
	movl	$11, %ecx
	callq	*(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.7:
	movq	32(%rbx), %rdi
	movl	(%r15), %esi
	leaq	-28(%rbp), %rcx
	movl	$34, %edx
	movl	$4, %r8d
	callq	*8(%rdi)
	testl	%eax, %eax
	jne	LBB0_16
## %bb.8:
	movl	-28(%rbp), %eax
	testb	$2, %al
	jne	LBB0_9
## %bb.13:
	movq	16(%rbx), %rax
	movq	_CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	movq	24(%rbx), %rdi
	movq	%r14, %rsi
	callq	_cxd2880_tnrdmd_dvbt2_mon_profile
	jmp	LBB0_16
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_16:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	testb	$1, %al
	jne	LBB0_10
## %bb.11:
	movq	_CXD2880_DVBT2_PROFILE_BASE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_14:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_10:
	movq	_CXD2880_DVBT2_PROFILE_LITE@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_16
	.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	_CXD2880_DVBT2_PROFILE_LITE,4,2 ## @CXD2880_DVBT2_PROFILE_LITE
	.comm	_CXD2880_DVBT2_PROFILE_BASE,4,2 ## @CXD2880_DVBT2_PROFILE_BASE
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ## @CXD2880_TNRDMD_DIVERMODE_MAIN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cxd2880_tnrdmd_dvbt2_mon_profile ; -- Begin function cxd2880_tnrdmd_dvbt2_mon_profile
	.p2align	2
_cxd2880_tnrdmd_dvbt2_mon_profile:      ; @cxd2880_tnrdmd_dvbt2_mon_profile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	x0, LBB0_9
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_9
; %bb.2:
	mov	x20, 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.3:
	ldr	x8, [x20, #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_9
; %bb.4:
	ldr	x0, [x20, #32]
	ldr	x8, [x0]
Lloh6:
	adrp	x21, _CXD2880_IO_TGT_DMD@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CXD2880_IO_TGT_DMD@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w2, #0
	mov	w3, #11
	blr	x8
	cbnz	w0, LBB0_11
; %bb.5:
	ldr	x0, [x20, #32]
	ldr	x8, [x0, #8]
	ldr	w1, [x21]
	add	x3, sp, #12
	mov	w2, #34
	mov	w4, #4
	blr	x8
	cbnz	w0, LBB0_11
; %bb.6:
	ldr	w8, [sp, #12]
	tbnz	w8, #1, LBB0_12
; %bb.7:
	ldr	x8, [x20, #16]
Lloh8:
	adrp	x9, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CXD2880_TNRDMD_DIVERMODE_MAIN@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.8:
	ldr	x0, [x20, #24]
	mov	x1, x19
	bl	_cxd2880_tnrdmd_dvbt2_mon_profile
	b	LBB0_11
LBB0_9:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_12:
	mov	w0, #0
Lloh13:
	adrp	x9, _CXD2880_DVBT2_PROFILE_BASE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CXD2880_DVBT2_PROFILE_BASE@GOTPAGEOFF]
Lloh15:
	adrp	x10, _CXD2880_DVBT2_PROFILE_LITE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _CXD2880_DVBT2_PROFILE_LITE@GOTPAGEOFF]
	tst	w8, #0x1
	csel	x8, x9, x10, eq
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_11
LBB0_13:
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.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	_CXD2880_DVBT2_PROFILE_LITE,4,2 ; @CXD2880_DVBT2_PROFILE_LITE
	.comm	_CXD2880_DVBT2_PROFILE_BASE,4,2 ; @CXD2880_DVBT2_PROFILE_BASE
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_CXD2880_TNRDMD_DIVERMODE_MAIN,8,3 ; @CXD2880_TNRDMD_DIVERMODE_MAIN
.subsections_via_symbols
