	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_src
_calc_src:                              ## @calc_src
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movl	$0, (%r8)
	cmpl	$27000, %edx                    ## imm = 0x6978
	je	LBB0_1
## %bb.2:
	cmpl	$100000, %ebx                   ## imm = 0x186A0
	je	LBB0_9
## %bb.3:
	cmpl	$108000, %ebx                   ## imm = 0x1A5E0
	jne	LBB0_6
## %bb.4:
	movl	$196608, %eax                   ## imm = 0x30000
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_1:
	xorl	%eax, %eax
	movl	%eax, (%rcx)
	jmp	LBB0_10
LBB0_9:
	movl	$2, (%rcx)
	movl	$100000, %ebx                   ## imm = 0x186A0
	jmp	LBB0_10
LBB0_6:
	movq	%r8, %r14
	movl	%esi, %r15d
	movq	%rdi, %r12
	movl	$3, (%rcx)
	leal	1274208(,%r15,4), %esi
	callq	_read_vco
	cmpl	$6, %r15d
	jg	LBB0_7
## %bb.8:
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	movq	%r14, %r8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_calc_div                       ## TAILCALL
LBB0_7:
	movl	%eax, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_src
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_src
_calc_src:                              ; @calc_src
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x2
	str	wzr, [x4]
	mov	w8, #27000
	cmp	w2, w8
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #34464
	movk	w8, #1, lsl #16
	cmp	w19, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #42464
	movk	w8, #1, lsl #16
	cmp	w19, w8
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #196608
	str	w8, [x3]
	b	LBB0_9
LBB0_4:
	mov	w8, #0
	str	wzr, [x3]
	b	LBB0_9
LBB0_5:
	mov	w8, #2
	str	w8, [x3]
	mov	w19, #34464
	movk	w19, #1, lsl #16
	b	LBB0_9
LBB0_6:
	mov	x20, x4
	mov	x21, x1
	mov	x22, x0
	mov	w8, #3
	str	w8, [x3]
	mov	w8, #29024
	movk	w8, #19, lsl #16
	add	w1, w8, w1, lsl #2
	bl	_read_vco
	mov	x2, x0
	cmp	w21, #6
	b.gt	LBB0_8
; %bb.7:
	mov	x0, x22
	mov	x1, x21
	mov	x3, x19
	mov	x4, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_calc_div
LBB0_8:
	mov	x19, x2
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_src
.subsections_via_symbols
