	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_frontend
_get_frontend:                          ## @get_frontend
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rbx
	movq	_MXL_DEMOD_CHAN_PARAMS_BUFF_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	movq	8(%rbx), %rdi
	callq	_mutex_lock
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_HYDRA_DEMOD_STATUS_LOCK
	movq	_HYDRA_DMD_STANDARD_ADDR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	16(%rbx), %edi
	callq	_HYDRA_DMD_STATUS_OFFSET
	addq	%rax, %r12
	movl	(%r13), %edx
	shll	$2, %edx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r15, %rcx
	callq	_read_register_block
	movq	_HYDRA_DMD_STATUS_CENTER_FREQ_IN_KHZ_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	movl	16(%rbx), %edi
	callq	_HYDRA_DMD_STATUS_OFFSET
	addq	%rax, %r12
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	$4, %edx
	callq	_read_register_block
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_HYDRA_DEMOD_STATUS_UNLOCK
	movq	8(%rbx), %rdi
	callq	_mutex_unlock
	movl	(%rbx), %edi
	imull	$1000, -52(%rbp), %edx          ## imm = 0x3E8
	movq	_DMD_STANDARD_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %ecx
	movq	_DMD_SYMBOL_RATE_ADDR@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movl	(%r15,%rax,4), %r8d
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	(%rbx), %rax
	movl	(%r15,%rax,4), %eax
	movl	%eax, (%r14)
	movl	-52(%rbp), %eax
	movl	%eax, 4(%r14)
	movq	_DMD_FEC_CODE_RATE_ADDR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r15,%rax,4), %edi
	callq	_conv_fec
	movl	%eax, 24(%r14)
	movl	8(%r14), %ecx
	xorl	%eax, %eax
	cmpl	$130, %ecx
	je	LBB0_21
## %bb.1:
	cmpl	$129, %ecx
	je	LBB0_8
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_20
## %bb.3:
	movq	_DMD_DVBS2_PILOT_ON_OFF_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r15,%rcx,4), %ecx
	cmpl	$135, %ecx
	je	LBB0_4
## %bb.5:
	cmpl	$134, %ecx
	jne	LBB0_8
## %bb.6:
	movq	_PILOT_ON@GOTPCREL(%rip), %rcx
	jmp	LBB0_7
LBB0_20:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_21
LBB0_4:
	movq	_PILOT_OFF@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %ecx
	movl	%ecx, 20(%r14)
LBB0_8:
	movq	_DMD_MODULATION_SCHEME_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r15,%rcx,4), %ecx
	cmpl	$136, %ecx
	je	LBB0_9
## %bb.10:
	cmpl	$137, %ecx
	jne	LBB0_13
## %bb.11:
	movq	_PSK_8@GOTPCREL(%rip), %rcx
	jmp	LBB0_12
LBB0_9:
	movq	_QPSK@GOTPCREL(%rip), %rcx
LBB0_12:
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r14)
LBB0_13:
	movq	_DMD_SPECTRUM_ROLL_OFF_ADDR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r15,%rcx,4), %ecx
	cmpl	$131, %ecx
	je	LBB0_18
## %bb.14:
	cmpl	$132, %ecx
	je	LBB0_19
## %bb.15:
	cmpl	$133, %ecx
	jne	LBB0_21
## %bb.16:
	movq	_ROLLOFF_20@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_18:
	movq	_ROLLOFF_35@GOTPCREL(%rip), %rcx
	jmp	LBB0_17
LBB0_19:
	movq	_ROLLOFF_25@GOTPCREL(%rip), %rcx
LBB0_17:
	movl	(%rcx), %ecx
	movl	%ecx, 12(%r14)
LBB0_21:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_23
## %bb.22:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_23:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MXL_DEMOD_CHAN_PARAMS_BUFF_SIZE,4,2 ## @MXL_DEMOD_CHAN_PARAMS_BUFF_SIZE
	.comm	_HYDRA_DMD_STANDARD_ADDR_OFFSET,8,3 ## @HYDRA_DMD_STANDARD_ADDR_OFFSET
	.comm	_HYDRA_DMD_STATUS_CENTER_FREQ_IN_KHZ_ADDR,8,3 ## @HYDRA_DMD_STATUS_CENTER_FREQ_IN_KHZ_ADDR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"freq=%u delsys=%u srate=%u\n"

	.comm	_DMD_STANDARD_ADDR,8,3          ## @DMD_STANDARD_ADDR
	.comm	_DMD_SYMBOL_RATE_ADDR,8,3       ## @DMD_SYMBOL_RATE_ADDR
	.comm	_DMD_FEC_CODE_RATE_ADDR,8,3     ## @DMD_FEC_CODE_RATE_ADDR
	.comm	_DMD_DVBS2_PILOT_ON_OFF_ADDR,8,3 ## @DMD_DVBS2_PILOT_ON_OFF_ADDR
	.comm	_PILOT_OFF,4,2                  ## @PILOT_OFF
	.comm	_PILOT_ON,4,2                   ## @PILOT_ON
	.comm	_DMD_MODULATION_SCHEME_ADDR,8,3 ## @DMD_MODULATION_SCHEME_ADDR
	.comm	_QPSK,4,2                       ## @QPSK
	.comm	_PSK_8,4,2                      ## @PSK_8
	.comm	_DMD_SPECTRUM_ROLL_OFF_ADDR,8,3 ## @DMD_SPECTRUM_ROLL_OFF_ADDR
	.comm	_ROLLOFF_20,4,2                 ## @ROLLOFF_20
	.comm	_ROLLOFF_35,4,2                 ## @ROLLOFF_35
	.comm	_ROLLOFF_25,4,2                 ## @ROLLOFF_25
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_get_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_frontend
_get_frontend:                          ; @get_frontend
	.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, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x21, [x0]
Lloh3:
	adrp	x22, _MXL_DEMOD_CHAN_PARAMS_BUFF_SIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _MXL_DEMOD_CHAN_PARAMS_BUFF_SIZE@GOTPAGEOFF]
	ldr	w8, [x22]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	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	x0, [x21, #8]
	bl	_mutex_lock
	ldr	w1, [x21, #16]
	mov	x0, x21
	bl	_HYDRA_DEMOD_STATUS_LOCK
Lloh7:
	adrp	x8, _HYDRA_DMD_STANDARD_ADDR_OFFSET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HYDRA_DMD_STANDARD_ADDR_OFFSET@GOTPAGEOFF]
Lloh9:
	ldr	x23, [x8]
	ldr	w0, [x21, #16]
	bl	_HYDRA_DMD_STATUS_OFFSET
	add	x1, x0, x23
	ldr	w8, [x22]
	lsl	w2, w8, #2
	mov	x0, x21
	mov	x3, x20
	bl	_read_register_block
Lloh10:
	adrp	x8, _HYDRA_DMD_STATUS_CENTER_FREQ_IN_KHZ_ADDR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HYDRA_DMD_STATUS_CENTER_FREQ_IN_KHZ_ADDR@GOTPAGEOFF]
Lloh12:
	ldr	x22, [x8]
	ldr	w0, [x21, #16]
	bl	_HYDRA_DMD_STATUS_OFFSET
	add	x1, x0, x22
	sub	x3, x29, #60
	mov	x0, x21
	mov	w2, #4
	bl	_read_register_block
	ldr	w1, [x21, #16]
	mov	x0, x21
	bl	_HYDRA_DEMOD_STATUS_UNLOCK
	ldr	x0, [x21, #8]
	bl	_mutex_unlock
	ldr	w0, [x21]
	ldur	w8, [x29, #-60]
	mov	w9, #1000
Lloh13:
	adrp	x10, _DMD_STANDARD_ADDR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _DMD_STANDARD_ADDR@GOTPAGEOFF]
Lloh15:
	ldr	x10, [x10]
	ldr	w3, [x20, x10, lsl #2]
	mul	w2, w8, w9
Lloh16:
	adrp	x21, _DMD_SYMBOL_RATE_ADDR@GOTPAGE
Lloh17:
	ldr	x21, [x21, _DMD_SYMBOL_RATE_ADDR@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w4, [x20, x8, lsl #2]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	ldr	x8, [x21]
	ldr	w8, [x20, x8, lsl #2]
	ldur	w9, [x29, #-60]
	stp	w8, w9, [x19]
Lloh20:
	adrp	x8, _DMD_FEC_CODE_RATE_ADDR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _DMD_FEC_CODE_RATE_ADDR@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	ldr	w0, [x20, x8, lsl #2]
	bl	_conv_fec
	str	w0, [x19, #24]
	ldr	w8, [x19, #8]
	cmp	w8, #130
	b.eq	LBB0_18
; %bb.1:
	cmp	w8, #129
	b.eq	LBB0_9
; %bb.2:
	cmp	w8, #128
	b.ne	LBB0_6
; %bb.3:
Lloh23:
	adrp	x8, _DMD_DVBS2_PILOT_ON_OFF_ADDR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DMD_DVBS2_PILOT_ON_OFF_ADDR@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	ldr	w8, [x20, x8, lsl #2]
	cmp	w8, #135
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #134
	b.ne	LBB0_9
; %bb.5:
Lloh26:
	adrp	x8, _PILOT_ON@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PILOT_ON@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
Lloh28:
	adrp	x8, _EINVAL@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_7:
Lloh31:
	adrp	x8, _PILOT_OFF@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PILOT_OFF@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_9:
Lloh33:
	adrp	x8, _DMD_MODULATION_SCHEME_ADDR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DMD_MODULATION_SCHEME_ADDR@GOTPAGEOFF]
Lloh35:
	ldr	x8, [x8]
	ldr	w8, [x20, x8, lsl #2]
	cmp	w8, #136
	b.eq	LBB0_12
; %bb.10:
	cmp	w8, #137
	b.ne	LBB0_14
; %bb.11:
Lloh36:
	adrp	x8, _PSK_8@GOTPAGE
Lloh37:
	ldr	x8, [x8, _PSK_8@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
Lloh38:
	adrp	x8, _QPSK@GOTPAGE
Lloh39:
	ldr	x8, [x8, _QPSK@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
	str	w8, [x19, #16]
LBB0_14:
Lloh40:
	adrp	x8, _DMD_SPECTRUM_ROLL_OFF_ADDR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _DMD_SPECTRUM_ROLL_OFF_ADDR@GOTPAGEOFF]
Lloh42:
	ldr	x8, [x8]
	ldr	w8, [x20, x8, lsl #2]
	cmp	w8, #131
	b.eq	LBB0_19
; %bb.15:
	cmp	w8, #132
	b.eq	LBB0_20
; %bb.16:
	cmp	w8, #133
	b.ne	LBB0_18
; %bb.17:
	mov	w0, #0
Lloh43:
	adrp	x8, _ROLLOFF_20@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ROLLOFF_20@GOTPAGEOFF]
	b	LBB0_21
LBB0_18:
	mov	w0, #0
	b	LBB0_22
LBB0_19:
	mov	w0, #0
Lloh45:
	adrp	x8, _ROLLOFF_35@GOTPAGE
Lloh46:
	ldr	x8, [x8, _ROLLOFF_35@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
	mov	w0, #0
Lloh47:
	adrp	x8, _ROLLOFF_25@GOTPAGE
Lloh48:
	ldr	x8, [x8, _ROLLOFF_25@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	str	w8, [x19, #12]
LBB0_22:
	ldur	x8, [x29, #-56]
Lloh49:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh50:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	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_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_MXL_DEMOD_CHAN_PARAMS_BUFF_SIZE,4,2 ; @MXL_DEMOD_CHAN_PARAMS_BUFF_SIZE
	.comm	_HYDRA_DMD_STANDARD_ADDR_OFFSET,8,3 ; @HYDRA_DMD_STANDARD_ADDR_OFFSET
	.comm	_HYDRA_DMD_STATUS_CENTER_FREQ_IN_KHZ_ADDR,8,3 ; @HYDRA_DMD_STATUS_CENTER_FREQ_IN_KHZ_ADDR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"freq=%u delsys=%u srate=%u\n"

	.comm	_DMD_STANDARD_ADDR,8,3          ; @DMD_STANDARD_ADDR
	.comm	_DMD_SYMBOL_RATE_ADDR,8,3       ; @DMD_SYMBOL_RATE_ADDR
	.comm	_DMD_FEC_CODE_RATE_ADDR,8,3     ; @DMD_FEC_CODE_RATE_ADDR
	.comm	_DMD_DVBS2_PILOT_ON_OFF_ADDR,8,3 ; @DMD_DVBS2_PILOT_ON_OFF_ADDR
	.comm	_PILOT_OFF,4,2                  ; @PILOT_OFF
	.comm	_PILOT_ON,4,2                   ; @PILOT_ON
	.comm	_DMD_MODULATION_SCHEME_ADDR,8,3 ; @DMD_MODULATION_SCHEME_ADDR
	.comm	_QPSK,4,2                       ; @QPSK
	.comm	_PSK_8,4,2                      ; @PSK_8
	.comm	_DMD_SPECTRUM_ROLL_OFF_ADDR,8,3 ; @DMD_SPECTRUM_ROLL_OFF_ADDR
	.comm	_ROLLOFF_20,4,2                 ; @ROLLOFF_20
	.comm	_ROLLOFF_35,4,2                 ; @ROLLOFF_35
	.comm	_ROLLOFF_25,4,2                 ; @ROLLOFF_25
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_get_frontend
.subsections_via_symbols
