	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt312_get_code_rate
_mt312_get_code_rate:                   ## @mt312_get_code_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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	_FEC_1_2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_FEC_2_3@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_FEC_3_4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_FEC_5_6@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -36(%rbp)
	movq	_FEC_6_7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_FEC_7_8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	movq	_FEC_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	movl	%eax, -20(%rbp)
	movq	_FEC_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-52(%rbp), %rdx
	callq	_mt312_readreg
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movl	-52(%rbp), %eax
	shrq	$2, %rax
	andl	$28, %eax
	movl	-48(%rbp,%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FEC_1_2,4,2                    ## @FEC_1_2
	.comm	_FEC_2_3,4,2                    ## @FEC_2_3
	.comm	_FEC_3_4,4,2                    ## @FEC_3_4
	.comm	_FEC_5_6,4,2                    ## @FEC_5_6
	.comm	_FEC_6_7,4,2                    ## @FEC_6_7
	.comm	_FEC_7_8,4,2                    ## @FEC_7_8
	.comm	_FEC_AUTO,4,2                   ## @FEC_AUTO
	.comm	_FEC_STATUS,4,2                 ## @FEC_STATUS
	.no_dead_strip	_mt312_get_code_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_code_rate
_mt312_get_code_rate:                   ; @mt312_get_code_rate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	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, #-24]
Lloh3:
	adrp	x8, _FEC_1_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FEC_1_2@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _FEC_2_3@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FEC_2_3@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #8]
Lloh9:
	adrp	x8, _FEC_3_4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FEC_3_4@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _FEC_5_6@GOTPAGE
Lloh13:
	ldr	x9, [x9, _FEC_5_6@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #16]
Lloh15:
	adrp	x8, _FEC_6_7@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FEC_6_7@GOTPAGEOFF]
Lloh17:
	adrp	x9, _FEC_7_8@GOTPAGE
Lloh18:
	ldr	x9, [x9, _FEC_7_8@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
Lloh20:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #24]
Lloh21:
	adrp	x8, _FEC_AUTO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _FEC_AUTO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	stp	w8, w8, [sp, #32]
Lloh24:
	adrp	x8, _FEC_STATUS@GOTPAGE
Lloh25:
	ldr	x8, [x8, _FEC_STATUS@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_mt312_readreg
	tbnz	w0, #31, LBB0_2
; %bb.1:
	mov	w0, #0
	ldr	w8, [sp, #4]
	ubfx	x8, x8, #4, #3
	add	x9, sp, #8
	ldr	w8, [x9, x8, lsl #2]
	str	w8, [x19]
LBB0_2:
	ldur	x8, [x29, #-24]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh19
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_FEC_1_2,4,2                    ; @FEC_1_2
	.comm	_FEC_2_3,4,2                    ; @FEC_2_3
	.comm	_FEC_3_4,4,2                    ; @FEC_3_4
	.comm	_FEC_5_6,4,2                    ; @FEC_5_6
	.comm	_FEC_6_7,4,2                    ; @FEC_6_7
	.comm	_FEC_7_8,4,2                    ; @FEC_7_8
	.comm	_FEC_AUTO,4,2                   ; @FEC_AUTO
	.comm	_FEC_STATUS,4,2                 ; @FEC_STATUS
	.no_dead_strip	_mt312_get_code_rate
.subsections_via_symbols
