	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_get_demod_lock         ## -- Begin function stv0900_get_demod_lock
	.p2align	4, 0x90
_stv0900_get_demod_lock:                ## @stv0900_get_demod_lock
	.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	%rdx, %rdx
	jle	LBB0_9
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %r12
	movl	$10, %r13d
	leaq	L_.str(%rip), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_HEADER_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0900_get_bits
	movq	%rax, %rbx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_dprintk
	andl	$-2, %ebx
	cmpl	$130, %ebx
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_LOCK_DEFINITIF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv0900_get_bits
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_5
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	$10, %edi
	callq	_msleep
	xorl	%ebx, %ebx
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r14, %r13
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$10, %r13
	testq	%rbx, %rbx
	je	LBB0_2
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
LBB0_10:
	xorl	%eax, %eax
	callq	_dprintk
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADER_MODE,4,2                ## @HEADER_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Demod State = %d\n"

	.comm	_LOCK_DEFINITIF,4,2             ## @LOCK_DEFINITIF
L_.str.1:                               ## @.str.1
	.asciz	"DEMOD LOCK OK\n"

L_.str.2:                               ## @.str.2
	.asciz	"DEMOD LOCK FAIL\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stv0900_get_demod_lock         ; -- Begin function stv0900_get_demod_lock
	.p2align	2
_stv0900_get_demod_lock:                ; @stv0900_get_demod_lock
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	cmp	x2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	mov	w23, #10
Lloh0:
	adrp	x24, _HEADER_MODE@GOTPAGE
Lloh1:
	ldr	x24, [x24, _HEADER_MODE@GOTPAGEOFF]
Lloh2:
	adrp	x25, _LOCK_DEFINITIF@GOTPAGE
Lloh3:
	ldr	x25, [x25, _LOCK_DEFINITIF@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x24]
	mov	x0, x20
	bl	_stv0900_get_bits
	mov	x22, x0
	str	x0, [sp]
	mov	x0, x21
	bl	_dprintk
	and	w8, w22, #0xfffffffe
	cmp	w8, #130
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [x25]
	mov	x0, x20
	bl	_stv0900_get_bits
	mov	x22, x0
	cbnz	x0, LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #10
	bl	_msleep
	mov	x22, #0
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	x23, x19
	b.ge	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x23, x23, #10
	cbz	x22, LBB0_2
LBB0_7:
	cbz	x22, LBB0_9
; %bb.8:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_9:
	mov	x22, #0
Lloh8:
	adrp	x0, l_.str.2@PAGE
Lloh9:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_10:
	bl	_dprintk
	mov	x0, x22
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADER_MODE,4,2                ; @HEADER_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Demod State = %d\n"

	.comm	_LOCK_DEFINITIF,4,2             ; @LOCK_DEFINITIF
l_.str.1:                               ; @.str.1
	.asciz	"DEMOD LOCK OK\n"

l_.str.2:                               ; @.str.2
	.asciz	"DEMOD LOCK FAIL\n"

.subsections_via_symbols
