	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_parameters
_set_parameters:                        ## @set_parameters
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsp, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MXL_HYDRA_OEM_MAX_CMD_BUFF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movl	(%rbx), %eax
	leal	-2150001(%rax), %ecx
	cmpl	$-1200002, %ecx                 ## imm = 0xFFEDB07E
	jbe	LBB0_1
## %bb.2:
	movl	4(%rbx), %ecx
	leal	-45000001(%rcx), %edx
	cmpl	$-44000002, %edx                ## imm = 0xFD609CFE
	ja	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r12, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.14:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	16(%rbx), %r15
	movl	8(%rbx), %edx
	cmpl	$128, %edx
	je	LBB0_7
## %bb.4:
	cmpl	$129, %edx
	je	LBB0_8
## %bb.5:
	cmpl	$130, %edx
	jne	LBB0_1
## %bb.6:
	movq	_MXL_HYDRA_DSS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movq	_MXL_HYDRA_ROLLOFF_AUTO@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -64(%rbp)
	movl	$10, %edx
	jmp	LBB0_9
LBB0_7:
	movq	_MXL_HYDRA_DVBS2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_MXL_HYDRA_ROLLOFF_AUTO@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)
	movq	_MXL_HYDRA_MOD_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	_MXL_HYDRA_PILOTS_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)
	movl	12(%rbx), %esi
	movq	%r15, %rdi
	callq	_cfg_scrambler
	movl	(%rbx), %eax
	movl	4(%rbx), %ecx
	movl	$10, %edx
	jmp	LBB0_9
LBB0_8:
	movl	%ecx, %edx
	imulq	$1125899907, %rdx, %rsi         ## imm = 0x431BDE83
	shrq	$50, %rsi
	cmpl	$10, %esi
	movl	$10, %edx
	cmovll	%esi, %edx
	movq	_MXL_HYDRA_DVBS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -56(%rbp)
	movq	_MXL_HYDRA_ROLLOFF_0_35@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, -64(%rbp)
	movq	_MXL_HYDRA_MOD_QPSK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -72(%rbp)
	movq	_MXL_HYDRA_PILOTS_OFF@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	%esi, -76(%rbp)
LBB0_9:
	movl	8(%r15), %esi
	movl	%esi, -80(%rbp)
	movl	16(%r15), %esi
	movl	%esi, -84(%rbp)
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	movl	%eax, -104(%rbp)
	movl	%ecx, -100(%rbp)
	movl	%edx, -96(%rbp)
	movq	_MXL_HYDRA_SPECTRUM_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_MXL_HYDRA_FEC_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -92(%rbp)
	movq	(%r15), %rdi
	callq	_mutex_lock
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %rbx
	movl	$200, %edi
	callq	_msecs_to_jiffies
	addq	%rax, %rbx
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	(%r15), %rax
	movq	8(%rax), %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$10000, %edi                    ## imm = 0x2710
	movl	$11000, %esi                    ## imm = 0x2AF8
	callq	_usleep_range
	jmp	LBB0_11
LBB0_12:
	movq	(%r13), %rbx
	movl	$100, %edi
	callq	_msecs_to_jiffies
	addq	%rbx, %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx)
	movl	8(%r15), %eax
	movl	%eax, 12(%r15)
	movq	_MXL_HYDRA_DEMOD_SET_PARAM_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MXL_CMD_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-104(%rbp), %rcx
	movl	$56, %edx
	movq	%r14, %r8
	callq	_BUILD_HYDRA_CMD
	movq	_MXL_HYDRA_CMD_HEADER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	addl	$56, %esi
	movq	%r15, %rdi
	movq	%r14, %rdx
	callq	_send_command
	movl	%eax, %ebx
	movq	(%r15), %rdi
	callq	_mutex_unlock
	jmp	LBB0_13
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MXL_HYDRA_OEM_MAX_CMD_BUFF_LEN,4,2 ## @MXL_HYDRA_OEM_MAX_CMD_BUFF_LEN
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MXL_HYDRA_DSS,4,2              ## @MXL_HYDRA_DSS
	.comm	_MXL_HYDRA_ROLLOFF_AUTO,8,3     ## @MXL_HYDRA_ROLLOFF_AUTO
	.comm	_MXL_HYDRA_DVBS,4,2             ## @MXL_HYDRA_DVBS
	.comm	_MXL_HYDRA_ROLLOFF_0_35,8,3     ## @MXL_HYDRA_ROLLOFF_0_35
	.comm	_MXL_HYDRA_MOD_QPSK,4,2         ## @MXL_HYDRA_MOD_QPSK
	.comm	_MXL_HYDRA_PILOTS_OFF,4,2       ## @MXL_HYDRA_PILOTS_OFF
	.comm	_MXL_HYDRA_DVBS2,4,2            ## @MXL_HYDRA_DVBS2
	.comm	_MXL_HYDRA_MOD_AUTO,4,2         ## @MXL_HYDRA_MOD_AUTO
	.comm	_MXL_HYDRA_PILOTS_AUTO,4,2      ## @MXL_HYDRA_PILOTS_AUTO
	.comm	_MXL_HYDRA_SPECTRUM_AUTO,4,2    ## @MXL_HYDRA_SPECTRUM_AUTO
	.comm	_MXL_HYDRA_FEC_AUTO,4,2         ## @MXL_HYDRA_FEC_AUTO
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_MXL_HYDRA_DEMOD_SET_PARAM_CMD,4,2 ## @MXL_HYDRA_DEMOD_SET_PARAM_CMD
	.comm	_MXL_CMD_WRITE,4,2              ## @MXL_CMD_WRITE
	.comm	_MXL_HYDRA_CMD_HEADER_SIZE,4,2  ## @MXL_HYDRA_CMD_HEADER_SIZE
	.no_dead_strip	_set_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_parameters
_set_parameters:                        ; @set_parameters
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #64
	mov	x21, x0
	mov	x22, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x19, [x0, #16]
Lloh3:
	adrp	x8, _MXL_HYDRA_OEM_MAX_CMD_BUFF_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MXL_HYDRA_OEM_MAX_CMD_BUFF_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	ldr	w8, [x0]
	sub	w9, w8, #524, lsl #12           ; =2146304
	sub	w9, w9, #3697
	mov	w10, #45182
	movk	w10, #65517, lsl #16
	cmp	w9, w10
	b.ls	LBB0_2
; %bb.1:
	ldr	w9, [x21, #4]
	mov	w10, #23231
	movk	w10, #64849, lsl #16
	mov	w11, #40190
	movk	w11, #64864, lsl #16
	add	w10, w9, w10
	cmp	w10, w11
	b.hi	LBB0_5
LBB0_2:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_3:
	mov	sp, x22
	ldur	x8, [x29, #-56]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.4:
	mov	x0, x20
	sub	sp, x29, #48
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w10, [x21, #8]
	cmp	w10, #128
	b.eq	LBB0_9
; %bb.6:
	cmp	w10, #129
	b.eq	LBB0_10
; %bb.7:
	cmp	w10, #130
	b.ne	LBB0_2
; %bb.8:
Lloh14:
	adrp	x10, _MXL_HYDRA_DSS@GOTPAGE
Lloh15:
	ldr	x10, [x10, _MXL_HYDRA_DSS@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	stur	w10, [x29, #-64]
Lloh17:
	adrp	x10, _MXL_HYDRA_ROLLOFF_AUTO@GOTPAGE
Lloh18:
	ldr	x10, [x10, _MXL_HYDRA_ROLLOFF_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	stur	x10, [x29, #-72]
	mov	w10, #10
	b	LBB0_11
LBB0_9:
Lloh20:
	adrp	x8, _MXL_HYDRA_DVBS2@GOTPAGE
Lloh21:
	ldr	x8, [x8, _MXL_HYDRA_DVBS2@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
Lloh23:
	adrp	x9, _MXL_HYDRA_ROLLOFF_AUTO@GOTPAGE
Lloh24:
	ldr	x9, [x9, _MXL_HYDRA_ROLLOFF_AUTO@GOTPAGEOFF]
	stur	w8, [x29, #-64]
Lloh25:
	ldr	x8, [x9]
	stur	x8, [x29, #-72]
Lloh26:
	adrp	x8, _MXL_HYDRA_MOD_AUTO@GOTPAGE
Lloh27:
	ldr	x8, [x8, _MXL_HYDRA_MOD_AUTO@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
Lloh29:
	adrp	x9, _MXL_HYDRA_PILOTS_AUTO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MXL_HYDRA_PILOTS_AUTO@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	stp	w9, w8, [x29, #-84]
	ldr	w1, [x21, #12]
	mov	x0, x19
	bl	_cfg_scrambler
	ldp	w8, w9, [x21]
	mov	w10, #10
	b	LBB0_11
LBB0_10:
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	umull	x10, w9, w10
	lsr	x10, x10, #50
	mov	w11, #10
	cmp	w10, #10
	csel	w10, w10, w11, lt
Lloh32:
	adrp	x11, _MXL_HYDRA_DVBS@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MXL_HYDRA_DVBS@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	stur	w11, [x29, #-64]
Lloh35:
	adrp	x11, _MXL_HYDRA_ROLLOFF_0_35@GOTPAGE
Lloh36:
	ldr	x11, [x11, _MXL_HYDRA_ROLLOFF_0_35@GOTPAGEOFF]
Lloh37:
	ldr	x11, [x11]
	stur	x11, [x29, #-72]
Lloh38:
	adrp	x11, _MXL_HYDRA_MOD_QPSK@GOTPAGE
Lloh39:
	ldr	x11, [x11, _MXL_HYDRA_MOD_QPSK@GOTPAGEOFF]
Lloh40:
	ldr	w11, [x11]
Lloh41:
	adrp	x12, _MXL_HYDRA_PILOTS_OFF@GOTPAGE
Lloh42:
	ldr	x12, [x12, _MXL_HYDRA_PILOTS_OFF@GOTPAGEOFF]
Lloh43:
	ldr	w12, [x12]
	stp	w12, w11, [x29, #-84]
LBB0_11:
	ldr	w11, [x19, #8]
	stur	w11, [x29, #-88]
	mov	w11, #1000
	mul	w8, w8, w11
	ldr	w11, [x19, #16]
	stp	w8, w9, [x29, #-112]
Lloh44:
	adrp	x8, _MXL_HYDRA_SPECTRUM_AUTO@GOTPAGE
Lloh45:
	ldr	x8, [x8, _MXL_HYDRA_SPECTRUM_AUTO@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	stp	w8, w11, [x29, #-96]
Lloh47:
	adrp	x8, _MXL_HYDRA_FEC_AUTO@GOTPAGE
Lloh48:
	ldr	x8, [x8, _MXL_HYDRA_FEC_AUTO@GOTPAGEOFF]
Lloh49:
	ldr	w8, [x8]
	stp	w10, w8, [x29, #-104]
	ldr	x0, [x19]
	bl	_mutex_lock
Lloh50:
	adrp	x21, _jiffies@GOTPAGE
Lloh51:
	ldr	x21, [x21, _jiffies@GOTPAGEOFF]
	ldr	x23, [x21]
	mov	w0, #200
	bl	_msecs_to_jiffies
	add	x0, x0, x23
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	bl	_time_after
	cbz	x0, LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x21]
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	bl	_time_before
	cbz	x0, LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w0, #10000
	mov	w1, #11000
	bl	_usleep_range
	b	LBB0_12
LBB0_14:
	ldr	x21, [x21]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x8, x0, x21
	ldr	x9, [x19]
	str	x8, [x9, #8]
	ldr	w8, [x19, #8]
	str	w8, [x19, #12]
Lloh52:
	adrp	x8, _MXL_HYDRA_DEMOD_SET_PARAM_CMD@GOTPAGE
Lloh53:
	ldr	x8, [x8, _MXL_HYDRA_DEMOD_SET_PARAM_CMD@GOTPAGEOFF]
Lloh54:
	ldr	w0, [x8]
Lloh55:
	adrp	x8, _MXL_CMD_WRITE@GOTPAGE
Lloh56:
	ldr	x8, [x8, _MXL_CMD_WRITE@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	sub	x3, x29, #112
	mov	w2, #56
	mov	x4, x20
	bl	_BUILD_HYDRA_CMD
Lloh58:
	adrp	x8, _MXL_HYDRA_CMD_HEADER_SIZE@GOTPAGE
Lloh59:
	ldr	x8, [x8, _MXL_HYDRA_CMD_HEADER_SIZE@GOTPAGEOFF]
Lloh60:
	ldr	w8, [x8]
	add	w1, w8, #56
	mov	x0, x19
	mov	x2, x20
	bl	_send_command
	mov	x20, x0
	ldr	x0, [x19]
	bl	_mutex_unlock
	b	LBB0_3
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_MXL_HYDRA_OEM_MAX_CMD_BUFF_LEN,4,2 ; @MXL_HYDRA_OEM_MAX_CMD_BUFF_LEN
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MXL_HYDRA_DSS,4,2              ; @MXL_HYDRA_DSS
	.comm	_MXL_HYDRA_ROLLOFF_AUTO,8,3     ; @MXL_HYDRA_ROLLOFF_AUTO
	.comm	_MXL_HYDRA_DVBS,4,2             ; @MXL_HYDRA_DVBS
	.comm	_MXL_HYDRA_ROLLOFF_0_35,8,3     ; @MXL_HYDRA_ROLLOFF_0_35
	.comm	_MXL_HYDRA_MOD_QPSK,4,2         ; @MXL_HYDRA_MOD_QPSK
	.comm	_MXL_HYDRA_PILOTS_OFF,4,2       ; @MXL_HYDRA_PILOTS_OFF
	.comm	_MXL_HYDRA_DVBS2,4,2            ; @MXL_HYDRA_DVBS2
	.comm	_MXL_HYDRA_MOD_AUTO,4,2         ; @MXL_HYDRA_MOD_AUTO
	.comm	_MXL_HYDRA_PILOTS_AUTO,4,2      ; @MXL_HYDRA_PILOTS_AUTO
	.comm	_MXL_HYDRA_SPECTRUM_AUTO,4,2    ; @MXL_HYDRA_SPECTRUM_AUTO
	.comm	_MXL_HYDRA_FEC_AUTO,4,2         ; @MXL_HYDRA_FEC_AUTO
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_MXL_HYDRA_DEMOD_SET_PARAM_CMD,4,2 ; @MXL_HYDRA_DEMOD_SET_PARAM_CMD
	.comm	_MXL_CMD_WRITE,4,2              ; @MXL_CMD_WRITE
	.comm	_MXL_HYDRA_CMD_HEADER_SIZE,4,2  ; @MXL_HYDRA_CMD_HEADER_SIZE
	.no_dead_strip	_set_parameters
.subsections_via_symbols
