	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_convert_did_to_freq
_trinity_convert_did_to_freq:           ## @trinity_convert_did_to_freq
	.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
	movl	%esi, %ebx
	callq	_trinity_get_pi
	leal	-8(%rbx), %ecx
	cmpl	$55, %ecx
	ja	LBB0_2
## %bb.1:
	leal	(%rbx,%rbx,4), %ecx
	leal	(%rcx,%rcx,4), %esi
	jmp	LBB0_7
LBB0_2:
	movl	%ebx, %ecx
	andl	$-32, %ecx
	cmpl	$64, %ecx
	jne	LBB0_4
## %bb.3:
	imull	$50, %ebx, %esi
	addl	$-1600, %esi                    ## imm = 0xF9C0
	jmp	LBB0_7
LBB0_4:
	leal	-96(%rbx), %ecx
	cmpl	$30, %ecx
	ja	LBB0_6
## %bb.5:
	imull	$100, %ebx, %esi
	addl	$-6400, %esi                    ## imm = 0xE700
	jmp	LBB0_7
LBB0_6:
	movl	$10000, %ecx                    ## imm = 0x2710
	movl	$12800, %esi                    ## imm = 0x3200
	cmpl	$127, %ebx
	jne	LBB0_8
LBB0_7:
	imull	$100, (%rax), %eax
	addl	%esi, %eax
	decl	%eax
	cltd
	idivl	%esi
	movl	%eax, %ecx
LBB0_8:
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trinity_convert_did_to_freq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_convert_did_to_freq
_trinity_convert_did_to_freq:           ; @trinity_convert_did_to_freq
	.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, x1
	bl	_trinity_get_pi
	sub	w8, w19, #8
	cmp	w8, #55
	b.hi	LBB0_2
; %bb.1:
	mov	w8, #25
	mul	w8, w19, w8
	b	LBB0_8
LBB0_2:
	and	w8, w19, #0xffffffe0
	cmp	w8, #64
	b.ne	LBB0_4
; %bb.3:
	mov	w8, #50
	mul	w8, w19, w8
	sub	w8, w8, #1600
	b	LBB0_8
LBB0_4:
	sub	w8, w19, #96
	cmp	w8, #30
	b.hi	LBB0_6
; %bb.5:
	mov	w8, #100
	mov	w9, #-6400
	madd	w8, w19, w8, w9
	b	LBB0_8
LBB0_6:
	cmp	w19, #127
	b.ne	LBB0_10
; %bb.7:
	mov	w8, #12800
LBB0_8:
	ldr	w9, [x0]
	mov	w10, #100
	madd	w9, w9, w10, w8
	sub	w9, w9, #1
	sdiv	w0, w9, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	w0, #10000
	b	LBB0_9
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_trinity_convert_did_to_freq
.subsections_via_symbols
