	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_midi_send_pitchbend            ## -- Begin function midi_send_pitchbend
	.p2align	4, 0x90
_midi_send_pitchbend:                   ## @midi_send_pitchbend
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $edx killed $edx def $rdx
	leal	8192(%rdx), %eax
	xorl	%ecx, %ecx
	cmpl	$-8192, %edx                    ## imm = 0xE000
	cmovgel	%eax, %ecx
	cmpl	$8192, %edx                     ## imm = 0x2000
	movl	$16383, %r8d                    ## imm = 0x3FFF
	cmovll	%ecx, %r8d
	movl	%esi, %edx
	movq	(%rdi), %rax
	movq	_MIDI_PITCHBEND@GOTPCREL(%rip), %rcx
	movq	_MIDI_CHANMASK@GOTPCREL(%rip), %rsi
	andl	(%rsi), %edx
	orl	(%rcx), %edx
	movl	%r8d, %ecx
	andl	$127, %ecx
	shrl	$7, %r8d
	andl	$127, %r8d
	movl	$3, %esi
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MIDI_PITCHBEND,4,2             ## @MIDI_PITCHBEND
	.comm	_MIDI_CHANMASK,4,2              ## @MIDI_CHANMASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_midi_send_pitchbend            ; -- Begin function midi_send_pitchbend
	.p2align	2
_midi_send_pitchbend:                   ; @midi_send_pitchbend
	.cfi_startproc
; %bb.0:
	add	w8, w2, #2, lsl #12             ; =8192
	cmn	w2, #2, lsl #12                 ; =8192
	csel	w8, wzr, w8, lt
	mov	w9, #16383
	cmp	w2, #2, lsl #12                 ; =8192
	csel	w8, w9, w8, ge
	ldr	x5, [x0]
Lloh0:
	adrp	x9, _MIDI_PITCHBEND@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MIDI_PITCHBEND@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _MIDI_CHANMASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MIDI_CHANMASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w10, w10, w1
	orr	w2, w10, w9
	and	w3, w8, #0x7f
	ubfx	w4, w8, #7, #7
	mov	w1, #3
	br	x5
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MIDI_PITCHBEND,4,2             ; @MIDI_PITCHBEND
	.comm	_MIDI_CHANMASK,4,2              ; @MIDI_CHANMASK
.subsections_via_symbols
