	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_get_dmdlock
_stv090x_get_dmdlock:                   ## @stv090x_get_dmdlock
	.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
	testq	%rsi, %rsi
	jle	LBB0_1
## %bb.2:
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	$10, %r15d
	movq	_HEADER_MODE_FIELD@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_DMDSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movl	(%r12), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	callq	_STV090x_READ_DEMOD
	movq	_LOCK_DEFINITIF_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD_Px
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %rbx
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_dprintk
	cmpq	%r14, %r15
	jl	LBB0_9
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	leaq	L_.str(%rip), %rdx
	callq	_dprintk
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$10, %edi
	callq	_msleep
	xorl	%ebx, %ebx
	cmpq	%r14, %r15
	jge	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$10, %r15
	testq	%rbx, %rbx
	je	LBB0_3
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMDSTATE,4,2                   ## @DMDSTATE
	.comm	_HEADER_MODE_FIELD,4,2          ## @HEADER_MODE_FIELD
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Demodulator searching .."

	.comm	_DSTATUS,4,2                    ## @DSTATUS
	.comm	_LOCK_DEFINITIF_FIELD,4,2       ## @LOCK_DEFINITIF_FIELD
L_.str.1:                               ## @.str.1
	.asciz	"Demodulator acquired LOCK"

	.no_dead_strip	_stv090x_get_dmdlock
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_get_dmdlock
_stv090x_get_dmdlock:                   ; @stv090x_get_dmdlock
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	cmp	x1, #1
	b.lt	LBB0_8
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	w24, #10
Lloh0:
	adrp	x25, _DMDSTATE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _DMDSTATE@GOTPAGEOFF]
Lloh2:
	adrp	x26, _HEADER_MODE_FIELD@GOTPAGE
Lloh3:
	ldr	x26, [x26, _HEADER_MODE_FIELD@GOTPAGEOFF]
Lloh4:
	adrp	x27, _DSTATUS@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DSTATUS@GOTPAGEOFF]
Lloh6:
	adrp	x28, _LOCK_DEFINITIF_FIELD@GOTPAGE
Lloh7:
	ldr	x28, [x28, _LOCK_DEFINITIF_FIELD@GOTPAGEOFF]
Lloh8:
	adrp	x21, _FE_DEBUG@GOTPAGE
Lloh9:
	ldr	x21, [x21, _FE_DEBUG@GOTPAGEOFF]
Lloh10:
	adrp	x22, l_.str@PAGE
Lloh11:
	add	x22, x22, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x26]
	bl	_STV090x_GETFIELD_Px
	and	x8, x0, #0xfffffffe
	cmp	x8, #2
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x27]
	mov	x0, x20
	bl	_STV090x_READ_DEMOD
	ldr	w1, [x28]
	bl	_STV090x_GETFIELD_Px
	cbz	x0, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x23, x0
	ldr	w0, [x21]
	mov	w1, #1
Lloh12:
	adrp	x2, l_.str.1@PAGE
Lloh13:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_dprintk
	cmp	x24, x19
	b.lt	LBB0_7
	b	LBB0_9
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x21]
	mov	w1, #1
	mov	x2, x22
	bl	_dprintk
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_msleep
	mov	x23, #0
	cmp	x24, x19
	b.ge	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, x24, #10
	cbz	x23, LBB0_2
	b	LBB0_9
LBB0_8:
	mov	x23, #0
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DMDSTATE,4,2                   ; @DMDSTATE
	.comm	_HEADER_MODE_FIELD,4,2          ; @HEADER_MODE_FIELD
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Demodulator searching .."

	.comm	_DSTATUS,4,2                    ; @DSTATUS
	.comm	_LOCK_DEFINITIF_FIELD,4,2       ; @LOCK_DEFINITIF_FIELD
l_.str.1:                               ; @.str.1
	.asciz	"Demodulator acquired LOCK"

	.no_dead_strip	_stv090x_get_dmdlock
.subsections_via_symbols
