	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bend_pitch
_bend_pitch:                            ## @bend_pitch
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_pv_map@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_devc@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movq	(%rcx), %rdi
	movslq	%esi, %rax
	movq	(%rdi,%rax,8), %rsi
	leaq	(%rsi,%rsi,2), %rbx
	cmpq	$0, (%r15,%rbx,8)
	je	LBB0_4
## %bb.1:
	movq	8(%rcx), %rcx
	leaq	(%rax,%rax,4), %rsi
	movl	%edx, (%rcx,%rsi,4)
	testl	%edx, %edx
	je	LBB0_4
## %bb.2:
	testb	$32, 4(%rcx,%rsi,4)
	je	LBB0_4
## %bb.3:
	shlq	$2, %rax
	leaq	(%rax,%rax,4), %r12
	movl	12(%rcx,%r12), %eax
	movl	16(%rcx,%r12), %edi
	movl	%edx, %esi
	movl	%eax, %edx
	xorl	%ecx, %ecx
	callq	_compute_finetune
	movq	(%r14), %rcx
	movq	8(%rcx), %rcx
	movl	%eax, 8(%rcx,%r12)
	leaq	-40(%rbp), %rsi
	leaq	-36(%rbp), %rdx
	movl	%eax, %edi
	callq	_freq_to_fnum
	movzbl	-36(%rbp), %edx
	movl	16(%r15,%rbx,8), %edi
	movq	_FNUM_LOW@GOTPCREL(%rip), %rax
	movq	8(%r15,%rbx,8), %rsi
	addq	(%rax), %rsi
	callq	_opl3_command
	movl	-40(%rbp), %eax
	andl	$7, %eax
	movl	-36(%rbp), %ecx
	shrl	$8, %ecx
	andl	$3, %ecx
	leal	(%rcx,%rax,4), %eax
	orb	$32, %al
	movzbl	%al, %edx
	movq	(%r14), %rax
	movq	8(%rax), %rax
	movl	%edx, 4(%rax,%r12)
	movl	16(%r15,%rbx,8), %edi
	movq	_KEYON_BLOCK@GOTPCREL(%rip), %rax
	movq	8(%r15,%rbx,8), %rsi
	addq	(%rax), %rsi
	callq	_opl3_command
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pv_map,8,3                     ## @pv_map
	.comm	_devc,8,3                       ## @devc
	.comm	_FNUM_LOW,8,3                   ## @FNUM_LOW
	.comm	_KEYON_BLOCK,8,3                ## @KEYON_BLOCK
	.no_dead_strip	_bend_pitch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bend_pitch
_bend_pitch:                            ; @bend_pitch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
                                        ; kill: def $w1 killed $w1 def $x1
Lloh0:
	adrp	x8, _pv_map@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pv_map@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x19, _devc@GOTPAGE
Lloh4:
	ldr	x19, [x19, _devc@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x9, [x8]
	ldr	x21, [x9, w1, sxtw #3]
	mov	w9, #24
	mul	x9, x21, x9
	ldr	x9, [x20, x9]
	cbz	x9, LBB0_4
; %bb.1:
	sxtw	x9, w1
	ldr	x8, [x8, #8]
	mov	w10, #20
	mul	x10, x9, x10
	str	w2, [x8, x10]
	cbz	w2, LBB0_4
; %bb.2:
	mov	w10, #20
	madd	x10, x9, x10, x8
	ldrb	w10, [x10, #4]
	tbz	w10, #5, LBB0_4
; %bb.3:
	add	x9, x9, x9, lsl #2
	lsl	x22, x9, #2
	add	x8, x8, x22
	ldp	w8, w0, [x8, #12]
	mov	x1, x2
	mov	x2, x8
	mov	w3, #0
	bl	_compute_finetune
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x22
	str	w0, [x8, #8]
	add	x1, sp, #12
	add	x2, sp, #8
	bl	_freq_to_fnum
	ldrb	w2, [sp, #8]
	mov	w8, #24
	madd	x20, x21, x8, x20
	ldr	w0, [x20, #16]
Lloh5:
	adrp	x8, _FNUM_LOW@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FNUM_LOW@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	add	x1, x9, x8
	bl	_opl3_command
	ldp	w9, w8, [sp, #8]
	ubfiz	w8, w8, #2, #3
	bfxil	w8, w9, #8, #2
	orr	w2, w8, #0x20
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	add	x8, x8, x22
	str	w2, [x8, #4]
	ldr	w0, [x20, #16]
Lloh8:
	adrp	x8, _KEYON_BLOCK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEYON_BLOCK@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x9, [x20, #8]
	add	x1, x9, x8
	bl	_opl3_command
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_pv_map,8,3                     ; @pv_map
	.comm	_devc,8,3                       ; @devc
	.comm	_FNUM_LOW,8,3                   ; @FNUM_LOW
	.comm	_KEYON_BLOCK,8,3                ; @KEYON_BLOCK
	.no_dead_strip	_bend_pitch
.subsections_via_symbols
