	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function m88rs6000t_set_params
_m88rs6000t_set_params:                 ## @m88rs6000t_set_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	(%r14), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r15), %eax
	cmpl	$5000000, 4(%r15)               ## imm = 0x4C4B40
	movl	$3000, %r12d                    ## imm = 0xBB8
	cmovgel	%ebx, %r12d
	addl	%r12d, %eax
	addl	$500, %eax                      ## imm = 0x1F4
	cltq
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_m88rs6000t_set_pll_freq
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movslq	4(%r15), %rax
	imulq	$274877907, %rax, %rsi          ## imm = 0x10624DD3
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$38, %rsi
	addl	%eax, %esi
	movq	%r14, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r12d, %edx
	callq	_m88rs6000t_set_bb
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	8(%r14), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	8(%r14), %edi
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	callq	_m88rs6000t_set_demod_mclk
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	%ebx, %r12d
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"frequency=%d symbol_rate=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88rs6000t_set_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function m88rs6000t_set_params
_m88rs6000t_set_params:                 ; @m88rs6000t_set_params
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
	ldr	x0, [x19]
	ldp	w2, w8, [x20]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	w8, #19264
	movk	w8, #76, lsl #16
	mov	w9, #3000
	ldp	w11, w10, [x20]
	cmp	w10, w8
	csel	w22, w9, wzr, lt
	add	w8, w11, w22
	add	w8, w8, #500
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	mov	x0, x19
	bl	_m88rs6000t_set_pll_freq
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldrsw	x8, [x20, #4]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w1, w8, w9
	mov	x0, x19
	mov	x2, x22
	bl	_m88rs6000t_set_bb
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.2:
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #1
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	w0, [x19, #8]
	mov	w1, #0
	mov	w2, #0
	bl	_regmap_write
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x20
	bl	_m88rs6000t_set_demod_mclk
	mov	x21, x0
	cbz	w0, LBB0_6
LBB0_5:
	ldr	x0, [x19]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x21
	bl	_dev_dbg
LBB0_6:
	mov	x0, x21
	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
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"frequency=%d symbol_rate=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"failed=%d\n"

	.no_dead_strip	_m88rs6000t_set_params
.subsections_via_symbols
