	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_pitch_target
_calc_pitch_target:                     ## @calc_pitch_target
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%edi, %ecx
	sarl	$12, %ecx
	movl	$1, %eax
	shll	%cl, %eax
	testl	$2048, %edi                     ## imm = 0x800
	jne	LBB0_1
## %bb.2:
	testl	$1024, %edi                     ## imm = 0x400
	jne	LBB0_3
LBB0_4:
	testl	$512, %edi                      ## imm = 0x200
	je	LBB0_6
LBB0_5:
	imull	$905, %eax, %ecx                ## imm = 0x389
	movslq	%ecx, %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
LBB0_6:
	movl	%eax, %ecx
	sarl	%ecx
	addl	%eax, %ecx
	cmpl	$65535, %ecx                    ## imm = 0xFFFF
	movl	$65535, %eax                    ## imm = 0xFFFF
	cmovll	%ecx, %eax
	popq	%rbp
	retq
LBB0_1:
	movl	$4142, %edx                     ## imm = 0x102E
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movslq	%edx, %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	testl	$1024, %edi                     ## imm = 0x400
	je	LBB0_4
LBB0_3:
	imull	$1892, %eax, %ecx               ## imm = 0x764
	movslq	%ecx, %rcx
	imulq	$1759218605, %rcx, %rcx         ## imm = 0x68DB8BAD
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$44, %rcx
	addl	%edx, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	testl	$512, %edi                      ## imm = 0x200
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_calc_pitch_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_pitch_target
_calc_pitch_target:                     ; @calc_pitch_target
	.cfi_startproc
; %bb.0:
	asr	w8, w0, #12
	mov	w9, #1
	lsl	w10, w9, w8
	mov	w9, #4142
	lsl	w8, w9, w8
	mov	w9, #35757
	movk	w9, #26843, lsl #16
	smull	x8, w8, w9
	lsr	x11, x8, #63
	asr	x8, x8, #44
	add	w8, w8, w11
	add	w8, w8, w10
	tst	w0, #0x800
	csel	w8, w10, w8, eq
	tbz	w0, #10, LBB0_2
; %bb.1:
	mov	w10, #1892
	mul	w10, w8, w10
	smull	x9, w10, w9
	lsr	x10, x9, #63
	asr	x9, x9, #44
	add	w9, w9, w10
	add	w8, w9, w8
LBB0_2:
	tbz	w0, #9, LBB0_4
; %bb.3:
	mov	w9, #905
	mul	w9, w8, w9
	mov	w10, #35757
	movk	w10, #26843, lsl #16
	smull	x9, w9, w10
	lsr	x10, x9, #63
	asr	x9, x9, #44
	add	w9, w9, w10
	add	w8, w9, w8
LBB0_4:
	add	w8, w8, w8, asr #1
	mov	w9, #65535
	cmp	w8, w9
	csel	w0, w8, w9, lt
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_calc_pitch_target
.subsections_via_symbols
