	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_dvbs2_get_dmd_status
_stb0899_dvbs2_get_dmd_status:          ## @stb0899_dvbs2_get_dmd_status
	.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	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	_FE_DEBUG@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	_STB0899_S2DEMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMD_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STB0899_READ_S2REG
	movl	%eax, %r13d
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	$1, %edx
	leaq	L_.str(%rip), %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_IF_AGC_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r13d, %esi
	callq	_STB0899_GETFIELD
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	$1, %edx
	leaq	L_.str.1(%rip), %rcx
	xorl	%eax, %eax
	callq	_dprintk
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	_STB0899_S2DEMOD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_DMD_STAT2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_STB0899_READ_S2REG
	movl	%eax, %ebx
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	$1, %edx
	leaq	L_.str.2(%rip), %rcx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_dprintk
	movq	_UWP_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_STB0899_GETFIELD
	movl	%eax, %r13d
	movq	_CSM_LOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_STB0899_GETFIELD
	testl	%r13d, %r13d
	sete	%cl
	testl	%eax, %eax
	sete	%bl
	orb	%cl, %bl
	movl	$10, %edi
	callq	_msleep
	cmpb	$1, %bl
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	10(%r14), %eax
	cmpl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%eax, %r14d
	jle	LBB0_1
LBB0_5:
	testb	%bl, %bl
	je	LBB0_7
## %bb.6:
	movq	_DVBS2_DEMOD_NOLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movl	(%r15), %edi
	movl	(%r12), %esi
	leaq	L_.str.3(%rip), %rcx
	movl	$1, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movq	_DVBS2_DEMOD_LOCK@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_S2DEMOD,4,2            ## @STB0899_S2DEMOD
	.comm	_DMD_STATUS,4,2                 ## @DMD_STATUS
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMD_STATUS=[0x%02x]"

	.comm	_IF_AGC_LOCK,4,2                ## @IF_AGC_LOCK
L_.str.1:                               ## @.str.1
	.asciz	"------------->IF AGC LOCKED !"

	.comm	_DMD_STAT2,4,2                  ## @DMD_STAT2
L_.str.2:                               ## @.str.2
	.asciz	"----------->DMD STAT2=[0x%02x]"

	.comm	_UWP_LOCK,4,2                   ## @UWP_LOCK
	.comm	_CSM_LOCK,4,2                   ## @CSM_LOCK
L_.str.3:                               ## @.str.3
	.asciz	"----------------> DVB-S2 LOCK !"

	.comm	_DVBS2_DEMOD_LOCK,4,2           ## @DVBS2_DEMOD_LOCK
	.comm	_DVBS2_DEMOD_NOLOCK,4,2         ## @DVBS2_DEMOD_NOLOCK
	.no_dead_strip	_stb0899_dvbs2_get_dmd_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_dvbs2_get_dmd_status
_stb0899_dvbs2_get_dmd_status:          ; @stb0899_dvbs2_get_dmd_status
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x1
	mov	x19, x0
	mov	w27, #0
Lloh0:
	adrp	x28, _STB0899_S2DEMOD@GOTPAGE
Lloh1:
	ldr	x28, [x28, _STB0899_S2DEMOD@GOTPAGEOFF]
Lloh2:
	adrp	x26, _FE_DEBUG@GOTPAGE
Lloh3:
	ldr	x26, [x26, _FE_DEBUG@GOTPAGEOFF]
Lloh4:
	adrp	x22, l_.str.2@PAGE
Lloh5:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh6:
	adrp	x23, _UWP_LOCK@GOTPAGE
Lloh7:
	ldr	x23, [x23, _UWP_LOCK@GOTPAGEOFF]
Lloh8:
	adrp	x21, _CSM_LOCK@GOTPAGE
Lloh9:
	ldr	x21, [x21, _CSM_LOCK@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x28]
Lloh10:
	adrp	x8, _DMD_STAT2@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMD_STAT2@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_STB0899_READ_S2REG
	mov	x24, x0
	ldr	w0, [x19]
	ldr	w1, [x26]
	str	x24, [sp]
	mov	w2, #1
	mov	x3, x22
	bl	_dprintk
	ldr	w0, [x23]
	mov	x1, x24
	bl	_STB0899_GETFIELD
	mov	x25, x0
	ldr	w0, [x21]
	mov	x1, x24
	bl	_STB0899_GETFIELD
	cmp	w25, #0
	ccmp	w0, #0, #4, ne
	cset	w24, eq
	mov	w0, #10
	bl	_msleep
	cmp	w24, #1
	ccmp	w27, w20, #0, eq
	add	w27, w27, #10
	b.gt	LBB0_4
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x28]
Lloh13:
	adrp	x8, _DMD_STATUS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMD_STATUS@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_STB0899_READ_S2REG
	mov	x24, x0
	ldr	w0, [x19]
	ldr	w1, [x26]
	str	x24, [sp]
	mov	w2, #1
Lloh16:
	adrp	x3, l_.str@PAGE
Lloh17:
	add	x3, x3, l_.str@PAGEOFF
	bl	_dprintk
Lloh18:
	adrp	x8, _IF_AGC_LOCK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _IF_AGC_LOCK@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_STB0899_GETFIELD
	cbz	w0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x19]
	ldr	w1, [x26]
	mov	w2, #1
Lloh21:
	adrp	x3, l_.str.1@PAGE
Lloh22:
	add	x3, x3, l_.str.1@PAGEOFF
	bl	_dprintk
	b	LBB0_1
LBB0_4:
	tbz	w24, #0, LBB0_6
; %bb.5:
Lloh23:
	adrp	x8, _DVBS2_DEMOD_NOLOCK@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DVBS2_DEMOD_NOLOCK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
	ldr	w0, [x19]
	ldr	w1, [x26]
Lloh25:
	adrp	x3, l_.str.3@PAGE
Lloh26:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh27:
	adrp	x8, _DVBS2_DEMOD_LOCK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DVBS2_DEMOD_LOCK@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_S2DEMOD,4,2            ; @STB0899_S2DEMOD
	.comm	_DMD_STATUS,4,2                 ; @DMD_STATUS
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMD_STATUS=[0x%02x]"

	.comm	_IF_AGC_LOCK,4,2                ; @IF_AGC_LOCK
l_.str.1:                               ; @.str.1
	.asciz	"------------->IF AGC LOCKED !"

	.comm	_DMD_STAT2,4,2                  ; @DMD_STAT2
l_.str.2:                               ; @.str.2
	.asciz	"----------->DMD STAT2=[0x%02x]"

	.comm	_UWP_LOCK,4,2                   ; @UWP_LOCK
	.comm	_CSM_LOCK,4,2                   ; @CSM_LOCK
l_.str.3:                               ; @.str.3
	.asciz	"----------------> DVB-S2 LOCK !"

	.comm	_DVBS2_DEMOD_LOCK,4,2           ; @DVBS2_DEMOD_LOCK
	.comm	_DVBS2_DEMOD_NOLOCK,4,2         ; @DVBS2_DEMOD_NOLOCK
	.no_dead_strip	_stb0899_dvbs2_get_dmd_status
.subsections_via_symbols
