	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function msp3400c_print_mode
_msp3400c_print_mode:                   ## @msp3400c_print_mode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movl	%eax, %edi
	callq	_to_state
	movq	%rax, %rbx
	movslq	(%rax), %rax
	imulq	$1237252645, %rax, %r8          ## imm = 0x49BEFA25
	movq	%r8, %rcx
	shrq	$63, %rcx
	shrq	$32, %r8
	sarl	$18, %r8d
	addl	%ecx, %r8d
	imulq	$-1878458223, %rax, %rcx        ## imm = 0x90090091
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	sarl	$9, %ecx
	addl	%edx, %ecx
	movslq	%ecx, %r9
	imulq	$274877907, %r9, %rcx           ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$38, %rcx
	addl	%edx, %ecx
	imull	$1000, %ecx, %ecx               ## imm = 0x3E8
	subl	%ecx, %r9d
	cmpl	4(%rbx), %eax
	movq	_msp_debug@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	leaq	L_.str(%rip), %rax
	leaq	L_.str.1(%rip), %rcx
	cmoveq	%rax, %rcx
	movq	%r14, %rdi
	movl	$1, %esi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_dev_dbg_lvl
	movq	8(%rbx), %rax
	movq	_MSP_MODE_FM_NICAM1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	_MSP_MODE_FM_NICAM2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_2:
	movl	(%r15), %edx
	movslq	4(%rbx), %rax
	imulq	$1237252645, %rax, %r8          ## imm = 0x49BEFA25
	movq	%r8, %rcx
	shrq	$63, %rcx
	shrq	$32, %r8
	sarl	$18, %r8d
	addl	%ecx, %r8d
	imulq	$-1878458223, %rax, %rcx        ## imm = 0x90090091
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	sarl	$9, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %r9
	imulq	$274877907, %r9, %rax           ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	subl	%eax, %r9d
	leaq	L_.str.2(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_dev_dbg_lvl
	movq	8(%rbx), %rax
LBB0_3:
	movq	_MSP_MODE_AM_NICAM@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:
	movl	(%r15), %edx
	movslq	4(%rbx), %rax
	imulq	$1237252645, %rax, %r8          ## imm = 0x49BEFA25
	movq	%r8, %rcx
	shrq	$63, %rcx
	shrq	$32, %r8
	sarl	$18, %r8d
	addl	%ecx, %r8d
	imulq	$-1878458223, %rax, %rcx        ## imm = 0x90090091
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	sarl	$9, %ecx
	addl	%eax, %ecx
	movslq	%ecx, %r9
	imulq	$274877907, %r9, %rax           ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	subl	%eax, %r9d
	leaq	L_.str.3(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	callq	_dev_dbg_lvl
	movq	8(%rbx), %rax
LBB0_5:
	movq	_MSP_MODE_FM_TERRA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.6:
	movl	4(%rbx), %eax
	cmpl	%eax, (%rbx)
	jne	LBB0_8
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r15), %edx
	cltq
	imulq	$1237252645, %rax, %r8          ## imm = 0x49BEFA25
	movq	%r8, %rcx
	shrq	$63, %rcx
	shrq	$32, %r8
	sarl	$18, %r8d
	addl	%ecx, %r8d
	imulq	$-1878458223, %rax, %rcx        ## imm = 0x90090091
	shrq	$32, %rcx
	addl	%ecx, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	sarl	$9, %eax
	addl	%ecx, %eax
	movslq	%eax, %r9
	imulq	$274877907, %r9, %rax           ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	subl	%eax, %r9d
	leaq	L_.str.4(%rip), %rcx
	movq	%r14, %rdi
	movl	$1, %esi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_dbg_lvl                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_msp_debug,4,2                  ## @msp_debug
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mono sound carrier: %d.%03d MHz\n"

L_.str.1:                               ## @.str.1
	.asciz	"main sound carrier: %d.%03d MHz\n"

	.comm	_MSP_MODE_FM_NICAM1,8,3         ## @MSP_MODE_FM_NICAM1
	.comm	_MSP_MODE_FM_NICAM2,8,3         ## @MSP_MODE_FM_NICAM2
L_.str.2:                               ## @.str.2
	.asciz	"NICAM/FM carrier  : %d.%03d MHz\n"

	.comm	_MSP_MODE_AM_NICAM,8,3          ## @MSP_MODE_AM_NICAM
L_.str.3:                               ## @.str.3
	.asciz	"NICAM/AM carrier  : %d.%03d MHz\n"

	.comm	_MSP_MODE_FM_TERRA,8,3          ## @MSP_MODE_FM_TERRA
L_.str.4:                               ## @.str.4
	.asciz	"FM-stereo carrier : %d.%03d MHz\n"

	.no_dead_strip	_msp3400c_print_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function msp3400c_print_mode
_msp3400c_print_mode:                   ; @msp3400c_print_mode
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	mov	w21, #58032
	movk	w21, #13, lsl #16
	bl	_i2c_get_clientdata
	bl	_to_state
	mov	x20, x0
	ldp	w8, w9, [x0]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
Lloh0:
	adrp	x22, _msp_debug@GOTPAGE
Lloh1:
	ldr	x22, [x22, _msp_debug@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	w10, #64037
	movk	w10, #18878, lsl #16
	mul	x10, x8, x10
	lsr	x11, x10, #32
	lsr	x10, x10, #63
	add	w4, w10, w11, asr #18
	mov	x23, #-65391
	movk	x23, #36873, lsl #16
	mul	x10, x8, x23
	lsr	x10, x10, #32
	add	w10, w10, w8
	asr	w11, w10, #9
	add	w10, w11, w10, lsr #31
	mov	w24, #19923
	movk	w24, #4194, lsl #16
	smull	x11, w10, w24
	lsr	x12, x11, #63
	asr	x11, x11, #38
	add	w11, w11, w12
	mov	w25, #1000
	msub	w5, w11, w25, w10
Lloh2:
	adrp	x10, l_.str.1@PAGE
Lloh3:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh4:
	adrp	x11, l_.str@PAGE
Lloh5:
	add	x11, x11, l_.str@PAGEOFF
	cmp	w8, w9
	csel	x3, x11, x10, eq
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _MSP_MODE_FM_NICAM1@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MSP_MODE_FM_NICAM1@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x9, _MSP_MODE_FM_NICAM2@GOTPAGE
Lloh10:
	ldr	x9, [x9, _MSP_MODE_FM_NICAM2@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
LBB0_2:
	ldr	w2, [x22]
	ldrsw	x8, [x20, #4]
	sdiv	w4, w8, w21
	mul	x9, x8, x23
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #9
	add	w8, w9, w8, lsr #31
	smull	x9, w8, w24
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	msub	w5, w9, w25, w8
Lloh12:
	adrp	x3, l_.str.2@PAGE
Lloh13:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	ldr	x8, [x20, #8]
LBB0_3:
Lloh14:
	adrp	x9, _MSP_MODE_AM_NICAM@GOTPAGE
Lloh15:
	ldr	x9, [x9, _MSP_MODE_AM_NICAM@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	ldr	w2, [x22]
	ldrsw	x8, [x20, #4]
	sdiv	w4, w8, w21
	mov	x9, #-65391
	movk	x9, #36873, lsl #16
	mul	x9, x8, x9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #9
	add	w8, w9, w8, lsr #31
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mov	w10, #1000
	msub	w5, w9, w10, w8
Lloh17:
	adrp	x3, l_.str.3@PAGE
Lloh18:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	bl	_dev_dbg_lvl
	ldr	x8, [x20, #8]
LBB0_5:
Lloh19:
	adrp	x9, _MSP_MODE_FM_TERRA@GOTPAGE
Lloh20:
	ldr	x9, [x9, _MSP_MODE_FM_TERRA@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldp	w9, w8, [x20]
	cmp	w9, w8
	b.ne	LBB0_8
LBB0_7:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w2, [x22]
	sdiv	w4, w8, w21
	mov	w9, #145
	movk	w9, #36873, lsl #16
	smull	x9, w8, w9
	lsr	x9, x9, #32
	add	w8, w9, w8
	asr	w9, w8, #9
	add	w8, w9, w8, lsr #31
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	asr	x9, x9, #38
	add	w9, w9, w10
	mov	w10, #1000
	msub	w5, w9, w10, w8
Lloh22:
	adrp	x3, l_.str.4@PAGE
Lloh23:
	add	x3, x3, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	w1, #1
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_dev_dbg_lvl
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_msp_debug,4,2                  ; @msp_debug
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mono sound carrier: %d.%03d MHz\n"

l_.str.1:                               ; @.str.1
	.asciz	"main sound carrier: %d.%03d MHz\n"

	.comm	_MSP_MODE_FM_NICAM1,8,3         ; @MSP_MODE_FM_NICAM1
	.comm	_MSP_MODE_FM_NICAM2,8,3         ; @MSP_MODE_FM_NICAM2
l_.str.2:                               ; @.str.2
	.asciz	"NICAM/FM carrier  : %d.%03d MHz\n"

	.comm	_MSP_MODE_AM_NICAM,8,3          ; @MSP_MODE_AM_NICAM
l_.str.3:                               ; @.str.3
	.asciz	"NICAM/AM carrier  : %d.%03d MHz\n"

	.comm	_MSP_MODE_FM_TERRA,8,3          ; @MSP_MODE_FM_TERRA
l_.str.4:                               ; @.str.4
	.asciz	"FM-stereo carrier : %d.%03d MHz\n"

	.no_dead_strip	_msp3400c_print_mode
.subsections_via_symbols
