	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qam256auto
_qam256auto:                            ## @qam256auto
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	_DRX_NOT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	$129, %r13d
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ctrl_lock_status
	testl	%eax, %eax
	jne	LBB0_2
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$130, %r13
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpq	$129, %r13
	jne	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	movl	$129, %r13d
	movq	_DRXJ_DEMOD_LOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r15, %rdi
	callq	_ctrl_get_qam_sig_quality
	testl	%eax, %eax
	jne	LBB0_2
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$26801, (%rax)                  ## imm = 0x68B1
	jl	LBB0_14
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	_DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME@GOTPCREL(%rip), %rax
	addq	(%rax), %r14
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	$130, %r13d
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	(%rbx), %eax
	movl	$130, %r13d
	movq	_DRXJ_DEMOD_LOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	_DRX_MIRROR_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	subq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_DRXJ_QAM_FEC_LOCK_WAITTIME@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_DRX_MIRROR_YES@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r15, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_qam_flip_spec
	testl	%eax, %eax
	jne	LBB0_2
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_DRXJ_QAM_MAX_WAITTIME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %r14
	shrq	$63, %r14
	addq	%rax, %r14
	sarq	%r14
	negq	%r14
	movl	$128, %r13d
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	$10, %edi
	callq	_msleep
	movl	(%rbx), %eax
	xorl	%r12d, %r12d
	movq	_DRX_LOCKED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jae	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_DRX_NEVER_LOCK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_jiffies_to_msecs
	subq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movq	_DRXJ_QAM_MAX_WAITTIME@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	addq	%r14, %rcx
	cmpq	%rcx, %rax
	jl	LBB0_1
	jmp	LBB0_17
LBB0_2:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_pr_err
LBB0_17:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME,8,3 ## @DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME
	.comm	_DRX_NOT_LOCKED,4,2             ## @DRX_NOT_LOCKED
	.comm	_jiffies,4,2                    ## @jiffies
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error %d\n"

	.comm	_DRXJ_DEMOD_LOCK,4,2            ## @DRXJ_DEMOD_LOCK
	.comm	_DRX_MIRROR_AUTO,4,2            ## @DRX_MIRROR_AUTO
	.comm	_DRXJ_QAM_FEC_LOCK_WAITTIME,8,3 ## @DRXJ_QAM_FEC_LOCK_WAITTIME
	.comm	_DRX_MIRROR_YES,4,2             ## @DRX_MIRROR_YES
	.comm	_DRXJ_QAM_MAX_WAITTIME,8,3      ## @DRXJ_QAM_MAX_WAITTIME
	.comm	_DRX_LOCKED,4,2                 ## @DRX_LOCKED
	.comm	_DRX_NEVER_LOCK,4,2             ## @DRX_NEVER_LOCK
	.no_dead_strip	_qam256auto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qam256auto
_qam256auto:                            ; @qam256auto
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x19, x3
	str	x1, [sp, #24]                   ; 8-byte Folded Spill
	mov	x21, x0
	ldr	x9, [x0, #8]
	ldr	x8, [x0]
	ldr	x8, [x8]
	stp	x9, x8, [sp]                    ; 16-byte Folded Spill
Lloh0:
	adrp	x9, _DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME@GOTPAGEOFF]
Lloh2:
	adrp	x8, _DRX_NOT_LOCKED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DRX_NOT_LOCKED@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x9]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x3]
Lloh6:
	adrp	x28, _jiffies@GOTPAGE
Lloh7:
	ldr	x28, [x28, _jiffies@GOTPAGEOFF]
	ldr	w0, [x28]
	bl	_jiffies_to_msecs
	mov	x23, x0
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
Lloh8:
	adrp	x27, _DRXJ_QAM_MAX_WAITTIME@GOTPAGE
Lloh9:
	ldr	x27, [x27, _DRXJ_QAM_MAX_WAITTIME@GOTPAGEOFF]
	mov	w25, #129
Lloh10:
	adrp	x22, _DRX_LOCKED@GOTPAGE
Lloh11:
	ldr	x22, [x22, _DRX_LOCKED@GOTPAGEOFF]
Lloh12:
	adrp	x20, _DRX_NEVER_LOCK@GOTPAGE
Lloh13:
	ldr	x20, [x20, _DRX_NEVER_LOCK@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x19
	bl	_ctrl_lock_status
	cbnz	w0, LBB0_18
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x25, #130
	b.eq	LBB0_8
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	cmp	x25, #129
	b.ne	LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
Lloh14:
	adrp	x9, _DRXJ_DEMOD_LOCK@GOTPAGE
Lloh15:
	ldr	x9, [x9, _DRXJ_DEMOD_LOCK@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x21
	bl	_ctrl_get_qam_sig_quality
	cbnz	w0, LBB0_18
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	ldr	x8, [x8]
	ldr	w8, [x8]
	mov	w9, #26801
	cmp	w8, w9
	b.lt	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
Lloh17:
	adrp	x8, _DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME@GOTPAGE
Lloh18:
	ldr	x8, [x8, _DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x26, x8, x26
	ldr	w0, [x28]
	bl	_jiffies_to_msecs
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	b	LBB0_13
LBB0_8:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _DRXJ_DEMOD_LOCK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _DRXJ_DEMOD_LOCK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _DRX_MIRROR_AUTO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _DRX_MIRROR_AUTO@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x28]
	bl	_jiffies_to_msecs
Lloh26:
	adrp	x8, _DRXJ_QAM_FEC_LOCK_WAITTIME@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DRXJ_QAM_FEC_LOCK_WAITTIME@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	sub	x9, x0, x9
	cmp	x9, x8
	b.le	LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_1 Depth=1
Lloh29:
	adrp	x8, _DRX_MIRROR_YES@GOTPAGE
Lloh30:
	ldr	x8, [x8, _DRX_MIRROR_YES@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	mov	x0, x21
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	bl	_qam_flip_spec
	cbnz	w0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x28]
	bl	_jiffies_to_msecs
	mov	x23, x0
	ldr	x8, [x27]
	cmp	x8, #0
	cinc	x8, x8, lt
	neg	x26, x8, asr #1
	mov	w25, #128
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w25, #130
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w25, #129
LBB0_15:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	w0, #10
	bl	_msleep
	ldr	w8, [x19]
	ldr	w9, [x22]
	ldr	w10, [x20]
	cmp	w8, w9
	ccmp	w8, w10, #4, lo
	b.eq	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_1 Depth=1
	ldr	w0, [x28]
	bl	_jiffies_to_msecs
	sub	x8, x0, x23
	ldr	x9, [x27]
	add	x9, x9, x26
	cmp	x8, x9
	b.lt	LBB0_1
LBB0_17:
	mov	w24, #0
	b	LBB0_19
LBB0_18:
	mov	x24, x0
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x24
	bl	_pr_err
LBB0_19:
	mov	x0, x24
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME,8,3 ; @DRXJ_QAM_DEMOD_LOCK_EXT_WAITTIME
	.comm	_DRX_NOT_LOCKED,4,2             ; @DRX_NOT_LOCKED
	.comm	_jiffies,4,2                    ; @jiffies
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error %d\n"

	.comm	_DRXJ_DEMOD_LOCK,4,2            ; @DRXJ_DEMOD_LOCK
	.comm	_DRX_MIRROR_AUTO,4,2            ; @DRX_MIRROR_AUTO
	.comm	_DRXJ_QAM_FEC_LOCK_WAITTIME,8,3 ; @DRXJ_QAM_FEC_LOCK_WAITTIME
	.comm	_DRX_MIRROR_YES,4,2             ; @DRX_MIRROR_YES
	.comm	_DRXJ_QAM_MAX_WAITTIME,8,3      ; @DRXJ_QAM_MAX_WAITTIME
	.comm	_DRX_LOCKED,4,2                 ; @DRX_LOCKED
	.comm	_DRX_NEVER_LOCK,4,2             ; @DRX_NEVER_LOCK
	.no_dead_strip	_qam256auto
.subsections_via_symbols
