	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt312_get_symbol_rate
_mt312_get_symbol_rate:                 ## @mt312_get_symbol_rate
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movq	_SYM_RATE_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_mt312_readreg
	testl	%eax, %eax
	js	LBB0_15
## %bb.1:
	testb	$-128, -52(%rbp)
	movq	_MON_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	jne	LBB0_7
## %bb.2:
	movl	$5, %edx
	callq	_mt312_writereg
	testl	%eax, %eax
	js	LBB0_15
## %bb.3:
	movq	_MONITOR_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_mt312_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.4:
	movl	-48(%rbp), %r15d
	movq	_SYM_RAT_OP_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_mt312_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.5:
	andl	$224, %r15d
	movl	-48(%rbp), %r12d
	shll	$8, %r12d
	orl	-44(%rbp), %r12d
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%r12d, %esi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dprintk
	movl	(%r14), %eax
	shll	$13, %eax
	addl	$8192, %r12d                    ## imm = 0x2000
	cltd
	idivl	%r12d
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %esi
	subl	%r15d, %esi
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_10
LBB0_7:
	movl	$3, %edx
	callq	_mt312_writereg
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:
	movq	_MONITOR_H@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$8, %ecx
	callq	_mt312_read
	testl	%eax, %eax
	js	LBB0_15
## %bb.9:
	movl	-48(%rbp), %eax
	shll	$8, %eax
	orl	-44(%rbp), %eax
	imull	$15625, %eax, %edi              ## imm = 0x3D09
	movl	$4, %esi
	callq	_mt312_div
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	movl	%eax, %esi
LBB0_10:
	xorl	%eax, %eax
	callq	_dprintk
	jmp	LBB0_16
LBB0_15:
	movl	%eax, %ebx
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SYM_RATE_H,4,2                 ## @SYM_RATE_H
	.comm	_MON_CTRL,4,2                   ## @MON_CTRL
	.comm	_MONITOR_H,4,2                  ## @MONITOR_H
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sr(auto) = %u\n"

	.comm	_SYM_RAT_OP_H,4,2               ## @SYM_RAT_OP_H
L_.str.1:                               ## @.str.1
	.asciz	"sym_rat_op=%d dec_ratio=%d\n"

L_.str.2:                               ## @.str.2
	.asciz	"*sr(manual) = %lu\n"

	.no_dead_strip	_mt312_get_symbol_rate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt312_get_symbol_rate
_mt312_get_symbol_rate:                 ; @mt312_get_symbol_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
Lloh3:
	adrp	x8, _SYM_RATE_H@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SYM_RATE_H@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_mt312_readreg
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh6:
	adrp	x8, _MON_CTRL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MON_CTRL@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldrb	w8, [sp, #12]
	tbnz	w8, #7, LBB0_6
; %bb.2:
	mov	x0, x19
	mov	w2, #5
	bl	_mt312_writereg
	tbnz	w0, #31, LBB0_10
; %bb.3:
Lloh9:
	adrp	x8, _MONITOR_H@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MONITOR_H@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #8
	bl	_mt312_read
	tbnz	w0, #31, LBB0_10
; %bb.4:
	ldr	w20, [sp, #16]
Lloh12:
	adrp	x8, _SYM_RAT_OP_H@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SYM_RAT_OP_H@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #8
	bl	_mt312_read
	tbnz	w0, #31, LBB0_10
; %bb.5:
	and	w21, w20, #0xe0
	ldp	w8, w9, [sp, #16]
	orr	w20, w9, w8, lsl #8
	str	x21, [sp]
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_dprintk
	ldr	w8, [x19]
	lsl	w8, w8, #13
	add	w9, w20, #2, lsl #12            ; =8192
	sdiv	w8, w8, w9
	lsl	w8, w8, #1
	sub	w1, w8, w21
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	mov	w2, #3
	bl	_mt312_writereg
	tbnz	w0, #31, LBB0_10
; %bb.7:
Lloh19:
	adrp	x8, _MONITOR_H@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MONITOR_H@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	add	x2, sp, #16
	mov	x0, x19
	mov	w3, #8
	bl	_mt312_read
	tbnz	w0, #31, LBB0_10
; %bb.8:
	ldp	w8, w9, [sp, #16]
	orr	w8, w9, w8, lsl #8
	mov	w9, #15625
	mul	w0, w8, w9
	mov	w1, #4
	bl	_mt312_div
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
LBB0_9:
	bl	_dprintk
	mov	w0, #0
LBB0_10:
	ldr	x8, [sp, #24]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_SYM_RATE_H,4,2                 ; @SYM_RATE_H
	.comm	_MON_CTRL,4,2                   ; @MON_CTRL
	.comm	_MONITOR_H,4,2                  ; @MONITOR_H
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sr(auto) = %u\n"

	.comm	_SYM_RAT_OP_H,4,2               ; @SYM_RAT_OP_H
l_.str.1:                               ; @.str.1
	.asciz	"sym_rat_op=%d dec_ratio=%d\n"

l_.str.2:                               ; @.str.2
	.asciz	"*sr(manual) = %lu\n"

	.no_dead_strip	_mt312_get_symbol_rate
.subsections_via_symbols
