	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tda10023_get_frontend
_tda10023_get_frontend:                 ## @tda10023_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	(%rdi), %rbx
	movq	%rbx, %rdi
	movl	$17, %esi
	callq	_tda10023_readreg
	movl	%eax, %r15d
	movq	%rbx, %rdi
	movl	$25, %esi
	callq	_tda10023_readreg
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_tda10023_readreg
	movl	%eax, %r13d
	movq	_verbose@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	testb	$2, %r15b
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %rdi
	cmoveq	%rax, %rdi
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	imull	%r14d, %ecx
	negl	%ecx
	sarl	$10, %ecx
	movl	%r14d, %edx
	callq	_printk
LBB0_2:
	xorl	%eax, %eax
	testb	$32, %r13b
	sete	%al
	movl	%eax, (%r12)
	movl	(%rbx), %eax
	shrl	$2, %eax
	andl	$7, %eax
	movq	_QAM_16@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 24(%r12)
	movq	_FEC_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r12)
	movl	$31250, %eax                    ## imm = 0x7A12
	addl	4(%r12), %eax
	cltq
	imulq	$1125899907, %rax, %rax         ## imm = 0x431BDE83
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$46, %rax
	addl	%ecx, %eax
	imull	$62500, %eax, %eax              ## imm = 0xF424
	movl	%eax, 4(%r12)
	testb	$2, %r15b
	je	LBB0_4
## %bb.3:
	imull	8(%r12), %r14d
	sarl	$10, %r14d
	subl	%r14d, %eax
	movl	%eax, 4(%r12)
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,8,3                    ## @verbose
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DVB: TDA10023(%d): AFC (%d) %dHz\n"

L_.str.1:                               ## @.str.1
	.asciz	"DVB: TDA10023(%d): [AFC (%d) %dHz]\n"

	.comm	_QAM_16,8,3                     ## @QAM_16
	.comm	_FEC_NONE,4,2                   ## @FEC_NONE
	.no_dead_strip	_tda10023_get_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tda10023_get_frontend
_tda10023_get_frontend:                 ; @tda10023_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
	mov	x19, x1
	ldr	x22, [x0]
	mov	x0, x22
	mov	w1, #17
	bl	_tda10023_readreg
	mov	x20, x0
	mov	x0, x22
	mov	w1, #25
	bl	_tda10023_readreg
	mov	x21, x0
	mov	x0, x22
	mov	w1, #4
	bl	_tda10023_readreg
	mov	x23, x0
Lloh0:
	adrp	x8, _verbose@GOTPAGE
Lloh1:
	ldr	x8, [x8, _verbose@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, l_.str@PAGE
Lloh4:
	add	x8, x8, l_.str@PAGEOFF
Lloh5:
	adrp	x9, l_.str.1@PAGE
Lloh6:
	add	x9, x9, l_.str.1@PAGEOFF
	tst	w20, #0x2
	csel	x0, x9, x8, eq
	ldr	x8, [x22, #8]
	ldr	w1, [x8]
	ldr	w8, [x19, #8]
	mneg	w8, w21, w8
	asr	w3, w8, #10
	mov	x2, x21
	bl	_printk
LBB0_2:
	mov	w8, #1
	bic	w9, w8, w23, lsr #5
	ldr	w8, [x22]
	ubfx	x8, x8, #2, #3
Lloh7:
	adrp	x10, _QAM_16@GOTPAGE
Lloh8:
	ldr	x10, [x10, _QAM_16@GOTPAGEOFF]
Lloh9:
	ldr	x10, [x10]
	add	x8, x10, x8
	str	x8, [x19, #24]
	ldr	w8, [x19, #4]
	mov	w10, #31250
	add	w8, w8, w10
	mov	w10, #56963
	movk	w10, #17179, lsl #16
	smull	x8, w8, w10
	lsr	x10, x8, #63
	asr	x8, x8, #46
	add	w8, w8, w10
	mov	w10, #62500
	mul	w8, w8, w10
Lloh10:
	adrp	x10, _FEC_NONE@GOTPAGE
Lloh11:
	ldr	x10, [x10, _FEC_NONE@GOTPAGEOFF]
	stp	w9, w8, [x19]
Lloh12:
	ldr	w9, [x10]
	str	w9, [x19, #16]
	tbz	w20, #1, LBB0_4
; %bb.3:
	ldr	w9, [x19, #8]
	mul	w9, w21, w9
	sub	w8, w8, w9, asr #10
	str	w8, [x19, #4]
LBB0_4:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,8,3                    ; @verbose
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DVB: TDA10023(%d): AFC (%d) %dHz\n"

l_.str.1:                               ; @.str.1
	.asciz	"DVB: TDA10023(%d): [AFC (%d) %dHz]\n"

	.comm	_QAM_16,8,3                     ; @QAM_16
	.comm	_FEC_NONE,4,2                   ; @FEC_NONE
	.no_dead_strip	_tda10023_get_frontend
.subsections_via_symbols
