	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cadet_getfreq
LCPI0_0:
	.long	32                              ## 0x20
	.long	16                              ## 0x10
	.long	8                               ## 0x8
	.long	4                               ## 0x4
LCPI0_1:
	.long	400000                          ## 0x61a80
	.long	200000                          ## 0x30d40
	.long	100000                          ## 0x186a0
	.long	50000                           ## 0xc350
LCPI0_2:
	.long	8192                            ## 0x2000
	.long	4096                            ## 0x1000
	.long	2048                            ## 0x800
	.long	1024                            ## 0x400
LCPI0_3:
	.long	512                             ## 0x200
	.long	256                             ## 0x100
	.long	128                             ## 0x80
	.long	64                              ## 0x40
LCPI0_4:
	.long	6400000                         ## 0x61a800
	.long	3200000                         ## 0x30d400
	.long	1600000                         ## 0x186a00
	.long	800000                          ## 0xc3500
LCPI0_5:
	.long	102400000                       ## 0x61a8000
	.long	51200000                        ## 0x30d4000
	.long	25600000                        ## 0x186a000
	.long	12800000                        ## 0xc35000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_cadet_getfreq:                         ## @cadet_getfreq
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_cadet_gettune
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	%eax, %ecx
	andl	$1, %ecx
	negl	%ecx
	andl	$12500, %ecx                    ## imm = 0x30D4
	movd	%eax, %xmm0
	shll	$30, %eax
	sarl	$31, %eax
	andl	$25000, %eax                    ## imm = 0x61A8
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [32,16,8,4]
	movdqa	%xmm0, %xmm2
	pand	%xmm1, %xmm2
	pcmpeqd	%xmm1, %xmm2
	pand	LCPI0_1(%rip), %xmm2
	movdqa	LCPI0_2(%rip), %xmm1            ## xmm1 = [8192,4096,2048,1024]
	movdqa	%xmm0, %xmm3
	pand	%xmm1, %xmm3
	movdqa	LCPI0_3(%rip), %xmm4            ## xmm4 = [512,256,128,64]
	pand	%xmm4, %xmm0
	pcmpeqd	%xmm4, %xmm0
	pand	LCPI0_4(%rip), %xmm0
	pcmpeqd	%xmm1, %xmm3
	pand	LCPI0_5(%rip), %xmm3
	paddd	%xmm0, %xmm3
	pshufd	$238, %xmm3, %xmm0              ## xmm0 = xmm3[2,3,2,3]
	paddd	%xmm3, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	pshufd	$238, %xmm2, %xmm0              ## xmm0 = xmm2[2,3,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %esi
	addl	%edx, %esi
	addl	%eax, %esi
	addl	%ecx, %esi
	shll	$4, %esi
	addl	$-171200000, %esi               ## imm = 0xF5CBB200
	imulq	$274877907, %rsi, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
	jmp	LBB0_3
LBB0_2:
	shll	$4, %eax
	andl	$524272, %eax                   ## imm = 0x7FFF0
	addl	$-7200, %eax                    ## imm = 0xE3E0
LBB0_3:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_cadet_getfreq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function cadet_getfreq
lCPI0_0:
	.long	32                              ; 0x20
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.long	4                               ; 0x4
lCPI0_1:
	.long	400000                          ; 0x61a80
	.long	200000                          ; 0x30d40
	.long	100000                          ; 0x186a0
	.long	50000                           ; 0xc350
lCPI0_2:
	.long	512                             ; 0x200
	.long	256                             ; 0x100
	.long	128                             ; 0x80
	.long	64                              ; 0x40
lCPI0_3:
	.long	8192                            ; 0x2000
	.long	4096                            ; 0x1000
	.long	2048                            ; 0x800
	.long	1024                            ; 0x400
lCPI0_4:
	.long	6400000                         ; 0x61a800
	.long	3200000                         ; 0x30d400
	.long	1600000                         ; 0x186a00
	.long	800000                          ; 0xc3500
lCPI0_5:
	.long	102400000                       ; 0x61a8000
	.long	51200000                        ; 0x30d4000
	.long	25600000                        ; 0x186a000
	.long	12800000                        ; 0xc35000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_cadet_getfreq:                         ; @cadet_getfreq
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_cadet_gettune
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	sbfx	w8, w0, #0, #1
	mov	w9, #12500
	and	w8, w8, w9
	lsl	w9, w0, #30
	mov	w10, #25000
	and	w9, w10, w9, asr #31
	dup.4s	v0, w0
Lloh0:
	adrp	x10, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	and.16b	v1, v0, v1
	cmeq.4s	v1, v1, #0
Lloh2:
	adrp	x10, lCPI0_1@PAGE
Lloh3:
	ldr	q2, [x10, lCPI0_1@PAGEOFF]
	bic.16b	v1, v2, v1
Lloh4:
	adrp	x10, lCPI0_2@PAGE
Lloh5:
	ldr	q2, [x10, lCPI0_2@PAGEOFF]
	and.16b	v2, v0, v2
Lloh6:
	adrp	x10, lCPI0_3@PAGE
Lloh7:
	ldr	q3, [x10, lCPI0_3@PAGEOFF]
	and.16b	v0, v0, v3
	cmeq.4s	v0, v0, #0
	cmeq.4s	v2, v2, #0
Lloh8:
	adrp	x10, lCPI0_4@PAGE
Lloh9:
	ldr	q3, [x10, lCPI0_4@PAGEOFF]
	bic.16b	v2, v3, v2
Lloh10:
	adrp	x10, lCPI0_5@PAGE
Lloh11:
	ldr	q3, [x10, lCPI0_5@PAGEOFF]
	bic.16b	v0, v3, v0
	add.4s	v0, v0, v2
	add.4s	v0, v0, v1
	addv.4s	s0, v0
	fmov	w10, s0
	add	w9, w10, w9
	add	w8, w9, w8
	mov	w9, #45568
	movk	w9, #62923, lsl #16
	add	w8, w9, w8, lsl #4
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #38
	b	LBB0_3
LBB0_2:
	ubfiz	w8, w0, #4, #15
	mov	w9, #-7200
	add	w0, w8, w9
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdr	Lloh10, Lloh11
	.loh AdrpAdrp	Lloh8, Lloh10
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdrp	Lloh2, Lloh4
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_cadet_getfreq
.subsections_via_symbols
